/* =========================================================
   料金表ページ (slug: price)
   デザインカンプ XoXUw4vzh2C2X6RIfJJVGM node 560:6363 (4_price)
   top.css の :root 変数・.page-* / .cta-band 前提（pages.css の後に読み込む）。
   ヒーローは facilities と同型（写真背景 + コーラルグラデ + Concept）。
   レイアウトは max-width コンテナ + px/rem（cqw 不使用）。
   ========================================================= */

.prc-page { background: #fff; }
.prc-page * { box-sizing: border-box; }

/* ---------- ヒーロー（写真背景 + コーラルグラデ + Concept） ---------- */
.prc-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  /* カンプ 560:6363 ヒーローは「写真の画面」＋「無地コーラルにConcept」の2画面構成（約1236px） */
  min-height: 1008px;
}
.prc-hero__bg { position: absolute; top: 0; left: 0; right: 0; height: 720px; z-index: -3; overflow: hidden; }
.prc-hero__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.prc-hero__bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  background: linear-gradient(to right, rgba(252,146,145,0) 0%, rgba(252,146,145,.18) 45%, rgba(252,146,145,.42) 100%);
  pointer-events: none;
}
.prc-hero::before {
  /* 写真下端はFigma同様にコーラルへなじませ、水玉は写真側へ乗せない。 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to bottom,
    rgba(252,146,145,0) 280px,
    rgba(252,146,145,.16) 400px,
    rgba(252,146,145,.52) 545px,
    rgba(252,146,145,.86) 670px,
    #fc9291 760px,
    #fc9291 100%
  );
}
/* 水玉（ボケ）はコーラル面だけに重ねる。 */
.prc-hero__overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 430px;
  bottom: 0;
  z-index: -1;
  opacity: .22;
  mix-blend-mode: soft-light;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 155px, #000 290px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.55) 155px, #000 290px);
}
.prc-hero__overlay img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prc-hero__inner {
  /* フルワイド前提で padding により 1280px ゾーンへ中央寄せ。max-width 併用は広い画面で中身を圧迫するため付けない（設備と同様）。 */
  padding: 472px 47px 110px;
}
.prc-hero__lead { margin: 0 0 90px; }
.prc-hero__crumb {
  margin: 0 0 23px;
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: 10px;
  line-height: 30px;
  letter-spacing: 2px;
}
.prc-hero__en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-weight: 400;
  font-size: 50px;
  line-height: 1;
  letter-spacing: 1.5px;
}
.prc-hero__ja { display: none; }

.prc-hero__concept { text-align: center; }
.prc-hero__concept-en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 1.4px;
  text-shadow: 0 0 14px var(--c-red);
}
.prc-hero__concept-title {
  margin: 27px 0 0;
  font-weight: 500;
  font-size: 27.46px;
  line-height: 42px;
  letter-spacing: 4.119px;
  text-shadow: 0 0 14px var(--c-red);
}
.prc-hero__concept-body {
  /* カンプの折返し位置（849px幅）に合わせる：1段落目を「心がけており／ます」で改行 */
  max-width: 849px;
  margin: 39px auto 0;
}
.prc-hero__concept-body p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 2.26;
  letter-spacing: .15em;
  text-shadow: 0 0 14px var(--c-red);
}

/* ---------- 本文（中央寄せ 1024px） ---------- */
.prc-body {
  width: min(1024px, calc(100% - 48px));
  max-width: 1024px;
  margin: 0 auto;
  padding: 140px 0 0;
  transform: none;
}

/* ---------- About セクション（保険診療の違い / 医療費控除） ---------- */
.prc-about { margin: 0 0 120px; }
.prc-about__eyebrow {
  margin: 0 0 6px;
  font-family: var(--ff-josefin);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--c-pink);
}
.prc-about__title {
  margin: 0 0 24px;
  color: var(--c-brown);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.4;
  letter-spacing: .08em;
}
.prc-about__lead {
  margin: 0 0 8px;
  color: var(--c-brown2);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .08em;
}

/* 小見出しブロック（左にコーラルの縦バー） */
.prc-block { margin-top: 40px; }
.prc-block__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  color: var(--c-brown);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: .08em;
}
.prc-block__bar {
  flex: none;
  width: 7px;
  height: 34px;
  border-radius: 4px;
  background: var(--c-red);
}
.prc-block__text p {
  margin: 0;
  color: var(--c-brown2);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .06em;
}

/* ---------- 料金表セクション ---------- */
.prc-section { margin: 0 0 120px; }
.prc-body > .prc-about:first-child { margin-bottom: 170px; }
.prc-body > .prc-section:nth-child(2) { margin-bottom: 122px; }
.prc-body > .prc-section:nth-child(3) { margin-bottom: 123px; }
.prc-body > .prc-section:nth-child(4) { margin-bottom: 126px; }
.prc-body > .prc-section:nth-child(5) { margin-bottom: 147px; }
.prc-body > .prc-section:nth-child(6) { margin-bottom: 136px; }
.prc-body > .prc-section:nth-child(7) { margin-bottom: 137px; }
.prc-body > .prc-section:nth-child(8) { margin-bottom: 140px; }
.prc-body > .prc-section:nth-child(9) { margin-bottom: 147px; }
.prc-body > .prc-about:last-child { margin-bottom: 231px; }
.prc-h2 {
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  color: var(--c-brown);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: .06em;
}
.prc-h2__sub {
  color: var(--c-pink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
}

/* ---------- テーブル（pink-left / white-right） ---------- */
.prc-table-wrap {
  width: 990.156px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.prc-table th,
.prc-table td {
  height: 46px;
  padding: 0 16px;
  font-family: var(--ff-jp);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}
/* 左ラベル列：淡ピンク */
.prc-table th[scope="row"] {
  width: 50%;
  background: var(--c-pink-foot);
  border: 1px solid #fef2ee;
  color: #000;
}
/* 右金額列：白 */
.prc-table td {
  background: #fff;
  border: 1px solid #ded8d4;
  color: #000;
}
/* ヘッダー行（項目 / 料金（税込）） */
.prc-table thead th {
  font-weight: 400;
  background: var(--c-pink-foot);
  border: 1px solid #fef2ee;
  color: #000;
}
.prc-table thead th:last-child {
  background: #fff;
  border: 1px solid #ded8d4;
}

/* ホワイトニング 3 列（ラベル / 内容 / 金額） */
.prc-table--3col { table-layout: auto; }
.prc-table--3col th[scope="row"] { width: 34%; }
.prc-table--3col .prc-table__mid { width: 33%; }
.prc-table--3col th,
.prc-table--3col td { height: 65px; }

/* =========================================================
   レスポンシブ（横スクロール 0 を死守）
   ========================================================= */
@media (max-width: 900px) {
  .prc-hero { min-height: 660px; }
  .prc-hero__inner { padding: 250px 20px 48px; }
  .prc-hero__lead { margin-bottom: 36px; }
  .prc-hero__en { font-size: 40px; }
  .prc-hero__concept-body p { font-size: 14px; line-height: 2; }

  .prc-body { width: auto; max-width: 1024px; padding: 56px 18px 0; transform: none; }
  .prc-about { margin-bottom: 44px; }
  .prc-about__lead,
  .prc-block__text p { font-size: 14px; letter-spacing: .04em; }
  .prc-block { margin-top: 28px; }
  .prc-block__head { font-size: 18px; gap: 12px; }
  .prc-block__bar { height: 28px; width: 6px; }

  .prc-section { margin-bottom: 60px; }
  .prc-h2 { gap: 12px; }
  .prc-table th,
  .prc-table td { padding: 11px 12px; font-size: 14px; }
}

@media (max-width: 480px) {
  .prc-hero__en { font-size: 34px; }
  .prc-hero__concept-title { letter-spacing: .08em; }

  .prc-h2 { flex-direction: column; align-items: flex-start; gap: 4px; }
  .prc-table th,
  .prc-table td { padding: 10px; font-size: 13px; }
  /* 3 列テーブルは最小幅確保 → はみ出しは wrap 側でスクロール */
  .prc-table--3col { min-width: 360px; }
}

/* SPレビュー反映: 初期表示は写真全面 + 左下パンくず/ページ名のみ。Conceptは次セクション扱い。 */
@media (max-width: 900px) {
  .prc-hero {
    min-height: 0 !important;
    height: auto !important;
  }

  .prc-hero__bg {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .prc-hero::before {
    top: calc(100vh - 60px) !important;
    top: calc(100svh - 60px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    background: #fc9291 !important;
  }

  .prc-hero__overlay {
    top: calc(100vh - 60px) !important;
    top: calc(100svh - 60px) !important;
    opacity: .22 !important;
  }

  .prc-hero__inner {
    padding: 0 !important;
  }

  .prc-hero__lead {
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
    margin: 0 !important;
    padding: 0 24px 58px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
  }

  .prc-hero__crumb {
    margin: 0 0 16px !important;
    line-height: 1.8 !important;
  }

  .prc-hero__concept {
    position: relative;
    z-index: 1;
    padding: 58px 20px 70px !important;
    background: #fc9291;
  }
}

/* レビュー反映: About本文の前後余白をカンプ寄りに再調整する。 */
@media (min-width: 901px) {
  .prc-body {
    padding-top: 164px;
  }

  .prc-block {
    margin-top: 66px;
  }

  .prc-block__head {
    margin-bottom: 30px;
  }

  .prc-block__text p + p {
    margin-top: 18px;
  }

  .prc-about__title {
    margin-bottom: 34px;
  }

  .prc-about__lead {
    margin-bottom: 20px;
  }

  .prc-body > .prc-about:first-child {
    margin-bottom: 206px;
  }

  .prc-body > .prc-section:nth-child(9) {
    margin-bottom: 174px;
  }

  .prc-body > .prc-about:last-child {
    margin-bottom: 154px;
  }

  .prc-body > .prc-about:last-child .prc-block:last-child {
    margin-top: 48px;
  }
}

@media (max-width: 900px) {
  .prc-block__text p + p {
    margin-top: 10px;
  }

  .prc-body > .prc-about:last-child {
    margin-bottom: 64px;
  }
}

/* SP最終調整: 料金表ヒーローも写真上から下まで自然につながるグラデーションにする。 */
@media (max-width: 900px) {
  .prc-hero {
    min-height: auto !important;
  }

  .prc-hero__bg {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .prc-hero__bg img {
    object-position: center center !important;
  }

  .prc-hero__bg::after {
    width: 100% !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.18) 55%, rgba(252,146,145,.72) 100%) !important;
  }

  .prc-hero::before {
    top: 0 !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.12) 42%, rgba(252,146,145,.58) 70%, rgba(252,146,145,.96) 100%) !important;
  }

  .prc-hero__overlay {
    top: 48% !important;
    opacity: .18 !important;
  }

  .prc-hero__lead {
    padding: 0 22px 46px !important;
  }

  .prc-hero__crumb {
    max-width: 100% !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .prc-hero__en {
    color: #fff !important;
    font-size: clamp(42px, 13vw, 54px) !important;
  }

  .prc-hero__concept {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    background: #fc9291 !important;
    padding-top: 64px !important;
    padding-bottom: 58px !important;
  }

  .prc-table td,
  .prc-table th {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

/* SP画像サイズ調整: Price FVの写真を短めに戻す。 */
@media (max-width: 900px) {
  .prc-hero {
    min-height: auto !important;
  }

  .prc-hero__bg,
  .prc-hero__lead {
    height: 330px !important;
    min-height: 330px !important;
  }

  .prc-hero__lead {
    padding: 0 22px 34px !important;
  }

  .prc-hero::before {
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.12) 36%, rgba(252,146,145,.58) 68%, rgba(252,146,145,.96) 100%) !important;
  }
}

@media (max-width: 900px) {
  .prc-hero {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .prc-hero__concept {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    padding: 44px 22px 58px !important;
    background: #fc9291 !important;
  }
}

/* SP補正: Price FVの文字位置とグラデーションをスタッフ紹介型に合わせる。 */
@media (max-width: 900px) {
  .prc-hero__bg,
  .prc-hero__lead {
    height: 360px !important;
    min-height: 360px !important;
  }

  .prc-hero__bg img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .prc-hero__lead {
    padding: 0 22px 20px !important;
  }

  .prc-hero__bg::after,
  .prc-hero::before {
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 20%, rgba(252,146,145,.44) 50%, rgba(252,146,145,.82) 74%, #fc9291 100%) !important;
  }

  .prc-hero__overlay {
    top: 0 !important;
    opacity: .16 !important;
  }
}

/* SP最終: 初期表示ではConceptを見せず、写真+グラデ+左下タイトルだけを1画面に収める。 */
@media (max-width: 900px) {
  .prc-hero__bg,
  .prc-hero__lead {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    min-height: calc(100vh - 60px) !important;
    min-height: calc(100svh - 60px) !important;
  }

  .prc-hero__lead {
    padding: 0 22px 44px !important;
  }

  .prc-hero__bg::after,
  .prc-hero::before {
    top: 0 !important;
    bottom: auto !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) 28%, rgba(252,146,145,.34) 58%, rgba(252,146,145,.76) 82%, #fc9291 100%) !important;
  }

  .prc-hero__overlay {
    top: 0 !important;
    bottom: auto !important;
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
    opacity: .18 !important;
  }

  .prc-hero__concept {
    padding-top: 58px !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .prc-hero__concept-title {
    font-size: clamp(16px, 4.25vw, 18px) !important;
    line-height: 2 !important;
    letter-spacing: .01em !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
  }

  .prc-hero__concept::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: -112px !important;
    height: 112px !important;
    pointer-events: none !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.45) 48%, #fc9291 100%) !important;
  }
}

/* SP微調整: 料金表FVの写真が白く抜けないよう、画像とグラデーションの重なり順を固定する。 */
@media (max-width: 900px) {
  .prc-hero {
    background: #fc9291 !important;
    isolation: isolate !important;
  }

  .prc-hero__bg {
    z-index: 0 !important;
    opacity: 1 !important;
  }

  .prc-hero__bg img {
    opacity: .92 !important;
    filter: saturate(1.03) contrast(1.02) !important;
  }

  .prc-hero__bg::after,
  .prc-hero::before {
    z-index: 1 !important;
    pointer-events: none !important;
    background:
      linear-gradient(to bottom, rgba(73,50,21,0) 0%, rgba(73,50,21,.08) 22%, rgba(252,146,145,.32) 52%, rgba(252,146,145,.80) 82%, #fc9291 100%) !important;
  }

  .prc-hero__overlay {
    z-index: 1 !important;
    mix-blend-mode: soft-light !important;
  }

  .prc-hero__inner {
    position: relative !important;
    z-index: 2 !important;
  }

  .prc-hero__concept {
    background: #fc9291 !important;
  }

  .prc-hero__concept-title {
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(14px, 3.75vw, 16px) !important;
    line-height: 2.05 !important;
    letter-spacing: .01em !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-wrap: balance !important;
  }
}

/* SP最終補正: 写真面とConcept面の境目を消す。 */
@media (max-width: 900px) {
  .prc-hero {
    background-color: #fc9291 !important;
  }

  .prc-hero__bg::after,
  .prc-hero::before {
    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%) !important;
  }

  .prc-hero__overlay {
    opacity: .20 !important;
  }

  .prc-hero__concept {
    margin-top: -1px !important;
    overflow: visible !important;
    background: #fc9291 !important;
  }

  .prc-hero__concept::before {
    top: -132px !important;
    height: 132px !important;
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.58) 52%, #fc9291 100%) !important;
  }
}

/* SP first-view labels stay above the gradient layer. */
@media (max-width: 820px) {
  .prc-hero__bg::after,
  .prc-hero::before,
  .prc-hero__overlay {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .prc-hero__lead,
  .prc-hero__inner {
    position: relative !important;
    z-index: 5 !important;
  }
}

/* SPタイトルをアクセスページ基準(約40px)に統一 */
@media (max-width: 820px) { .prc-hero__en { font-size: 40px !important; } }
