/* 診療ページ「01_Hero」（15ブロック）。写真は object-fit:cover（Figma の object-cover）、重ねは不透明度40%。
   --hero-h はFigmaのヒーローの高さ。serif 型の各行の位置はその割合（label 34.07%・title 43.3%・catch 65.27%）。 */
.treatment-hero{--hero-h:455px;--hero-overlay:#151515;--hero-image-opacity:1;position:relative;height:var(--hero-h);overflow:hidden;background:var(--color-white);color:var(--color-white)}
.treatment-hero::before{content:"";position:absolute;inset:0;z-index:1;background:var(--hero-overlay);opacity:.4}
.treatment-hero__image{position:absolute;inset:0;width:100%;max-width:none;height:100%;object-fit:cover;opacity:var(--hero-image-opacity)}
.treatment-hero__inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;max-width:var(--page-width);margin:0 auto;padding:156px 40px 0 120px}
.treatment-hero__heading{display:flex;flex-direction:column;gap:15px}
.treatment-hero__label{height:19px;font-family:var(--font-en);font-size:16px;font-weight:400;line-height:normal;letter-spacing:2.24px;white-space:nowrap}
.treatment-hero__title{font-family:var(--font-mincho);font-size:40px;font-weight:400;line-height:1.6;letter-spacing:4px;text-shadow:0 0 4.5px rgba(128,128,128,.25)}
.treatment-hero__catch{max-width:760px;margin-top:37.2px;font-size:16px;line-height:2;letter-spacing:2.88px}

/* serif 型: 行の上端をヒーローの高さに対する割合で置く（Figma の inset %）。文字が増えて折り返した場合は下へ押し出す。 */
.treatment-hero--serif .treatment-hero__inner{padding-top:calc(var(--hero-h) * .3407)}
.treatment-hero--serif .treatment-hero__heading{gap:0}
.treatment-hero--serif .treatment-hero__label{height:auto;min-height:calc(var(--hero-h) * .0923);letter-spacing:0}
/* ページ名は Noto Serif JP（base.css の @font-face）。 */
.treatment-hero--serif .treatment-hero__title{min-height:calc(var(--hero-h) * .2197);font-family:var(--font-serif,"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif);line-height:normal;text-shadow:none}
.treatment-hero--serif .treatment-hero__catch{max-width:none;margin-top:0;line-height:19px;letter-spacing:0}

/* ページごとの高さ・写真・重ね（Figma の値） */
.treatment-hero--prevent{--hero-h:455px}
.treatment-hero--invisalign .treatment-hero__label{letter-spacing:0}
/* ⑳は mincho 型の組み方で、ページ名が Noto Serif JP（字間なし・行高は標準 57px）、ラベル・キャッチは字間なし。キャッチは serif 型と同じく行高19px（Figma の文字枠）、間隔38px */
.treatment-hero--invisalign .treatment-hero__title{height:57px;font-family:var(--font-serif,"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif);line-height:normal;letter-spacing:0}
.treatment-hero--invisalign .treatment-hero__catch{margin-top:38px;line-height:19px;letter-spacing:0}
.treatment-hero--wire{--hero-h:455.843px;--hero-image-opacity:.49;--hero-overlay:#000}
.treatment-hero--partial{--hero-h:466.293px;--hero-image-opacity:.48;--hero-overlay:#000}
.treatment-hero--laminate{--hero-h:451.477px}
.treatment-hero--bonding{--hero-h:455px}
.treatment-hero--ceramic-ortho{--hero-h:454.501px}
.treatment-hero--ceramic-ortho .treatment-hero__label,.treatment-hero--ceramic-ortho .treatment-hero__catch{letter-spacing:1.28px}
.treatment-hero--ceramic{--hero-h:455px}
.treatment-hero--whitening{--hero-h:455px;--hero-overlay:#000}
.treatment-hero--implant{--hero-h:471.392px}
.treatment-hero--botox{--hero-h:452.927px}
.treatment-hero--hyaluronic{--hero-h:455px;--hero-overlay:#000}
.treatment-hero--fat{--hero-h:468px;--hero-overlay:#000}
/* ㉛はヒーローの幅が1443px・x=-1.5（原本）。写真は左右に1.5pxはみ出す枠で切り抜き、文字の左端は 8.33%×1443-1.5 ≒ 118.7px */
.treatment-hero--fat .treatment-hero__image{left:-1.5px;width:calc(100% + 3px)}
.treatment-hero--fat .treatment-hero__inner{padding-left:118.7px}
.treatment-hero--stemcell{--hero-h:455px;--hero-overlay:#000}

/* SP（1023px以下）: 診療15ページ共通（body の .page-group-treatment。第4ラウンドは⑱だけ .page-caries で限定、第7ラウンドで広げた）。
   Figma 01_Hero（393×280、⑱ 2882:4795・⑲ 2882:5868 ほか）: 上72・左右24。英字14px（字間1.96）→8→ページ名26px（行1.6・字間2.6、
   全ページ Noto Serif JP。10/27 に⑱も明朝から変わった）→19→キャッチ14px（行2・字間2.52）。写真は cover、重ねの色・写真の不透明度・影は PC と同じ。
   PC のページごとの指定（serif 型の割合の余白・最小の高さ、⑳の高さ57・間隔38、㉕の字間、㉛の写真の枠と左余白）は同じ詳細度なので、ここで上書きする。
   行頭の小書きのかな・長音等の禁則は Figma と同じく厳格にする（line-break:strict。㉖の保証・㉕のコンセプトで Figma と折り返し位置がそろう）。
   高さは 280 を最小にし、狭い幅で文字が折り返して伸びたときは切らずに帯を伸ばす（下の余白24）。
   Figma は行末の字間を幅に数えずに折り返すため、キャッチは右に字間分（2.52px）はみ出せる幅にした（㉘ 等で折り返し位置が Figma と同じになる）。
   ページごとの差: 重ねの不透明度 50%（⑱㉑。他は40%）。㉙の重ねは #000（PC は #151515）。㉕のキャッチは SP だけ3行（c-br--sp）。 */
@media (max-width:1023px){
  .page-group-treatment .treatment-hero{--hero-h:280px;height:auto;min-height:var(--hero-h);line-break:strict}
  .page-group-treatment .treatment-hero__image{left:0;width:100%}
  .page-group-treatment .treatment-hero__inner{padding:72px 24px 24px}
  .page-group-treatment .treatment-hero__heading{gap:8px}
  .page-group-treatment .treatment-hero__label{height:auto;min-height:0;font-size:14px;line-height:normal;letter-spacing:1.96px;white-space:normal}
  .page-group-treatment .treatment-hero__title{height:auto;min-height:0;font-family:var(--font-serif,"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho",serif);font-size:26px;line-height:1.6;letter-spacing:2.6px}
  .page-group-treatment .treatment-hero__catch{max-width:none;margin:19px -2.52px 0 0;font-size:14px;line-height:28px;letter-spacing:2.52px}
  .page-caries .treatment-hero::before,.page-wire-orthodontics .treatment-hero::before{opacity:.5}
  .page-botox .treatment-hero{--hero-overlay:#000}
}
