@charset "UTF-8";

/* ========================================
   Typography & Section Layout
======================================== */
.kaku {
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.en {
  font-size: 96px;
  font-weight: 900;
  line-height: 108%;
}

section {
  padding: 80px;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
}

h2::before {
  content: "";
  width: 32px;
  height: 1px;
  background-color: #47413a;
}


/* ========================================
   Sections（背景・レイアウト）
======================================== */

/* mv */
.flex-start {
  align-items: flex-start;
  margin: 0 !important;
  width: fit-content;
}

/* about */
.about {
  background-image: url(img/about.png); background-image: image-set(url(img/about.png.webp) type("image/webp"), url(img/about.png) type("image/png"));
  background-size: cover;
}

/* detail */
/* アイコンのスタイリング（＋とー） */
.acc-icon {
  position: absolute;
  right: 0; /* 位置は微調整してね */
  width: 20px;
  height: 20px;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  background-color: #333;
  transition: all 0.3s ease;
}
/* 横棒 */
.acc-icon::before {
  top: 50%; left: 0;
  width: 100%; height: 1px;
  transform: translateY(-50%);
}
/* 縦棒（＋の時だけ見える） */
.acc-icon::after {
  top: 0; left: 50%;
  width: 1px; height: 100%;
  transform: translateX(-50%);
}

/* 開いた時のアニメーション（縦棒を消してマイナスに） */
.js-accordion-item.is-active .acc-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* コンテンツの初期状態（隠す） */
.accordion-content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

/* 最初から開いておきたい場合用のクラス（任意） */
.js-accordion-item.is-active .accordion-content {
  height: auto;
}

/* --- 追加・修正分 --- */

/* 通常時（閉じている時）は余白なし、または最小限に */
.js-accordion-trigger {
  margin-bottom: 0; 
  transition: margin-bottom 0.3s ease; /* 動きを滑らかにするなら */
}

/* 開いた時（is-active）だけ、h3の下に余白を作る */
.js-accordion-item.is-active .js-accordion-trigger {
  margin-bottom: 24px; /* mg-4 相当の数値（1.5rem〜2rem程度）に調整してね */
}

/* 念のためコンテンツ内の余白もリセット */
.accordion-content .flexbox {
  padding-top: 0;
}


.tooth {
  width: 48px;
}

.howto a {
  width: 300px;
  height: 300px;
}

.howto a:hover img {
  display: none;
}

.howto a:nth-child(1):hover {
  background-image: url(img/d1_h.png); background-image: image-set(url(img/d1_h.png.webp) type("image/webp"), url(img/d1_h.png) type("image/png"));
  background-size: cover;
}

.howto a:nth-child(2):hover {
  background-image: url(img/d2_h.png); background-image: image-set(url(img/d2_h.png.webp) type("image/webp"), url(img/d2_h.png) type("image/png"));
  background-size: cover;
}
.howto a:nth-child(3):hover {
  background-image: url(img/d3_h.png); background-image: image-set(url(img/d3_h.png.webp) type("image/webp"), url(img/d3_h.png) type("image/png"));
  background-size: cover;
}

.howto a:nth-child(4):hover {
  background-image: url(img/d4_h.png); background-image: image-set(url(img/d4_h.png.webp) type("image/webp"), url(img/d4_h.png) type("image/png"));
  background-size: cover;
}

.howto a:nth-child(5):hover {
  background-image: url(img/d5_h.png); background-image: image-set(url(img/d5_h.png.webp) type("image/webp"), url(img/d5_h.png) type("image/png"));
  background-size: cover;
}

.howto a:nth-child(6):hover {
  background-image: url(img/d6_h.png); background-image: image-set(url(img/d6_h.png.webp) type("image/webp"), url(img/d6_h.png) type("image/png"));
  background-size: cover;
}

.detail .item .wrap {
  gap: 16px 32px;
}

/* fee */
.fee {
  background-image: url(img/fee.png); background-image: image-set(url(img/fee.png.webp) type("image/webp"), url(img/fee.png) type("image/png"));
  background-size: cover;
}

.fee h2::before {
  background-color: #ffffff;
}

.fee .title , .news .title {
  max-width: 100%;
  width: 360px;
}
/* news */
.news .en,
.colum .en {
  color: rgba(167, 167, 167, 0.4);
}

.news .text{
	width:100%;
}

/* colum */

.colum {
  background-image: url(img/colum.png); background-image: image-set(url(img/colum.png.webp) type("image/webp"), url(img/colum.png) type("image/png"));
  background-size: cover;
}

/* info */
dt {
  width: 30%;
}

dd {
  width: calc(70% - 16px);
}

dt,
dd {
  border-bottom: solid 1px #cdc9c1;
  font-family: "Zen Kaku Gothic New", sans-serif;
  padding: 0px 8px 16px 8px;
}

/* footer */
.sns {
  width: 36px;
  display: block;
}

/* 下層 */
.contact {
  background-image: url(img/contact.png); background-image: image-set(url(img/contact.png.webp) type("image/webp"), url(img/contact.png) type("image/png"));
  background-size: cover;
}

/* ========================================
   Responsive : max-width 1199px（SP）
======================================== */

@media screen and (max-width: 1199px) {
  section {
    padding: 40px 16px;
    box-sizing: border-box;
  }

  .en {
    font-size: 48px;
  }

  /* mv & 背景SP */
  .mv {
    background-image: url(img/fv_sp.png); background-image: image-set(url(img/fv_sp.png.webp) type("image/webp"), url(img/fv_sp.png) type("image/png"));
  }

  h2 {
    font-style: normal;
    font-size: 40px;
    font-weight: 600;
  }

  .howto a {
    width: 300px;
    height: 300px;
  }
	
	.news .text .btn_w{
		display:block;
		margin:0 auto;
	}
}

/* ========================================
   Responsive : min-width 1200px（PC）
======================================== */

@media screen and (min-width: 1200px) {
  .inner {
    max-width: 1200px;
    margin: 0 auto;
  }

  /* flow cards 並び */
  .about img ,
	.about .text{
    width: calc((100% - 80px) / 2);
  }

  .info .calendor_outer,
  .info .text {
    width: calc((100% - 16px) / 2);
  }
}

/* 症例集（CASE）をメニューに追加したため、PCメニューが入りきらない幅だけ間隔を詰める */
@media screen and (min-width: 1200px) and (max-width: 1299px) {
  #manu {
    column-gap: 10px;
  }
}

/* ==========================================================
   メディア掲載バナー（[media_banners] ／ フッター上のエリア）
   2列で並べる。枠は最低4つで、バナーの無い枠は空欄の白枠になる。
   バナーの縦横比が違っても、同じ大きさの枠に収めて揃える
   ========================================================== */
.media-bnr {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.media-bnr__link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1200 / 630;
  padding: 8px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity .2s, box-shadow .2s;
}
a.media-bnr__link:hover {
  opacity: .85;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}
.media-bnr__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-bnr__name {
  font-weight: bold;
  color: #333;
}
/* フッター上のエリア */
.media-area {
  padding: 48px 0;
  background: #f5f5f5;
  border-top: 1px solid #e6e6e6;
}
.media-area__title {
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: .1em;
}
.media-area__en {
  display: block;
  margin-bottom: 4px;
  text-align: center;
  font-size: 12px;
  color: #999;
  letter-spacing: .2em;
}
.media-bnr--footer {
  gap: 16px;
  max-width: 520px;
}
@media screen and (max-width: 767px) {
  .media-bnr,
  .media-bnr--footer {
    gap: 12px;
  }
  .media-area {
    padding: 32px 20px;
  }
}

/* ==========================================================
   症例スライド（[case_slider]）
   ========================================================== */
.case-slider {
  position: relative;
}
.case-slider .gcf-case-carousel.is-plain .swiper-wrapper {
  gap: 20px;
  padding: 4px 2px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.case-slider .gcf-case-carousel.is-plain .swiper-wrapper::-webkit-scrollbar {
  display: none;
}
.case-slider .gcf-case-carousel.is-plain .swiper-slide {
  flex: 0 0 calc((100% - 40px) / 3);
}
.case-slider .p-caseSlide {
  transition: box-shadow .2s, transform .2s;
}
.case-slider .p-caseSlide:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}
.case-slider .p-caseSlide__ttl {
  font-size: 15px;
}
.case-slider .p-caseSlide__info {
  font-size: 12px;
  line-height: 1.7;
}
.case-slider__nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.case-slider__btn {
  width: 44px;
  height: 44px;
  border: 1px solid #444;
  border-radius: 50%;
  background: #fff;
  color: #444;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.case-slider__btn:hover,
.case-slider__btn:focus-visible {
  background: #444;
  color: #fff;
}
.case-slider__more {
  margin-top: 24px;
  text-align: center;
}
.case-slider__more .btn_d {
  display: inline-block;
}
.case-top {
  padding: 80px 0;
}
@media screen and (max-width: 1023px) {
  .case-slider .gcf-case-carousel.is-plain .swiper-slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}
@media screen and (max-width: 767px) {
  .case-slider .gcf-case-carousel.is-plain .swiper-wrapper {
    gap: 12px;
  }
  .case-slider .gcf-case-carousel.is-plain .swiper-slide {
    flex-basis: 85%;
  }
  .case-top {
    padding: 56px 0;
  }
}

/* ==========================================================
   症例集（GCF 症例集）とテーマの共通スタイルのぶつかりを直す
   ・テーマ全体の dt/dd（幅30%・余白・下線）が症例スライドの項目名にも効いて、1文字ずつ折り返していた
   ・スマホでテーマが th/td を縦積みにするとき、症例の表の見出し（th）が幅28%のまま残っていた
   ========================================================== */
.gcf-case .p-caseSlide__row dt,
.gcf-case .p-caseSlide__row dd {
  width: auto;
  padding: 0;
  border-bottom: none;
}
.case-slider .p-caseSlide__row {
  grid-template-columns: 5.5em 1fr;
}
@media screen and (max-width: 767px) {
  .gcf-case .gcf-case-table th,
  .gcf-case .gcf-case-table.is-compact th {
    width: 100%;
    box-sizing: border-box;
  }
  .gcf-case .gcf-case-table td {
    width: 100%;
    box-sizing: border-box;
  }
}

/* メディア掲載：空欄の場所は残すが、枠は出さない */
.media-bnr__item.is-empty .media-bnr__link {
  background: transparent;
  border-color: transparent;
}

/* ==========================================================
   お知らせ一覧（トップページ・新着情報）
   タイトルが長いと、日付とカテゴリーが押しつぶされて1文字ずつ折り返していたのを直す
   ========================================================== */
.news_list a {
  flex-wrap: nowrap;
}
.news_list .date,
.news_list .category {
  flex-shrink: 0;
  white-space: nowrap;
}
.news_list h3 {
  flex: 1 1 auto;
  min-width: 0;
}
@media screen and (max-width: 767px) {
  /* スマホ：1行目に日付とカテゴリー、2行目にタイトル */
  .news_list a {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .news_list h3 {
    flex-basis: 100%;
  }
}

/* トップページのWEB予約タブ：隠しラジオボタンがスクロール枠の外に出て、スマホでページが横に7pxはみ出していたのを直す */
.apotab-list {
  position: relative;
}
.apotab-list label {
  position: relative;
}

/* ==========================================================
   症例スライドの修正（スマホでのずれ・矢印ボタンの形）
   ・テーマ全体の button の余白（上下24px）で、矢印ボタンが楕円になり矢印が下にずれていた
   ・トップページのスマホでは外枠に左右の余白がなく、カードが画面の端に付いていた
   ========================================================== */
.case-slider .gcf-case-carousel.is-plain .swiper-wrapper {
  position: relative;   /* 送り先の位置計算の基準 */
}
.case-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 0;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  font-size: 22px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}
.case-slider__btn span {
  display: block;
  margin-top: -2px;
}
@media screen and (max-width: 767px) {
  /* トップページは外枠に余白が無いので、スライドの左右に余白を足す（ドクターページは外枠に余白がある） */
  .case-top .case-slider .gcf-case-carousel.is-plain .swiper-wrapper {
    padding-left: 20px;
    padding-right: 20px;
    scroll-padding-left: 20px;
    scroll-padding-right: 20px;
  }
  .case-slider .gcf-case-carousel.is-plain .swiper-slide {
    flex-basis: calc(100% - 36px);
  }
  .case-top .case-slider .gcf-case-carousel.is-plain .swiper-slide {
    flex-basis: calc(100% - 56px);
  }
  .case-slider .p-caseSlide {
    box-sizing: border-box;
  }
}

/* トップページ「治療方法」：スマホは2列 */
@media screen and (max-width: 767px) {
  .detail .howto {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  .detail .howto a {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .detail .howto a picture,
  .detail .howto a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ==========================================================
   スマホのハンバーガーメニュー：2列・日本語を主役に（英語は小さく上に添える）
   元のスタイルは「Simple Custom CSS and JS」（770.css）と components.css にあるため、ここで上書きする
   ========================================================== */
@media screen and (max-width: 1199px) {
  nav.NavMenu .sp-nav-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    max-width: 480px;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box;
  }
  nav.NavMenu .sp-nav-list > li {
    width: auto !important;
    margin: 0 !important;
    border-bottom: 1px solid #e6e2da;
  }
  nav.NavMenu .sp-nav-list > li.has-treatment,
  nav.NavMenu .sp-nav-list > li.sp-nav-footer,
  nav.NavMenu .sp-nav-list > li.sp-reserve {
    grid-column: 1 / -1;
  }
  nav.NavMenu .sp-nav-list > li.sp-nav-footer,
  nav.NavMenu .sp-nav-list > li.sp-reserve {
    border-bottom: none;
  }
  nav.NavMenu .sp-nav-list > li.sp-reserve {
    justify-self: center;
    width: 240px !important;
  }
  nav.NavMenu .sp-nav-list > li:not(.sp-nav-footer):not(.sp-reserve) > a,
  nav.NavMenu .sp-nav-list .treatment-toggle {
    flex-direction: column;
    justify-content: center;
    gap: 2px !important;
    min-height: 64px;
    padding: 10px 4px;
    box-sizing: border-box;
  }
  /* 英語：小さく・薄く・上に */
  nav.NavMenu .sp-nav-list > li:not(.sp-nav-footer):not(.sp-reserve) > a span.end,
  nav.NavMenu .sp-nav-list .treatment-toggle span.end {
    order: 1;
    width: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
    font-size: 10px !important;
    letter-spacing: .18em;
    color: #9a9387;
    text-align: center !important;
  }
  /* 日本語：大きく・太く */
  nav.NavMenu .sp-nav-list > li:not(.sp-nav-footer):not(.sp-reserve) > a span:not(.end),
  nav.NavMenu .sp-nav-list .treatment-toggle span:not(.end) {
    order: 2;
    width: auto !important;
    height: auto !important;
    line-height: 1.5 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #3b3b3b;
    white-space: normal !important;
  }
  nav.NavMenu .sp-nav-list .treatment-sub {
    padding: 0 8px 12px !important;
    text-align: left;
  }
}

/* ==========================================================
   症例スライドのカード：写真を余白なしで上に並べ、治療名ラベルを写真の左上に重ねる
   ========================================================== */
.case-slider .p-caseSlide {
  position: relative;
}
.case-slider .gcf-case-carousel.is-plain .p-caseSlide__images {
  gap: 1px;
  padding: 0;
  background: #fff;
}
.case-slider .gcf-case-carousel.is-plain .p-caseSlide__img {
  border-radius: 0;
}
.case-slider .gcf-case-carousel.is-plain .p-caseSlide__tags {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.case-slider .gcf-case-carousel.is-plain .p-caseSlide__tags li {
  padding: 6px 12px;
  background: rgba(68, 68, 68, .88);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}
.case-slider .gcf-case-carousel.is-plain .p-caseSlide__body {
  padding: 16px 16px 18px;
}

/* ==========================================================
   スマホ：真ん中に1枚、左右に前後を少し見せる。矢印はカードの左右に重ねる
   ========================================================== */
@media screen and (max-width: 767px) {
  .case-slider .gcf-case-carousel.is-plain .swiper-wrapper,
  .case-top .case-slider .gcf-case-carousel.is-plain .swiper-wrapper {
    gap: 12px;
    padding-left: 12%;
    padding-right: 12%;
    scroll-padding-left: 0;
    scroll-padding-right: 0;
  }
  .case-slider .gcf-case-carousel.is-plain .swiper-slide,
  .case-top .case-slider .gcf-case-carousel.is-plain .swiper-slide {
    flex-basis: 100%;   /* 左右12%の余白の内側いっぱい＝画面のちょうど真ん中に来る */
    scroll-snap-align: center;
  }
  .case-slider__nav {
    position: absolute;
    top: calc(14.6vw - 22px);   /* 写真の高さの真ん中あたり */
    left: 0;
    right: 0;
    justify-content: space-between;
    margin: 0;
    padding: 0 4px;
    pointer-events: none;
    z-index: 2;
  }
  .case-slider__btn {
    pointer-events: auto;
    border: none;
    background: rgba(68, 68, 68, .6);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  }
  .case-slider__btn:hover,
  .case-slider__btn:focus-visible {
    background: rgba(68, 68, 68, .85);
    color: #fff;
  }
}

/* ==========================================================
   コラムのスライド（トップページ）
   動きは症例スライドと同じ（functions.php の js-case-slider）
   PC：3枚／タブレット：2枚／スマホ：中央に1枚＋左右に前後を少し見せる
   ========================================================== */
.column-slider .swiper-wrapper {
  position: relative;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 16px;
  -webkit-overflow-scrolling: touch;
}
.column-slider .swiper-wrapper::-webkit-scrollbar {
  display: none;
}
.column-slider .swiper-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  width: auto !important;
  margin: 0 !important;
  scroll-snap-align: start;
}
.column-slider .swiper-slide > a {
  display: block;
  height: 100%;
}
.column-slider .post-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.column-slider h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.7;
}
@media screen and (max-width: 1023px) {
  .column-slider .swiper-slide {
    flex-basis: calc((100% - 20px) / 2);
  }
}
@media screen and (max-width: 767px) {
  .column-slider .swiper-wrapper {
    gap: 12px;
    padding-left: 12%;
    padding-right: 12%;
  }
  .column-slider .swiper-slide {
    flex-basis: 100%;
    scroll-snap-align: center;
  }
  .column-slider .case-slider__nav {
    top: calc(23.75vw - 18px);   /* 写真の高さの真ん中あたり */
  }
}

/* ==========================================================
   スマホの症例カード：縦に長くなりすぎないよう、文章は2行までで「…」にする
   全文は症例ページで読める（カード全体が症例ページへのリンク）
   ========================================================== */
.case-slider .p-caseSlide__foot::after {
  content: "詳しく見る →";
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #444;
}
@media screen and (max-width: 767px) {
  .case-slider .p-caseSlide__ttl,
  .case-slider .p-caseSlide__row dd {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* ==========================================================
   スライドの矢印：PC・スマホとも、カードの高さの真ん中・左右の端に重ねる（2026-11-13 調整）
   症例：.case-slider__viewport の中／コラム：.column-slider の中
   ========================================================== */
.case-slider__viewport,
.column-slider {
  position: relative;
}
.case-slider .case-slider__nav,
.column-slider .case-slider__nav,
.case-top .case-slider .case-slider__nav {
  position: absolute;
  top: 50%;
  left: -22px;
  right: -22px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 2;
}
.case-slider .case-slider__btn {
  pointer-events: auto;
  border: none;
  background: rgba(68, 68, 68, .7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.case-slider .case-slider__btn:hover,
.case-slider .case-slider__btn:focus-visible {
  background: rgba(68, 68, 68, .92);
  color: #fff;
}
@media screen and (max-width: 767px) {
  .case-slider .case-slider__nav,
  .column-slider .case-slider__nav,
  .case-top .case-slider .case-slider__nav {
    top: 50%;
    left: 4px;
    right: 4px;
  }
}

/* ==========================================================
   スマホメニューの調整（2026-11-13）
   ・日本語のメニュー名を大きく
   ・治療内容の一覧は、最初から開いた状態で2列に並べる（開閉の「＋」は出さない）
   ========================================================== */
@media screen and (max-width: 1199px) {
  nav.NavMenu .sp-nav-list > li:not(.sp-nav-footer):not(.sp-reserve) > a span:not(.end),
  nav.NavMenu .sp-nav-list .treatment-toggle span:not(.end) {
    font-size: 17px !important;
  }
  nav.NavMenu .sp-nav-list > li:not(.sp-nav-footer):not(.sp-reserve) > a span.end,
  nav.NavMenu .sp-nav-list .treatment-toggle span.end {
    font-size: 11px !important;
  }
  nav.NavMenu .sp-nav-list > li:not(.sp-nav-footer):not(.sp-reserve) > a,
  nav.NavMenu .sp-nav-list .treatment-toggle {
    min-height: 72px;
  }
  /* 治療内容：見出しとして表示し、押しても閉じないようにする */
  nav.NavMenu .sp-nav-list .treatment-toggle {
    pointer-events: none;
    cursor: default;
    min-height: 0;
    padding-bottom: 6px;
  }
  nav.NavMenu .sp-nav-list .treatment-toggle .treatment-arrow {
    display: none !important;
  }
  nav.NavMenu .sp-nav-list .treatment-sub {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;   /* components.css の nav.NavMenu ul { gap: 0 !important } を上書き */
    height: auto !important;
    overflow: visible !important;
    padding: 4px 0 16px !important;
  }
  nav.NavMenu .sp-nav-list .treatment-sub li {
    width: auto !important;
    margin: 0 !important;
  }
  nav.NavMenu .sp-nav-list .treatment-sub li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 52px;
    padding: 8px 6px !important;
    box-sizing: border-box;
    background: #f5f3ef;
    border-radius: 4px;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.45 !important;
    text-align: center;
    text-decoration: none !important;
    color: #3b3b3b;
  }
}

/* ==========================================================
   スマホのヘッダー：ロゴの位置と大きさを、メニューを開いたとき（中央・幅160px）に揃える
   ========================================================== */
@media screen and (max-width: 1199px) {
  header.site-header .header-sp-bar {
    justify-content: center;
  }
  header.site-header .header-sp-bar .logo {
    width: 160px;
    margin: 0 auto;
  }
  header.site-header .header-sp-bar .logo img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* ==========================================================
   スライドの矢印：矢印の記号を白に（テーマ全体の span の文字色が効いていた）
   スマホ：矢印の中心を、真ん中のカードの左右の端に合わせる（カードの外側は左右12%の余白）
   ========================================================== */
.case-slider .case-slider__btn span {
  color: #fff;
}
@media screen and (max-width: 767px) {
  .case-slider .case-slider__nav,
  .column-slider .case-slider__nav,
  .case-top .case-slider .case-slider__nav {
    left: calc(12% - 22px);
    right: calc(12% - 22px);
  }
}

/* ==========================================================
   トップページのメインビジュアル（.fv）の高さを抑える（2026-11-13）
   ・スマホ：縦長画像（774×1370）を縦横比5：7に切り詰める。キャッチコピー（画像の上17%〜74%）は残る
   ・タブレット（768〜1199px）：縦長のスマホ用画像ではなく、横長のPC用画像を使う
   ========================================================== */
@media screen and (max-width: 767px) {
  .fv img.sp_only {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    max-height: calc(100svh - 120px);   /* 大きめのスマホでも画面より高くしない（ヘッダー64px＋余白） */
    object-fit: cover;
    object-position: 50% 45%;
  }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .fv img.pc_only {
    display: block !important;
    width: 100%;
    height: auto;
  }
  .fv img.sp_only {
    display: none !important;
  }
}

/* ==========================================================
   トップページ「当院・院長について」のレイアウト
   ・PC：画像と文章を半分ずつの2列にし、上下中央で揃える（画像が枠の半分に縮み、見出しが2行に折れていた）
   ・タブレット：画像が大きくなりすぎないよう最大560pxで中央に
   ========================================================== */
@media screen and (min-width: 1200px) {
  .about .inner {
    align-items: center;
    gap: 64px !important;
  }
  .about .inner > picture {
    flex: 0 0 calc(50% - 32px);
    width: calc(50% - 32px);
  }
  .about .inner > picture img {
    display: block;
    width: 100% !important;
    height: auto;
  }
  .about .inner > .text {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
  }
  .about .inner > .text .en {
    white-space: nowrap;
  }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .about .inner > picture {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
  .about .inner > picture img {
    display: block;
    width: 100%;
    height: auto;
  }
  .about .inner > .text {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ==========================================================
   トップページ「治療方法」：日本語の治療名を大きく
   治療名は画像に焼き込まれているため、下側に濃い帯を重ねて元の文字を隠し、HTMLの文字を大きく載せる
   （元の文字は画像の下から約4〜10%の位置。帯は下から26%で、下側60%は不透明）
   ========================================================== */
.howto a {
  position: relative;
  overflow: hidden;
}
.howto a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(to bottom, rgba(40, 42, 47, 0) 0%, rgba(40, 42, 47, .85) 35%, rgba(40, 42, 47, 1) 60%);
  pointer-events: none;
}
.howto__label {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6%;
  z-index: 1;
  color: #fff;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  pointer-events: none;
}
@media screen and (max-width: 767px) {
  .howto__label {
    left: 6px;
    right: 6px;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0;
  }
  .howto a::after {
    height: 34%;
  }
}
/* 治療名は意味の切れ目でだけ改行する */
.howto__seg {
  display: inline-block;
  color: inherit;   /* テーマ全体の span の文字色（濃い茶色）を打ち消して白にする */
  font: inherit;    /* 書体・太さも親（.howto__label）に揃える */
  letter-spacing: inherit;
}

/* ==========================================================
   メディア掲載：PC（1024px以上）は4列（2026-11-13）
   ・1行に4枚まで。足りない行は中央寄せにして、左に偏らないようにする（空欄の枠はPCでは使わない）
   ・タブレット・スマホはこれまでどおり2列＋空欄の場所あり
   ========================================================== */
@media screen and (min-width: 1024px) {
  .media-bnr,
  .media-bnr--footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1120px;
  }
  .media-bnr__item,
  .media-bnr--footer .media-bnr__item {
    width: calc((100% - 60px) / 4);
    max-width: none;
  }
  .media-bnr__item.is-empty {
    display: none;
  }
  /* バナーを大きく見せるため、この節だけ本文より少し広く使う */
  .media-area .inner.w1000 {
    max-width: 1160px;
  }
}

/* ==========================================================
   トップページ ファーストビュー：スライドショー＋大見出し（H1）＋バッジ（2026-11-13）
   ========================================================== */
.fv-slider {
  position: relative;
  overflow: hidden;
  height: clamp(520px, 46vw, 680px);
  background: #e9e5df;
  color: #fff;
}
.fv-slider__slides,
.fv-slide,
.fv-slider__overlay {
  position: absolute;
  inset: 0;
}
.fv-slide {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.fv-slide.is-active {
  opacity: 1;
}
.fv-slide__img,
.fv-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.fv-slide__img {
  object-fit: cover;
}
.fv-slide.is-active .fv-slide__img {
  animation: fvZoom 7s ease-out both;
}
@keyframes fvZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.fv-slide--clinic .fv-slide__img { object-position: 50% 55%; }
.fv-slide--station .fv-slide__img { object-position: 50% 40%; }
/* 院長：縦長の写真。PCは右側に置き、左は写真の背景色（青灰色）に合わせる */
.fv-slide--doctor {
  background: linear-gradient(180deg, #cdd8e7 0%, #acbcce 55%, #a3b5c3 100%);
}
.fv-slide--doctor .fv-slide__img {
  object-fit: contain;
  object-position: 100% 100%;
}
.fv-slider__overlay {
  background: linear-gradient(180deg, rgba(40, 36, 32, .35) 0%, rgba(40, 36, 32, .45) 55%, rgba(40, 36, 32, .55) 100%);
  pointer-events: none;
}
.fv-slider__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px 20px 56px;
  box-sizing: border-box;
  text-align: center;
}
.fv-slider__lead {
  margin: 0 0 14px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .2em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.fv-slider__title {
  margin: 0 0 32px;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.fv-slider__title span {
  color: #fff;   /* テーマ全体の span の文字色を打ち消す */
}
.fv-slider__catch {
  display: block;
  font-size: clamp(30px, 4.2vw, 58px);
}
.fv-slider__sep {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.fv-slider__name {
  display: block;
  margin-top: 8px;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: .14em;
}
.fv-slider__badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fv-badge {
  display: flex;
  flex-direction: column;
  width: 150px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  text-align: center;
}
.fv-badge span {
  display: block;
}
.fv-badge__top {
  padding: 6px 4px;
  background: #47413a;
  color: #fff !important;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.fv-badge__main {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 8px 6px;
  color: #47413a !important;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.fv-badge__main b {
  margin: 0 2px;
  font-size: 30px;
  line-height: 1;
}
.fv-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;   /* 棒の当たり判定が 24px になった分、10px 減らして見た目の位置を元に戻す（2026-11-14） */
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.fv-slider__dots button {
  width: 28px;
  height: 4px;
  margin: 0;
  padding: 0 !important;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}
.fv-slider__dots button.is-active {
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .fv-slide { transition: none; }
  .fv-slide.is-active .fv-slide__img { animation: none; }
}
@media screen and (max-width: 767px) {
  .fv-slider {
    height: auto;
    aspect-ratio: 5 / 7;
    max-height: calc(100svh - 64px);
    min-height: 520px;
  }
  .fv-slide--doctor .fv-slide__img {
    object-fit: cover;
    object-position: 50% 0%;   /* 顔を上に寄せ、見出しと重ならないようにする */
  }
  .fv-slider__content {
    justify-content: flex-end;
    padding: 20px 14px 48px;
  }
  .fv-slider__lead {
    font-size: 13px;
    letter-spacing: .12em;
  }
  .fv-slider__title {
    margin-bottom: 20px;
  }
  .fv-slider__catch {
    font-size: clamp(19px, 6.1vw, 25px);   /* 「JR新宿駅東口2分の矯正歯科」を1行に収める */
    letter-spacing: 0;
    white-space: nowrap;
  }
  .fv-slider__name {
    font-size: 18px;
  }
  .fv-slider__badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 340px;
  }
  .fv-badge {
    width: auto;
  }
  .fv-badge__top {
    font-size: 11px;
    padding: 4px;
  }
  .fv-badge__main {
    min-height: 44px;
    font-size: 14px;
    padding: 4px;
  }
  .fv-badge__main b {
    font-size: 22px;
  }
}

/* ==========================================================
   ファーストビューの調整（2026-11-13）
   ・見出しは PC では1行、スマホでは「JR新宿駅東口2分の／矯正歯科」の2行で大きく
   ・バッジ「無料／カウンセリング」の2段表示
   ・スマホのバッジは横4つ並び
   ========================================================== */
.fv-slider__line {
  display: inline;
}
.fv-badge__main {
  flex-wrap: wrap;
  align-content: center;
}
.fv-badge__main small {
  display: block;
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #47413a;
}
@media screen and (max-width: 767px) {
  .fv-slider__content {
    padding: 20px 12px 44px;
  }
  .fv-slider__lead {
    margin-bottom: 10px;
  }
  .fv-slider__catch {
    font-size: min(8.8vw, 36px);
    line-height: 1.3;
    letter-spacing: .02em;
    white-space: normal;
  }
  .fv-slider__line {
    display: block;
  }
  .fv-slider__name {
    margin-top: 10px;
    font-size: min(5.4vw, 22px);
  }
  .fv-slider__title {
    margin-bottom: 18px;
  }
  .fv-slider__badges {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: none;
  }
  .fv-badge__top {
    padding: 4px 2px;
    font-size: 10px;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .fv-badge__main {
    min-height: 50px;
    padding: 4px 2px;
    font-size: 12px;
    line-height: 1.25;
  }
  .fv-badge__main b {
    font-size: 21px;
  }
  .fv-badge__main small {
    font-size: 9.5px;
    letter-spacing: -.02em;
  }
}
/* 見出しの行の区切り（span）に、テーマ全体の span の文字サイズが効かないようにする */
.fv-slider__line {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.fv-slider__title,
.fv-slider__catch,
.fv-slider__line {
  text-align: center;
}
.fv-slider__name,
.fv-slider__lead {
  text-align: center;
}

/* ==========================================================
   ファーストビュー PC の文字組（2026-11-13）：見出しを3行で大きく・行を詰めて、バッジも大きく
   ========================================================== */
@media screen and (min-width: 768px) {
  .fv-slider {
    height: clamp(580px, 50vw, 760px);
  }
  .fv-slider__content {
    padding: 32px 24px 64px;
  }
  .fv-slider__lead {
    margin-bottom: 18px;
    font-size: clamp(16px, 1.45vw, 21px);
    font-weight: 600;
    letter-spacing: .16em;
  }
  .fv-slider__title {
    margin-bottom: 36px;
    line-height: 1.22;
    letter-spacing: .1em;
  }
  .fv-slider__line {
    display: block;
  }
  .fv-slider__catch {
    font-size: clamp(42px, 4.9vw, 70px);
  }
  .fv-slider__name {
    margin-top: 0;
    font-size: clamp(42px, 4.9vw, 70px);
    letter-spacing: .1em;
  }
  .fv-slider__badges {
    gap: 18px;
  }
  .fv-badge {
    width: clamp(132px, 12vw, 170px);
  }
  .fv-badge__top {
    padding: 7px 4px;
    font-size: clamp(13px, 1.15vw, 16px);
  }
  .fv-badge__main {
    min-height: clamp(78px, 7.2vw, 104px);
    font-size: clamp(16px, 1.5vw, 21px);
  }
  .fv-badge__main b {
    font-size: clamp(32px, 3.1vw, 44px);
  }
  .fv-badge__main small {
    font-size: clamp(12px, 1.05vw, 15px);
  }
}

/* ファーストビューのバッジ：ラベルと「カウンセリング」も中央揃え（テーマ全体の span の左揃えを打ち消す） */
.fv-badge,
.fv-badge__top,
.fv-badge__main,
.fv-badge__main small {
  text-align: center !important;
}
.fv-badge__main {
  justify-content: center;
}
.fv-badge__main small {
  width: 100%;
}

/* ==========================================================
   PCのヘッダーを薄く（157px → 104px）（2026-11-13）
   元の指定は Simple Custom CSS and JS「menu改修」（770.css）。メニュー下の空白をなくす
   ========================================================== */
@media screen and (min-width: 1200px) {
  header.site-header { height: 104px !important; }
  body { padding-top: 104px; }
  .header-pc-wrap { height: 104px; }
  .header-top-inner { height: 46px; gap: 16px; }
  .header-pc-logo img { width: 150px; }
  .header-top-tel { font-size: 22px; }
  .header-top-tel img { width: 28px; }
  .header-top-line { padding: 6px 14px; }
  .header-top-ig img { width: 28px; }
  .megamenu { top: 104px; }
}

/* ==========================================================
   ファーストビューを1画面に収める（2026-11-13）
   高さ＝画面の高さ − ヘッダー（PC 104px／タブレット 64px）。文字サイズ・行間も画面の高さに合わせて縮む
   ========================================================== */
.fv-slider {
  padding-top: 0 !important;   /* テーマの .fv の上余白（80px）を打ち消す */
}
@media screen and (min-width: 768px) {
  .fv-slider {
    height: clamp(440px, calc(100svh - 64px), 820px);
  }
  .fv-slider__content {
    padding: 2svh 24px 44px;
  }
  .fv-slider__lead {
    margin-bottom: 1.6svh;
    font-size: clamp(13px, min(1.45vw, 2.6svh), 21px);
  }
  .fv-slider__title {
    margin-bottom: 3svh;
    line-height: 1.16;
  }
  .fv-slider__catch,
  .fv-slider__name {
    font-size: clamp(30px, min(4.9vw, 8.6svh), 70px);
  }
  .fv-badge__top {
    padding: .8svh 4px;
    font-size: clamp(11px, min(1.15vw, 2.3svh), 16px);
  }
  .fv-badge__main {
    min-height: clamp(52px, min(7.2vw, 11svh), 104px);
    font-size: clamp(13px, min(1.5vw, 2.8svh), 21px);
  }
  .fv-badge__main b {
    font-size: clamp(22px, min(3.1vw, 5.6svh), 44px);
  }
  .fv-badge__main small {
    font-size: clamp(10px, min(1.05vw, 2svh), 15px);
  }
  .fv-slider__dots {
    bottom: 4px;   /* 同上（2026-11-14） */
  }
}
@media screen and (min-width: 1200px) {
  .fv-slider {
    height: clamp(440px, calc(100svh - 104px), 820px);
  }
}
/* 上のヘッダーの指定が、後から読み込まれる 770.css に負けないよう強める */
@media screen and (min-width: 1200px) {
  html body header.site-header { height: 104px !important; }
  html body { padding-top: 104px !important; }
  html body header.site-header .header-pc-wrap { height: 104px !important; }
  html body header.site-header .header-top-inner { height: 46px !important; gap: 16px; }
  html body header.site-header .header-pc-logo img { width: 150px; }
  html body header.site-header .header-top-tel { font-size: 22px; }
  html body header.site-header .header-top-tel img { width: 28px; }
  html body header.site-header .header-top-line { padding: 6px 14px; }
  html body header.site-header .header-top-ig img { width: 28px; }
  html body .megamenu { top: 104px !important; }
}

/* ==========================================================
   ファーストビュー PC：少しゆとりを持たせる（文字の上に余白・見出しを少し小さく・行間を広く）（2026-11-13）
   ========================================================== */
@media screen and (min-width: 768px) {
  .fv-slider__content {
    padding-top: clamp(28px, 7svh, 80px);
    padding-bottom: clamp(40px, 6svh, 64px);
  }
  .fv-slider__lead {
    margin-bottom: clamp(12px, 2.6svh, 28px);
  }
  .fv-slider__title {
    margin-bottom: clamp(20px, 4svh, 44px);
    line-height: 1.3;
  }
  .fv-slider__catch,
  .fv-slider__name {
    font-size: clamp(28px, min(4.3vw, 7.2svh), 62px);
  }
  .fv-badge__main {
    min-height: clamp(50px, min(6.6vw, 10svh), 96px);
  }
}

/* ==========================================================
   PCヘッダー：LINE無料相談とWEB予約のボタンを、同じ幅・右端揃えの縦1組にする（2026-11-13）
   Instagram のアイコンは LINE ボタンの左へ移す
   ========================================================== */
@media screen and (min-width: 1200px) {
  html body header.site-header .header-top-ig { order: 3; }
  html body header.site-header .header-top-line {
    order: 4;
    box-sizing: border-box;
    width: 184px;              /* WEB予約ボタンと同じ幅 */
    height: 38px;
    justify-content: center;
    padding: 0 10px;
    font-size: 13px;
  }
  html body header.site-header .header-top-inner { align-items: center; }
  html body header.site-header #manu > li:last-child > a {
    width: 184px;
    box-sizing: border-box;
  }
}

/* ==========================================================
   トップ「当院・院長について」：受付写真に特徴3つを帯で重ねる（2026-11-13）
   ========================================================== */
.about-photo {
  position: relative;
}
.about-photo picture,
.about-photo img {
  display: block;
  width: 100% !important;
  height: auto;
}
.about-bands {
  position: absolute;
  left: -16px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.about-band {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  padding: 12px 44px 12px 20px;
  box-sizing: border-box;
  background: linear-gradient(90deg, rgba(60, 54, 48, .96) 0%, rgba(104, 92, 80, .93) 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.about-band span {
  display: block;
  color: #fff;   /* テーマ全体の span の文字色を打ち消す */
}
.about-band__no {
  font-family: "Shippori Mincho", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #e7d8bf !important;
}
.about-band__text {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.4;
}
@media screen and (min-width: 1200px) {
  .about .inner > .about-photo {
    flex: 0 0 calc(50% - 32px);
    width: calc(50% - 32px);
  }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .about .inner > .about-photo {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}
@media screen and (max-width: 767px) {
  .about-bands {
    left: -8px;
    bottom: 14px;
    gap: 6px;
    width: calc(100% - 8px);
  }
  .about-band {
    gap: 10px;
    padding: 8px 30px 8px 14px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  }
  .about-band__no {
    font-size: 19px;
  }
  .about-band__text {
    font-size: 13px;
    letter-spacing: .02em;
  }
}

/* ==========================================================
   院長のスライド（PC）：写真の左端の境目をなくす（2026-11-13）
   写真を右端に高さいっぱいで置き、左側をグラデーションで透明にして背景になじませる
   ========================================================== */
@media screen and (min-width: 768px) {
  .fv-slide--doctor {
    background: linear-gradient(90deg, #a9b6c4 0%, #b9c5d3 45%, #c3cedb 100%);
  }
  .fv-slide--doctor .fv-slide__img {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    height: 100%;
    max-width: 62%;
    object-fit: cover;
    object-position: 50% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
  }
}

/* 特徴の帯：3本とも一番長い帯の幅に揃え、右端を揃える */
.about-bands {
  display: grid;
  width: fit-content;
  max-width: calc(100% - 8px);
}
.about-band {
  width: auto;
  max-width: none;
}

/* FVのバッジ：大きい数字と「徒歩」「分」などの文字を、底辺（ベースライン）で揃える（2026-11-13） */
.fv-badge__main {
  align-items: baseline !important;
  align-content: center;
}
.fv-badge__main b {
  line-height: 1;
}
/* 「カウンセリング」の2段表示があるバッジ以外は改行しない */
.fv-badge__main:not(:has(small)) {
  flex-wrap: nowrap;
  white-space: nowrap;
  letter-spacing: -.02em;
}

/* ==========================================================
   ロゴの下の一文（トップページではH1）（2026-11-13）
   スマホ：ロゴの下に中央寄せ／PC：ロゴの下に左寄せ
   ========================================================== */
header.site-header {
  position: fixed;
}
.site-h1 {
  position: absolute;
  margin: 0;
  padding: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: #47413a;
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
}
/* スマホ・タブレット（ヘッダー 64px → 86px） */
@media screen and (max-width: 1199px) {
  html body header.site-header { height: 86px !important; }
  html body { padding-top: 86px !important; }
  .site-h1 {
    left: 0;
    right: 0;
    top: 62px;
    font-size: 11px;
    text-align: center;
  }
  .fv-slider {
    max-height: calc(100svh - 86px);
  }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
  .fv-slider {
    height: clamp(440px, calc(100svh - 86px), 820px);
  }
}
/* PC（ヘッダー 104px のまま）：ロゴを少し上げて、その下に置く */
@media screen and (min-width: 1200px) {
  html body header.site-header .header-pc-logo {
    align-items: flex-start;
    padding-top: 16px;
  }
  .site-h1 {
    left: 40px;
    top: 72px;
    font-size: 11px;
  }
}
/* ロゴの下の一文：スマホは1行、PCはロゴの幅に合わせて2行（メニューと重ならないように） */
.site-h1__l {
  display: inline;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
@media screen and (min-width: 1200px) {
  .site-h1 {
    top: 66px;
    width: 160px;
    font-size: 11px;
    line-height: 1.45;
    white-space: normal;
  }
  .site-h1__l {
    display: block;
    white-space: nowrap;
  }
}

/* ==========================================================
   FVのバッジ：中身をバッジの上下左右の中央に（2026-11-13）
   数字と文字は1つのまとまり（.fv-badge__row）にして、その中で底辺（ベースライン）を揃える
   ========================================================== */
.fv-badge__main {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  align-content: center !important;
}
.fv-badge__row {
  display: block !important;
  white-space: nowrap;
  line-height: 1.1;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: center;
}
.fv-badge__row b {
  vertical-align: baseline;
  line-height: 1;
}
.fv-badge__main small {
  flex-basis: auto;
  width: auto;
}

/* ==========================================================
   特徴の帯：3本の斜めの切り口を、1本の斜めの線につなげる（2026-11-13）
   帯の高さを固定し、下の帯ほど「切り口の傾き × (帯の高さ＋すき間)」だけ短くする
   PC：高さ48px・切り口24px・すき間8px → 1段ごとに 24×56/48 = 28px 短く
   スマホ：高さ34px・切り口16px・すき間6px → 1段ごとに 16×40/34 ≒ 19px 短く
   ========================================================== */
.about-band {
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  justify-self: start;
}
.about-bands { gap: 8px; }
.about-band:nth-child(1) { width: 100%; }
.about-band:nth-child(2) { width: calc(100% - 28px); }
.about-band:nth-child(3) { width: calc(100% - 56px); }
@media screen and (max-width: 767px) {
  .about-band { height: 34px; }
  .about-bands { gap: 6px; }
  .about-band:nth-child(2) { width: calc(100% - 19px); }
  .about-band:nth-child(3) { width: calc(100% - 38px); }
}

/* ==========================================================
   スマホ：画面下に固定する追従ボタン（2026-11-13）
   上：受付時間の帯／下：電話をかける・今すぐ無料相談を申し込む
   ========================================================== */
.sp-cta { display: none; }
@media screen and (max-width: 767px) {
  .sp-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000005;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .15);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
  }
  .sp-cta__band {
    margin: 0;
    padding: 6px 8px;
    background: #47413a;
    color: #fff;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    letter-spacing: .02em;
  }
  .sp-cta__btns {
    display: grid;
    grid-template-columns: 40% 60%;
  }
  .sp-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 58px;
    padding: 6px 8px;
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
  }
  .sp-cta__btn span { display: block; }
  .sp-cta__btn--tel {
    background: #fff;
    color: #47413a;
    border-right: 1px solid #e3ddd3;
  }
  .sp-cta__btn--web {
    flex-direction: column;
    gap: 2px;
    background: #efe5d3;
    color: #47413a;
  }
  .sp-cta__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #47413a;
  }
  .sp-cta__label {
    color: #47413a !important;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
  }
  .sp-cta__sub {
    color: #6b5f52 !important;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
  }
  /* 追従ボタンでフッターの最後が隠れないよう、ページの下に余白を足す */
  body { padding-bottom: 92px; }
  /* 右下の丸い「矯正無料相談はこちら」ボタンは、追従ボタンと役割が重なるためスマホでは隠す */
  .fixed { display: none !important; }
}
@media screen and (max-width: 767px) {
  .sp-cta__band { white-space: nowrap; font-size: min(3vw, 11px); letter-spacing: 0; }
  body { padding-bottom: 82px; }
}
/* スマホ：短くした3本目の帯でも1行に収める */
@media screen and (max-width: 767px) {
  .about-band { padding-right: 22px; gap: 8px; }
  .about-band__text { font-size: 12.5px; letter-spacing: 0; white-space: nowrap; }
}
/* 帯の文字は改行しない。1本目の右余白を「短くする分（2段分）」だけ足し、2・3本目も文字が収まる長さにする */
.about-band__text { white-space: nowrap; }
.about-band:nth-child(1) { padding-right: calc(44px + 56px); }
@media screen and (max-width: 767px) {
  .about-band:nth-child(1) { padding-right: calc(22px + 38px); }
}

/* スマホ：ハンバーガーメニューを追従ボタンより上に出す（2026-11-13）
   メニューはヘッダー（重なり順 1000000）の中にあるため、追従ボタンをそれより下にし、メニューを開いている間は隠す */
@media screen and (max-width: 767px) {
  .sp-cta { z-index: 999990; }
  body.menu-open .sp-cta { display: none; }
}

/* ==========================================================
 * お悩み別ボタン（歯並びの絵つき）（2026-11-13）
 * 中身は parts/worries.php。トップページと /treatment で共通。
 * PCは横4つ、スマホは横2つ。カード全体が押せる。
 * ========================================================== */
.worries__group { padding: 32px; }
.worries__title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.worries__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.worries__item { width: calc((100% - 60px) / 4); display: flex; }
.worry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px 14px 16px;
  background: #fff;
  border: 1px solid #d6d5d2;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .12);
  text-align: center;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.worry-card:hover,
.worry-card:focus-visible {
  border-color: #47413a;
  box-shadow: 0 0 0 2px #47413a;
  transform: translateY(-2px);
  opacity: 1;
}
.worry-card__fig {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  margin-bottom: 12px;
}
.worry-card__img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 100%;
}
.worry-card__text,
.worry-card__term,
.worry-card__more { display: block; width: 100%; text-align: center; }
.worry-card__text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}
.worry-card__term {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #6f6860;
}
.worry-card__more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
}
.worry-card__more::after { content: " ›"; }
/* 絵なし（その他のお悩み）：横2つの文字ボタン */
.worries__list--plain .worries__item { width: calc((100% - 20px) / 2); }
.worries__list--plain .worry-card { padding: 18px 14px 14px; }

/* 5つの種類は、PCでは横5つ（1つだけ2段目に落ちないように） */
@media screen and (min-width: 1200px) {
  .worries__list--n5 { gap: 16px; }
  .worries__list--n5 .worries__item { width: calc((100% - 64px) / 5); }
  .worries__list--n5 .worry-card { padding-left: 10px; padding-right: 10px; }
  .worries__list--n5 .worry-card__text { font-size: 14px; }
}
@media screen and (max-width: 1199px) {
  .worries__item { width: calc((100% - 40px) / 3); }
}
@media screen and (max-width: 767px) {
  .worries__group { padding: 20px 12px; }
  .worries__title { margin-bottom: 16px; font-size: 16px; }
  .worries__list { gap: 10px; }
  .worries__item,
  .worries__list--plain .worries__item { width: calc((100% - 10px) / 2); }
  .worry-card { padding: 14px 8px 12px; }
  .worry-card__fig { height: 78px; margin-bottom: 8px; }
  .worry-card__text { font-size: 13px; }
  .worry-card__term { font-size: 11px; }
  .worry-card__more { padding-top: 10px; font-size: 11px; }
}

/* ==========================================================
 * 2026-11-13 追加分（2回目）
 *   1. トップ「当院・院長について」：写真スライド・院長名
 *   2. トップ「料金プラン」：矯正相談の料金
 *   3. メニュー：治療内容の題を押せる・治療名の改行位置
 *   4. 下層の見出し画像：白文字が読めるように暗い膜・スマホの文字サイズ
 *   5. 比較表（.page_table）：PCは見出し行を色分け、スマホは1行を1枚のカードに
 *   6. 治療の流れ：STEP の番号を濃い色の丸に・写真
 *   7. ドクター紹介：院長名
 *   8. 治療メニュー一覧（/menu/）
 *   9. 治療ページの下の「ご予約・相談の流れ・料金・症例」（parts/consult.php）
 * ========================================================== */

/* 日本語の行の終わりに1〜2字だけ残る改行を減らす（対応ブラウザだけ） */
p, h1, h2, h3, li, th, td { text-wrap: pretty; }

/* ---------- 1. 写真スライド・院長名 ---------- */
.about-slides { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.about-slides .about-slide,
.about-slides .about-slide img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important;
  object-fit: cover; object-position: center 20%;
}
.about-slides .about-slide { opacity: 0; transition: opacity 1s ease; }
.about-slides .about-slide.is-active { opacity: 1; }
.about-sign, .doctor-sign {
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  margin: 8px 0 32px; text-align: right;
}
.about-sign__role, .doctor-sign__role { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 13px; letter-spacing: .06em; }
.about-sign__name, .doctor-sign__name { font-family: "Shippori Mincho", serif; font-size: 22px; font-weight: 700; letter-spacing: .16em; }

/* ---------- 2. 料金プラン：矯正相談の料金 ---------- */
.fee-mini { width: 100%; max-width: 480px; margin: 0 0 8px; border-collapse: collapse; background: rgba(255, 255, 255, .94); color: #47413a; }
.fee-mini caption { caption-side: top; padding: 0 0 8px; text-align: left; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.fee-mini th, .fee-mini td { padding: 14px 16px; border: 0; vertical-align: middle; }
.fee-mini th { text-align: left; font-weight: 700; font-size: 15px; }
.fee-mini th small { display: block; font-weight: 400; font-size: 12px; margin-top: 2px; }
.fee-mini td { text-align: right; white-space: nowrap; }
.fee-mini td b { font-family: "Shippori Mincho", serif; font-size: 26px; letter-spacing: .08em; }
.fee-mini__note { font-size: 12px; opacity: .9; }
@media screen and (max-width: 767px) {
  .fee-lead br { display: none; }   /* スマホは文の途中で切らず、画面の幅で折り返す */
  .fee-mini td b { font-size: 22px; }
}

/* ---------- 3. メニュー ---------- */
.megamenu-title-link { display: block; color: inherit; text-decoration: none; }
.megamenu-title-link:hover .megamenu-title-ja { text-decoration: underline; }
.megamenu-title-more { display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: .06em; border-bottom: 1px solid currentColor; }
.megamenu-list li a,
nav.NavMenu .sp-nav-list .treatment-sub li a { word-break: keep-all; overflow-wrap: anywhere; }
.treatment-more { display: none; font-style: normal; }
@media screen and (max-width: 1199px) {
  nav.NavMenu .sp-nav-list .treatment-toggle .treatment-more { display: inline; margin-left: 8px; font-size: 12px; font-weight: 400; }
}

/* ---------- 4. 下層の見出し画像 ---------- */
.page_mv { position: relative; overflow: hidden; background: #47413a; }
.page_mv > img { display: block; width: 100%; height: clamp(150px, 26vw, 360px); object-fit: cover; }
.page_mv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(40, 34, 28, .25) 0%, rgba(40, 34, 28, .55) 100%);
}
.page_mv h1 {
  z-index: 1; width: calc(100% - 32px); margin: 0; text-align: center;
  font-size: clamp(22px, 3.2vw, 40px); line-height: 1.45; letter-spacing: .1em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .45), 0 0 18px rgba(0, 0, 0, .55);
  word-break: keep-all; overflow-wrap: anywhere;
}
@media screen and (max-width: 767px) {
  .page_mv h1 { font-size: clamp(19px, 5.4vw, 24px); letter-spacing: .06em; }
}

/* ---------- 5. 比較表 ---------- */
html body .page_table table.is-compare { border-collapse: separate; border-spacing: 0; background: #fff; }
html body .page_table table.is-compare td { height: auto; padding: 16px 14px; border: 0; border-bottom: 1px solid #e4e1db; line-height: 1.7; vertical-align: middle; }
html body .page_table table.is-compare tr:first-child td { background: #47413a; color: #fff; font-weight: 700; letter-spacing: .06em; }
html body .page_table table.is-compare tr:first-child td:first-child { background: transparent; }
html body .page_table table.is-compare tr:not(:first-child) td:first-child { background: #f3f1ed; color: #47413a; font-weight: 700; }
html body .page_table table.is-compare tr:not(:first-child) td:last-child { background: #faf9f6; }
@media screen and (max-width: 767px) {
  html body .page_table table.is-compare,
  html body .page_table table.is-compare tbody { display: block; }
  html body .page_table table.is-compare tr:first-child { display: none; }
  html body .page_table table.is-compare tr { display: block; margin-bottom: 14px; border: 1px solid #d6d5d2; box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
  html body .page_table table.is-compare td { display: block; width: auto !important; text-align: left; border-bottom: 1px solid #ece9e3; }
  html body .page_table table.is-compare tr:not(:first-child) td:first-child { background: #47413a; color: #fff; text-align: center; font-size: 16px; }
  html body .page_table table.is-compare td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #8a8178;
  }
}

/* ---------- 6. 治療の流れ：STEP ---------- */
html body p.step {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 92px; height: 92px; margin: 0; border-radius: 50%;
  background: #47413a; color: #fff !important; font-size: 13px; letter-spacing: .14em; line-height: 1;
}
html body p.step span { color: #fff !important; font-size: 38px; line-height: 1.05; margin-top: 4px; font-family: "Shippori Mincho", serif; }
html body p.step br { display: none; }
.flow-photo { margin: 56px 0 24px; }
.flow-photo:first-of-type { margin-top: 8px; }
.flow-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 4px; }
@media screen and (max-width: 767px) {
  html body p.step { width: 68px; height: 68px; font-size: 10px; }
  html body p.step span { font-size: 28px; }
  .flow-photo { margin-top: 40px; }
  .flow-photo img { max-height: 200px; }
}

/* ---------- 7. ドクター紹介：院長名 ---------- */
.doctor-name { margin: 8px 0 20px; padding: 18px 0 14px; border-top: 1px solid #cdc9c1; border-bottom: 1px solid #cdc9c1; }
.doctor-name__role { margin: 0 0 4px; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 13px; letter-spacing: .06em; }
.doctor-name__name { margin: 0; font-family: "Shippori Mincho", serif; font-size: 30px; font-weight: 700; letter-spacing: .16em; line-height: 1.3; }
.doctor-name__en { display: inline-block; margin-left: 14px; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: #8a8178; }
.doctor-sign { margin-top: -8px; }

/* ---------- 8. 治療メニュー一覧 ---------- */
.menu-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.menu-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #d6d5d2; color: #47413a; text-decoration: none; box-shadow: 0 4px 10px rgba(0, 0, 0, .06); transition: transform .2s, box-shadow .2s; }
.menu-card__link:hover, .menu-card__link:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 2px #47413a; opacity: 1; }
.menu-card__fig, .menu-card__fig img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.menu-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 18px 16px; }
.menu-card__ttl { font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 18px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.menu-card__txt { font-size: 14px; line-height: 1.7; }
.menu-card__more { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-align: right; }
.menu-card__more::after { content: " ›"; }
@media screen and (max-width: 1199px) { .menu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 767px) {
  /* 写真の下に治療名の文字が入っているので、切らずに正方形のまま横2つに並べる */
  .menu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .menu-card__body { padding: 10px 10px 10px; gap: 4px; }
  .menu-card__ttl { font-size: 14.5px; }
  .menu-card__txt { font-size: 12px; line-height: 1.6; }
  .menu-card__more { font-size: 12px; }
}

/* ---------- 9. 治療ページの下の「ご予約・相談の流れ・料金・症例」 ---------- */
.consult-block { padding-top: 64px; padding-bottom: 64px; }
.consult-cta { padding: 48px 16px; background: #47413a; color: #fff; text-align: center; }
.consult-cta__lead { margin: 0 0 8px; font-family: "Shippori Mincho", serif; font-size: 26px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.consult-cta__badge { display: inline-block; margin-right: 10px; padding: 2px 12px; border-radius: 999px; background: #fff; color: #47413a; font-size: 16px; vertical-align: 4px; }
.consult-cta__text { margin: 0 0 24px; color: #fff; }
.consult-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.consult-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 260px; min-height: 64px; padding: 10px 20px; border-radius: 4px;
  font-weight: 700; font-size: 16px; letter-spacing: .04em; text-decoration: none; line-height: 1.3;
  transition: transform .2s, opacity .2s;
}
.consult-btn small { font-size: 11px; font-weight: 400; opacity: .85; }
.consult-btn:hover { transform: translateY(-2px); opacity: .92; }
.consult-btn--web { background: #f4eadb; color: #47413a; }
.consult-btn--tel { background: #fff; color: #47413a; }
.consult-btn--line { background: #06c755; color: #fff; }
.consult-cta__hours { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .85); }
/* 予約の枠（トップと同じ見た目） */
.apotab { max-width: 820px; margin: 0 auto; }
.apotab-list { display: flex; gap: 2px; }
.apotab-list label { flex: 0 0 auto; padding: 8px 10px; font-size: 14px; line-height: 1.3; color: #2b2f4a; background: #dcdde4; border: 1px solid #2b2f4a; border-bottom: 0; white-space: nowrap; cursor: pointer; }
.apotab-list label:has(:checked) { background: #fff; font-weight: 700; position: relative; margin-bottom: -1px; padding-bottom: 9px; }
.apotab-list label:has(:focus-visible) { outline: 2px solid #1f6b45; outline-offset: -2px; }
.apotab-list input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.apotab-panel { border: 1px solid #2b2f4a; background: #fff; padding: 12px 8px 4px; }
.apotab-panel iframe { display: none; width: 100%; height: 240px; border: 0; }
.apotab:has(label:nth-child(1) :checked) iframe:nth-child(1),
.apotab:has(label:nth-child(2) :checked) iframe:nth-child(2),
.apotab:has(label:nth-child(3) :checked) iframe:nth-child(3),
.apotab:has(label:nth-child(4) :checked) iframe:nth-child(4) { display: block; }
/* 相談の流れ */
.consult-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.consult-step { display: flex; gap: 14px; align-items: flex-start; padding: 18px 16px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.consult-step__no {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin: 0; border-radius: 50%; background: #47413a; color: #fff;
  font-family: "Shippori Mincho", serif; font-size: 24px; line-height: 1;
}
.consult-step__no span { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 9px; letter-spacing: .14em; margin-bottom: 2px; }
.consult-step__ttl { margin: 2px 0 6px; font-weight: 700; font-size: 17px; color: #47413a; }
.consult-step__txt { margin: 0; font-size: 14px; line-height: 1.7; }
/* 料金 */
.consult-price { width: 100%; border-collapse: collapse; background: #fff; }
.consult-price th, .consult-price td { padding: 16px 18px; border: 0; border-bottom: 1px solid #e4e1db; vertical-align: middle; }
.consult-price tr:first-child th, .consult-price tr:first-child td { border-top: 2px solid #47413a; }
.consult-price th { width: 62%; text-align: left; font-weight: 700; color: #47413a; background: transparent; }
.consult-price th small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: #8a8178; }
.consult-price td { text-align: right; white-space: nowrap; font-family: "Shippori Mincho", serif; font-size: 18px; font-weight: 700; color: #47413a; }
.consult-note { margin-top: 16px; font-size: 12.5px; line-height: 1.8; color: #6f6860; }
.consult-note p { margin: 0 0 4px; }
@media screen and (max-width: 1199px) { .consult-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 767px) {
  .consult-block { padding: 44px 16px; }
  .consult-cta { padding: 36px 16px; }
  .consult-cta__lead { font-size: 20px; }
  .consult-cta__badge { font-size: 13px; }
  .consult-btn { width: 100%; min-width: 0; }
  .consult-steps { grid-template-columns: 1fr; gap: 10px; }
  .consult-step { padding: 14px 12px; }
  .consult-step__no { width: 52px; height: 52px; font-size: 20px; }
  .consult-price th, .consult-price td { padding: 12px 10px; }
  .consult-price th { width: auto; font-size: 14px; }
  .consult-price td { font-size: 15px; white-space: normal; }
  .apotab-list { overflow-x: auto; scrollbar-width: none; }
  .apotab-list label { padding: 8px; font-size: 13px; }
  .apotab-panel iframe { height: 260px; }
}

/* 治療ページの部品：言葉の途中で折り返さない・料金表はスマホでも2列のまま（共通の表の CSS が td を縦に並べるのを打ち消す） */
.u-nowrap { display: inline-block; color: inherit; }
html body table.consult-price, html body table.consult-price tbody { display: table; width: 100%; }
html body table.consult-price tbody { display: table-row-group; }
html body table.consult-price tr { display: table-row; }
html body table.consult-price th, html body table.consult-price td { display: table-cell; height: auto; }
html body .consult-cta__lead, html body .consult-cta__lead .u-nowrap { font-size: 26px; }
@media screen and (max-width: 767px) { html body .consult-cta__lead, html body .consult-cta__lead .u-nowrap { font-size: 19px; } }

/* 写真スライド：中の写真が重ねて置かれるので、枠の幅を決めておく（スマホで幅0になっていた） */
.about-photo, .about-slides { width: 100%; }
html body table.fee-mini, html body table.fee-mini tbody { display: table; width: 100%; }
html body table.fee-mini tbody { display: table-row-group; }
html body table.fee-mini tr { display: table-row; }
html body table.fee-mini th, html body table.fee-mini td { display: table-cell; height: auto; }
html body table.fee-mini caption { display: table-caption; }

/* スマホメニューの「治療内容」は治療メニュー一覧へのリンクにした（2026-11-13）。以前の「押せない見出し」の指定を打ち消す */
@media screen and (max-width: 1199px) {
  html body nav.NavMenu .sp-nav-list .treatment-toggle { pointer-events: auto; cursor: pointer; display: flex; width: 100%; min-height: 56px; }
}

/* ==========================================================
 * 2026-11-13 追加分（3回目）
 *   1. 下層の見出し画像：題が長くても画像からはみ出さない（画像と題を同じ枠に重ね、高さは題に合わせて伸びる）
 *   2. PC：ロゴの下の一文（h1）を細く小さく
 *   3. トップ：院長名の下の余白・治療内容の小見出し
 *   4. ドクター紹介：名前（ふりがな）・見出し帯（経歴・所属学会・受賞歴・研究実績）
 *   5. 無料相談のボタン：アイコンつき・明るい背景で見やすく
 *   6. 無料相談の流れ：番号の丸と文の並び
 *   7. 初診の方へ：写真に重ねた丸い札
 *   8. 症例集のタグ：医院の色に
 * ========================================================== */

/* ---------- 1. 下層の見出し画像 ---------- */
html body .page_mv { display: grid; }
html body .page_mv > img,
html body .page_mv > h1 { grid-area: 1 / 1; }
html body .page_mv > img { height: 100%; min-height: clamp(150px, 26vw, 360px); max-height: none; }
html body .page_mv > h1 {
  position: relative; top: auto; left: auto; transform: none;
  align-self: center; justify-self: center;
  width: auto; max-width: min(92%, 960px); padding: 28px 0;
}
@media screen and (max-width: 767px) {
  html body .page_mv > h1 { font-size: clamp(18px, 5vw, 22px); padding: 24px 0; }
}

/* ---------- 2. PC：ロゴの下の一文 ---------- */
@media screen and (min-width: 1200px) {
  html body .site-h1 { font-weight: 400; font-size: 11px; letter-spacing: .08em; opacity: .8; }
  html body .site-h1 .site-h1__l { font-weight: 400; }
}

/* ---------- 3. トップ ---------- */
.about-sign { margin: 4px 0 48px; }
@media screen and (max-width: 767px) { .about-sign { margin-bottom: 36px; } }
/* 治療内容の小見出し（歯のアイコン＋白文字の重なりをやめ、細い線の間に英字と日本語） */
.sec-sub { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 56px 0 28px; color: #47413a; text-align: center; }
.sec-sub::after { content: ""; width: 40px; height: 1px; margin-top: 8px; background: #47413a; opacity: .5; }
.sec-sub__en { font-family: "Shippori Mincho", serif; font-size: 13px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; opacity: .65; }
.sec-sub__ja { font-family: "Shippori Mincho", serif; font-size: 24px; font-weight: 700; letter-spacing: .12em; }
.detail .title + .sec-sub { margin-top: 16px; }
.sec-sub--method { margin-top: 72px; }
@media screen and (max-width: 767px) {
  .sec-sub { margin: 40px 0 20px; }
  .sec-sub__ja { font-size: 19px; }
  .sec-sub--method { margin-top: 52px; }
}

/* ---------- 4. ドクター紹介 ---------- */
html body .doctor-name { margin: 0 0 32px; padding: 0 0 20px; border-top: 0; border-bottom: 1px solid #cdc9c1; }
html body .doctor-name__role { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; letter-spacing: .08em; }
html body .doctor-name__role span { padding: 2px 10px; border: 1px solid #47413a; font-size: 12px; letter-spacing: .1em; }
html body .doctor-name__name { margin: 0; font-size: 38px; letter-spacing: .2em; line-height: 1.2; }
.doctor-name__name ruby { ruby-position: over; }
.doctor-name__name ruby + ruby { margin-left: .45em; }
.doctor-name__name rt { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 12px; font-weight: 400; letter-spacing: .2em; color: #8a8178; }
.doctor-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 40px; }
.doctor-profile__sec--wide { grid-column: 1 / -1; }
html body .doctor-profile__band {
  margin: 0 0 12px; padding: 9px 14px; background: #47413a; color: #fff;
  font-family: "Shippori Mincho", serif; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-align: center;
}
.doctor-profile__list { margin: 0; padding: 0; list-style: none; }
.doctor-profile__list li { position: relative; padding: 6px 0 6px 16px; font-size: 14px; line-height: 1.7; border-bottom: 1px dotted #d8d3ca; }
.doctor-profile__list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: #a39a8f; }
.doctor-profile__more { cursor: pointer; padding: 10px 0; font-size: 14px; font-weight: 700; color: #47413a; list-style: none; }
.doctor-profile__more::-webkit-details-marker { display: none; }
.doctor-profile__more::before { content: "＋"; display: inline-block; width: 1.4em; }
details[open] > .doctor-profile__more::before { content: "－"; }
.doctor-profile__papers { padding-top: 8px; font-size: 13px; line-height: 1.8; color: #5c554d; }
@media screen and (max-width: 767px) {
  html body .doctor-name__name { font-size: 30px; letter-spacing: .14em; }
  .doctor-profile { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 5. 無料相談のボタン ---------- */
html body .consult-cta { background: #f4efe7; color: #47413a; border-top: 1px solid #e3dccf; border-bottom: 1px solid #e3dccf; }
html body .consult-cta__lead, html body .consult-cta__lead .u-nowrap, html body .consult-cta__text { color: #47413a; }
html body .consult-cta__badge { background: #47413a; color: #fff; }
html body .consult-cta__hours { color: #6f6860; }
.consult-cta__btns { gap: 14px; }
html body .consult-btn {
  flex-direction: row; justify-content: flex-start; gap: 14px; min-width: 300px; min-height: 76px; padding: 12px 22px;
  border: 2px solid #47413a; border-radius: 6px; text-align: left; box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}
.consult-btn__icon { flex: 0 0 auto; width: 30px; height: 30px; }
.consult-btn__body { display: flex; flex-direction: column; gap: 2px; }
html body .consult-btn small { font-size: 12px; font-weight: 700; opacity: 1; letter-spacing: .04em; }
.consult-btn__main { font-size: 19px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; }
.consult-btn__num { font-family: "Shippori Mincho", serif; font-size: 26px; letter-spacing: .04em; }
html body .consult-btn--tel { background: #fff; color: #47413a; }
html body .consult-btn--web { background: #47413a; color: #fff; }
html body .consult-btn--line { background: #06c755; color: #fff; border-color: #06c755; }
html body .consult-btn:hover { transform: translateY(-2px); opacity: 1; box-shadow: 0 5px 0 rgba(0, 0, 0, .12); }
@media screen and (max-width: 767px) {
  html body .consult-btn { width: 100%; min-width: 0; min-height: 70px; padding: 10px 16px; }
  .consult-btn__icon { width: 26px; height: 26px; }
  .consult-btn__main { font-size: 17px; }
  .consult-btn__num { font-size: 24px; }
}

/* ---------- 6. 無料相談の流れ ---------- */
html body .consult-step { align-items: center; gap: 16px; padding: 18px 18px; }
html body .consult-step__no {
  width: 64px; height: 64px; gap: 1px; color: #fff;
  font-size: 22px; line-height: 1; letter-spacing: .02em;
}
html body .consult-step__no span { color: rgba(255, 255, 255, .8); font-size: 9px; margin: 0; letter-spacing: .16em; }
html body .consult-step__body { flex: 1; min-width: 0; }
html body .consult-step__ttl { margin: 0 0 4px; }
@media screen and (max-width: 767px) {
  html body .consult-step__no { width: 56px; height: 56px; font-size: 20px; }
}

/* ---------- 7. 初診の方へ：写真の札 ---------- */
.photo-badge { position: relative; }
.photo-badge__txt {
  position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 128px; height: 128px; border-radius: 50%; background: rgba(71, 65, 58, .92); color: #fff; text-align: center;
  font-family: "Shippori Mincho", serif; font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.photo-badge__txt small { margin-bottom: 4px; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .1em; opacity: .9; }
@media screen and (max-width: 767px) {
  .photo-badge__txt { top: 10px; right: 10px; width: 104px; height: 104px; font-size: 14px; }
}

/* ---------- 8. 症例集のタグ ---------- */
html body .gcf-case-tags a { background: #f4efe7; color: #47413a; border: 1px solid #e3dccf; }
html body .gcf-case-tags a:hover,
html body .gcf-case-tags a[aria-current],
html body .gcf-case-tags .is-current a,
html body .gcf-case-tags a.is-current { background: #47413a; color: #fff; border-color: #47413a; }
/* 経歴などの節は section で書いたので、テーマ共通の section の余白を打ち消す */
html body section.doctor-profile__sec { padding: 0; margin: 0; background: none; min-height: 0; }
/* 名前のふりがな：共通の CSS が ruby の文字を 16px にしていたので、名前の大きさを引き継ぐ */
html body .doctor-name__name ruby { font-size: inherit; font-weight: inherit; }
html body .doctor-name__name rt { font-size: 12px; }
/* 予約ボタン・LINE ボタンの中の文字：下層ページ共通の CSS が span の色を濃い茶にしていて、濃い背景で見えなくなっていた */
html body .consult-btn--web, html body .consult-btn--web span, html body .consult-btn--web small,
html body .consult-btn--line, html body .consult-btn--line span, html body .consult-btn--line small { color: #fff; }
html body .consult-btn--tel span, html body .consult-btn--tel small { color: #47413a; }
html body .consult-step__no, html body .consult-step__no span { color: #fff; }
html body .photo-badge__txt, html body .photo-badge__txt small { color: #fff; }
/* ドクター紹介の挨拶文：スマホでは1文ごとの改行をやめ、画面の幅で折り返す（1〜2字だけ次の行に残るのを防ぐ） */
@media screen and (max-width: 767px) { html body .career > p br { display: none; } html body .career > p { line-height: 1.95; } }
html body .consult-btn--web .consult-btn__icon, html body .consult-btn--line .consult-btn__icon { color: #fff; }
html body .consult-btn--tel .consult-btn__icon { color: #47413a; }

/* ==========================================================
 * 2026-11-13 追加分（4回目）
 *   1. 下層の見出し画像：参考サイト（神戸三宮）と同じ、細かいドット模様の膜＋少し暗くする膜
 *   2. トップの料金表：右端を下のボタンの右端にそろえる
 *   3. 治療の流れ：PC は写真を STEP の見出しの左に並べ、余白を詰める
 *   4. 治療ページの「まずは無料相談を申し込む」ボタンを目立たせる
 *   5. スマホ：料金プランの「ステップごとの料金」の表を横に動かさず、縦に並べる
 * ========================================================== */

/* ---------- 1. 見出し画像のドット ---------- */
html body .page_mv::after {
  background-color: rgba(0, 0, 0, .1);
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFAQMAAAC3obSmAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURUdwTAAAAJ8qhFEAAAABdFJOUwBA5thmAAAAEklEQVQI12MwYDBgYGBoYGAAAASKAOH8MS30AAAAAElFTkSuQmCC);
  background-size: 2px;
  opacity: .55;
}
html body .page_mv::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-color: rgba(0, 0, 0, .2); mix-blend-mode: multiply;
}
html body .page_mv > h1 { z-index: 2; }

/* ---------- 2. トップの料金表 ---------- */
html body .fee .fee-mini { max-width: none; width: 100%; }

/* ---------- 3. 治療の流れ ---------- */
@media screen and (min-width: 768px) {
  html body .flow-photo {
    float: left; width: 300px; margin: 0 32px 24px 0 !important;
  }
  html body .flow-photo img { height: 190px; max-height: none; object-fit: cover; border-radius: 6px; }
  html body .flow-photo + .flexboxsp { min-height: 190px; margin-bottom: 24px; }
  html body .flow-photo + .flexboxsp + figure { clear: both; }
}
@media screen and (max-width: 767px) {
  html body .flow-photo { margin: 32px 0 16px !important; }
  html body .flow-photo img { height: 180px; max-height: none; object-fit: cover; border-radius: 6px; }
}

/* ---------- 4. 治療ページのボタン ---------- */
html body a.btn-consult { background: #47413a; color: #fff; border-color: #47413a; font-weight: 700; }
html body a.btn-consult::after, html body a.btn-consult::before { border-color: #fff; color: #fff; }

/* ---------- 5. スマホ：ステップごとの料金 ---------- */
@media screen and (max-width: 767px) {
  html body .scroll-wrapper { overflow-x: visible; }
  html body .treatment-table,
  html body .treatment-table tbody,
  html body .treatment-table tr,
  html body .treatment-table th,
  html body .treatment-table td { display: block; width: auto !important; min-width: 0 !important; white-space: normal !important; }
  html body .treatment-table tr { padding: 14px 0; border-bottom: 1px solid #e4e1db; }
  html body .treatment-table th { padding: 0 !important; border: 0 !important; text-align: left; }
  html body .treatment-table th .f40 { font-size: 26px !important; margin-right: 10px; }
  html body .treatment-table th .f24 { font-size: 18px !important; }
  html body .treatment-table td { padding: 6px 0 0 46px !important; border: 0 !important; font-size: 15px !important; line-height: 1.7; text-align: left; }
}
@media screen and (max-width: 767px) {
  /* ページ内の CSS が th・td を display: table-cell !important にしているので、同じく !important で縦並びに */
  html body .treatment-table th, html body .treatment-table td { display: block !important; }
  html body .treatment-table th .f40, html body .treatment-table th .f24 { vertical-align: baseline; }
}

/* ==========================================================
 * 2026-11-13 追加分（5回目）
 * ========================================================== */
/* トップの治療法カード：言葉の途中で折り返さない（「（インビザライ／ン）」のような文字落ちを防ぐ） */
.howto__seg { white-space: nowrap; }
/* 無料相談のボタン：中身を中央に */
html body .consult-btn { justify-content: center; text-align: left; }
/* 治療ページの「まずは無料相談を申し込む」：スマホは横幅いっぱい */
@media screen and (max-width: 767px) {
  html body a.btn-consult { display: flex !important; width: 100% !important; max-width: none !important; box-sizing: border-box; }
}
/* 症例集のタグ（2026-11-13 改）：スマホは1行の横スクロール。右端を薄くして「続きがある」と分かるように。「一覧で見る」で折り返し表示 */
.gcf-tagnav__more { display: none; }
/* PC・タブレットは指で触らないので、タグを一回り小さくして一覧を見やすくする（2026-11-13） */
@media screen and (min-width: 768px) {
  html body .gcf-case-tags { gap: 5px !important; }
  html body .gcf-case-tags a {
    min-height: 0 !important;
    padding: 3px 10px !important;
    font-size: 12px !important;
    line-height: 1.6;
    border-radius: 13px;
  }
}
@media screen and (max-width: 767px) {
  .gcf-tagnav__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
  .gcf-tagnav__head .gcf-tagnav-label { margin: 0 !important; }
  html body .gcf-case-tags { gap: 6px !important; }
  html body .gcf-case-tags a { min-height: 44px; padding: 0 14px !important; display: inline-flex; align-items: center; font-size: 13px !important; white-space: nowrap; box-sizing: border-box; }
  html body .gcf-tagnav:not(.is-open) .gcf-case-tags {
    flex-wrap: nowrap !important; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-right: -16px; padding-right: 32px;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent);
  }
  html body .gcf-tagnav:not(.is-open) .gcf-case-tags::-webkit-scrollbar { display: none; }
  html body .gcf-tagnav:not(.is-open) .gcf-case-tags li { flex: 0 0 auto; }
  .gcf-tagnav__more {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border: 0; background: none;
    color: #47413a; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  }
}

/* 共通の CSS（common.css の * { color: #47413a }）がアイコンの中の線まで濃い茶にしていたので、ボタンの色を引き継がせる */
html body .consult-btn__icon * { color: inherit; }
/* 小見出しごとの箱（functions.php の amilia_feature_boxes） */
.feature-box { margin: 0 0 20px; background: #fff; border: 1px solid #47413a; }
html body .feature-box__ttl {
  margin: 0 !important; padding: 12px 18px; background: #47413a; color: #fff;
  font-family: "Shippori Mincho", serif; font-size: 17px; font-weight: 700; line-height: 1.55; letter-spacing: .04em;
}
.feature-box__body { padding: 18px 20px 6px; }
.feature-box__body > :last-child { margin-bottom: 12px; }
.feature-box__body > .wp-block-spacer { height: 8px !important; }
@media screen and (max-width: 767px) {
  html body .feature-box__ttl { padding: 10px 14px; font-size: 15.5px; }
  .feature-box__body { padding: 14px 14px 4px; }
}
@media screen and (max-width: 767px) {
  html body .gcf-tagnav__head .gcf-tagnav-label { flex: 0 0 auto; display: block; width: auto !important; white-space: nowrap; text-align: left; font-size: 14px; }
}
@media screen and (max-width: 767px) {
  /* 症例集の「タグから探す」：外側の nav が横並び（右寄せ）なので、縦に積み直す */
  html body .gcf-tagnav { flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; }
  html body .gcf-tagnav__head { width: 100%; }
}
@media screen and (max-width: 767px) {
  /* 横スクロールの列が親を押し広げてページごと横に動いていたので、幅を親に収める */
  html body .gcf-tagnav .gcf-case-tags { width: 100%; min-width: 0; max-width: 100%; margin-right: 0 !important; padding-right: 24px; box-sizing: border-box; }
}
/* 見出しの番号（F案：帯から下にはみ出す丸。functions.php の amilia_feature_boxes が「①」「1.」から作る）（2026-11-13） */
html body .feature-box__ttl.has-no { position: relative; padding-left: 76px; padding-top: 10px; padding-bottom: 10px; }
.feature-box__no {
  position: absolute; left: 14px; top: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid #47413a;
  font-family: "Shippori Mincho", serif; font-size: 20px; font-weight: 700; line-height: 1;
}
html body .feature-box__no { color: #47413a !important; }
html body .feature-box__no-label { color: #8a8178 !important; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .12em; margin-bottom: 1px; }
html body .feature-box__txt { color: #fff !important; display: block; }
/* 丸が本文に重なる分、箱の中の上の余白を広げる */
html body .feature-box:has(.has-no) .feature-box__body { padding-top: 26px; }
@media screen and (max-width: 767px) {
  html body .feature-box__ttl.has-no { padding-left: 62px; }
  .feature-box__no { left: 10px; width: 42px; height: 42px; font-size: 17px; }
  html body .feature-box:has(.has-no) .feature-box__body { padding-top: 22px; }
}

/* ==========================================================
 * お支払い方法（parts/payment.php）（2026-11-13）
 * 白い箱に3つ（現金・クレジットカード・デンタルローン）を縦線で区切って並べ、下に無金利の院内分割
 * ========================================================== */
.payment { margin: 0 0 24px; padding: 20px 20px 16px; background: #fff; border: 1px solid #e3dccf; box-shadow: inset 0 0 0 5px #f4efe7; }
html body .payment__ttl { margin: 0 0 12px; font-family: "Shippori Mincho", serif; font-size: 16px; font-weight: 700; letter-spacing: .12em; text-align: center; color: #47413a; }
.payment__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.payment__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 8px; text-align: center; }
.payment__item + .payment__item { border-left: 1px solid #e3dccf; }
html body .payment__icon { width: 40px; height: 40px; color: #47413a; }
html body .payment__icon * { color: inherit; }
html body .payment__name { font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; color: #47413a; }
html body .payment__note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding-top: 12px; border-top: 1px dotted #cdc9c1; font-size: 14px; line-height: 1.6; text-align: center; color: #47413a; }
html body .payment__badge { padding: 2px 10px; border-radius: 999px; background: #47413a; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
html body .fee .payment { margin-top: 8px; }
.fee-payment { padding-top: 0; }
@media screen and (max-width: 767px) {
  .payment { padding: 16px 10px 12px; }
  html body .payment__icon { width: 34px; height: 34px; }
  html body .payment__name { font-size: 13px; }
  html body .payment__note { font-size: 13px; }
}
/* 料金プランのページは節の見出しが「お支払い方法」なので、箱の中の同じ見出しは出さない */
html body .fee-payment .payment__ttl { display: none; }

/* ==========================================================
 * メニューの治療内容：丸い小窓（トップの「治療法から探す」の写真。assets/img/menu/）（2026-11-13）
 * ========================================================== */
.menu-thumb { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid #e3dccf; object-fit: contain; }
.menu-label { min-width: 0; }
html body .megamenu-list li a,
html body nav.NavMenu .sp-nav-list .treatment-sub li a { display: flex !important; align-items: center; gap: 10px; text-align: left !important; justify-content: flex-start !important; }
@media screen and (min-width: 1200px) {
  .menu-thumb { width: 40px; height: 40px; }
  html body .megamenu-list li a { padding: 6px 0; }
}
@media screen and (max-width: 1199px) {
  /* 2列の枠が狭いので、小窓を小さめにして文字の幅を確保する */
  html body nav.NavMenu .sp-nav-list .treatment-sub li a { padding: 8px 10px 8px 8px !important; gap: 8px; min-height: 56px; }
  .menu-thumb { width: 30px; height: 30px; }
  html body .menu-label { font-size: 12.5px !important; line-height: 1.45 !important; letter-spacing: 0 !important; }
}
@media screen and (max-width: 374px) {
  .menu-thumb { width: 26px; height: 26px; }
  html body .menu-label { font-size: 11.5px !important; }
}
/* メニューの治療名：括弧の補足は小さく、かならず行を分ける（狭い枠での文字落ちを防ぐ） */
html body .menu-sub { display: block; font-size: .88em; line-height: 1.35; letter-spacing: 0; }
@media screen and (max-width: 1199px) {
  html body .menu-label { font-size: 12px !important; }
  .menu-thumb { width: 28px; height: 28px; }
}
/* メニューの治療名：ゴシックで読みやすく。アイコンと文字のかたまりは枠の中央に（2026-11-13） */
html body .megamenu-list li a,
html body nav.NavMenu .sp-nav-list .treatment-sub li a { justify-content: center !important; }
html body .menu-label,
html body .menu-sub { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
html body .menu-sub { white-space: nowrap; font-weight: 500; }

/* スマホメニューの下の3点セット（parts/cta-buttons.php。治療ページの下と同じボタン）（2026-11-13） */
html body nav.NavMenu .sp-nav-list > li.sp-nav-footer { display: block !important; width: 100% !important; grid-column: 1 / -1; padding: 8px 16px 0 !important; border: 0 !important; }
.sp-nav-cta { display: flex; flex-direction: column; gap: 10px; }
html body .sp-nav-cta .consult-btn { width: 100%; min-width: 0; min-height: 64px; padding: 8px 14px; }
html body .sp-nav-cta .consult-btn__icon { width: 24px; height: 24px; }
html body .sp-nav-cta .consult-btn__main { font-size: 16px; }
html body .sp-nav-cta .consult-btn__num { font-size: 22px; }
html body .sp-nav-cta .consult-btn small { font-size: 11px; }
html body nav.NavMenu .sp-nav-list > li.sp-nav-footer .sp-nav-ig { display: flex !important; align-items: center; justify-content: center; width: 44px !important; height: 44px !important; margin: 14px auto 0 !important; }
html body nav.NavMenu .sp-nav-list > li.sp-nav-footer .sp-nav-ig img { width: 28px; height: 28px; }
/* メニュー共通の指定（components.css の nav.NavMenu ul li a span { height:40px; width:142px !important }）が
   3点セットのボタンの中の文字を切っていたので、ここだけ打ち消す（2026-11-13） */
html body nav.NavMenu .sp-nav-cta .consult-btn span,
html body nav.NavMenu .sp-nav-cta .consult-btn small {
  display: block; width: auto !important; height: auto !important; line-height: 1.35 !important; text-align: left;
}
html body nav.NavMenu .sp-nav-cta .consult-btn__body { display: flex; flex-direction: column; gap: 2px; }
html body nav.NavMenu .sp-nav-cta .consult-btn small { font-size: 11px !important; }
html body nav.NavMenu .sp-nav-cta .consult-btn__main { font-size: 16px !important; font-weight: 700; }
html body nav.NavMenu .sp-nav-cta .consult-btn__num { font-family: "Shippori Mincho", serif; font-size: 22px !important; }
/* 同じ指定（span の高さ40px）が治療名にも当たり、1行のときに文字が上に寄っていたので打ち消す（2026-11-13） */
html body .menu-label { height: auto !important; line-height: 1.45 !important; }

/* ==========================================================
 * 初診の方へ「ご相談は何度でも無料です」（2026-11-13）
 * 背景の写真の上に文字が直接載っていて読みづらかったので、白い箱に入れ、見出しを大きくする
 * ========================================================== */
html body section.contact { position: relative; }
html body section.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(255, 255, 255, .55);
}
html body section.contact > .inner { position: relative; z-index: 1; }
html body .contact .w50 {
  padding: 28px 24px; background: rgba(255, 255, 255, .95);
  border: 1px solid #e3dccf; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
html body .contact .w50 > p:first-child { font-size: 22px !important; letter-spacing: .04em; line-height: 1.5; }
html body .contact .w50 > p:first-child .f40 { font-size: 30px !important; }
html body .contact .w50 > p { margin-bottom: 16px; line-height: 1.9; }
/* 箇条書きの3行：白い箱の中で少し下げて、行ごとに区切る */
html body .contact .w50 > p.bg_white {
  display: block !important; width: 100%; margin: 18px 0; padding: 16px 18px;
  background: #f7f5f1 !important; box-shadow: none !important; border-left: 3px solid #47413a; line-height: 2;
}
html body .contact .btn_d { width: 100%; max-width: 360px; }
@media screen and (max-width: 767px) {
  html body .contact .w50 { padding: 20px 16px; }
  html body .contact .w50 > p:first-child { font-size: 19px !important; }
  html body .contact .w50 > p:first-child .f40 { font-size: 26px !important; }
  html body .contact .w50 > p.bg_white { padding: 14px 14px; font-size: 13.5px; line-height: 1.85; }
}

/* 初診の方へ：初診相談の流れのカード（データは apply.php の 11 で flow-card__no／__ttl に）（2026-11-13） */
html body .flow .card { align-items: flex-start !important; gap: 16px !important; padding: 18px 18px !important; }
html body .flow-card__no {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0; border-radius: 50%; background: #47413a;
  color: #fff !important; font-family: "Shippori Mincho", serif; font-size: 22px !important; font-weight: 500; line-height: 1;
}
html body .flow-card__no span { color: rgba(255, 255, 255, .8) !important; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 9px; letter-spacing: .16em; margin-bottom: 2px; }
html body .flow-card__body { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.8; }
html body .flow-card__ttl { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 700; line-height: 1.5; color: #47413a; }
@media screen and (max-width: 767px) {
  html body .flow .card { gap: 12px !important; padding: 14px 14px !important; }
  html body .flow-card__no { width: 54px; height: 54px; font-size: 20px !important; }
  html body .flow-card__ttl { font-size: 15.5px; }
  html body .flow-card__body { font-size: 13.5px; }
}
/* 初診の方へ：Point01〜03 の札（データは apply.php の 12 で point-no に）（2026-11-13） */
html body .point-no {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 0 0 12px; padding: 5px 16px;
  background: #47413a; color: #fff !important;
  font-family: "Shippori Mincho", serif; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: .06em;
}
html body .point-no span { color: rgba(255, 255, 255, .85) !important; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
html body .point-no + h3 { margin-top: 0; line-height: 1.5; }
@media screen and (max-width: 767px) {
  html body .point-no { padding: 4px 12px; font-size: 19px; }
  html body .point-no + h3 { font-size: 19px !important; }
}
html body .flow .card { flex-direction: row !important; flex-wrap: nowrap !important; }
/* 院長名のふりがな：漢字の字間の「最後の空き」の分だけ左にずれて見えるので、その分を戻す（2026-11-13） */
html body .doctor-name__name ruby { margin-right: -.2em; }
html body .doctor-name__name ruby + ruby { margin-left: .65em; }
html body .doctor-name__name rt { letter-spacing: .04em; }
/* スマホ：研究実績は折りたたまず、最初から全部出す（2026-11-13 本人のご指示） */
@media screen and (max-width: 767px) {
  html body .doctor-profile__more { display: none !important; }
  html body .doctor-profile__sec--wide details > .doctor-profile__papers { display: block !important; padding-top: 0; }
}

/* 症例スライドの見出し（2026-11-13）：ボタンに見えないよう背景は付けず、1行目を小さく・2行目を大きく、下に短い線 */
html body .case-headline {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 0 0 28px; padding: 0; background: none; color: #47413a !important;
  font-family: "Shippori Mincho", serif; text-align: center;
}
html body .case-headline__line { color: #47413a !important; }
html body .case-headline__line:first-child { font-size: 14px; font-weight: 500; letter-spacing: .22em; line-height: 1.4; opacity: .75; }
html body .case-headline__line:last-child { font-size: 26px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
html body .case-headline::after { content: ""; width: 48px; height: 1px; margin-top: 10px; background: #47413a; opacity: .55; }
@media screen and (max-width: 767px) {
  html body .case-headline { margin-bottom: 20px; }
  html body .case-headline__line:first-child { font-size: 12px; letter-spacing: .18em; }
  html body .case-headline__line:last-child { font-size: 19px; letter-spacing: .06em; }
}

/* 症例スライドの下に余白を空ける（「症例をもっと見る」のすぐ下に次の文が来ていた）（2026-11-13） */
html body .case-slider { margin-bottom: 56px; }
html body .case-slider__more { margin-bottom: 0; }
@media screen and (max-width: 767px) { html body .case-slider { margin-bottom: 40px; } }
/* 節の見出し（h3）の箱の中に小見出し（h4）の箱があるときは、入れ子にせず帯だけにする（2026-11-13） */
html body .feature-band {
  margin: 32px 0 20px !important; padding: 12px 18px; background: #47413a; color: #fff !important;
  font-family: "Shippori Mincho", serif; font-size: 18px; font-weight: 700; line-height: 1.55; letter-spacing: .04em; text-align: center;
}
/* 見出しの文字が途中で割れないように（「表側矯／正」のような文字落ちを防ぐ）（2026-11-13） */
html body .feature-box__ttl,
html body .feature-band,
html body .case-headline__line { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }

/* 2026-11-13（6回目の手直し）
   1. 番号の丸が帯から上にはみ出していたので、帯の中に収めて下にだけはみ出す
   2. 箱の中の「1.〜」の段落（p.bold）を小見出しらしく
   3. PC：症例スライドのカードが縦に長くなりすぎないように */
html body .feature-box__ttl.has-no { padding-top: 14px; padding-bottom: 14px; min-height: 68px; display: flex; align-items: center; }
.feature-box__no { top: 50%; transform: translateY(-40%); }
@media screen and (max-width: 767px) {
  html body .feature-box__ttl.has-no { min-height: 60px; }
}
html body .feature-box__body > p.bold {
  margin: 18px 0 8px; padding-left: 12px; border-left: 3px solid #47413a;
  font-size: 16px; font-weight: 700; line-height: 1.6; color: #47413a;
}
/* 症例カード：長い説明は3行までにして、カードが縦に伸びすぎないようにする（続きは「詳しく見る」で） */
html body .case-slider .p-caseSlide__row dd {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
html body .case-slider .p-caseSlide__ttl {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
/* 大見出しの帯の番号は、左に大きな数字と縦線（小見出しの丸とは別の形）（2026-11-13） */
html body .feature-band.has-no { display: flex; align-items: center; gap: 14px; padding: 12px 18px; text-align: left; }
html body .feature-band .feature-box__no {
  position: static; transform: none; flex: 0 0 auto;
  width: auto; height: auto; min-width: 0; padding: 0 14px 0 0;
  background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .35); border-radius: 0;
  font-size: 30px; line-height: 1; color: #cfc4b2 !important;
}
html body .feature-band .feature-box__no-label { display: none; }
html body .feature-band .feature-box__txt { color: #fff !important; }
@media screen and (max-width: 767px) {
  html body .feature-band.has-no { gap: 10px; padding: 10px 14px; }
  html body .feature-band .feature-box__no { font-size: 24px; padding-right: 10px; }
}
/* 節の見出し（h3）は、箱でも帯でも同じ形（左に大きな数字＋縦線）。丸は小見出し（h4）だけにする（2026-11-13） */
html body h3.feature-box__ttl.has-no { display: flex; align-items: center; gap: 14px; padding-left: 18px; text-align: left; }
html body h3.feature-box__ttl .feature-box__no {
  position: static; transform: none; flex: 0 0 auto;
  width: auto; height: auto; padding: 0 14px 0 0;
  background: none; border: 0; border-right: 1px solid rgba(255, 255, 255, .35); border-radius: 0;
  font-size: 30px; line-height: 1; color: #cfc4b2 !important;
}
html body h3.feature-box__ttl .feature-box__no-label { display: none; }
html body .feature-box:has(h3.has-no) .feature-box__body { padding-top: 18px; }
@media screen and (max-width: 767px) {
  html body h3.feature-box__ttl.has-no { gap: 10px; padding-left: 14px; }
  html body h3.feature-box__ttl .feature-box__no { font-size: 24px; padding-right: 10px; }
}

/* ==========================================================
   上の余白（2026-11-13）
   common.css には margin-bottom の mg-1〜 しかなく、mg-t-4・mg-t-5 は効いていなかった。
   同じ 8px 刻みの規則で足す（common.css は原本なので、ここで足す）
   ========================================================== */
.mg-t-4 { margin-top: 32px; }
.mg-t-5 { margin-top: 40px; }
.mg-t-7 { margin-top: 56px; }

/* ==========================================================
   スライドのドット：見た目はそのままで、指で押せる広さを確保する（2026-11-14）
   PageSpeed の「Touch targets do not have sufficient size or spacing」への対応。
   当たり判定（ボタンそのもの）を 28×24px にし、見えている棒（28×4px）は ::before で描く。
   ※ 透明な ::after を重ねるやり方では、検査がボタン自身の大きさを見るため直らなかった。
   棒の高さが 4px → 24px になる分、ドットの列の bottom は 10px ずつ減らしてある（元の位置に見えるように）
   ========================================================== */
.fv-slider__dots button {
  position: relative;
  height: 24px;
  background: none;
  border-radius: 0;
}
.fv-slider__dots button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: rgba(255, 255, 255, .5);
}
.fv-slider__dots button.is-active {
  background: none;
}
.fv-slider__dots button.is-active::before {
  background: #fff;
}

/* ==========================================================
   お支払い方法：「クレジットカード」が「クレジ／ット」と途中で割れていた（2026-11-14）
   ・言葉の途中では折り返さず、「クレジット」「カード」の間でだけ折り返す（payment.php の u-nowrap）
   ・置き場所の幅で文字の大きさを変える（トップの料金の右側のように狭い所では小さく）。
     画面幅ではなく、この箱そのものの幅で判断する（container query）
   ========================================================== */
.payment { container-type: inline-size; }
html body .payment__name { letter-spacing: .02em; word-break: keep-all; }
html body .payment__name .u-nowrap { white-space: nowrap; }
@container (max-width: 380px) {
  .payment__item { padding: 4px 4px; }
  html body .payment__name { font-size: 13px; letter-spacing: 0; }
  html body .payment__icon { width: 32px; height: 32px; }
}
