/* =========================================================
   診療科ページ共通 (9 slugs: orthodontics / pediatric / prevention /
   cavity / periodontal / dentures / implant / aesthetic / endodontics)
   デザインカンプ XoXUw4vzh2C2X6RIfJJVGM 560:5483 ほか 完成版準拠。
   1テンプレ(page.php の treatment 分岐) + masuno_treatment_page_data() データ駆動。
   top.css / pages.css の後に読み込む。ブランドトークン(--c-*)を流用。
   トークン: 見出し #493215 / 本文 #4f4538 / 強調コーラル #e44a3f / ピンク #ff9a92。
   ========================================================= */

.treat { background: #ffffff; }
.treat * { box-sizing: border-box; }
/* コンテンツ幅はカンプ基準の1024pxで固定し、背景だけを全幅で伸ばす。 */
.treat-wrap { max-width: 1024px; margin: 0 auto; padding: 0 28px; }

/* ---------- ヒーロー（写真背景 + コーラルグラデ + コンセプト） ---------- */
.treat-hero {
  position: relative; overflow: hidden;
  background: #fc9291 var(--treat-hero, none) var(--treat-hero-position, center top) / var(--treat-hero-size, 100% auto) no-repeat;
  /* カンプ準拠の2画面構成：上＝写真の画面／下＝無地コーラルにConcept。
     写真エリアを十分に確保し、コンセプト文は無地コーラル上に置いて視認性を担保。 */
  min-height: 1187px;
  display: flex; flex-direction: column;
}
.treat-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(252,146,145,0) 38%,
    rgba(252,146,145,.22) 47%,
    rgba(252,146,145,.72) 56%,
    #fc9291 64%,
    #fc9291 100%
  );
}
/* 水玉（ボケ）はコーラル面だけに重ねる。写真側には乗せない。 */
.treat-hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 657px; bottom: 0; z-index: 1; pointer-events: none;
  background: url("../images/figma/imgShutterstock5180233361.jpg") center / cover no-repeat;
  opacity: .24; mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.2) 34px, rgba(0,0,0,.75) 108px, #000 180px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.2) 34px, rgba(0,0,0,.75) 108px, #000 180px);
}
.treat-hero__inner {
  position: relative; z-index: 2; width: 100%;
  min-height: 703px;
  padding: 0 60px 92px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
}
.treat-hero__crumb { margin: 0 0 32px; color: #fff; font-weight: 500; font-size: 10px; line-height: 3; letter-spacing: 2px; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.treat-hero__ttl { margin: 0; color: #fff; font-family: var(--ff-josefin); font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: 2px; text-shadow: 0 1px 12px rgba(0,0,0,.28); }
.treat-hero__concept { position: relative; z-index: 2; text-align: center; padding: 41px 28px 96px; }
.treat-hero__en { margin: 0; color: #fff; font-family: var(--ff-josefin); font-weight: 700; font-size: 14px; line-height: 1; letter-spacing: 1.4px; text-shadow: 0 0 12px rgba(228,74,63,.7); }
.treat-hero__head { margin: 27px auto 0; max-width: 820px; color: #fff; font-weight: 500; font-size: 27.46px; line-height: 42px; letter-spacing: 4.119px; text-shadow: 0 0 14px rgba(228,74,63,.65); }
.treat-hero__lead { margin: 39px auto 0; max-width: 829px; color: #fff; font-weight: 500; font-size: 16px; line-height: 2.2625; letter-spacing: 2.4px; text-shadow: 0 0 12px rgba(228,74,63,.7); }

/* ---------- 共通見出し（英語アイブロウ + 日本語） ---------- */
.treat-section { padding: 72px 0; }
#shoni-kyosei { scroll-margin-top: 100px; }
.treat-section:first-of-type { padding-top: 96px; }
.treat-h { margin: 0 0 36px; }
.treat-h.is-center { text-align: center; }
.treat-h__en { margin: 0; font-family: var(--ff-josefin); font-weight: 700; color: var(--c-pink); font-size: 15.5px; letter-spacing: 1.4px; }
.treat-h__ja { margin: 10px 0 0; color: var(--c-brown); font-weight: 700; font-size: 30px; line-height: 1.5; letter-spacing: 3px; }
.br-sp-heading { display: none; }
.treat-intro-text { margin: -16px auto 34px; max-width: 760px; text-align: center; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 2; letter-spacing: 1.2px; }
.treat-simple-heading {
  margin: 0 0 48px;
  color: var(--c-brown);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 2.88px;
  text-align: center;
}

/* ---------- Strength（チェックアイコン3カード） ----------
   PC: カンプ(560:5483 ほか)準拠で 1 枚 314px / gap 30px / 中央寄せの固定幅。
   説明文ボックスは 274px・16px・letter-spacing 1.92px・line-height 1.7 に合わせ、
   カンプと同じ位置で折り返す（br を入れずに自然改行が一致する）。 */
.treat-strength { display: grid; grid-template-columns: repeat(3, 314px); gap: 30px; justify-content: center; }
.treat-strength.is-4 { grid-template-columns: repeat(2, 314px); }
.treat-scard { width: 314px; min-height: 300px; background: #fff3f2; border-radius: 12px; padding: 36px 22px 34px; }
.treat-scard__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-pink); position: relative; color: #fff; font-family: var(--ff-josefin, sans-serif); font-weight: 700; font-size: 18px; line-height: 1; }
.treat-scard__icon::after { content: ""; width: 13px; height: 8px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px,-2px); }
/* メリット/デメリット欄は数字（1・2・3）。チェックを消し、span内の数字を表示。 */
.treat-strength--num .treat-scard__icon::after { content: none; }
/* デメリット：グレー丸の「？」アイコン（カンプ準拠） */
.treat-strength--q .treat-scard__icon { background: #c2bab3; }
.treat-strength--q .treat-scard__icon::after { content: none; }
/* メリット(4枚)・デメリットは横長の2列ボックスに */
.treat-strength.is-4, .treat-strength--q { grid-template-columns: repeat(2, minmax(0, 490px)); }
.treat-strength.is-4 .treat-scard, .treat-strength--q .treat-scard { width: 100%; }
.treat-strength.is-4 .treat-scard__text, .treat-strength--q .treat-scard__text { width: auto; }
.treat-scard__title { margin: 18px 0 0; color: var(--c-brown); font-weight: 700; font-size: 18px; line-height: 1.6; letter-spacing: .8px; min-height: calc(1.6em * 2); }
.treat-scard__text { width: 274px; max-width: 100%; margin: 14px 0 0; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 1.7; letter-spacing: 1.92px; word-break: break-word; }

/* ---------- Checklist（チェック項目グリッド） ---------- */
.treat-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.treat-checklist li { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px 22px; border: 1px solid #f1dfdd; border-radius: 10px; background: #fff; color: var(--c-brown); font-weight: 500; font-size: 16px; line-height: 1.5; letter-spacing: .6px; }
.treat-checklist__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-pink); position: relative; }
.treat-checklist__icon::after { content: ""; width: 9px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px,-1px); }

/* ---------- Message（写真 + テキスト） ---------- */
.treat-msg { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.treat-msg.is-reverse .treat-msg__media { order: 2; }
.treat-msg__media { border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 11; background: #ece6e3; }
/* 縦長写真のメッセージ（カンプ 560:5360：576×681 ポートレート） */
.treat-msg.is-tall .treat-msg__media { aspect-ratio: 576 / 681; }
.treat-msg.is-tall .treat-msg__media img { object-position: center; }
.treat-msg__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treat-msg__title { margin: 12px 0 0; color: var(--c-brown); font-weight: 700; font-size: 24px; line-height: 1.6; letter-spacing: 1.6px; }
.treat-msg__text { margin: 20px 0 0; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 2; letter-spacing: 1px; }
/* Figmaの矯正ページMessage: テキストの下に1280pxいっぱいの写真帯を置く。 */
.treat-photo-strip {
  max-width: 1024px;
}
.treat-photo-strip .treat-msg__title {
  max-width: 720px;
}
.treat-photo-strip .treat-msg__text {
  max-width: 760px;
}
.treat-photo-strip__media {
  width: 100vw;
  height: 298px;
  margin: 56px calc(50% - 50vw) 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  overflow: hidden;
}
.treat-photo-strip__item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.treat-photo-strip__media img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.treat--orthodontics .treat-section {
  padding: 48px 0;
}
.treat--orthodontics .treat-hero {
  min-height: 1011px;
}
.treat--orthodontics .treat-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(252,146,145,0) 0,
    rgba(252,146,145,0) 315px,
    rgba(252,146,145,.18) 430px,
    rgba(252,146,145,.76) 585px,
    #fc9291 710px,
    #fc9291 100%
  );
}
.treat--orthodontics .treat-hero::after {
  top: 492px;
  opacity: .22;
  mix-blend-mode: soft-light;
}
.treat--orthodontics .treat-hero__concept {
  padding-top: 0;
  padding-bottom: 32px;
}
.page-body.treat--orthodontics {
  padding-bottom: 41px;
}
.treat--orthodontics .treat-section:first-of-type {
  padding-top: 96px;
}
.treat--orthodontics .treat-photo-strip__media {
  margin-top: 34px;
  height: 292px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.treat--orthodontics .treat-photo-strip__media img {
  object-position: center center;
}
.treat--orthodontics .treat-photo-strip__item:first-child img {
  left: 0;
  top: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.treat--orthodontics .treat-strength--num .treat-scard {
  position: relative;
  overflow: visible;
  padding-top: 64px;
  text-align: center;
}
.treat--orthodontics .treat-strength--num .treat-scard__icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: 0;
  transform: translate(-50%, -50%);
  font-size: 16px;
  letter-spacing: 0;
}
.treat--orthodontics .treat-strength--num .treat-scard__title {
  margin-top: 0;
  min-height: 0;
  text-align: center;
}
.treat--orthodontics .treat-strength--num .treat-scard__text {
  text-align: left;
}
.treat--orthodontics .treat-strength.is-4 .treat-scard {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  min-height: 258px;
  padding-top: 34px;
}
.treat--orthodontics .treat-strength.is-4 .treat-scard__icon {
  width: 34px;
  height: 34px;
  margin: 0;
}
.treat--orthodontics .treat-strength.is-4 .treat-scard__title {
  margin: 0;
  font-size: 18px;
  min-height: 0;
}
.treat--orthodontics .treat-strength.is-4 .treat-scard__text {
  grid-column: 1 / -1;
  font-size: 15.5px;
  line-height: 1.75;
}
.treat--orthodontics .treat-strength--q .treat-scard {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  min-height: 238px;
  padding-top: 34px;
}
.treat--orthodontics .treat-strength--q .treat-scard__icon {
  width: 34px;
  height: 34px;
  margin: 0;
  background: #bfb7b0;
  color: #fff;
}
.treat--orthodontics .treat-strength--q .treat-scard__title {
  margin: 0;
  min-height: 0;
  font-size: 18px;
}
.treat--orthodontics .treat-strength--q .treat-scard__text {
  grid-column: 1 / -1;
}
.treat--orthodontics .treat-msg.is-reverse {
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 72px;
  align-items: center;
}
.treat--orthodontics .treat-msg.is-reverse .treat-msg__title {
  font-size: 32px;
  line-height: 1.7;
  letter-spacing: 3px;
}
.treat--orthodontics .treat-msg.is-reverse .treat-msg__text {
  font-size: 17px;
  line-height: 2;
}
.treat--endodontics .treat-section {
  padding: 98px 0;
}

/* ---------- 虫歯治療: Figma 560:5274 の実寸に合わせる ---------- */
.treat--cavity .treat-hero {
  min-height: 1187px;
}
.treat--cavity .treat-wrap {
  max-width: 1024px;
  padding: 0;
}
.treat--cavity .treat-section {
  padding: 0 0 72px;
}
.page-body.treat--cavity {
  padding-bottom: 0;
}
.treat--cavity .treat-hero + .treat-section {
  padding-top: 0;
  padding-bottom: 120px;
}
.treat--cavity .treat-h {
  margin-bottom: 40px;
}
.treat--cavity .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--cavity .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--cavity .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--cavity .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--cavity .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--cavity .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--cavity .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--cavity .treat-photocards {
  gap: 20px;
}
.treat--cavity .treat-photocards.is-2 {
  grid-template-columns: repeat(2, 500px);
}
.treat--cavity .treat-pcard {
  min-height: 519px;
}
.treat--cavity .treat-pcard__title {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.7;
}
.treat--cavity .treat-pcard__text {
  margin-top: 20px;
}

/* ---------- 歯周病治療: Figma 560:5170 の実寸に合わせる ---------- */
.page-body.treat--periodontal {
  padding-bottom: 0;
}
.treat--periodontal .treat-hero {
  min-height: 1187px;
}
.treat--periodontal .treat-wrap {
  max-width: 1024px;
  padding: 0;
}
.treat--periodontal .treat-section {
  padding: 0 0 120px;
}
.treat--periodontal .treat-section:last-of-type {
  padding-bottom: 103px;
}
.treat--periodontal .treat-h {
  margin-bottom: 40px;
}
.treat--periodontal .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--periodontal .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--periodontal .treat-checklist {
  grid-template-columns: repeat(3, 315.867px);
  gap: 24px;
  justify-content: center;
}
.treat--periodontal .treat-checklist li {
  min-height: 84px;
  padding: 15px 20px;
  gap: 10px;
  border: 1px solid var(--c-red);
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.92px;
}
.treat--periodontal .treat-checklist__icon {
  width: 28px;
  height: 29px;
}
.treat--periodontal .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--periodontal .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--periodontal .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--periodontal .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--periodontal .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--periodontal .treat-flow-row {
  min-height: 154px;
  grid-template-columns: 50px 315px 659px;
  gap: 0;
  padding: 0;
}
.treat--periodontal .treat-flow-row:nth-child(2),
.treat--periodontal .treat-flow-row:nth-child(4),
.treat--periodontal .treat-flow-row:nth-child(7) {
  min-height: 181px;
}
.treat--periodontal .treat-flow-row:nth-child(6) {
  min-height: 208px;
}
.treat--periodontal .treat-flow-row__no {
  align-self: center;
}
.treat--periodontal .treat-flow-row__ttl {
  align-self: center;
}
.treat--periodontal .treat-flow-row__text {
  align-self: center;
  width: 659px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.92px;
}

/* ---------- インプラント治療: Figma 560:4910 の実寸に合わせる ---------- */
.page-body.treat--implant {
  padding-bottom: 0;
}
.treat--implant .treat-hero {
  min-height: 1187px;
}
.treat--implant .treat-wrap {
  max-width: 1024px;
  padding: 0;
}
.treat--implant .treat-section {
  padding: 0 0 124px;
}
.treat--implant .treat-hero + .treat-section {
  padding-bottom: 120px;
}
.treat--implant .treat-section:last-of-type .treat-wrap {
  margin-left: max(20px, calc(50% - 517px));
  margin-right: auto;
}
.treat--implant .treat-h {
  margin-bottom: 40px;
}
.treat--implant .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--implant .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--implant .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--implant .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--implant .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--implant .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--implant .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--implant .treat-flow-row {
  min-height: 127px;
  grid-template-columns: 50px 315px 659px;
  gap: 0;
  padding: 0;
}
.treat--implant .treat-flow-row:nth-child(5) {
  min-height: 154px;
}
.treat--implant .treat-flow-row__no,
.treat--implant .treat-flow-row__ttl,
.treat--implant .treat-flow-row__text {
  align-self: center;
}
.treat--implant .treat-flow-row__text {
  width: 659px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.92px;
}

/* ---------- 入れ歯治療: Figma 560:4594 の実寸に合わせる ---------- */
.page-body.treat--dentures {
  padding-bottom: 0;
}
.treat--dentures .treat-hero {
  min-height: 1187px;
}
.treat--dentures .treat-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(252,146,145,0) 34%,
    rgba(252,146,145,.22) 44%,
    rgba(252,146,145,.72) 54%,
    #fc9291 62%,
    #fc9291 100%
  );
}
@media (min-width: 821px) {
  .treat--dentures .treat-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(252,146,145,0) 18%,
      rgba(252,146,145,.08) 34%,
      rgba(252,146,145,.28) 50%,
      rgba(252,146,145,.58) 66%,
      rgba(252,146,145,.88) 80%,
      #fc9291 94%,
      #fc9291 100%
    );
  }
}
.treat--dentures .treat-wrap {
  max-width: 1024px;
  padding: 0;
}
.treat--dentures .treat-section {
  padding: 0 0 160px;
}
.treat--dentures .treat-section:last-of-type {
  padding-bottom: 101px;
}
.treat--dentures .treat-h {
  margin-bottom: 40px;
}
.treat--dentures .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--dentures .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--dentures .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--dentures .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--dentures .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--dentures .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--dentures .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--dentures .treat-panels {
  gap: 40px;
}
.treat--dentures .treat-dpanel {
  width: 1024px;
  height: 635px;
  padding: 45px 34px 0;
  border-radius: 0;
}
.treat--dentures .treat-dpanel__top {
  grid-template-columns: 432px 456px;
  gap: 29px;
  align-items: start;
}
.treat--dentures .treat-dpanel__media {
  width: 456px;
  height: 305px;
  aspect-ratio: auto;
}
.treat--dentures .treat-dpanel__rows {
  margin-top: 53px;
  gap: 20px;
}
.treat--dentures .treat-flow-row {
  min-height: 127px;
  grid-template-columns: 50px 315px 659px;
  gap: 0;
  padding: 0;
}
.treat--dentures .treat-flow-row:nth-child(7) {
  min-height: 181px;
}
.treat--dentures .treat-flow-row__no,
.treat--dentures .treat-flow-row__ttl,
.treat--dentures .treat-flow-row__text {
  align-self: center;
}
.treat--dentures .treat-flow-row__text {
  width: 659px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.92px;
}

/* ---------- 小児歯科: Figma 560:5357 の実寸に合わせる ---------- */
.page-body.treat--pediatric {
  padding-bottom: 0;
}
.treat--pediatric .treat-hero {
  min-height: 1166px;
}
.treat--pediatric .treat-wrap {
  max-width: 1024px;
  margin-left: 78px;
  margin-right: auto;
  padding: 0;
}
.treat--pediatric .treat-section {
  padding: 0 0 160px;
}
.treat--pediatric .treat-section:last-of-type {
  padding-bottom: 111px;
}
.treat--pediatric .treat-hero + .treat-section .treat-wrap {
  width: 1158px;
  max-width: none;
}
.treat--pediatric .treat-hero + .treat-section {
  padding-top: 72px;
  padding-bottom: 160px;
}
.treat--pediatric .treat-msg.is-tall {
  grid-template-columns: 480px 576px;
  gap: 102px;
  align-items: start;
}
.treat--pediatric .treat-msg.is-tall .treat-msg__body {
  width: 390px;
  padding-top: 58px;
}
.treat--pediatric .treat-msg.is-tall .treat-msg__title {
  max-width: 365px;
  font-size: 28px;
  line-height: 1.72;
  letter-spacing: 2px;
}
.treat--pediatric .treat-msg.is-tall .treat-msg__text {
  max-width: 390px;
}
.treat--pediatric .treat-msg.is-reverse .treat-msg__media {
  order: 2;
}
.treat--pediatric .treat-msg.is-tall .treat-msg__media {
  width: 576px;
  height: 681px;
  aspect-ratio: auto;
}
.treat--pediatric .treat-msg__cards {
  grid-template-columns: repeat(2, 500px);
  gap: 24px;
  justify-content: start;
  margin-top: -181px;
}
.treat--pediatric .treat-mcard {
  width: 500px;
  height: 202px;
  padding: 29px 30px 0 20px;
  border-radius: 0;
}
.treat--pediatric .treat-h {
  margin-bottom: 40px;
}
.treat--pediatric .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--pediatric .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--pediatric .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--pediatric .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--pediatric .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--pediatric .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--pediatric .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--pediatric .treat-panel {
  width: 1024px;
  height: 635px;
  padding: 45px 35px 0;
  border-radius: 0;
}
.treat--pediatric .treat-panel__top {
  grid-template-columns: 433px 456px;
  gap: 29px;
  align-items: start;
}
.treat--pediatric .treat-panel__media {
  width: 456px;
  height: 305px;
  aspect-ratio: auto;
}
.treat--pediatric .treat-panel__rows {
  margin-top: 53px;
}

/* ---------- 予防・定期検診: Figma 560:5013 の実寸に合わせる ---------- */
.page-body.treat--prevention {
  padding-bottom: 0;
}
.treat--prevention .treat-hero {
  min-height: 1187px;
}
.treat--prevention .treat-wrap {
  max-width: 1024px;
  padding: 0;
}
.treat--prevention .treat-section {
  padding: 0;
}
.treat--prevention .treat-section:nth-of-type(2),
.treat--prevention .treat-section:nth-of-type(3) {
  height: 532px;
}
.treat--prevention .treat-section:nth-of-type(4) {
  height: 541px;
}
.treat--prevention .treat-section:nth-of-type(5) {
  height: 509px;
}
.treat--prevention .treat-section:nth-of-type(6) {
  height: 926px;
}
.treat--prevention .treat-section:nth-of-type(7) {
  height: 1308px;
}
.treat--prevention .treat-section:nth-of-type(8) {
  height: 741px;
}
.treat--prevention .treat-section:nth-of-type(9) {
  height: 915px;
}
.treat--prevention .treat-h {
  margin-bottom: 40px;
}
.treat--prevention .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--prevention .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--prevention .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--prevention .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--prevention .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--prevention .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--prevention .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--prevention .treat-section:nth-of-type(6) .treat-wrap {
  min-height: 806px;
}
.treat--prevention .treat-photocards {
  gap: 20px;
}
.treat--prevention .treat-photocards.is-2 {
  grid-template-columns: repeat(2, 500px);
}
.treat--prevention .treat-pcard {
  min-height: 519px;
}
.treat--prevention .treat-pcard__title {
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.7;
}
.treat--prevention .treat-pcard__text {
  margin-top: 20px;
}
.treat--prevention .treat-section:nth-of-type(8) .treat-wrap {
  min-height: 621px;
}
.treat--prevention .treat-flow-row {
  min-height: 127px;
  grid-template-columns: 50px 315px 659px;
  gap: 0;
  padding: 0;
}
.treat--prevention .treat-flow-row:nth-child(2),
.treat--prevention .treat-flow-row:nth-child(3) {
  min-height: 154px;
}
.treat--prevention .treat-flow-row__no,
.treat--prevention .treat-flow-row__ttl,
.treat--prevention .treat-flow-row__text {
  align-self: center;
}
.treat--prevention .treat-flow-row__text {
  width: 659px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.92px;
}
.treat--prevention .treat-tagcards__avatar img {
  width: 214px;
  height: 214px;
}

/* ---------- 歯内療法: Figma 560:4383 の実寸に合わせる ---------- */
.page-body.treat--endodontics {
  padding-bottom: 0;
}
.treat--endodontics .treat-hero__overlay {
  background: linear-gradient(
    to bottom,
    rgba(252,146,145,0) 32%,
    rgba(252,146,145,.18) 44%,
    rgba(252,146,145,.58) 56%,
    #fc9291 68%,
    #fc9291 100%
  );
}
.treat--endodontics .treat-hero::after {
  top: 430px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 150px, #000 285px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 150px, #000 285px);
}
.treat--endodontics .treat-wrap {
  max-width: 1024px;
  padding: 0;
}
.treat--endodontics .treat-section {
  padding: 0;
}
.treat--endodontics .treat-section:nth-of-type(2) {
  height: 572px;
}
.treat--endodontics .treat-section:nth-of-type(3) {
  height: 1320px;
}
.treat--endodontics .treat-section:nth-of-type(4) {
  height: 557px;
}
.treat--endodontics .treat-section:nth-of-type(5) {
  height: 720px;
}
.treat--endodontics .treat-section:nth-of-type(6) {
  min-height: 1444px;
  height: auto;
  padding-bottom: 96px;
}
.treat--endodontics .treat-h {
  margin-bottom: 40px;
}
.treat--endodontics .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--endodontics .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--endodontics .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--endodontics .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--endodontics .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--endodontics .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--endodontics .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--endodontics .treat-numcards {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--endodontics .treat-ncard {
  min-height: 494px;
}
.treat--endodontics .treat-flow-row {
  min-height: 154px;
  grid-template-columns: 50px 315px 659px;
  gap: 0;
  padding: 0;
}
.treat--endodontics .treat-flow-row:nth-child(2),
.treat--endodontics .treat-flow-row:nth-child(4),
.treat--endodontics .treat-flow-row:nth-child(7) {
  min-height: 181px;
}
.treat--endodontics .treat-flow-row:nth-child(6) {
  min-height: 208px;
}
.treat--endodontics .treat-flow-row__no,
.treat--endodontics .treat-flow-row__ttl,
.treat--endodontics .treat-flow-row__text {
  align-self: center;
}
.treat--endodontics .treat-flow-row__text {
  width: 659px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.92px;
}
.treat--endodontics .treat-hero + .treat-section {
  height: 650px;
  padding-top: 112px;
}
.treat--endodontics .treat-section:nth-of-type(4) {
  height: 520px;
}
.treat--endodontics .treat-banner {
  min-height: 360px;
  padding: 0 274px;
}
.treat--endodontics .treat-banner__pic--tr {
  right: -36px;
  top: 4px;
}
.treat--endodontics .treat-banner__pic--bl {
  left: -22px;
  bottom: 6px;
}
.treat--endodontics .treat-banner__title {
  white-space: normal;
  font-size: 32px;
  line-height: 1.58;
  letter-spacing: 1.8px;
}
.treat--endodontics .treat-strength--num .treat-scard {
  display: block;
  height: 300px;
  min-height: 0;
  padding: 36px 22px 30px;
  text-align: center;
}
.treat--endodontics .treat-strength--num .treat-scard__icon {
  display: inline-flex;
  margin: 0 auto;
}
.treat--endodontics .treat-strength--num .treat-scard__title {
  display: block;
  min-height: 0;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: .8px;
}
.treat--endodontics .treat-strength--num .treat-scard__text {
  display: block;
  width: auto;
  margin-top: 14px;
  text-align: left;
  font-size: 15.5px;
  line-height: 1.72;
  letter-spacing: .8px;
}

/* ---------- 審美・ホワイトニング: Figma 560:4817 の実寸に合わせる ---------- */
.page-body.treat--aesthetic {
  padding-bottom: 0;
}
.treat--aesthetic .treat-hero {
  min-height: 1187px;
}
.treat--aesthetic .treat-wrap {
  max-width: 1024px;
  padding: 0;
}
.treat--aesthetic .treat-section {
  padding: 0;
}
.treat--aesthetic .treat-section:nth-of-type(2) {
  height: 655px;
  padding-top: 123px;
}
.treat--aesthetic .treat-section:nth-of-type(3) {
  height: 929px;
}
.treat--aesthetic .treat-section:nth-of-type(3) .treat-wrap {
  margin-left: max(20px, calc(50% - 517px));
  margin-right: auto;
}
.treat--aesthetic .treat-h {
  margin-bottom: 40px;
}
.treat--aesthetic .treat-h__en {
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
}
.treat--aesthetic .treat-h__ja {
  margin-top: 16px;
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: 3.6px;
}
.treat--aesthetic .treat-strength {
  grid-template-columns: repeat(3, 321px);
  gap: 24px;
  justify-content: center;
}
.treat--aesthetic .treat-scard {
  width: 321px;
  height: 281px;
  min-height: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 21px;
  align-content: start;
  padding: 29px 20px 0;
  border-radius: 0;
}
.treat--aesthetic .treat-scard__icon {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}
.treat--aesthetic .treat-scard__title {
  grid-column: 2;
  grid-row: 1;
  min-height: 62px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: .8px;
}
.treat--aesthetic .treat-scard__text {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 270px;
  margin-top: 24px;
}
.treat--aesthetic .treat-flow-row {
  min-height: 127px;
  grid-template-columns: 50px 315px 659px;
  gap: 0;
  padding: 0;
}
.treat--aesthetic .treat-flow-row:nth-child(2) {
  min-height: 154px;
}
.treat--aesthetic .treat-flow-row__no,
.treat--aesthetic .treat-flow-row__ttl,
.treat--aesthetic .treat-flow-row__text {
  align-self: center;
}
.treat--aesthetic .treat-flow-row__text {
  width: 659px;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 1.92px;
}

.treat--cavity .treat-hero + .treat-section,
.treat--periodontal .treat-hero + .treat-section,
.treat--implant .treat-hero + .treat-section,
.treat--dentures .treat-hero + .treat-section {
  padding-top: 123px;
}

.treat--prevention .treat-section:nth-of-type(2) {
  height: 655px;
  padding-top: 123px;
}

/* メッセージ下のチェックカード（カンプ 560:5367） */
.treat-msg__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 500px)); gap: 24px; justify-content: center; margin-top: -120px; position: relative; z-index: 2; }
.treat--pediatric .treat-msg__cards {
  grid-template-columns: repeat(2, 500px);
  justify-content: start;
  margin-top: -181px;
}
/* is-tall メッセージはテキストを上揃え（左カードが本文に被らないように）。右カードは縦長写真に重なる。 */
.treat-msg.is-tall { align-items: start; }
.treat-mcard { background: #fff3f2; border-radius: 8px; padding: 29px 31px 36px 20px; }
.treat-mcard__head { display: flex; align-items: center; gap: 21px; }
.treat-mcard__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-pink); position: relative; }
.treat-mcard__icon::after { content: ""; position: absolute; left: 13px; top: 15px; width: 13px; height: 8px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.treat-mcard__title { margin: 0; color: #3b3b3b; font-weight: 700; font-size: 18px; line-height: 1.5; letter-spacing: 1.4px; }
.treat-mcard__text { margin: 18px 0 0; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 1.7; letter-spacing: 1.4px; }

/* ---------- Photo cards（写真 + 見出し + テキスト） ---------- */
.treat-photocards { display: grid; gap: 40px 24px; }
.treat-photocards.is-2 { grid-template-columns: repeat(2, 1fr); }
.treat-photocards.is-3 { grid-template-columns: repeat(3, 1fr); }
.treat-pcard__media { border-radius: 6px; overflow: hidden; aspect-ratio: 500 / 311; background: #ece6e3; }
.treat-pcard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treat-pcard__title { margin: 18px 0 0; color: var(--c-red); font-weight: 700; font-size: 19px; line-height: 1.5; letter-spacing: 1.4px; }
.treat-pcard__text { margin: 14px 0 0; color: var(--c-brown2); font-weight: 500; font-size: 15.5px; line-height: 1.85; letter-spacing: .6px; }

/* ---------- Numbered cards（番号丸 + 写真） ---------- */
.treat-numcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
.treat-ncard { position: relative; background: #fff3f2; border-radius: 8px; padding: 50px 24px 32px; text-align: center; }
.treat-ncard__no { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; border-radius: 50%; background: var(--c-pink); color: #fff; font-family: var(--ff-inter); font-weight: 700; font-size: 22px; display: flex; align-items: center; justify-content: center; letter-spacing: 1px; }
.treat-ncard__title { margin: 0; color: #3b3b3b; font-weight: 700; font-size: 19px; letter-spacing: 1.6px; }
.treat-ncard__media { margin: 24px 0 0; border-radius: 4px; overflow: hidden; aspect-ratio: 274 / 176; background: #e6dedb; }
.treat-ncard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treat-ncard__text { margin: 22px 0 0; text-align: left; color: var(--c-brown2); font-weight: 500; font-size: 15.5px; line-height: 1.85; letter-spacing: .6px; }

/* ---------- Circle cards（円形画像 + ラベル + EN） ---------- */
.treat-circlecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.treat-ccard { background: #fff; border: 2px solid #fc9790; border-radius: 8px; padding: 40px 26px 30px; text-align: center; }
.treat-ccard__circle { display: inline-flex; align-items: center; justify-content: center; width: 127px; height: 127px; }
.treat-ccard__circle img { width: 127px; height: 127px; object-fit: contain; display: block; }
.treat-ccard__circle em { font-style: normal; font-weight: 700; font-size: 18px; letter-spacing: 1px; color: var(--c-red); }
.treat-ccard__title { margin: 18px 0 0; color: #3b3b3b; font-weight: 700; font-size: 19px; letter-spacing: 1.4px; }
.treat-ccard__sub { margin: 8px 0 0; font-family: var(--ff-josefin); font-weight: 700; color: var(--c-pink); font-size: 13px; letter-spacing: 1.2px; }
.treat-ccard__text { margin: 16px 0 0; text-align: left; color: var(--c-brown2); font-weight: 500; font-size: 15.5px; line-height: 1.85; letter-spacing: .6px; }

/* ---------- Tag cards（衛生士紹介：アバター + タグ付きカード） ---------- */
.treat-tagcards__avatar { display: flex; justify-content: center; margin: 6px 0 0; }
.treat-tagcards__avatar img { width: 180px; height: 180px; object-fit: contain; display: block; }
.treat-tagcards__intro { margin: 26px auto 40px; max-width: 760px; text-align: center; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 2; letter-spacing: 1.2px; }
.treat-tagcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.treat-tcard { background: #fff3f2; border-radius: 8px; padding: 30px 26px 32px; text-align: center; }
.treat-tcard__tag { display: inline-block; padding: 5px 20px; border-radius: 999px; background: var(--c-pink); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 1.2px; }
.treat-tcard__title { margin: 18px 0 0; color: #3b3b3b; font-weight: 700; font-size: 20px; letter-spacing: 1.4px; }
.treat-tcard__text { margin: 14px 0 0; color: var(--c-brown2); font-weight: 500; font-size: 15.5px; line-height: 1.9; letter-spacing: .6px; }

/* ---------- Tag panel（写真 + ラベル付き行：小児About） ---------- */
.treat-panel { background: #fff; border: 1px solid #e44a3f; border-radius: 12px; padding: 44px 46px; }
.treat-panel__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.treat-panel__head { margin: 0; color: #e44a3f; font-weight: 700; font-size: 26px; line-height: 1.7; letter-spacing: 4.16px; }
.treat-panel__media { border-radius: 6px; overflow: hidden; aspect-ratio: 456 / 305; background: #e6dedb; }
.treat-panel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treat-panel__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
/* カンプ準拠：通常時は白地＋コーラル枠＋コーラルのチェック＆文字。ホバーでピンク塗り＋白文字。 */
.treat-panel__label { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 20px; border: 1px solid #e44a3f; border-radius: 5px; background: #fff; color: #e44a3f; font-weight: 700; font-size: 13px; letter-spacing: 2px; cursor: default; transition: background .2s ease, color .2s ease; }
.treat-panel__label::before { content: ""; flex: none; width: 14px; height: 9px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.treat-panel__label:hover { background: #ff9a92; color: #fff; }
.treat-panel__text { margin: 16px 0 0; color: var(--c-brown2); font-weight: 500; font-size: 15.5px; line-height: 1.85; letter-spacing: .5px; }

/* ---------- Denture panels（番号+写真+ラベル行：入れ歯） ---------- */
.treat-panels { display: grid; gap: 48px; }
.treat-dpanel { border: 1px solid var(--c-red); border-radius: 8px; background: #fff; padding: 66px 46px 58px; }
.treat-dpanel__top { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.treat-dpanel__no { display: block; font-family: var(--ff-josefin); font-weight: 700; color: var(--c-red); font-size: 56px; line-height: 1; letter-spacing: 4px; }
.treat-dpanel__title { margin: 18px 0 0; color: #3b3b3b; font-weight: 700; font-size: 26px; line-height: 1.4; letter-spacing: 2px; }
.treat-dpanel__sub { margin: 14px 0 0; color: #3b3b3b; font-weight: 500; font-size: 16px; line-height: 1.7; letter-spacing: 1px; }
.treat-dpanel__media { border-radius: 4px; overflow: hidden; aspect-ratio: 456 / 305; background: #e6dedb; }
.treat-dpanel__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.treat-dpanel__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 56px; }
.treat-dpanel__label { display: inline-flex; align-items: center; justify-content: center; min-width: 144px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--c-red); border-radius: 5px; color: var(--c-red); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-align: center; }
.treat-dpanel__label.is-accent { background: var(--c-pink); border-color: var(--c-pink); color: #fff; }
.treat-dpanel__text { margin: 20px 0 0; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 2; letter-spacing: .5px; }

/* ---------- Banner（ハイライト帯：歯内療法） ---------- */
.treat-section--banner { padding: 30px 0; }
.treat-banner { position: relative; min-height: 397px; background: transparent; border-radius: 0; padding: 0 300px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.treat-banner__pic { position: absolute; object-fit: cover; border-radius: 8px; }
.treat-banner__pic--tr { top: 0; right: 0; width: 278px; height: 154px; }
.treat-banner__pic--bl { bottom: 0; left: 0; width: 260px; height: 154px; }
.treat-banner__title { position: relative; z-index: 1; margin: 0; color: var(--c-brown); font-weight: 700; font-size: 30px; line-height: 1.7; letter-spacing: 1.4px; white-space: nowrap; }
.treat-banner__text { position: relative; z-index: 1; width: 647px; max-width: 100%; margin: 18px auto 0; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 1.7; letter-spacing: 1.4px; }

/* ---------- Flow（番号 + ステップ名 + 説明） ---------- */
.treat-flow-list { list-style: none; margin: 0; padding: 0; }
.treat-flow-row { display: grid; grid-template-columns: 56px 220px 1fr; align-items: center; gap: 0 24px; padding: 30px 0; border-bottom: 2px solid #d9c4bc; }
.treat-flow-row:first-child { padding-top: 0; }
/* 最後の行（メンテナンス等）も上の行と同様に下線を入れる */
.treat-flow-row__no { font-family: var(--ff-inter); font-weight: 700; color: var(--c-pink); font-size: 20px; letter-spacing: 2px; }
.treat-flow-row__ttl { color: var(--c-brown); font-weight: 700; font-size: 16px; letter-spacing: 1px; }
.treat-flow-row__text { margin: 0; color: var(--c-brown2); font-weight: 500; font-size: 15.5px; line-height: 1.85; letter-spacing: .6px; }

/* ---------- Risk（見出し + 画像） ---------- */
.treat-risk__media { border-radius: 8px; overflow: hidden; background: #ece6e3; }
.treat-risk__media img { width: 100%; height: auto; display: block; }

/* ---------- リスク・副作用：開閉アコーディオン（カンプ準拠） ---------- */
.treat-acc-list { display: flex; flex-direction: column; gap: 16px; }
.treat-acc { border: 1px solid #f0e4e1; border-radius: 10px; background: #fff; }
.treat-acc__sum { display: flex; align-items: center; gap: 16px; padding: 17px 22px; cursor: pointer; list-style: none; }
.treat-acc__sum::-webkit-details-marker { display: none; }
.treat-acc__no { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c-pink); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ff-josefin, sans-serif); }
.treat-acc__ttl { flex: 1 1 auto; color: var(--c-brown); font-weight: 700; font-size: 17px; line-height: 1.5; letter-spacing: .04em; }
.treat-acc__mark { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--c-pink); }
.treat-acc__mark::before, .treat-acc__mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; transform: translate(-50%,-50%); border-radius: 1px; }
.treat-acc__mark::before { width: 12px; height: 2.5px; }
.treat-acc__mark::after { width: 2.5px; height: 12px; }
.treat-acc[open] .treat-acc__mark::after { display: none; }
.treat-acc__body { padding: 2px 22px 22px 68px; }
.treat-acc__body p { margin: 0; color: var(--c-brown2); font-weight: 500; font-size: 16px; line-height: 1.85; letter-spacing: 1px; }
@media (max-width: 600px) {
  .treat-acc__sum { gap: 12px; padding: 14px 16px; }
  .treat-acc__ttl { font-size: 15px; }
  .treat-acc__body { padding: 2px 16px 18px 16px; }
}

/* Local typography tuning: design comp comparison showed body copy slightly small on desktop. */
@media (min-width: 821px) {
  .page-body[class*="treat--"] .treat-h__en,
  .page-body[class*="treat--"] .treat-hero__en {
    font-size: 16px;
  }

  .page-body[class*="treat--"] .treat-h__ja {
    font-size: 38px;
    line-height: 1.62;
  }

  .page-body[class*="treat--"] .treat-intro-text,
  .page-body[class*="treat--"] .treat-msg__text,
  .page-body[class*="treat--"] .treat-scard__text,
  .page-body[class*="treat--"] .treat-mcard__text,
  .page-body[class*="treat--"] .treat-pcard__text,
  .page-body[class*="treat--"] .treat-ncard__text,
  .page-body[class*="treat--"] .treat-ccard__text,
  .page-body[class*="treat--"] .treat-tagcards__intro,
  .page-body[class*="treat--"] .treat-tcard__text,
  .page-body[class*="treat--"] .treat-panel__text,
  .page-body[class*="treat--"] .treat-dpanel__text,
  .page-body[class*="treat--"] .treat-banner__text,
  .page-body[class*="treat--"] .treat-flow-row__text,
  .page-body[class*="treat--"] .treat-acc__body p {
    font-size: 17px;
  }

  .page-body[class*="treat--"] .treat-simple-heading,
  .page-body[class*="treat--"] .treat-scard__title,
  .page-body[class*="treat--"] .treat-mcard__title,
  .page-body[class*="treat--"] .treat-pcard__title,
  .page-body[class*="treat--"] .treat-ncard__title,
  .page-body[class*="treat--"] .treat-ccard__title,
  .page-body[class*="treat--"] .treat-tcard__title,
  .page-body[class*="treat--"] .treat-acc__ttl {
    font-size: 20px;
  }

  .page-body[class*="treat--"] .treat-checklist li,
  .page-body[class*="treat--"] .treat-flow-row__ttl,
  .page-body[class*="treat--"] .treat-dpanel__sub {
    font-size: 17.5px;
  }

  .page-body[class*="treat--"] .treat-msg__title,
  .page-body[class*="treat--"] .treat-dpanel__title {
    font-size: 28px;
  }

  .page-body[class*="treat--"] .treat-flow-row__no {
    font-size: 22px;
  }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 920px) {
  .treat-hero { aspect-ratio: auto; height: auto; min-height: 460px; }
  .treat-hero__inner { min-height: max(560px, calc(100svh - 80px)); padding: 32px 28px 64px; }
  .treat-hero__ttl { font-size: 36px; }
  .treat-hero__head { font-size: 21px; letter-spacing: 2px; }
  .treat-section { padding: 48px 0; }
  .treat-h__ja { font-size: 25px; }
  /* モバイルは固定幅を解除して流動レイアウトに戻す（br-pc は 820px 以下で非表示）。 */
  .treat-strength, .treat-strength.is-4, .treat-checklist, .treat-numcards, .treat-circlecards, .treat-tagcards { grid-template-columns: repeat(2, 1fr); }
  .treat-scard { width: auto; padding: 30px 24px 28px; }
  .treat-scard__text { width: auto; font-size: 16px; line-height: 1.85; letter-spacing: .6px; }
  .treat-photocards.is-3 { grid-template-columns: repeat(2, 1fr); }
  .treat-panel__rows, .treat-dpanel__rows { grid-template-columns: 1fr; }
  .treat-flow-row { grid-template-columns: 44px 1fr; grid-template-areas: "no ttl" "text text"; row-gap: 8px; }
  .treat-flow-row__no { grid-area: no; }
  .treat-flow-row__ttl { grid-area: ttl; }
  .treat-flow-row__text { grid-area: text; }
}

@media (max-width: 600px) {
  .treat-wrap { padding: 0 18px; }
  .treat-hero__inner { min-height: max(520px, calc(100svh - 72px)); padding: 32px 22px 52px; }
  .treat-hero__ttl { font-size: 27px; letter-spacing: 1px; }
  .treat-hero__head { font-size: 18px; letter-spacing: .5px; }
  .treat-hero__lead { font-size: 13.5px; line-height: 2; }
  .treat-h__ja { font-size: 20px; letter-spacing: 0; }
  .br-sp-heading { display: block; }
  /* カード見出し等の1文字孤立を防ぐ：字間を詰め・少し縮小＋行長を均等化（可読性は維持） */
  .treat-hero__head, .treat-h__ja, .treat-scard__title, .treat-mcard__title, .treat-msg__title, .treat-dpanel__sub { text-wrap: balance; }
  .treat-scard__title, .treat-mcard__title, .treat-msg__title, .treat-dpanel__sub { letter-spacing: 0; }
  .treat-scard__title { font-size: 16px; }
  .treat-msg__title { font-size: 21px; }
  .treat-strength, .treat-strength.is-4, .treat-checklist, .treat-numcards, .treat-circlecards, .treat-tagcards,
  .treat-photocards.is-2, .treat-photocards.is-3 { grid-template-columns: 1fr; }
  .treat-msg, .treat-msg__cards, .treat-panel__top, .treat-dpanel__top { grid-template-columns: 1fr; gap: 24px; }
  .treat-msg__cards { margin-top: 24px; } /* SPは重ねず通常の余白 */
  .treat-msg.is-tall { align-items: stretch; }
  .treat-msg.is-reverse .treat-msg__media { order: 0; }
  .treat-panel, .treat-dpanel { padding: 30px 22px; }
  .treat-dpanel__title { font-size: 22px; }
  /* バナー: SPは写真を上下に積む（絶対配置を解除） */
  .treat-banner { min-height: 0; padding: 0; display: block; }
  .treat-banner__pic { position: static; width: 100%; height: auto; aspect-ratio: 327 / 173; display: block; margin: 0 auto; }
  .treat-banner__pic--tr { margin-bottom: 24px; }
  .treat-banner__pic--bl { margin-top: 24px; }
  .treat-banner__title { font-size: 22px; }
  .treat-banner__text { width: auto; }
}

/* PC最終補正: 1920px以上でもページ別の固定左寄せを解除し、カンプ幅のまま中央に置く。 */
@media (min-width: 821px) {
  .page-body[class*="treat--"] {
    overflow-x: clip;
  }

  .page-body[class*="treat--"] .treat-wrap,
  .page-body[class*="treat--"] .treat-hero + .treat-section .treat-wrap,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n) .treat-wrap {
    margin-left: auto;
    margin-right: auto;
  }

  .treat--pediatric .treat-hero + .treat-section .treat-wrap {
    width: min(1158px, calc(100% - 96px));
  }

  .page-body[class*="treat--"] .treat-scard,
  .page-body[class*="treat--"] .treat-mcard,
  .page-body[class*="treat--"] .treat-ncard,
  .page-body[class*="treat--"] .treat-pcard,
  .page-body[class*="treat--"] .treat-tcard,
  .page-body[class*="treat--"] .treat-ccard {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .treat--pediatric .treat-scard,
  .treat--endodontics .treat-scard {
    height: auto;
    min-height: 281px;
    padding-bottom: 26px;
  }

  .treat--endodontics .treat-strength--num .treat-scard {
    height: auto;
    min-height: 300px;
  }
}

/* Tablet最終補正: ページ別のPC固定幅を解除し、1024px前後でも中央に収める。 */
@media (min-width: 821px) and (max-width: 1180px) {
  .page-body[class*="treat--"] {
    overflow-x: hidden;
  }

  .page-body[class*="treat--"] .treat-wrap,
  .page-body[class*="treat--"] .treat-hero + .treat-section .treat-wrap,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n) .treat-wrap {
    width: auto;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 28px;
    padding-right: 28px;
  }

  .page-body[class*="treat--"] .treat-msg,
  .page-body[class*="treat--"] .treat-msg.is-tall,
  .page-body[class*="treat--"] .treat-msg.is-reverse,
  .page-body[class*="treat--"] .treat-panel__top,
  .page-body[class*="treat--"] .treat-dpanel__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-body[class*="treat--"] .treat-msg.is-reverse .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media {
    order: 0;
  }

  .page-body[class*="treat--"] .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media,
  .page-body[class*="treat--"] .treat-panel__media,
  .page-body[class*="treat--"] .treat-dpanel__media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .page-body[class*="treat--"] .treat-msg__cards,
  .page-body[class*="treat--"] .treat-strength,
  .page-body[class*="treat--"] .treat-strength.is-4,
  .page-body[class*="treat--"] .treat-strength--q,
  .page-body[class*="treat--"] .treat-checklist,
  .page-body[class*="treat--"] .treat-photocards,
  .page-body[class*="treat--"] .treat-photocards.is-2,
  .page-body[class*="treat--"] .treat-photocards.is-3,
  .page-body[class*="treat--"] .treat-numcards,
  .page-body[class*="treat--"] .treat-circlecards,
  .page-body[class*="treat--"] .treat-tagcards,
  .page-body[class*="treat--"] .treat-panel__rows,
  .page-body[class*="treat--"] .treat-dpanel__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 24px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-body[class*="treat--"] .treat-msg__cards {
    margin-top: 24px;
  }

  .page-body[class*="treat--"] .treat-section,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n),
  .page-body[class*="treat--"] .treat-section:last-of-type {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 76px !important;
    padding-bottom: 76px !important;
  }

  .page-body[class*="treat--"] .treat-hero + .treat-section {
    padding-top: 82px !important;
  }

  .page-body[class*="treat--"] .treat-mcard,
  .page-body[class*="treat--"] .treat-scard,
  .page-body[class*="treat--"] .treat-pcard,
  .page-body[class*="treat--"] .treat-panel,
  .page-body[class*="treat--"] .treat-dpanel,
  .page-body[class*="treat--"] .treat-ncard,
  .page-body[class*="treat--"] .treat-tcard,
  .page-body[class*="treat--"] .treat-ccard {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }

  .page-body[class*="treat--"] .treat-flow-row {
    grid-template-columns: 44px minmax(160px, 220px) minmax(0, 1fr);
    gap: 0 18px;
  }
}

/* SP〜iPad縦幅: 820px以下もページ別固定幅を解除する。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] {
    overflow-x: hidden;
  }

  .page-body[class*="treat--"] .treat-wrap,
  .page-body[class*="treat--"] .treat-hero + .treat-section .treat-wrap,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n) .treat-wrap {
    width: auto;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-body[class*="treat--"] .treat-msg,
  .page-body[class*="treat--"] .treat-msg.is-tall,
  .page-body[class*="treat--"] .treat-msg.is-reverse,
  .page-body[class*="treat--"] .treat-panel__top,
  .page-body[class*="treat--"] .treat-dpanel__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-body[class*="treat--"] .treat-msg.is-reverse .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media {
    order: 0;
  }

  .page-body[class*="treat--"] .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media,
  .page-body[class*="treat--"] .treat-panel__media,
  .page-body[class*="treat--"] .treat-dpanel__media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .page-body[class*="treat--"] .treat-msg__cards,
  .page-body[class*="treat--"] .treat-strength,
  .page-body[class*="treat--"] .treat-strength.is-4,
  .page-body[class*="treat--"] .treat-strength--q,
  .page-body[class*="treat--"] .treat-checklist,
  .page-body[class*="treat--"] .treat-photocards,
  .page-body[class*="treat--"] .treat-photocards.is-2,
  .page-body[class*="treat--"] .treat-photocards.is-3,
  .page-body[class*="treat--"] .treat-numcards,
  .page-body[class*="treat--"] .treat-circlecards,
  .page-body[class*="treat--"] .treat-tagcards,
  .page-body[class*="treat--"] .treat-panel__rows,
  .page-body[class*="treat--"] .treat-dpanel__rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-body[class*="treat--"] .treat-msg__cards {
    margin-top: 24px;
  }

  .page-body[class*="treat--"] .treat-mcard,
  .page-body[class*="treat--"] .treat-scard,
  .page-body[class*="treat--"] .treat-pcard,
  .page-body[class*="treat--"] .treat-panel,
  .page-body[class*="treat--"] .treat-dpanel,
  .page-body[class*="treat--"] .treat-ncard,
  .page-body[class*="treat--"] .treat-tcard,
  .page-body[class*="treat--"] .treat-ccard {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }

  .page-body[class*="treat--"] .treat-scard__text,
  .page-body[class*="treat--"] .treat-flow-row__text,
  .page-body[class*="treat--"] .treat-dpanel__text,
  .page-body[class*="treat--"] .treat-panel__text,
  .page-body[class*="treat--"] .treat-pcard__text,
  .page-body[class*="treat--"] .treat-mcard__text,
  .page-body[class*="treat--"] .treat-ncard__text {
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .page-body[class*="treat--"] .treat-flow-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

/* SP最終補正: ページ別のPC固定幅指定をスマホ幅では必ず解除する。 */
@media (max-width: 600px) {
  .page-body[class*="treat--"] {
    overflow-x: hidden;
  }

  .page-body[class*="treat--"] .treat-wrap,
  .page-body[class*="treat--"] .treat-hero + .treat-section .treat-wrap,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n) .treat-wrap {
    width: auto;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
  }

  .page-body[class*="treat--"] .treat-msg,
  .page-body[class*="treat--"] .treat-msg.is-tall,
  .page-body[class*="treat--"] .treat-msg.is-reverse,
  .page-body[class*="treat--"] .treat-panel__top,
  .page-body[class*="treat--"] .treat-dpanel__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .page-body[class*="treat--"] .treat-msg.is-reverse .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media {
    order: 0;
  }

  .page-body[class*="treat--"] .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media,
  .page-body[class*="treat--"] .treat-panel__media,
  .page-body[class*="treat--"] .treat-dpanel__media {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
  }

  .page-body[class*="treat--"] .treat-msg__cards,
  .page-body[class*="treat--"] .treat-strength,
  .page-body[class*="treat--"] .treat-strength.is-4,
  .page-body[class*="treat--"] .treat-strength--q,
  .page-body[class*="treat--"] .treat-checklist,
  .page-body[class*="treat--"] .treat-photocards,
  .page-body[class*="treat--"] .treat-photocards.is-2,
  .page-body[class*="treat--"] .treat-photocards.is-3,
  .page-body[class*="treat--"] .treat-numcards,
  .page-body[class*="treat--"] .treat-circlecards,
  .page-body[class*="treat--"] .treat-tagcards,
  .page-body[class*="treat--"] .treat-panel__rows,
  .page-body[class*="treat--"] .treat-dpanel__rows {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-body[class*="treat--"] .treat-msg__cards {
    margin-top: 24px;
  }

  .page-body[class*="treat--"] .treat-mcard,
  .page-body[class*="treat--"] .treat-scard,
  .page-body[class*="treat--"] .treat-pcard,
  .page-body[class*="treat--"] .treat-panel,
  .page-body[class*="treat--"] .treat-dpanel,
  .page-body[class*="treat--"] .treat-ncard,
  .page-body[class*="treat--"] .treat-tcard,
  .page-body[class*="treat--"] .treat-ccard {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }

  .page-body[class*="treat--"] .treat-scard__text,
  .page-body[class*="treat--"] .treat-flow-row__text,
  .page-body[class*="treat--"] .treat-dpanel__text,
  .page-body[class*="treat--"] .treat-panel__text,
  .page-body[class*="treat--"] .treat-pcard__text,
  .page-body[class*="treat--"] .treat-mcard__text,
  .page-body[class*="treat--"] .treat-ncard__text {
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .page-body[class*="treat--"] .treat-flow-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .page-body[class*="treat--"] .treat-banner {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/* SP安定化: ページ別PC実寸指定がスマホで残って重なり・巨大余白になる箇所を最後に統一解除する。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero {
    display: block;
    min-height: 0 !important;
    height: auto !important;
    background-position: center top !important;
    background-size: auto 430px !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(252,146,145,0) 0,
      rgba(252,146,145,.04) 118px,
      rgba(252,146,145,.22) 205px,
      rgba(252,146,145,.62) 315px,
      rgba(252,146,145,.92) 415px,
      #fc9291 500px,
      #fc9291 100%
    ) !important;
  }

  .page-body[class*="treat--"] .treat-hero::after {
    top: 348px !important;
    bottom: 0;
    opacity: .2 !important;
    mix-blend-mode: soft-light;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.28) 44px, rgba(0,0,0,.82) 124px, #000 210px) !important;
    mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.28) 44px, rgba(0,0,0,.82) 124px, #000 210px) !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    min-height: 310px !important;
    padding: 92px 24px 42px !important;
  }

  .page-body[class*="treat--"] .treat-hero__crumb {
    margin-bottom: 14px;
    font-size: 9px;
    line-height: 1.8;
    letter-spacing: .12em;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    font-size: 34px;
    letter-spacing: .04em;
  }

  .page-body[class*="treat--"] .treat-hero__concept {
    padding: 44px 20px 58px !important;
  }

  .page-body[class*="treat--"] .treat-hero__en {
    font-size: 12px;
    letter-spacing: .1em;
  }

  .page-body[class*="treat--"] .treat-hero__head {
    margin-top: 24px;
    max-width: 330px;
    font-size: 18px;
    line-height: 1.95;
    letter-spacing: .08em;
  }

  .page-body[class*="treat--"] .treat-hero__lead {
    margin-top: 22px;
    max-width: 340px;
    font-size: 12.5px;
    line-height: 2;
    letter-spacing: .08em;
  }

  .page-body[class*="treat--"] .treat-section,
  .treat--cavity .treat-section,
  .treat--periodontal .treat-section,
  .treat--implant .treat-section,
  .treat--dentures .treat-section,
  .treat--pediatric .treat-section,
  .treat--prevention .treat-section,
  .treat--endodontics .treat-section,
  .treat--aesthetic .treat-section,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n),
  .page-body[class*="treat--"] .treat-section:last-of-type {
    height: auto !important;
    min-height: 0 !important;
    padding: 52px 0 !important;
  }

  .page-body[class*="treat--"] .treat-hero + .treat-section {
    padding-top: 58px !important;
  }

  .page-body[class*="treat--"] .treat-wrap,
  .page-body[class*="treat--"] .treat-hero + .treat-section .treat-wrap,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n) .treat-wrap {
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .page-body[class*="treat--"] .treat-h {
    margin-bottom: 26px !important;
  }

  .page-body[class*="treat--"] .treat-h__en {
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: .1em !important;
  }

  .page-body[class*="treat--"] .treat-h__ja,
  .page-body[class*="treat--"] .treat-simple-heading {
    margin-top: 10px !important;
    font-size: 24px !important;
    line-height: 1.55 !important;
    letter-spacing: .04em !important;
  }

  .page-body[class*="treat--"] .treat-intro-text,
  .page-body[class*="treat--"] .treat-tagcards__intro {
    margin: 18px auto 28px !important;
    max-width: 100% !important;
    text-align: left;
    font-size: 14px !important;
    line-height: 1.9 !important;
    letter-spacing: .04em !important;
  }

  .page-body[class*="treat--"] .treat-msg,
  .page-body[class*="treat--"] .treat-msg.is-tall,
  .page-body[class*="treat--"] .treat-msg.is-reverse,
  .page-body[class*="treat--"] .treat-panel__top,
  .page-body[class*="treat--"] .treat-dpanel__top {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }

  .page-body[class*="treat--"] .treat-msg.is-reverse .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media {
    order: 0 !important;
  }

  .page-body.treat.treat--prevention .treat-msg.is-reverse .treat-msg__body {
    order: 1 !important;
  }

  .page-body.treat.treat--prevention .treat-msg.is-reverse .treat-msg__media {
    order: 2 !important;
  }

  .page-body[class*="treat--"] .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media,
  .page-body[class*="treat--"] .treat-panel__media,
  .page-body[class*="treat--"] .treat-dpanel__media {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 11 !important;
  }

  .page-body[class*="treat--"] .treat-msg__title,
  .treat--orthodontics .treat-msg.is-reverse .treat-msg__title {
    margin-top: 10px !important;
    font-size: 22px !important;
    line-height: 1.65 !important;
    letter-spacing: .04em !important;
  }

  .page-body[class*="treat--"] .treat-msg__text {
    margin-top: 16px !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
    letter-spacing: .04em !important;
  }

  .page-body[class*="treat--"] .treat-strength,
  .page-body[class*="treat--"] .treat-strength.is-4,
  .page-body[class*="treat--"] .treat-strength--q,
  .page-body[class*="treat--"] .treat-checklist,
  .page-body[class*="treat--"] .treat-photocards,
  .page-body[class*="treat--"] .treat-photocards.is-2,
  .page-body[class*="treat--"] .treat-photocards.is-3,
  .page-body[class*="treat--"] .treat-numcards,
  .page-body[class*="treat--"] .treat-circlecards,
  .page-body[class*="treat--"] .treat-tagcards,
  .page-body[class*="treat--"] .treat-panel__rows,
  .page-body[class*="treat--"] .treat-dpanel__rows {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-body[class*="treat--"] .treat-scard,
  .page-body[class*="treat--"] .treat-mcard,
  .page-body[class*="treat--"] .treat-pcard,
  .page-body[class*="treat--"] .treat-panel,
  .page-body[class*="treat--"] .treat-dpanel,
  .page-body[class*="treat--"] .treat-ncard,
  .page-body[class*="treat--"] .treat-tcard,
  .page-body[class*="treat--"] .treat-ccard {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .page-body[class*="treat--"] .treat-scard {
    padding: 28px 22px !important;
    border-radius: 8px !important;
  }

  .page-body[class*="treat--"] .treat-scard__icon {
    margin: 0 0 16px !important;
  }

  .page-body[class*="treat--"] .treat-scard__title,
  .page-body[class*="treat--"] .treat-mcard__title,
  .page-body[class*="treat--"] .treat-pcard__title,
  .page-body[class*="treat--"] .treat-ncard__title,
  .page-body[class*="treat--"] .treat-tcard__title,
  .page-body[class*="treat--"] .treat-ccard__title {
    min-height: 0 !important;
    margin-top: 0 !important;
    font-size: 17px !important;
    line-height: 1.55 !important;
    letter-spacing: .04em !important;
  }

  .page-body[class*="treat--"] .treat-scard__text,
  .page-body[class*="treat--"] .treat-mcard__text,
  .page-body[class*="treat--"] .treat-pcard__text,
  .page-body[class*="treat--"] .treat-ncard__text,
  .page-body[class*="treat--"] .treat-tcard__text,
  .page-body[class*="treat--"] .treat-ccard__text,
  .page-body[class*="treat--"] .treat-panel__text,
  .page-body[class*="treat--"] .treat-dpanel__text {
    width: auto !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    letter-spacing: .04em !important;
  }

  .page-body[class*="treat--"] .treat-flow-row {
    min-height: 0 !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-areas: "no ttl" "text text" !important;
    gap: 8px 14px !important;
    padding: 22px 0 !important;
  }

  .page-body[class*="treat--"] .treat-flow-row__no {
    grid-area: no !important;
    align-self: start !important;
    line-height: 1.2 !important;
  }

  .page-body[class*="treat--"] .treat-flow-row__ttl {
    grid-area: ttl !important;
    align-self: start !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .page-body[class*="treat--"] .treat-flow-row__text {
    grid-area: text !important;
    width: auto !important;
    align-self: start !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    letter-spacing: .04em !important;
  }

  .page-body[class*="treat--"] .treat-msg__cards,
  .treat--pediatric .treat-msg__cards {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-top: 22px !important;
  }

  .page-body[class*="treat--"] .treat-photo-strip {
    max-width: none !important;
  }

  .page-body[class*="treat--"] .treat-photo-strip__media,
  .treat--orthodontics .treat-photo-strip__media {
    width: 100vw !important;
    height: auto !important;
    margin: 28px calc(50% - 50vw) 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .page-body[class*="treat--"] .treat-photo-strip__item {
    aspect-ratio: 4 / 3;
  }

  .treat--orthodontics .treat-photo-strip__item:first-child img {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
  }

  .page-body[class*="treat--"] .treat-banner {
    min-height: 0 !important;
    padding: 0 !important;
  }

  .page-body[class*="treat--"] .treat-banner__pic {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 auto 20px !important;
  }

  .page-body[class*="treat--"] .treat-banner__pic--bl {
    margin: 20px auto 0 !important;
  }

  .page-body[class*="treat--"] .treat-banner__title {
    white-space: normal !important;
    font-size: 22px !important;
    line-height: 1.6 !important;
  }

  .page-body[class*="treat--"] .treat-banner__text {
    width: auto !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
  }

  .page-body[class*="treat--"] .treat-tagcards__avatar {
    margin: 0 0 18px !important;
  }

  .page-body[class*="treat--"] .treat-tagcards__avatar img {
    width: 150px !important;
    height: 150px !important;
  }

  .treat--pediatric .treat-msg.is-tall .treat-msg__body {
    width: auto !important;
    max-width: 100% !important;
    padding-top: 0 !important;
  }

  .treat--pediatric .treat-msg.is-tall .treat-msg__title,
  .treat--pediatric .treat-msg.is-tall .treat-msg__text {
    max-width: 100% !important;
  }
}

@media (max-width: 820px) {
  .treat--orthodontics .treat-strength.is-4 .treat-scard,
  .treat--orthodontics .treat-strength--q .treat-scard {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: center !important;
  }

  .treat--orthodontics .treat-strength.is-4 .treat-scard__icon,
  .treat--orthodontics .treat-strength--q .treat-scard__icon {
    margin: 0 !important;
  }

  .treat--orthodontics .treat-strength.is-4 .treat-scard__title,
  .treat--orthodontics .treat-strength--q .treat-scard__title {
    margin: 0 !important;
    align-self: center !important;
  }

  .treat--orthodontics .treat-strength.is-4 .treat-scard__text,
  .treat--orthodontics .treat-strength--q .treat-scard__text {
    grid-column: 1 / -1 !important;
  }

  .treat--orthodontics .treat-strength--num .treat-scard {
    padding-top: 58px !important;
    overflow: visible !important;
  }

  .treat--orthodontics .treat-strength--num .treat-scard__icon {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  .treat--orthodontics .treat-strength--num .treat-scard__title {
    margin-top: 0 !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .page-body[class*="treat--"] .treat-hero__inner {
    min-height: 282px !important;
    padding: 82px 20px 34px !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept {
    padding: 38px 18px 52px !important;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    font-size: 31px;
  }

  .page-body[class*="treat--"] .treat-hero__head {
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: .06em;
  }

  .page-body[class*="treat--"] .treat-hero__lead {
    font-size: 12px;
    line-height: 1.95;
  }
}

@media (max-width: 820px) {
  .treat--endodontics .treat-section--banner {
    padding-top: 0 !important;
  }
}

/* SPレビュー反映: 初期表示は写真全面 + 左下パンくず/ページ名のみ。Conceptは次セクション扱い。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    background-position: var(--treat-hero-position, center center) !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-color: #fc9291 !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    background: linear-gradient(
      to bottom,
      rgba(73, 50, 21, 0) 0%,
      rgba(73, 50, 21, .08) 52%,
      rgba(252, 146, 145, .36) 100%
    ) !important;
  }

  .page-body[class*="treat--"] .treat-hero::after {
    top: calc(100vh - 60px) !important;
    top: calc(100svh - 60px) !important;
    bottom: 0 !important;
    opacity: .22 !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    padding: 0 24px 58px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
  }

  .page-body[class*="treat--"] .treat-hero__crumb {
    margin: 0 0 16px !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.8 !important;
    letter-spacing: .14em !important;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    margin: 0 !important;
    color: #fff !important;
    font-size: 34px !important;
    line-height: 1.25 !important;
    letter-spacing: .06em !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept {
    position: relative !important;
    z-index: 2 !important;
    min-height: 0 !important;
    padding: 58px 20px 70px !important;
    background: #fc9291 !important;
  }
}

/* SPレビュー反映: 強み/メリット系カードはアイコンと見出しを同じ行に置く。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: center !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__icon {
    margin: 0 !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__title {
    margin: 0 !important;
    align-self: center !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__text {
    grid-column: 1 / -1 !important;
  }
}

/* SPレビュー反映: 入れ歯の種類カードは下詰まりを避け、本文下の余白を確保する。 */
@media (max-width: 820px) {
  .treat--dentures .treat-dpanel {
    padding: 34px 24px 42px !important;
  }

  .treat--dentures .treat-dpanel__top {
    gap: 26px !important;
  }

  .treat--dentures .treat-dpanel__rows {
    gap: 28px !important;
    margin-top: 34px !important;
  }

  .treat--dentures .treat-dpanel__row {
    padding-bottom: 4px !important;
  }

  .treat--dentures .treat-dpanel__label {
    min-width: 132px !important;
    min-height: 42px !important;
    margin-bottom: 14px !important;
  }

  .treat--dentures .treat-dpanel__text {
    margin-top: 0 !important;
    line-height: 2 !important;
  }
}

/* SPレビュー反映: 歯内療法の天然歯バナーは上の白余白をなくす。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"].treat--endodontics .treat-section.treat-section--banner:nth-of-type(n) {
    padding-top: 0 !important;
  }

  .page-body[class*="treat--"].treat--endodontics .treat-section--banner .treat-banner__pic--tr {
    margin-bottom: 0 !important;
  }

  .page-body[class*="treat--"].treat--endodontics .treat-section--banner .treat-banner__pic--bl {
    margin-top: 0 !important;
  }
}

/* レビュー反映: 診療科FVのパンくず/タイトルを下げて大きめにし、写真上でも読みやすくする。 */
@media (min-width: 821px) {
  .page-body[class*="treat--"] .treat-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(252,146,145,0) 30%,
      rgba(252,146,145,.24) 45%,
      rgba(252,146,145,.76) 58%,
      #fc9291 70%,
      #fc9291 100%
    ) !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    padding-bottom: 72px !important;
  }

  .page-body[class*="treat--"] .treat-hero__crumb {
    color: #fff !important;
    font-size: 12px !important;
    line-height: 2 !important;
    text-shadow: 0 1px 12px rgba(0,0,0,.28) !important;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    font-size: 54px !important;
    line-height: 1.12 !important;
  }
}

@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(73, 50, 21, 0) 0%,
      rgba(73, 50, 21, .08) 40%,
      rgba(252, 146, 145, .5) 72%,
      rgba(252, 146, 145, .82) 100%
    ) !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    padding: 0 24px 42px !important;
  }

  .page-body[class*="treat--"] .treat-hero__crumb {
    margin-bottom: 14px !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
    text-shadow: 0 1px 12px rgba(0,0,0,.3) !important;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    font-size: 38px !important;
    line-height: 1.22 !important;
  }
}

/* レビュー反映: 矯正治療メリットの番号は 01/02/03 をカード上端に乗せる。 */
.treat--orthodontics .treat-strength--num .treat-scard {
  position: relative !important;
  overflow: visible !important;
  padding-top: 58px !important;
  text-align: center !important;
}

.treat--orthodontics .treat-strength--num .treat-scard__icon {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  font-size: 16px !important;
  letter-spacing: 0 !important;
}

.treat--orthodontics .treat-strength--num .treat-scard__title {
  margin-top: 0 !important;
  min-height: 0 !important;
  text-align: center !important;
}

.treat--orthodontics .treat-strength--num .treat-scard__text {
  text-align: left !important;
}

/* レビュー反映: FVタイトルをグラデーション帯に少し重ね、各カードの改行と余白を調整。 */
@media (min-width: 821px) {
  .page-body[class*="treat--"] .treat-hero__inner {
    padding-bottom: 48px !important;
  }
}

@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero__inner {
    padding-bottom: 32px !important;
  }
}

.treat--dentures .treat-dpanel__label {
  gap: 10px !important;
}

.treat--dentures .treat-dpanel__label::before {
  content: "";
  flex: none;
  width: 13px;
  height: 8px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}

.treat--endodontics .treat-strength--num .treat-scard__icon {
  width: 46px !important;
  height: 46px !important;
  font-size: 18px !important;
}

.treat--orthodontics .treat-strength--num .treat-scard {
  padding-top: 66px !important;
}

.treat--orthodontics .treat-strength--num .treat-scard__icon {
  width: 52px !important;
  height: 52px !important;
  font-size: 20px !important;
}

.treat--orthodontics .treat-strength--q .treat-scard {
  align-items: start !important;
  align-content: start !important;
  row-gap: 22px !important;
  padding-top: 34px !important;
}

.treat--orthodontics .treat-strength--q .treat-scard__icon {
  margin-top: 0 !important;
}

.treat--orthodontics .treat-strength--q .treat-scard__title {
  align-self: start !important;
  padding-top: 2px !important;
  line-height: 1.55 !important;
}

.treat--orthodontics .treat-strength--q .treat-scard__text {
  margin-top: 0 !important;
}

.treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__title {
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.treat--pediatric .treat-panel__head {
  text-align: center !important;
}

.treat--prevention .treat-section:nth-of-type(2) .treat-scard {
  height: 304px !important;
  padding-bottom: 32px !important;
}

.treat--prevention .treat-section:nth-of-type(2) {
  height: 556px !important;
}

.treat--prevention .treat-section:nth-of-type(8) .treat-ccard__text {
  text-align: center !important;
  line-height: 1.9 !important;
}

.page-body[class*="treat--"] .treat-hero__en {
  font-size: 20px !important;
}

.page-body[class*="treat--"] .treat-hero__head {
  font-size: 33px !important;
  line-height: 1.62 !important;
}

.treat--pediatric .treat-panel__top {
  align-items: center !important;
}

.treat--pediatric .treat-panel__head {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 305px !important;
}

.treat--prevention .treat-section:nth-of-type(3) {
  height: 592px !important;
}

.treat--prevention .treat-section:nth-of-type(3) .treat-h {
  margin-bottom: 58px !important;
}

.treat--prevention .treat-section:nth-of-type(4),
.treat--prevention .treat-section:nth-of-type(5) {
  height: auto !important;
  min-height: 590px !important;
}

.treat--prevention .treat-section:nth-of-type(4) .treat-msg__media,
.treat--prevention .treat-section:nth-of-type(5) .treat-msg__media {
  aspect-ratio: 500 / 360 !important;
  background: #fff !important;
}

.treat--prevention .treat-section:nth-of-type(4) .treat-msg__media img,
.treat--prevention .treat-section:nth-of-type(5) .treat-msg__media img {
  object-fit: contain !important;
}

@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-h__ja br.br-pc,
  .page-body[class*="treat--"] .treat-ccard__text br.br-pc {
    display: block !important;
  }

  .treat--pediatric .treat-section:nth-of-type(3) .treat-scard:nth-child(2) .treat-scard__title br.br-pc,
  .treat--orthodontics .treat-section:nth-of-type(8) .treat-scard:nth-child(2) .treat-scard__title br.br-pc {
    display: block !important;
  }

  .page-body[class*="treat--"] .treat-hero__en {
    font-size: 17px !important;
  }

  .page-body[class*="treat--"] .treat-hero__head {
    font-size: 22px !important;
    line-height: 1.82 !important;
  }

  .page-body[class*="treat--"] .treat-flow-row__text br.br-pc {
    display: block !important;
  }

  .treat--pediatric .treat-panel__head {
    min-height: 0 !important;
  }

  .treat--prevention .treat-section:nth-of-type(3) {
    height: auto !important;
    padding-bottom: 58px !important;
  }

  .treat--prevention .treat-section:nth-of-type(3) .treat-h {
    margin-bottom: 34px !important;
  }

  .treat--prevention .treat-section:nth-of-type(4),
  .treat--prevention .treat-section:nth-of-type(5) {
    min-height: 0 !important;
  }

  .treat--prevention .treat-section:nth-of-type(4) .treat-msg__media,
  .treat--prevention .treat-section:nth-of-type(5) .treat-msg__media {
    aspect-ratio: 500 / 370 !important;
  }

  .treat--orthodontics .treat-strength--q .treat-scard {
    align-items: start !important;
    row-gap: 18px !important;
    padding-top: 28px !important;
  }

  .treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__title {
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__icon {
    width: 34px !important;
    height: 34px !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__title {
    font-size: 15.5px !important;
    letter-spacing: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .treat--pediatric .treat-panel__head,
  .treat--prevention .treat-section:nth-of-type(8) .treat-ccard__text {
    text-align: center !important;
  }
}

/* 矯正治療: 強制装置の種類と特徴はチェックマーク直後に見出しを置く。 */
.treat--orthodontics .treat-section:nth-of-type(8) .treat-scard {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  grid-template-areas:
    "icon title"
    "text text" !important;
  column-gap: 6px !important;
  align-items: center !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  text-align: left !important;
}

.treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__icon {
  grid-area: icon !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
}

.treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__title {
  grid-area: title !important;
  min-height: 0 !important;
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-wrap: nowrap !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
}

.treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__text {
  grid-area: text !important;
}

@media (max-width: 820px) {
  .treat--orthodontics .treat-section:nth-of-type(8) .treat-scard {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    column-gap: 4px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__icon {
    width: 28px !important;
    height: 28px !important;
  }

  .treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__title {
    font-size: 13px !important;
  }
}

.page-body.treat--orthodontics .treat-section:nth-of-type(8) .treat-strength:not(.treat-strength--num) .treat-scard__title {
  font-size: 12.5px !important;
  text-wrap: nowrap !important;
  white-space: nowrap !important;
}

@media (max-width: 820px) {
  .page-body.treat--orthodontics .treat-section:nth-of-type(8) .treat-strength:not(.treat-strength--num) .treat-scard {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    column-gap: 4px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(8) .treat-strength:not(.treat-strength--num) .treat-scard__icon {
    width: 28px !important;
    height: 28px !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(8) .treat-strength:not(.treat-strength--num) .treat-scard__title {
    font-size: 13px !important;
  }
}

/* SP最終調整: 初期表示は写真+左下タイトルに統一し、Conceptは下へ流さない。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    height: auto !important;
    background-size: cover !important;
    background-position: var(--treat-hero-sp-position, center center) !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 42%, rgba(252,146,145,.55) 70%, rgba(252,146,145,.94) 100%),
      linear-gradient(to right, rgba(73,50,21,.18), rgba(73,50,21,0) 62%) !important;
  }

  .page-body[class*="treat--"] .treat-hero::after,
  .page-body[class*="treat--"] .treat-hero__concept {
    display: none !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    padding: 0 22px 44px !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
  }

  .page-body[class*="treat--"] .treat-hero__crumb {
    max-width: 100% !important;
    margin: 0 0 13px !important;
    color: #fff !important;
    font-size: 10px !important;
    line-height: 1.7 !important;
    letter-spacing: .12em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    max-width: calc(100vw - 44px) !important;
    color: #fff !important;
    font-size: clamp(29px, 9vw, 38px) !important;
    line-height: 1.16 !important;
    letter-spacing: .04em !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    overflow: visible !important;
  }

  .page-body[class*="treat--"] .treat-msg__title br.br-pc,
  .page-body[class*="treat--"] .treat-mcard__title br.br-pc,
  .page-body[class*="treat--"] .treat-pcard__title br.br-pc,
  .page-body[class*="treat--"] .treat-ncard__title br.br-pc,
  .page-body[class*="treat--"] .treat-scard__title br.br-pc,
  .page-body[class*="treat--"] .treat-h__ja br.br-pc {
    display: block !important;
  }

  .page-body.treat--aesthetic .treat-hero__ttl,
  .page-body.treat--periodontal .treat-hero__ttl {
    font-size: clamp(25px, 7.4vw, 32px) !important;
  }

  .page-body.treat--orthodontics .treat-hero { --treat-hero-sp-position: 82% center; }
  .page-body.treat--cavity .treat-hero { --treat-hero-sp-position: 45% center; }
  .page-body.treat--periodontal .treat-hero { --treat-hero-sp-position: 48% center; }
  .page-body.treat--implant .treat-hero { --treat-hero-sp-position: 52% center; }
  .page-body.treat--dentures .treat-hero { --treat-hero-sp-position: 50% center; background-size: auto 88% !important; background-color: #fc9291 !important; }
  .page-body.treat--pediatric .treat-hero { --treat-hero-sp-position: 42% center; }
  .page-body.treat--prevention .treat-hero { --treat-hero-sp-position: 50% center; }
  .page-body.treat--endodontics .treat-hero { --treat-hero-sp-position: 47% center; }
  .page-body.treat--aesthetic .treat-hero { --treat-hero-sp-position: 47% center; }

  .page-body[class*="treat--"] .treat-section,
  .page-body[class*="treat--"] .treat-section:nth-of-type(n),
  .page-body[class*="treat--"] .treat-section:last-of-type {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }

  .page-body[class*="treat--"] .treat-section + .treat-section {
    padding-top: 64px !important;
  }

  .page-body[class*="treat--"] .treat-h {
    margin-bottom: 34px !important;
  }

  .page-body[class*="treat--"] .treat-h__ja,
  .page-body[class*="treat--"] .treat-simple-heading {
    font-size: 25px !important;
    line-height: 1.62 !important;
  }

  .page-body[class*="treat--"] .treat-msg__media,
  .page-body[class*="treat--"] .treat-msg.is-tall .treat-msg__media,
  .page-body[class*="treat--"] .treat-panel__media,
  .page-body[class*="treat--"] .treat-dpanel__media,
  .page-body[class*="treat--"] .treat-pcard__media {
    aspect-ratio: 4 / 3 !important;
  }

  .page-body[class*="treat--"] .treat-msg__media img,
  .page-body[class*="treat--"] .treat-panel__media img,
  .page-body[class*="treat--"] .treat-dpanel__media img,
  .page-body[class*="treat--"] .treat-pcard__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .page-body.treat--cavity .treat-msg__media,
  .page-body.treat--dentures .treat-msg__media,
  .page-body.treat--implant .treat-msg__media {
    aspect-ratio: 16 / 11 !important;
  }

  .page-body.treat--dentures .treat-dpanel__media,
  .page-body.treat--implant .treat-msg__media {
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-body[class*="treat--"] .treat-photocards {
    gap: 34px !important;
  }

  .page-body[class*="treat--"] .treat-pcard__title {
    margin-top: 22px !important;
  }

  .page-body[class*="treat--"] .treat-strength,
  .page-body[class*="treat--"] .treat-numcards,
  .page-body[class*="treat--"] .treat-strength--q {
    gap: 28px !important;
  }

  .page-body[class*="treat--"] .treat-scard {
    padding-top: 32px !important;
    padding-bottom: 34px !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    grid-template-areas:
      "icon title"
      "text text" !important;
    column-gap: 12px !important;
    row-gap: 18px !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__icon {
    grid-area: icon !important;
    margin: 0 !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__title {
    grid-area: title !important;
    align-self: center !important;
    margin: 0 !important;
    line-height: 1.55 !important;
  }

  .page-body[class*="treat--"] .treat-strength:not(.treat-strength--num) .treat-scard__text {
    grid-area: text !important;
  }

  .page-body.treat--orthodontics .treat-strength--num {
    gap: 34px !important;
  }

  .page-body.treat--orthodontics .treat-strength--num .treat-scard {
    padding-top: 54px !important;
  }

  .page-body.treat--orthodontics .treat-strength--num .treat-scard__icon,
  .page-body.treat--endodontics .treat-strength--num .treat-scard__icon {
    top: 0 !important;
    transform: translate(-50%, -50%) !important;
  }

  .page-body.treat--endodontics .treat-numcards {
    gap: 26px !important;
  }

  .page-body.treat--endodontics .treat-ncard {
    margin-bottom: 2px !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(2) {
    height: auto !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(2) .treat-scard {
    height: auto !important;
    padding-bottom: 26px !important;
  }

  .page-body.treat--pediatric .treat-panel__head {
    padding-bottom: 18px !important;
  }

  .page-body.treat--pediatric .treat-panel__top {
    gap: 28px !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(8) .treat-scard__title,
  .page-body.treat--orthodontics .treat-section:nth-of-type(8) .treat-strength:not(.treat-strength--num) .treat-scard__title {
    white-space: normal !important;
    text-wrap: auto !important;
    font-size: 13px !important;
    line-height: 1.48 !important;
  }
}

/* SP最終微調整: FV写真の主役が切れすぎない位置へ寄せる。 */
@media (max-width: 820px) {
  .page-body.treat--aesthetic .treat-hero {
    --treat-hero-sp-position: 78% center;
  }

  .page-body.treat--dentures .treat-hero {
    background-size: auto 70% !important;
    background-position: center 62px !important;
  }
}

/* SP画像サイズ調整: 前回の短めFVに戻し、上部写真が画面全高を占有しないようにする。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero {
    min-height: 0 !important;
    height: auto !important;
    background: #fc9291 !important;
    display: block !important;
  }

  .page-body[class*="treat--"] .treat-hero::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    height: 360px !important;
    z-index: 0 !important;
    background: var(--treat-hero, none) var(--treat-hero-sp-position, center center) / cover no-repeat !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    min-height: 360px !important;
    padding: 0 22px 34px !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    inset: 0 0 auto !important;
    height: 360px !important;
    z-index: 1 !important;
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.06) 36%, rgba(252,146,145,.48) 68%, rgba(252,146,145,.94) 100%),
      linear-gradient(to right, rgba(73,50,21,.16), rgba(73,50,21,0) 62%) !important;
  }

  .page-body[class*="treat--"] .treat-hero::after {
    display: block !important;
    top: 360px !important;
    bottom: 0 !important;
    z-index: 1 !important;
    opacity: .18 !important;
    mix-blend-mode: soft-light !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept {
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    padding: 40px 22px 52px !important;
    background: #fc9291 !important;
  }

  .page-body[class*="treat--"] .treat-hero__en {
    font-size: 13px !important;
    letter-spacing: .12em !important;
  }

  .page-body[class*="treat--"] .treat-hero__head {
    margin-top: 20px !important;
    font-size: 20px !important;
    line-height: 1.8 !important;
    letter-spacing: .08em !important;
  }

  .page-body[class*="treat--"] .treat-hero__lead {
    margin-top: 20px !important;
    font-size: 12.5px !important;
    line-height: 2 !important;
    letter-spacing: .07em !important;
  }

  .page-body.treat--dentures .treat-hero {
    background: #fc9291 !important;
  }
}

/* SP補正: FVタイトルが右端で切れないようにし、写真上のグラデーションを文字下まで濃くする。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero__overlay {
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 24%, rgba(252,146,145,.50) 54%, rgba(252,146,145,.88) 78%, #fc9291 100%),
      linear-gradient(to right, rgba(73,50,21,.18), rgba(73,50,21,0) 62%) !important;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    max-width: calc(100vw - 44px) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: clamp(27px, 8.25vw, 32px) !important;
    letter-spacing: .035em !important;
    text-shadow: 0 1px 12px rgba(73,50,21,.24) !important;
  }

  .page-body.treat--prevention .treat-hero__ttl,
  .page-body.treat--periodontal .treat-hero__ttl,
  .page-body.treat--aesthetic .treat-hero__ttl {
    font-size: clamp(24px, 7.15vw, 29px) !important;
    letter-spacing: .02em !important;
  }
}

/* SP最終補正: スタッフ紹介FVと同じく、画面幅に応じて画像が自然に追従する構成に寄せる。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero::before {
    height: 380px !important;
    background-size: cover !important;
    background-position: var(--treat-hero-sp-position, center center) !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    min-height: 380px !important;
    padding-bottom: 20px !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    height: 380px !important;
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 22%, rgba(252,146,145,.48) 52%, rgba(252,146,145,.84) 76%, #fc9291 100%),
      linear-gradient(to right, rgba(73,50,21,.16), rgba(73,50,21,0) 62%) !important;
  }

  .page-body[class*="treat--"] .treat-hero::after {
    top: 380px !important;
  }

  .page-body.treat--orthodontics .treat-hero::before,
  .page-body.treat--orthodontics .treat-hero__overlay {
    height: 400px !important;
  }

  .page-body.treat--orthodontics .treat-hero__inner {
    min-height: 400px !important;
  }

  .page-body.treat--orthodontics .treat-hero::after {
    top: 400px !important;
  }

  .page-body.treat--orthodontics .treat-hero { --treat-hero-sp-position: 80% center; }
  .page-body.treat--prevention .treat-hero { --treat-hero-sp-position: 50% center; }
  .page-body.treat--implant .treat-hero { --treat-hero-sp-position: 56% center; }
  .page-body.treat--aesthetic .treat-hero { --treat-hero-sp-position: 58% center; }
  .page-body.treat--dentures .treat-hero { --treat-hero-sp-position: 50% center; }
  .page-body.treat--periodontal .treat-hero { --treat-hero-sp-position: 48% center; }
  .page-body.treat--endodontics .treat-hero { --treat-hero-sp-position: 50% center; }

  .page-body.treat--implant .treat-h__ja,
  .page-body.treat--aesthetic .treat-h__ja,
  .page-body.treat--dentures .treat-h__ja,
  .page-body.treat--periodontal .treat-h__ja,
  .page-body.treat--endodontics .treat-h__ja {
    font-size: clamp(20px, 5.45vw, 24px) !important;
    line-height: 1.65 !important;
    letter-spacing: .035em !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-body.treat--implant .treat-h__ja br,
  .page-body.treat--aesthetic .treat-h__ja br,
  .page-body.treat--dentures .treat-h__ja br,
  .page-body.treat--periodontal .treat-h__ja br,
  .page-body.treat--endodontics .treat-h__ja br {
    display: block !important;
  }

  .page-body.treat--dentures .treat-dpanel__title {
    font-size: clamp(17px, 4.8vw, 21px) !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
  }

  .page-body.treat--dentures .treat-flow-row:first-child .treat-flow-row__text {
    font-size: clamp(11.8px, 3.15vw, 13px) !important;
    letter-spacing: 0 !important;
    line-height: 1.75 !important;
    white-space: nowrap !important;
  }

  .page-body.treat--dentures .treat-flow-row:first-child .treat-flow-row__text br {
    display: none !important;
  }

  .page-body.treat--endodontics .treat-numcards {
    margin-top: 16px !important;
    margin-bottom: 18px !important;
    gap: 32px !important;
  }

  .page-body.treat--endodontics .treat-section--banner {
    padding-top: 76px !important;
    padding-bottom: 76px !important;
  }

  .page-body.treat--endodontics .treat-banner__title {
    font-size: clamp(20px, 5.6vw, 25px) !important;
    line-height: 1.65 !important;
    letter-spacing: .035em !important;
    white-space: normal !important;
  }

  .page-body.treat--aesthetic .treat-h__ja,
  .page-body.treat--periodontal .treat-h__ja {
    font-size: clamp(17px, 4.55vw, 20px) !important;
    letter-spacing: .01em !important;
  }

  .page-body.treat--periodontal .treat-h__ja {
    font-size: clamp(20px, 5.45vw, 24px) !important;
    letter-spacing: .035em !important;
  }

  .page-body.treat--periodontal .treat-section:nth-of-type(2) .treat-h__ja {
    font-size: clamp(20px, 5.45vw, 24px) !important;
    letter-spacing: .035em !important;
  }

  .page-body.treat--aesthetic .treat-h__ja {
    font-size: clamp(20px, 5.45vw, 24px) !important;
    letter-spacing: .035em !important;
  }

  .page-body.treat--aesthetic .treat-section:nth-of-type(1) .treat-h__ja {
    font-size: clamp(17px, 4.55vw, 20px) !important;
    letter-spacing: .01em !important;
  }

  .page-body.treat--aesthetic .treat-hero + .treat-section .treat-h__ja {
    font-size: clamp(17px, 4.55vw, 20px) !important;
    letter-spacing: .01em !important;
  }
}

/* SP最終: 初期表示ではConceptを見せず、写真+グラデ+左下タイトルだけを1画面に収める。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero::before,
  .page-body[class*="treat--"] .treat-hero__overlay {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .page-body[class*="treat--"] .treat-hero::before {
    background-size: cover !important;
    background-position: var(--treat-hero-sp-position, center center) !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    padding: 0 22px 44px !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 28%, rgba(252,146,145,.34) 58%, rgba(252,146,145,.76) 82%, #fc9291 100%),
      linear-gradient(to right, rgba(73,50,21,.16), rgba(73,50,21,0) 62%) !important;
  }

  .page-body[class*="treat--"] .treat-hero::after {
    top: calc(100vh - 60px) !important;
    top: calc(100svh - 60px) !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept {
    padding-top: 58px !important;
  }

  .page-body.treat--endodontics .treat-hero__head {
    font-size: clamp(18px, 5vw, 22px) !important;
    letter-spacing: .04em !important;
    line-height: 1.9 !important;
    word-break: keep-all !important;
  }

  .page-body[class*="treat--"] .treat-hero__head {
    max-width: calc(100vw - 44px) !important;
    font-size: clamp(17px, 4.7vw, 20px) !important;
    line-height: 1.95 !important;
    letter-spacing: .035em !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-body.treat--orthodontics .treat-hero__head,
  .page-body.treat--implant .treat-hero__head,
  .page-body.treat--aesthetic .treat-hero__head,
  .page-body.treat--cavity .treat-hero__head,
  .page-body.treat--endodontics .treat-hero__head {
    font-size: clamp(15.5px, 4.1vw, 17px) !important;
    letter-spacing: .02em !important;
  }

  .page-body.treat--dentures .treat-hero__head {
    font-size: clamp(16.5px, 4.35vw, 18px) !important;
    letter-spacing: .025em !important;
  }

  .page-body[class*="treat--"] .treat-h__ja {
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-body.treat--periodontal .treat-hero + .treat-section .treat-h__ja {
    white-space: nowrap !important;
    font-size: clamp(18px, 4.8vw, 20px) !important;
    letter-spacing: .015em !important;
  }

  .page-body.treat--prevention .treat-hero + .treat-section .treat-h__ja {
    font-size: clamp(18px, 4.8vw, 20px) !important;
    letter-spacing: .015em !important;
  }

  .page-body.treat--orthodontics .treat-msg__title {
    font-size: clamp(17px, 4.55vw, 20px) !important;
    letter-spacing: .02em !important;
    line-height: 1.75 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }
}

/* 歯内療法: 「痛かった」をなくすための3つの工夫の番号をカード中央・上端に乗せる。 */
.page-body.treat--endodontics .treat-strength--num .treat-scard {
  position: relative !important;
  overflow: visible !important;
  padding-top: 44px !important;
  text-align: center !important;
}

.page-body.treat--endodontics .treat-strength--num .treat-scard__icon {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  margin: 0 !important;
  width: 52px !important;
  height: 52px !important;
  transform: translate(-50%, -52%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

.page-body.treat--endodontics .treat-strength--num .treat-scard__title {
  margin-top: 0 !important;
}

@media (max-width: 820px) {
  .page-body.treat--endodontics .treat-strength--num .treat-scard {
    padding-top: 42px !important;
  }
}

/* SP微調整: 見出しのはみ出し・孤立改行・カード下詰まりを抑える。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .br-sp-heading {
    display: block !important;
  }

  .page-body.treat--orthodontics .treat-hero + .treat-section .treat-strength:not(.treat-strength--num) .treat-scard {
    grid-template-columns: 30px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }

  .page-body.treat--orthodontics .treat-hero + .treat-section .treat-strength:not(.treat-strength--num) .treat-scard:nth-child(2) .treat-scard__title {
    font-size: clamp(11px, 3.2vw, 13px) !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .page-body.treat--pediatric .treat-panel {
    padding-bottom: 42px !important;
  }

  .page-body.treat--pediatric .treat-panel__rows {
    gap: 22px !important;
    margin-bottom: 4px !important;
  }

  .page-body.treat--pediatric .treat-panel__text {
    margin-bottom: 0 !important;
    line-height: 1.95 !important;
  }

  .page-body[class*="treat--"] .treat-hero__head {
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-wrap: balance !important;
  }

  .page-body.treat--orthodontics .treat-hero__head,
  .page-body.treat--implant .treat-hero__head,
  .page-body.treat--aesthetic .treat-hero__head,
  .page-body.treat--cavity .treat-hero__head,
  .page-body.treat--dentures .treat-hero__head,
  .page-body.treat--endodontics .treat-hero__head {
    font-size: clamp(14px, 3.75vw, 16px) !important;
    line-height: 2.05 !important;
    letter-spacing: .01em !important;
  }
}

@media (max-width: 374px) {
  .page-body.treat--orthodontics .treat-hero + .treat-section .treat-strength:not(.treat-strength--num) .treat-scard:nth-child(2) .treat-scard__title {
    font-size: 10.5px !important;
  }
}

/* PC微調整: むし歯予防・定期検診の「衛生士のご紹介」は固定高で次セクションに重ならないようにする。 */
@media (min-width: 821px) {
  .page-body.treat--prevention .treat-section:nth-of-type(2) {
    height: 640px !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(3) {
    padding-top: 26px !important;
    box-sizing: border-box !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(5) .treat-msg__title {
    max-width: 620px !important;
    font-size: 25px !important;
    line-height: 1.72 !important;
    letter-spacing: .06em !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(6) {
    height: auto !important;
    min-height: 926px !important;
    padding-bottom: 88px !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(6) .treat-wrap {
    min-height: 0 !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(6) .treat-tagcards {
    align-items: stretch !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(6) .treat-tcard {
    min-height: 190px !important;
  }
}

/* SP最終補正: Concept見出しの指定行数を守り、画面外にはみ出さないようにする。 */
@media (max-width: 820px) {
  .page-body.treat--prevention .treat-hero__head,
  .page-body.treat--periodontal .treat-hero__head {
    max-width: calc(100vw - 24px) !important;
    font-size: clamp(10px, 2.75vw, 12px) !important;
    line-height: 1.9 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-wrap: auto !important;
  }

  .page-body.treat--prevention .treat-hero__head br.br-pc,
  .page-body.treat--periodontal .treat-hero__head br.br-pc {
    display: none !important;
  }

  .page-body.treat--endodontics .treat-hero__head {
    max-width: calc(100vw - 24px) !important;
    font-size: clamp(11px, 3.2vw, 14px) !important;
    line-height: 2.05 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-wrap: auto !important;
  }

  .page-body.treat--endodontics .treat-hero__head br.br-pc {
    display: block !important;
  }
}

/* 最終補正 2026-06-16: レビュー指摘の余白・改行・SPはみ出しを局所調整。 */
@media (min-width: 821px) {
  .page-body.treat--orthodontics .treat-section:nth-of-type(5),
  .page-body.treat--orthodontics .treat-section:nth-of-type(6) {
    padding-top: 28px !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(5) .treat-simple-heading,
  .page-body.treat--orthodontics .treat-section:nth-of-type(6) .treat-simple-heading {
    margin-bottom: 34px !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(7) {
    padding-bottom: 28px !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(4),
  .page-body.treat--prevention .treat-section:nth-of-type(5) {
    padding-top: 34px !important;
    min-height: 540px !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(2) .treat-scard__title {
    font-size: 17px !important;
    line-height: 1.58 !important;
    letter-spacing: .04em !important;
  }
}

.page-body.treat--prevention .treat-tcard {
  padding-top: 22px !important;
}

.page-body.treat--prevention .treat-tcard__title {
  margin-top: 12px !important;
}

@media (max-width: 820px) {
  .page-body.treat--orthodontics .treat-hero__head {
    max-width: calc(100vw - 28px) !important;
    font-size: clamp(12px, 3.25vw, 14px) !important;
    line-height: 1.9 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-body.treat--orthodontics .treat-hero__lead {
    max-width: calc(100vw - 32px) !important;
    font-size: clamp(10.5px, 2.8vw, 12px) !important;
    line-height: 1.85 !important;
    letter-spacing: 0 !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-body.treat--orthodontics .treat-hero__lead br.br-pc {
    display: block !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(5),
  .page-body.treat--orthodontics .treat-section:nth-of-type(6) {
    padding-top: 34px !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(5) .treat-simple-heading,
  .page-body.treat--orthodontics .treat-section:nth-of-type(6) .treat-simple-heading {
    margin-bottom: 26px !important;
  }

  .page-body.treat--orthodontics .treat-section:nth-of-type(7) {
    padding-bottom: 34px !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(2) .treat-scard__title {
    font-size: 14px !important;
    line-height: 1.58 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .page-body.treat--prevention .treat-section:nth-of-type(4),
  .page-body.treat--prevention .treat-section:nth-of-type(5) {
    padding-top: 38px !important;
  }

  .page-body.treat--prevention .treat-tcard {
    padding-top: 18px !important;
  }
}

/* SP最終補正: 写真面とConcept面の境目が線に見えないよう、つなぎのグラデーションをConcept側へ重ねる。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero {
    background-color: #fc9291 !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    height: 520px !important;
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.06) 20%, rgba(252,146,145,.38) 48%, rgba(252,146,145,.82) 76%, #fc9291 100%),
      linear-gradient(to right, rgba(73,50,21,.14), rgba(73,50,21,0) 62%) !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept {
    margin-top: -1px !important;
    overflow: visible !important;
    background: #fc9291 !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -132px !important;
    height: 132px !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.58) 52%, #fc9291 100%) !important;
  }
}

/* Final SP guard: keep the first view continuous and prevent hero text overflow. */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero {
    background-color: #fc9291 !important;
    overflow: hidden !important;
  }

  .page-body[class*="treat--"] .treat-hero::before,
  .page-body[class*="treat--"] .treat-hero__overlay,
  .page-body[class*="treat--"] .treat-hero__inner {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
  }

  .page-body[class*="treat--"] .treat-hero::before {
    background-size: cover !important;
    background-position: var(--treat-hero-sp-position, center center) !important;
  }

  .page-body[class*="treat--"] .treat-hero__overlay {
    inset: 0 0 auto !important;
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.06) 24%, rgba(252,146,145,.30) 50%, rgba(252,146,145,.76) 78%, #fc9291 100%),
      linear-gradient(to right, rgba(73,50,21,.16), rgba(73,50,21,0) 62%) !important;
  }

  .page-body[class*="treat--"] .treat-hero::after {
    top: calc(100vh - 60px) !important;
    top: calc(100svh - 60px) !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    padding: 0 22px 44px !important;
    justify-content: flex-end !important;
  }

  .page-body[class*="treat--"] .treat-hero__crumb {
    max-width: calc(100vw - 44px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .page-body[class*="treat--"] .treat-hero__ttl {
    max-width: calc(100vw - 44px) !important;
    white-space: nowrap !important;
    text-wrap: nowrap !important;
    overflow: visible !important;
    font-size: clamp(27px, 8vw, 34px) !important;
    line-height: 1.16 !important;
    letter-spacing: .035em !important;
  }

  .page-body.treat--prevention .treat-hero__ttl,
  .page-body.treat--periodontal .treat-hero__ttl,
  .page-body.treat--aesthetic .treat-hero__ttl {
    font-size: clamp(23px, 6.9vw, 29px) !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept {
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    margin-top: -1px !important;
    padding: 58px 20px 60px !important;
    overflow: visible !important;
    background: #fc9291 !important;
  }

  .page-body[class*="treat--"] .treat-hero__concept::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -170px !important;
    height: 170px !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.36) 36%, rgba(252,146,145,.82) 76%, #fc9291 100%) !important;
  }

  .page-body[class*="treat--"] .treat-hero__head,
  .page-body[class*="treat--"] .treat-hero__lead {
    max-width: calc(100vw - 32px) !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .page-body[class*="treat--"] .treat-hero__head {
    font-size: clamp(15px, 4.05vw, 18px) !important;
    line-height: 1.95 !important;
    letter-spacing: .02em !important;
  }

  .page-body[class*="treat--"] .treat-hero__lead {
    font-size: clamp(11.5px, 3.1vw, 13px) !important;
    line-height: 2 !important;
    letter-spacing: .02em !important;
  }

  .page-body.treat--prevention .treat-hero__head,
  .page-body.treat--periodontal .treat-hero__head,
  .page-body.treat--endodontics .treat-hero__head {
    font-size: clamp(12px, 3.25vw, 14px) !important;
    line-height: 2 !important;
    white-space: normal !important;
  }
}

/* SP first-view labels should be pure white, without glow. */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero__crumb,
  .page-body[class*="treat--"] .treat-hero__crumb *,
  .page-body[class*="treat--"] .treat-hero__ttl {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
  }

  .page-body[class*="treat--"] .treat-hero::before,
  .page-body[class*="treat--"] .treat-hero::after,
  .page-body[class*="treat--"] .treat-hero__overlay {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .page-body[class*="treat--"] .treat-hero__inner {
    position: relative !important;
    z-index: 5 !important;
  }
}

/* SP local調整: 入れ歯ページのFV写真と精密義歯カードを切れにくくする。 */
@media (max-width: 820px) {
  .page-body.treat--dentures .treat-hero::before {
    background-size: 122% auto !important;
    background-position: center 26px !important;
    background-repeat: no-repeat !important;
  }

  .page-body.treat--dentures .treat-hero__head {
    max-width: calc(100vw - 24px) !important;
    font-size: clamp(11.5px, 3.45vw, 14px) !important;
    line-height: 1.9 !important;
    letter-spacing: .01em !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }

  .page-body.treat--dentures .treat-hero__head br {
    display: none !important;
  }

  .page-body.treat--dentures .treat-dpanel__media {
    aspect-ratio: auto !important;
    width: min(100%, 300px) !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .page-body.treat--dentures .treat-dpanel__media img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .page-body.treat--dentures .treat-dpanel__label {
    display: inline-grid !important;
    grid-template-columns: 14px auto !important;
    align-items: center !important;
    justify-content: start !important;
    column-gap: 9px !important;
    line-height: 1.15 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .page-body.treat--dentures .treat-dpanel__label::before {
    align-self: center !important;
    justify-self: start !important;
    margin: 0 !important;
    transform: rotate(-45deg) !important;
  }
}

/* SP local調整: 入れ歯FVは上の余白を出さず、写真の下にグラデーションを戻す。 */
@media (max-width: 820px) {
  .page-body.treat--dentures .treat-hero {
    background-color: #fc9291 !important;
    overflow: hidden !important;
  }

  .page-body.treat--dentures .treat-hero::before {
    top: 0 !important;
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    background: var(--treat-hero, none) center top / auto 88% no-repeat !important;
    opacity: 1 !important;
  }

  .page-body.treat--dentures .treat-hero__overlay {
    top: 0 !important;
    bottom: auto !important;
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    background:
      linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.10) 38%, rgba(252,146,145,.46) 62%, rgba(252,146,145,.86) 84%, #fc9291 100%),
      linear-gradient(to right, rgba(73,50,21,.14), rgba(73,50,21,0) 64%) !important;
  }

  .page-body.treat--dentures .treat-hero__inner {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    padding-bottom: 102px !important;
    justify-content: flex-end !important;
  }
}

/* SP: 診療科ヒーローはサブタイトルが無いため、タイトル(パンくず+見出し)を
   下部固定バー(58px+セーフエリア)の直上へ全診療科共通で底揃えする。 */
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero__inner {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: calc(100svh - 60px) !important;
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }
}

/* 本文の最終行1文字孤立を抑制（見出しは shrink-wrap で誤折り返しが出るため対象外）。 */
.treat-scard__text,
.treat-dpanel__text,
.treat-pcard__text,
.treat-ccard__text,
.treat-tcard__text {
  text-wrap: pretty;
}

/* パンくず/タイトルのサイズをアクセスページ基準に統一（PCパンくず10px / SPタイトル40px） */
@media (min-width: 821px) {
  .page-body[class*="treat--"] .treat-hero__crumb { font-size: 10px !important; }
}
@media (max-width: 820px) {
  .page-body[class*="treat--"] .treat-hero__ttl { font-size: 40px !important; }
}

/* 予防ページのみ、タイトル「むし歯予防・定期検診」が長くSPで画面外に出るため小さめに。 */
@media (max-width: 820px) {
  .page-body.treat--prevention .treat-hero__ttl { font-size: 30px !important; }
}

/* 予防の3つの強みの見出しは、アイコン横の約220px幅で「…トータルケア」等が語中改行(ア」が孤立)するため、
   少し小さくして各行が収まるようにする。 */
.page-body.treat--prevention .treat-scard { column-gap: 8px !important; }
.page-body.treat--prevention .treat-scard__title { letter-spacing: .2px !important; }
