*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo, sans-serif;
}
h2 {
  color: #333;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-family: "Noto Serif JP", serif;
  font-size: 225%;
}
h3 {
  color: #333;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-family: "Noto Serif JP", serif;
  font-size: 200%;
}
h4 {
  color: #333;
  font-family: "Noto Serif JP", serif;
  font-size: 105%;
}
p,ul {
  color: #333;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
@media screen and (max-width: 768px) {
  p,ul {
    font-size: 1rem;
  }
	h4 {
		font-size: 100%;
	}
}

/* -------------------レスポンシブ------------------- */
.pc_only {
  display: block !important;
}
.sp_only {
  display: none !important;
}

@media (max-width: 768px) {
  .pc_only {
    display: none !important;
  }
  .sp_only {
    display: block !important;
  }
}

/* -------------------改行設定------------------- */
.sp_only {
  display: none;
}

.pc_only {
  display: block;
}

@media (max-width: 768px) {
  .sp_only {
    display: block;
  }

  .pc_only {
    display: none;
  }
}
/* -------------------画像------------------- */
.maauto {
	margin: auto;
}
/* -------------------セクション------------------- */
.mw1200{
    width: 94%;
    padding: 0 3%;
    max-width: 1200px;
    margin: 0 auto;
}
@media only screen and (max-width: 768px) {
  section {
	  padding: 0;
}
}

/* -------------------マージン------------------- */
.m40 {
  margin: 40px 0;
}

/* -------------------width------------------- */
.wi85 {
  width: 85%;
}

/* -------------------位置------------------- */
.txcenter {
  text-align: center;
}
.left {
  text-align: left;
}


/* -------------------フォントサイズ------------------- */



/* -------------------カラム------------------- */



/* -------------------カラー------------------- */


/* -------------------メニュー出し分け------------------- */
#header-sp { display: none; }

@media (max-width: 768px) {
  #header-pc { display: none; }
  #header-sp { display: block; }
}

/* -------------------パンくず------------------- */
.breadcrumb {
  font-size: 0.9rem;
    margin: 45px auto;
    padding: 0 15px;
    color: #333;
    width: 90%;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: ">";
  color: #999;
  margin: 0 8px;
}

.breadcrumb a {
	text-decoration: none;
	color: #1C347D;
	transition: color 0.2s;
}

.breadcrumb a:hover {
	text-decoration: underline;
	color: #E9F0FF;
}
@media only screen and (max-width: 768px) {
  .breadcrumb ol {
    font-size: 12px;
  }
}

/*------------------- ヘッダー -------------------*/
/* ヘッダー */
.site-header {
  position: static;
  top: 0;
  z-index: 1000;
  background: #fff;
  font-family: "Noto Serif JP", serif;
}

/* 内側 */
.h_inbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* 左 */
.h_left {
  display: flex;
  flex-direction: column;
}

.site-h1 {
  font-size: 10px;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

/* ロゴ */
.h_logo img {
  max-width: 280px;
  height: auto;
}

/* 右 */
.h_right {
  display: flex;
}

/* CTA */
.h_contact {
  display: flex;
}

.cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 18px;
  text-decoration: none;
  color: #fff;
  min-width: 200px;
}

/* ホバーで文字色を変える */
.cta:hover {
  color: #e0e0e0;
}

.cta-lbl {
  font-size: 12px;
}

.cta-main {
  font-size: 18px;
  font-weight: 700;
}

.cta-note {
  font-size: 11px;
}

/* TEL */
.cta-tel {
  background: #005bac;
}

/* WEB */
.cta-web {
  background: #61a43d;
}

/* CONTACT */
.cta-line {
  background: #526577;
}

/* =======================
SP
======================= */

.sp_only {
  display: none;
}

@media (max-width:768px) {

  .pc_only {
    display: none;
  }

  .sp_only {
    display: block;
  }

  .h_inbox {
    padding: 2px 2px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .site-h1 {
    font-size: 9px;
  }

  .h_logo img {
    max-width: 200px;


  }

}

/* ------------- メニュー本体 ------------- */
.nav {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;

  position: sticky;
  top: 0;

  transition: .3s ease;
  z-index: 15;
  box-shadow: 0 6px 10px -6px rgba(0, 0, 0, .2);
  font-size: 0.98rem;
}

/* リスト：均等配置＋区切り線 */
.nav-list {
  display: flex;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid #ccc;
}

.nav-item {
  position: relative;
  flex: 1;
  text-align: center;
  border-right: 1px solid #ccc;
}

/* リンク：縦並びで中央寄せ（上：日本語／下：英字） */
.nav-item > a,
.gnavlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1.5;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 18px 10px 16px;
  position: relative;
  background: linear-gradient(#005bac 0 0) bottom / 0 2px no-repeat;
  transition: background-size .25s ease, color .25s ease, opacity .25s ease;
}

/* 下段の英字は data-en から生成 */
.nav-item > a::after,
.nav-item > .gnavlist::after {
  content: attr(data-en);
  display: block;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: .18em;
  font-size: 14px;
  color: #C8D2EC;
  text-transform: lowercase;
  font-family: "Noto Serif JP", serif;
}

/* ホバー：文字色＋下線を伸ばす */
.nav-item > a:hover,
.gnavlist:hover {
  color: #005bac;
  background-size: 100% 2px;
}

/* アクティブ状態 */
.nav-item.is-current > a,
.nav-item.is-current > .gnavlist {
  color: #005bac;
  background-size: 100% 2px;
}

@media (max-width: 1050px) {
  .nav {
    display: none;
  }
}

/* ------------- ドロップダウン ------------- */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #fff;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 220px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  border: 1px solid #005bac;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 8px);
  z-index: 20;
}

.dropdown li {
  padding: 0;
}

.dropdown li a {
  display: block;
  padding: 10px 16px;
  color: #005bac;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: .2s ease;
}

.dropdown li a:hover {
  background: #f3f6ff;
  color: #005bac;
  padding-left: 22px;
}

/* =============================
   診療科目だけ3カラム（スクロールなし版）
============================= */
.dropdown-medical {
  display: flex;
  gap: 40px;

  padding: 28px 32px;
  min-width: 860px;
  max-width: 95vw;

  max-height: none;
  overflow: visible;
}

/* カラム */
.dropdown-medical .menu-group {
  flex: 1;
  min-width: 220px;
}

.dropdown-medical .dropdown-title {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 12px 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #005bac;
}

/* リスト */
.dropdown-medical .menu-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-medical .menu-group li {
  margin-bottom: 6px;
}

/* リンク */
.dropdown-medical .menu-group li a {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
}

/* ホバー */
.dropdown-medical .menu-group li a:hover {
  background: #f3f6ff;
  padding-left: 14px;
}

/* ------------- レスポンシブ ------------- */
@media (max-width: 1024px) {
  .nav-item>a {
    padding: 16px 8px
  }

  .nav-item>a::after {
    font-size: 13px;
    letter-spacing: .16em
  }
}

@media (max-width: 840px) {
  .nav-list {
    flex-wrap: wrap
  }

  .nav-item {
    flex: 1 1 33.33%
  }
}

@media (max-width: 600px) {
  .nav-item {
    flex: 1 1 50%
  }

  .nav-item>a {
    padding: 14px 6px
  }
}

/* ----------------------------------------------------
タブレット用（768px〜1024px）
---------------------------------------------------- */
@media screen and (min-width: 768px) and (max-width: 1024px) {}

/* ----------------------------------------------------
スマホ用（〜767px）
---------------------------------------------------- */
@media (max-width: 768px) {}


/*------------------- ハンバーガーメニュー -------------------*/

/* ラップ */
.drawer-wrap {
  position: relative;
  z-index: 10001;
}

/* チェックボックスは非表示 */
#drawer-checkbox {
  position: fixed;
  top: -100px;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ハンバーガーボタン */
.drawer-hamburger {
  position: relative;
  z-index: 10002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 75px;
  color: #fff;
  background: linear-gradient(
    135deg,
    #0870c9 0%,
    #005bac 55%,
    #00427e 100%
  );
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(0, 46, 88, 0.35);
  box-shadow:
    0 3px 9px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition:
    filter 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.drawer-hamburger:hover {
  filter: brightness(1.1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.drawer-hamburger:active {
  transform: translateY(1px);
}

.drawer-hamburger:focus-visible {
  outline: 3px solid rgba(0, 91, 172, 0.35);
  outline-offset: 3px;
}

/* 3本線の中央 */
.drawer-hamburger-icon {
  position: relative;
  top: 1px;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 2px 3px rgba(0, 0, 0, 0.35);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

/* 上下の線 */
.drawer-hamburger-icon::before,
.drawer-hamburger-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 2px 3px rgba(0, 0, 0, 0.35);
  transition:
    top 0.3s ease,
    transform 0.3s ease;
}

.drawer-hamburger-icon::before {
  top: -9px;
}

.drawer-hamburger-icon::after {
  top: 9px;
}

/* MENU文字 */
.menu_txt {
  position: relative;
  top: 13px;
  display: inline-block;
  line-height: 1;
}

.menu_txt::before {
  content: "MENU";
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
  text-shadow:
    -1px -1px 0 rgba(0, 54, 105, 0.8),
    1px -1px 0 rgba(0, 54, 105, 0.8),
    -1px 1px 0 rgba(0, 54, 105, 0.8),
    1px 1px 0 rgba(0, 54, 105, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.55);
}

/* 開いた時：×に変化 */
#drawer-checkbox:checked + .drawer-hamburger {
  background: linear-gradient(
    135deg,
    #005bac 0%,
    #004b8e 55%,
    #003767 100%
  );
}

#drawer-checkbox:checked + .drawer-hamburger .drawer-hamburger-icon {
  background: transparent;
  box-shadow: none;
}

#drawer-checkbox:checked + .drawer-hamburger .drawer-hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

#drawer-checkbox:checked + .drawer-hamburger .drawer-hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

#drawer-checkbox:checked + .drawer-hamburger .menu_txt::before {
  content: "CLOSE";
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* 閉じる用の背景 */
#drawer-close {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* 開いた時に背景表示 */
#drawer-checkbox:checked ~ #drawer-close {
  opacity: 1;
  visibility: visible;
}

/* メニュー全体 */
#drawer-content {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  width: min(100%, 420px);
  height: 100vh;
  padding: 24px 20px 40px;
  box-sizing: border-box;
  background: #fffdf7;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
}

/* 開いた時のメニュー */
#drawer-checkbox:checked ~ #drawer-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* スマホ用 */
@media (max-width: 768px) {
  .drawer-hamburger {
    width: 72px;
    height: 65px;
  }

  .drawer-hamburger-icon,
  .drawer-hamburger-icon::before,
  .drawer-hamburger-icon::after {
    width: 24px;
  }

  .menu_txt {
    top: 12px;
  }

  .menu_txt::before {
    font-size: 11px;
  }

  #drawer-checkbox:checked + .drawer-hamburger .menu_txt::before {
    font-size: 10px;
  }

  #drawer-content {
    width: 100%;
    padding: 20px 16px calc(110px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }
}

/* 開いた時のメニュー */
#drawer-checkbox:checked ~ #drawer-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ナビ全体 */
.drawer-nav {
  width: 100%;
}

.drw_menu {
  padding-top: 20px;
}

.drw_logo {
  text-align: center;
  margin-bottom: 24px;
}

.drw_logo a {
  display: inline-block;
}

.drw_logo img {
  max-width: 142px;
  height: auto;
  display: block;
}

/* SITEMAP見出し */
.drw_index {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  color: #333;
}

/* リスト初期化 */
.com_sp_menu,
.com_sp_menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.com_sp_menu li {
  list-style: none;
  margin-bottom: 0.7em;
  font-size: 1rem;
  line-height: 1.7;
}

/* セクション見出し */
.com_sp_menu li.littl {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  padding-left: 0;
}

/* 通常リンク項目 */
.com_sp_menu li:not(.littl) {
  position: relative;
  padding-left: 1.4em;
}

.com_sp_menu li:not(.littl)::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 0.45em;
  height: 0.45em;
  background-color: #005bac;
  border-radius: 50%;
}

/* リンク */
.com_sp_menu a {
  color: #333;
  text-decoration: none;
}

.com_sp_menu a:hover {
  opacity: 0.7;
}

/* 不要なら消してOK */
.com_medical li {
  margin-bottom: 0.6em;
  font-size: 1rem;
}

.com_medical li:not(.littl) {
  position: relative;
  padding-left: 1.4em;
  list-style: none;
}

.com_medical li:not(.littl)::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  background-color: #005bac;
  border-radius: 50%;
}

/* SP時 */
@media (max-width: 768px) {
  .drawer-hamburger {
    width: 72px;
    height: 65px;
  }

  .drawer-hamburger-icon {
    width: 22px;
  }

  .drawer-hamburger-icon::before,
  .drawer-hamburger-icon::after {
    width: 22px;
  }

  #drawer-content {
     width: 100%;
  padding: 20px 16px calc(110px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom));
  }

  .drw_logo {
    margin-bottom: 20px;
  }

  /* メニューを2カラムにする */
  #drawer-content .com_sp_menu,
  #drawer-content .com_medical {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 8px;
  }

  #drawer-content .com_sp_menu li,
  #drawer-content .com_medical li {
    min-width: 0;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.5;
  }

  /* リンクの文字サイズを指定 */
  #drawer-content .com_sp_menu li a,
  #drawer-content .com_medical li a {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  /* セクション見出しは横幅いっぱい */
  #drawer-content .com_sp_menu li.littl,
  #drawer-content .com_medical li.littl {
    grid-column: 1 / -1;
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
    font-size: 13px;
    line-height: 1.5;
  }

  /* 最初の見出しだけ上余白を小さくする */
  #drawer-content .com_sp_menu li.littl:first-child,
  #drawer-content .com_medical li.littl:first-child {
    margin-top: 0;
  }

  /* 入れ子のメニューも2カラムにする */
  #drawer-content .com_sp_menu > li > ul,
  #drawer-content .com_sp_menu > ul {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 8px;
  }

  #drawer-content .com_sp_menu li:not(.littl),
  #drawer-content .com_medical li:not(.littl) {
    padding-left: 1.2em;
  }
}


/* PCのサイトマップ段組み */
@media (min-width: 1024px) {
  .com_sp_menu {
    column-count: 2;
    column-gap: 2rem;
  }

  .com_sp_menu .littl {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    column-break-inside: avoid;
  }

  .com_sp_menu li:not(.littl) {
    break-inside: avoid;
  }
}

@media (min-width: 1280px) {
  .com_sp_menu {
    column-count: 3;
  }
}