/* 自動目次用のスタイル */
.custom-toc {
    background-color: #ffffff;
    border: 2px solid #555555;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 4px;
    box-sizing: border-box !important;
    width: 100%;
    overflow: hidden;
    /* 万が一のはみ出しも隠すか改行させる */
}

.custom-toc * {
    box-sizing: border-box !important;
}

.custom-toc .toc-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    width: 100%;
}

.custom-toc ul {
    width: 100% !important;
}

.custom-toc ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.custom-toc ul li {
    margin-bottom: 12px;
    position: relative;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100%;
    display: block;
}

.custom-toc ul li:last-child {
    margin-bottom: 0;
}

.custom-toc ul li a {
    text-decoration: none;
    color: #333;
    display: inline-block;
    max-width: 100%;
    white-space: normal !important;
    word-break: break-all !important;
    line-height: 1.5;
}

.custom-toc ul li a:hover {
    text-decoration: underline;
    color: #0073aa;
}

/* JSスムーススクロール対応用アンカー */
.toc-anchor {
    display: block;
    position: relative;
    top: -120px;
    /* PC用：ヘッダーの高さ分上にずらす */
    visibility: hidden;
}

/* スマホ表示での調整 */
@media screen and (max-width: 768px) {
    .custom-toc {
        padding: 15px;
        margin: 20px 0;
    }

    /* ジャンプ位置調整（スマホ用） */
    .toc-anchor {
        top: -80px;
        /* スマホ用：ヘッダーの高さ分上にずらす */
    }
}

.header h1,
.header .h_txt {
    font-size: 95%;
    color: #000;
    margin-bottom: 5px;
}

@media(max-width:768px) {

    .header h1,
    .header .h_txt {
        font-size: 80%;
        color: #000;
        margin-bottom: 5px;
    }
}


@media only screen and (max-width: 767px) {

    #sp_footer {
        background: none;
    }
    #sp_footer ul {
        background: none;
    }
    #sp_footer li {
        width: 25%;
        transition: filter 0.2s ease;
    }
    #sp_footer li:active {
        filter: brightness(0.85);
    }

    #sp_footer li:nth-child(1) {
        background: linear-gradient(to bottom, #2c3e6b 0%, #1a2744 100%);
    }
    #sp_footer li:nth-child(2) {
        background: linear-gradient(to bottom, #1a7a7a 0%, #0e5252 100%);
    }
    #sp_footer li:nth-child(3) {
        background: linear-gradient(to bottom, #e8871e 0%, #c66a0a 100%);
    }
    #sp_footer li:nth-child(4) {
        background: linear-gradient(to bottom, #06C755 0%, #04a648 100%);
    }
}






.houkei .clinic h2 {
	color: #534741;
	font-size: 280%;
	letter-spacing: .1em;
	line-height: 1.2em;
	padding-bottom: .8em;
	position: relative;
	margin-bottom: .8em;
}
.houkei .clinic h2::before {
	content: "";
	position: absolute;
	width: 1.0em;
	height: 1px;
	background: #534741;
	left: 0;
	right: 0;
	margin: auto;
	bottom: 0;
}


/* Tablet
------------------------------------------*/
@media only screen and (min-width: 768px) and (max-width: 959px) {

.houkei .clinic h2 {
	font-size: 240%;
}

}

/* Mobile
------------------------------------------*/
@media only screen and (max-width: 767px) {

.houkei .clinic h2 {
	font-size: 150%;
	letter-spacing: .05em;
}

}
.houkei .doctor h2 {
	color: #10345f;
	font-size: 340%;
	font-weight: bold;
	letter-spacing: .15em;
	line-height: 1.2em;
	margin-bottom: .6em;
}
@media only screen and (min-width: 768px) and (max-width: 959px) {


.houkei .doctor h2 {
	font-size: 5.5vw;
	letter-spacing: .1em;
}
}

@media only screen and (max-width: 767px) {


.houkei .doctor h2 {
	font-size: 240%;
	letter-spacing: .1em;
	line-height: 1.4em;
	margin-bottom: .2em;
}
}

.houkei .doctor .bg_white .flex_box_add {
	color: #02629e;
	font-size: 120%;
	font-weight: normal;
	letter-spacing: .2em;
	line-height: 1.2em;
	padding-bottom: .4em;
	border-bottom: solid 1px #9cc2d9;
	margin-bottom: 10px;
}



/* 全施術ページ：地域別案内（FV直下のエリア別導入ブロック） */
.houkei-area-guide,
.chokei-area-guide,
.ed-area-guide,
.sourou-area-guide,
.kitou-area-guide,
.std-area-guide {
  padding: 190px 20px 30px;
  background: #f7fbfd;
}

.houkei-area-guide__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.houkei-area-guide__box,
.chokei-area-guide > div > div,
.ed-area-guide > div > div,
.sourou-area-guide > div > div,
.kitou-area-guide > div > div,
.std-area-guide > div > div {
  background: #fff;
  border: 1px solid #d9e8ef;
  border-radius: 12px;
  padding: 32px 34px;
  box-sizing: border-box;
}

.houkei-area-guide__title,
.chokei-area-guide h2,
.ed-area-guide h2,
.sourou-area-guide h2,
.kitou-area-guide h2,
.std-area-guide h2 {
  color: #005b7f;
  font-size: 180%;
  font-weight: bold;
  line-height: 1.45;
  letter-spacing: .04em;
  margin: 0 0 18px;
  padding: 0;
}

.houkei-area-guide__text,
.chokei-area-guide p,
.ed-area-guide p,
.sourou-area-guide p,
.kitou-area-guide p,
.std-area-guide p {
  color: #333;
  font-size: 105%;
  line-height: 1.9;
  margin: 0;
}

/* 地域別案内セクション直後のセクションの上余白を最適化（元々のFV用巨大paddingを解除） */
.chokei .nayami,
.houkei .lp_nayami,
.kitou .osusume,
.sourou .about,
.ed .first,
.std .qa_box,
.std .disies_list_box {
  padding-top: 40px !important;
}

/* SP調整 */
@media screen and (max-width: 768px) {
  .houkei-area-guide,
  .chokei-area-guide,
  .ed-area-guide,
  .sourou-area-guide,
  .kitou-area-guide,
  .std-area-guide {
    padding: 130px 15px 20px;
  }

  .houkei-area-guide__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .houkei-area-guide__box,
  .chokei-area-guide > div > div,
  .ed-area-guide > div > div,
  .sourou-area-guide > div > div,
  .kitou-area-guide > div > div,
  .std-area-guide > div > div {
    padding: 24px 20px;
  }

  .houkei-area-guide__title,
  .chokei-area-guide h2,
  .ed-area-guide h2,
  .sourou-area-guide h2,
  .kitou-area-guide h2,
  .std-area-guide h2 {
    font-size: 145%;
  }

  .houkei-area-guide__text,
  .chokei-area-guide p,
  .ed-area-guide p,
  .sourou-area-guide p,
  .kitou-area-guide p,
  .std-area-guide p {
    font-size: 100%;
    line-height: 1.8;
  }

  .chokei .nayami,
  .houkei .lp_nayami,
  .kitou .osusume,
  .sourou .about,
  .ed .first,
  .std .qa_box,
  .std .disies_list_box {
    padding-top: 25px !important;
  }
}

/* 冒頭下CTA：STD */
.free_area .amore-lead-std-cta,
.free_area .amore-lead-std-cta * {
  box-sizing: border-box !important;
  letter-spacing: 0 !important;
}

.free_area .amore-lead-std-cta {
  max-width: 860px !important;
  margin: 22px auto 28px !important;
  padding: 16px 18px !important;
  border-left: 5px solid #103666 !important;
  border-top: 1px solid #d8d8d8 !important;
  border-bottom: 1px solid #d8d8d8 !important;
  background: #fff !important;
}

.free_area .amore-lead-std-cta div,
.free_area .amore-lead-std-cta p,
.free_area .amore-lead-std-cta a {
  width: auto !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.free_area .amore-lead-std-cta__title {
  margin: 0 0 6px !important;
  color: #103666 !important;
  font-size: 32px !important;
  font-weight: bold !important;
  line-height: 1.25 !important;
}

.free_area .amore-lead-std-cta__lead {
  margin: 0 0 16px !important;
  color: #333 !important;
  font-size: 17px !important;
  font-weight: bold !important;
  line-height: 1.6 !important;
}

.free_area .amore-lead-std-cta__buttons {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 430px !important;
}

.free_area .amore-lead-std-cta__item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
}

.free_area .amore-lead-std-cta__micro {
  margin: 0 0 5px !important;
  font-size: 12px !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
  text-align: center !important;
  white-space: nowrap !important;
  color: #103666 !important;
}

.free_area .amore-lead-std-cta__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  font-size: 15px !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.free_area .amore-lead-std-cta__btn--primary {
  background: #103666 !important;
  color: #fff !important;
  border: 1px solid #103666 !important;
}

.free_area .amore-lead-std-cta__btn--secondary {
  background: #fff !important;
  color: #103666 !important;
  border: 1px solid #103666 !important;
}

@media only screen and (max-width: 767px) {
  .free_area .amore-lead-std-cta {
    padding: 15px 14px !important;
  }

  .free_area .amore-lead-std-cta__title {
    font-size: 29px !important;
  }

  .free_area .amore-lead-std-cta__lead {
    font-size: 15px !important;
  }

  .free_area .amore-lead-std-cta__buttons {
    gap: 8px !important;
  }

  .free_area .amore-lead-std-cta__micro {
    font-size: 10px !important;
  }

  .free_area .amore-lead-std-cta__btn {
    height: 44px !important;
    font-size: 13px !important;
  }
}
/* 冒頭下CTA：hover崩れ修正 */
.free_area .amore-lead-std-cta__btn--primary:hover {
  background: #0b294f !important;
  color: #fff !important;
  border-color: #0b294f !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.free_area .amore-lead-std-cta__btn--secondary:hover {
  background: #f3f6fa !important;
  color: #103666 !important;
  border-color: #103666 !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

.free_area div{
  margin-bottom: 0.5rem !important;
}

/* 記事末尾CTA：補助リンク */
.free_area .amore-lead-std-cta__sub-link {
  display: block !important;
  width: fit-content !important;
  margin: 12px 0 0 !important;
  color: #926c00 !important;
  font-size: 13px !important;
  font-weight: bold !important;
  line-height: 1.7 !important;
  text-decoration: underline !important;
}

.free_area .amore-lead-std-cta__sub-link:hover {
  color: #103666 !important;
  text-decoration: underline !important;
}

/* LINEボタン */
.free_area .amore-lead-std-cta__btn--line {
  background: #06c755 !important;
  color: #fff !important;
  border: 1px solid #06c755 !important;
}

.free_area .amore-lead-std-cta__btn--line:hover {
  background: #05b54d !important;
  color: #fff !important;
  border-color: #05b54d !important;
  text-decoration: none !important;
}

/* LINE選択モーダル */
.free_area .amore-line-modal,
.free_area .amore-line-modal * {
  box-sizing: border-box !important;
  letter-spacing: 0 !important;
}

.free_area .amore-line-modal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 20px !important;
}

.free_area .amore-line-modal:target {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.free_area .amore-line-modal__overlay {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, .45) !important;
  text-decoration: none !important;
}

.free_area .amore-line-modal__box {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 420px !important;
  padding: 24px 20px 20px !important;
  background: #fff !important;
  border-top: 5px solid #103666 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25) !important;
}

.free_area .amore-line-modal__title {
  display: block !important;
  margin: 0 0 8px !important;
  color: #103666 !important;
  font-size: 20px !important;
  font-weight: bold !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

.free_area .amore-line-modal__text {
  display: block !important;
  margin: 0 0 18px !important;
  color: #333 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  text-align: center !important;
}

.free_area .amore-line-modal__buttons {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

.free_area .amore-line-modal__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  background: #06c755 !important;
  color: #fff !important;
  border: 1px solid #06c755 !important;
  font-size: 14px !important;
  font-weight: bold !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.free_area .amore-line-modal__close {
  display: block !important;
  width: fit-content !important;
  margin: 16px auto 0 !important;
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  text-align: center !important;
  text-decoration: underline !important;
}

/* 大阪院ヘッダー バッジ（土日祝日診療・梅田北新地すぐ・完全個室予約制）の幅バランス調整 */
.header .h_logo.logo_osaka li:nth-child(1) {
	width: 31% !important;
}
.header .h_logo.logo_osaka li:nth-child(2) {
	width: 37% !important;
	margin: 0 1% !important;
}
.header .h_logo.logo_osaka li:nth-child(3) {
	width: 30% !important;
}
.header .h_logo.logo_osaka li span {
	white-space: nowrap;
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
	.header .h_logo.logo_osaka li:nth-child(1) {
		width: 31% !important;
	}
	.header .h_logo.logo_osaka li:nth-child(2) {
		width: 37% !important;
		margin: 0 1% !important;
	}
	.header .h_logo.logo_osaka li:nth-child(3) {
		width: 30% !important;
	}
	.header .h_logo.logo_osaka li {
		font-size: 1.1vw !important;
	}
}

@media only screen and (max-width: 767px) {
	.header .h_logo.logo_osaka li:nth-child(1) {
		width: 31% !important;
	}
	.header .h_logo.logo_osaka li:nth-child(2) {
		width: 37% !important;
		margin: 0 1% !important;
	}
	.header .h_logo.logo_osaka li:nth-child(3) {
		width: 30% !important;
	}
	.header .h_logo.logo_osaka li {
		font-size: 3.1vw !important;
		letter-spacing: -0.02em;
	}
}

/* -------------------------------------------------------------
   スマホ ドロワーメニュー アコーディオン用スタイル
------------------------------------------------------------- */
.drawer-nav .drawer-menu .drawer-acc-head {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	cursor: pointer !important;
	user-select: none;
	position: relative;
	transition: background-color 0.2s ease;
}
.drawer-nav .drawer-menu .drawer-acc-head:active {
	background-color: #0d264a !important;
}
.drawer-nav .drawer-menu .drawer-acc-head .acc-btn {
	display: inline-block;
	width: 24px;
	height: 24px;
	position: relative;
	margin-left: 10px;
}
.drawer-nav .drawer-menu .drawer-acc-head .acc-btn::before,
.drawer-nav .drawer-menu .drawer-acc-head .acc-btn::after {
	content: '';
	position: absolute;
	background-color: #ffffff;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease, opacity 0.25s ease;
}
/* 横棒 */
.drawer-nav .drawer-menu .drawer-acc-head .acc-btn::before {
	width: 14px;
	height: 2px;
}
/* 縦棒 (プラスアイコン用) */
.drawer-nav .drawer-menu .drawer-acc-head .acc-btn::after {
	width: 2px;
	height: 14px;
}
/* 開いたとき (マイナスアイコンに変化) */
.drawer-nav .drawer-menu .drawer-acc-head.is-open .acc-btn::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}
.drawer-nav .drawer-menu .drawer-acc-body {
	padding: 0 !important;
	margin: 0 !important;
	background-color: rgba(0, 0, 0, 0.15);
}
.drawer-nav .drawer-menu .drawer-acc-body ul.drawer-sub-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}
.drawer-nav .drawer-menu .drawer-acc-body ul.drawer-sub-menu li a {
	padding-left: 28px !important;
	font-size: 92% !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}