/* TOP 後半（top-lower）。値は Figma（1440px）の px。docs/design-top-lower.md。
   重ねの構図（診査・院内写真・初めての方へ・医療紹介の背景）は横位置と幅を min(px, vw) で縮め、縦位置は px のまま。 */
/* Figma の組み方に合わせる: 約物を詰めない、長音・小書きの仮名を行頭に置かない（2082:3183 の折り返しで確認）。 */
.top-examination,.top-menu,.top-symptom,.top-photos,.top-photos-2,.top-first-visit,.top-medical{text-spacing-trim:space-all;line-break:strict}

/* 中央揃えの文字は、Figma が行末の字間を除いて中央に置くため、字間と同じ padding-left で中心を ls/2 右へずらす。
   Figma は行の高さを整数pxに丸めて描く（例 15px×2.1 → 31px、14px×2.3 → 32px、.5 は偶数へ）。参照画像の行間で確認した箇所は px で指定する。 */

/* ---------- 04 診査・診断（2082:2825） ---------- */
.top-examination{position:relative;overflow:hidden;background:var(--color-white)}
.top-examination__inner{position:relative;max-width:var(--page-width);height:1180px;margin:0 auto}
.top-examination__back,.top-examination__photo{position:absolute;overflow:hidden}
.top-examination__back{left:min(547px,37.986vw);top:81px;width:min(789px,54.792vw);aspect-ratio:789/1184}
.top-examination__back-image{width:100%;height:100%;max-width:none;object-fit:cover;opacity:.1}
.top-examination__photo--main{left:min(120px,8.333vw);top:180px;width:min(480px,33.333vw);aspect-ratio:480/720}
.top-examination__photo--sub{left:min(460px,31.944vw);top:827px;width:min(400px,27.778vw);aspect-ratio:400/267}
.top-examination__image{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.top-examination__body{position:absolute;left:min(770px,53.472vw);top:299px;display:flex;flex-direction:column;align-items:flex-start;gap:24px;width:428.6px}
.top-examination__title{font-family:var(--font-mincho);font-size:30px;font-weight:400;line-height:1.6;letter-spacing:3px;color:var(--color-charcoal)}
.top-examination__rule{display:block;width:36px;height:1px;background:var(--color-charcoal)}
.top-examination__text{font-family:var(--font-sans);font-size:15px;font-weight:400;line-height:31px;letter-spacing:.6px;color:var(--color-charcoal)}
/* 2つ目の段落は原本でページ y=651（本文の上端から207px）。 */
.top-examination__text--note{margin-top:59px}

/* ---------- 06 診療メニュー（2082:2836、ホバー H-4 は 2082:5834） ---------- */
.top-menu{background:var(--color-white)}
.top-menu__inner{max-width:var(--page-width);height:1108px;margin:0 auto;padding:145px min(120px,8.333vw) 0}
.top-menu__head{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.top-menu__label{font-family:var(--font-en);font-size:16px;font-weight:400;line-height:19px;letter-spacing:1.92px;color:var(--color-silver-gray);white-space:nowrap}
.top-menu__title{font-family:var(--font-mincho);font-size:30px;font-weight:400;line-height:1.6;letter-spacing:3px;color:var(--color-charcoal);white-space:nowrap}
.top-menu__grid{display:grid;grid-template-columns:repeat(3,minmax(0,370px));justify-content:space-between;gap:64px min(45px,3.125vw);margin-top:72px}
.top-menu__card,.top-menu__all{position:relative;height:312px}
.top-menu__media{position:relative;height:260px;overflow:hidden}
.top-menu__photo{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
.top-menu__media::after{content:"";position:absolute;inset:0;background:rgba(137,137,137,.94);opacity:0;transition:opacity .3s ease-out}
.top-menu__band{position:absolute;z-index:1;left:30px;right:10px;top:236px;height:76px;background:var(--color-white);box-shadow:0 8px 24px rgba(41,39,36,.1);white-space:nowrap}
.top-menu__card-link{display:none}
.top-menu__en{position:absolute;left:24px;top:15px;font-family:var(--font-en);font-size:13px;font-weight:400;line-height:normal;letter-spacing:1.04px;color:var(--color-silver-gray)}
.top-menu__name{position:absolute;left:24px;top:34px;font-family:var(--font-mincho);font-size:18px;font-weight:400;line-height:29px;letter-spacing:1.44px;color:var(--color-charcoal)}
/* ホバーで写真の上に浮かぶ治療メニュー。項目は40px間隔、写真の高さ中央（y=131）に揃う。 */
.top-menu__links{position:absolute;left:30px;right:30px;top:0;height:262px;display:flex;flex-direction:column;justify-content:center;gap:13px;opacity:0;pointer-events:none;transition:opacity .3s ease-out}
.top-menu__item{position:relative;height:27px}
.top-menu__link{display:block;height:27px;color:var(--color-white)}
.top-menu__link::before{content:"";position:absolute;left:0;right:0;top:26px;height:1px;background:rgba(255,255,255,.4)}
.top-menu__link::after{content:"";position:absolute;right:0;top:24px;width:4px;height:4px;border-radius:50%;background:var(--color-white)}
.top-menu__link-text{display:block;font-family:var(--font-sans);font-size:13px;font-weight:400;line-height:normal;letter-spacing:1.95px;white-space:nowrap}
/* 2026-11-16 レビュー: :focus-within はマウスでクリックした項目のフォーカスでも成り立ち、クリック後にポインターが離れてもホバー中の表示が残っていた。
   キーボードのフォーカス（:focus-visible）のときだけ開く（View all カードと同じ）。 */
.top-menu__card:hover .top-menu__media::after,.top-menu__card:has(:focus-visible) .top-menu__media::after,
.top-menu__card:hover .top-menu__links,.top-menu__card:has(:focus-visible) .top-menu__links{opacity:1}
.top-menu__card:hover .top-menu__links,.top-menu__card:has(:focus-visible) .top-menu__links{pointer-events:auto}
.top-menu__all{display:block;background:#f1f1f1;border:1px solid var(--color-greige);color:var(--color-charcoal);text-align:center;transition:background-color .3s ease-out}
.top-menu__all-label{position:absolute;left:-1px;right:1px;padding-left:1.56px;top:116px;font-family:var(--font-en);font-size:13px;font-weight:400;line-height:normal;letter-spacing:1.56px;color:var(--color-silver-gray);transition:color .3s ease-out}
.top-menu__all-title{position:absolute;left:-1px;right:1px;padding-left:1.6px;top:143px;font-family:var(--font-mincho);font-size:20px;font-weight:400;line-height:1.6;letter-spacing:1.6px;transition:color .3s ease-out}
.top-menu__all-arrow{position:absolute;left:calc(50% - 23px);top:198px;width:34px;height:1px;background:var(--color-charcoal);transition:width .3s ease-out,background-color .3s ease-out}
.top-menu__all-arrow::after{content:"";position:absolute;right:-5px;top:-2px;width:5px;height:5px;border-radius:50%;background:inherit}
/* ホバーは PC のみ（SP はホバー演出なし D-1）。 */
@media (min-width:1024px){
  .top-menu__all:hover,.top-menu__all:focus-visible{background:#898989}
  .top-menu__all:hover .top-menu__all-label,.top-menu__all:focus-visible .top-menu__all-label{color:rgba(255,255,255,.7)}
  .top-menu__all:hover .top-menu__all-title,.top-menu__all:focus-visible .top-menu__all-title{color:var(--color-white)}
  .top-menu__all:hover .top-menu__all-arrow,.top-menu__all:focus-visible .top-menu__all-arrow{width:60px;background:var(--color-white)}
}

/* ---------- 症状・お悩みから探す（2082:2852、ホバーは 1673:11834） ---------- */
.top-symptom{background:var(--color-white)}
.top-symptom__inner{display:flex;flex-direction:column;align-items:center;max-width:var(--page-width);height:740px;margin:0 auto;padding:80px min(160px,4vw) 0}
.top-symptom__head{display:flex;flex-direction:column;align-items:center;gap:14px}
.top-symptom__label{padding-left:1.92px;font-family:var(--font-mincho);font-size:12px;font-weight:500;line-height:1.5;letter-spacing:1.92px;color:var(--color-silver-gray)}
.top-symptom__title{padding-left:3px;font-family:var(--font-mincho);font-size:30px;font-weight:400;line-height:1.6;letter-spacing:3px;color:var(--color-charcoal);white-space:nowrap}
.top-symptom__list{display:grid;grid-template-columns:repeat(3,minmax(0,272px));column-gap:min(92px,6.389vw);margin-top:84px}
.top-symptom__cell{position:relative;display:flex;align-items:center;height:77px;padding:24px 0 26px;border-top:1px solid var(--color-light-greige);color:var(--color-charcoal);transition:background-color .3s ease-out}
.top-symptom__icon{position:relative;flex:none;width:60px;height:26px;overflow:hidden}
.top-symptom__icon-image{position:absolute;max-width:none;left:var(--icon-x);top:var(--icon-y);width:var(--icon-w);height:var(--icon-h)}
.top-symptom__item--1{--icon-x:10.2%;--icon-y:12.16%;--icon-w:66.94%;--icon-h:75.81%}
.top-symptom__item--2{--icon-x:26.05%;--icon-y:0%;--icon-w:37.91%;--icon-h:82.26%}
.top-symptom__item--3{--icon-x:20.36%;--icon-y:7.88%;--icon-w:57.03%;--icon-h:69.35%}
.top-symptom__item--4{--icon-x:28.22%;--icon-y:0%;--icon-w:43.56%;--icon-h:82.26%}
.top-symptom__item--5{--icon-x:30.14%;--icon-y:-.26%;--icon-w:31.01%;--icon-h:100%}
.top-symptom__item--6{--icon-x:30.01%;--icon-y:0%;--icon-w:36.65%;--icon-h:87.1%}
.top-symptom__item--7{--icon-x:23.07%;--icon-y:25.09%;--icon-w:55.02%;--icon-h:45.69%}
.top-symptom__item--8{--icon-x:30.82%;--icon-y:0%;--icon-w:38.36%;--icon-h:88.71%}
.top-symptom__item--9{--icon-x:30.09%;--icon-y:8.82%;--icon-w:36.46%;--icon-h:82.37%}
/* 参照画像では文字が行の中央より約1px下（Figmaの 25.5px の文字枠を 26px の行に置いた結果）。 */
.top-symptom__text{position:relative;top:1px;flex:none;font-family:var(--font-mincho);font-size:15px;font-weight:500;line-height:26px;letter-spacing:1.5px;white-space:nowrap}
.top-symptom__item--9 .top-symptom__text{font-size:13px;line-height:22px;letter-spacing:1.3px}
/* ホバー（H-1）: 背景色 #f7f3ed、文字の右に矢印（線22px＋点5px）。矢印は左から8pxずれてフェード。 */
.top-symptom__arrow{position:relative;flex:none;width:48px;height:26px;opacity:0;translate:-8px 0;transition:opacity .3s ease-out,translate .3s ease-out}
.top-symptom__arrow::before{content:"";position:absolute;left:10px;top:13px;width:22px;height:1px;background:#000}
.top-symptom__arrow::after{content:"";position:absolute;left:31px;top:11px;width:5px;height:5px;border-radius:50%;background:var(--color-charcoal)}
@media (min-width:1024px){
  .top-symptom__cell:hover,.top-symptom__cell:focus-visible{background:#f7f3ed}
  .top-symptom__cell:hover .top-symptom__arrow,.top-symptom__cell:focus-visible .top-symptom__arrow{opacity:1;translate:0 0}
}
.top-symptom__more{margin-top:52px}

/* ---------- 院内写真（2082:2892、ホバーは 1673:11567） ---------- */
/* 線画（Vector 50〜52）が下の top-flow に重なるため、このブロックを z-index:1 の重なりにし、下へのはみ出しを見せる。
   線は1440pxの箱より左右に長い（x −30〜1453.5）ので、横は overflow-x:clip でブロックの幅（画面幅）に切る。 */
.top-photos{position:relative;z-index:1;overflow-x:clip;background:var(--color-white)}
.top-photos__inner{position:relative;max-width:var(--page-width);height:766px;margin:0 auto;padding:172px min(42px,2.917vw) 0}
.top-photos__gallery{display:flex;align-items:flex-start;gap:12px;height:431px}
.top-photos__panel{position:relative;flex:1 1 0;min-width:0;height:335px;margin-top:var(--photo-top);overflow:hidden;transition:flex-grow .6s ease-out}
.top-photos__frame{position:absolute;left:calc(50% - var(--photo-a));top:var(--photo-y,0px);width:var(--photo-w);height:var(--photo-h,335px);overflow:hidden;transition:scale .6s ease-out}
.top-photos__image{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none;object-fit:cover}
/* SP だけ別の画像を出す <picture>（06）。箱を作らず、img の配置は従来どおり */
.top-photos__picture{display:contents}
/* --photo-a = 画像枠の幅/2 − 枠の中心とパネル中心のずれ（1440pxで Figma の left に一致）。 */
.top-photos__panel--1{--photo-top:96px;--photo-a:265px;--photo-y:-2px;--photo-w:530px;--photo-h:337px}
.top-photos__panel--2{--photo-top:40px;--photo-a:181px;--photo-w:501px}
.top-photos__panel--3{--photo-top:0px;--photo-a:97px;--photo-w:224px;--photo-zoom:1.54}
.top-photos__panel--4{--photo-top:34px;--photo-a:217px;--photo-w:521px;--photo-h:347px}
.top-photos__panel--4 .top-photos__image{left:-.06%;top:.1%;width:100.11%;object-fit:fill}
.top-photos__panel--5{--photo-top:62px;--photo-a:310px;--photo-w:502px}
.top-photos__panel--6{--photo-top:34px;--photo-a:162px;--photo-w:487px}
/* 原本は object-position:bottom のみ（伸縮）。 */
.top-photos__panel--6 .top-photos__image{object-fit:fill}
.top-photos__panel--7{--photo-top:0px;--photo-a:207px;--photo-w:386px;--photo-h:347px}
.top-photos__panel--8{--photo-top:40px;--photo-a:264px;--photo-w:580px}
.top-photos__panel--8 .top-photos__image{left:-.04%;top:-7.83%;width:100.08%;height:115.67%;object-fit:fill}
.top-photos__panel--9{--photo-top:96px;--photo-a:351px;--photo-w:502px}
/* H-3（1673:11567「ホバーで画像サイズが変わる」）: 指した写真の枠が140→315pxに広がり（他は縮む）、画像を拡大。
   拡大率は H-3 の1.05。枠を覆えない写真（3枚目）だけ大きくする。動作軽減では止める。SP（1023px以下）は行わない（2825:3338 の注釈、D-1）。 */
@media (min-width:1024px) and (hover:hover) and (prefers-reduced-motion:no-preference){
  .top-photos__panel:hover{flex-grow:2.667}
  .top-photos__panel:hover .top-photos__frame{scale:var(--photo-zoom,1.05)}
}
.top-photos__lines{position:absolute;left:calc(50% - 720px);top:0;width:1440px;max-width:none;height:1460px;overflow:visible;pointer-events:none}
.top-photos__line{stroke:#e8e8e8;stroke-width:1}
/* S-4: JS（top-lower.js）が is-line-draw を付け、スクロール量に応じて各線の stroke-dashoffset を1→0にする。JSなし・動作軽減では描き切った状態。 */
.top-photos__lines.is-line-draw .top-photos__line{stroke-dasharray:1 1;stroke-dashoffset:1}

/* SP の院内写真（2825:3338）の 10/27 の注釈「右から左に流れるアニメーション」: 動作軽減なしでは top-lower.js が列の複製（前に1組・後ろに2組）を作り is-photo-flow を付ける。
   元の9枚を Figma の位置（左端 50%−356px）に置いたまま、列全体を 720px（9枚×送り80px）ずつ左へ流してループする。速度は Figma に指定がなく仮（30秒で720px＝毎秒24px）。
   複製は PC・動作軽減・JSなしでは出さない（Figma の静止画の並び）。 */
.top-photos__panel--clone{display:none}
@media screen and (max-width:1023px) and (prefers-reduced-motion:no-preference){
  .top-photos.is-photo-flow .top-photos__panel--clone{display:block}
  .top-photos.is-photo-flow .top-photos__gallery{left:calc(50% - 1076px);width:max-content;animation:top-photos-flow 30s linear infinite}
}
@keyframes top-photos-flow{to{transform:translateX(-720px)}}

/* ---------- 院内写真2（2082:3074。Figmaのコードは未取得、メタデータと参照画像から） ---------- */
.top-photos-2{background:var(--color-white);padding-top:119px}
.top-photos-2__media{position:relative;height:min(780px,54.167vw);overflow:hidden}
/* 切り抜きは参照画像との照合で求めた値（1440pxで画像 1479x987 を left 0・top −159px）。 */
.top-photos-2__image{position:absolute;left:0;top:-20.385%;width:102.71%;height:126.56%;max-width:none}

/* ---------- 12 初めての方へ（2082:3078） ---------- */
.top-first-visit{position:relative;overflow:hidden;background:var(--color-ivory)}
.top-first-visit__inner{position:relative;display:flex;flex-direction:column;align-items:center;max-width:var(--page-width);height:987px;margin:0 auto;padding:160px 40px 0;text-align:center}
.top-first-visit__face{position:absolute;left:-423px;top:81px;width:1303px;height:972px;overflow:hidden;opacity:.03;pointer-events:none}
.top-first-visit__face-image{position:absolute;left:-115.28%;top:-52.24%;width:332.35%;height:321.13%;max-width:none}
.top-first-visit__title{position:relative;height:79px;padding-left:5.76px;font-family:var(--font-mincho);font-size:32px;font-weight:500;line-height:54px;letter-spacing:5.76px;color:var(--color-deep-charcoal);white-space:nowrap}
.top-first-visit__text{position:relative;width:800px;max-width:100%;height:233px;padding-left:.78px;font-family:var(--font-sans);font-size:13px;font-weight:400;line-height:3;letter-spacing:.78px;color:var(--color-warm-brown-gray)}
.top-first-visit__more{position:relative;height:109px;padding-top:35.17px}
/* 原本の「link / 初めての方へ」（2082:3086）は共通の .c-link より文字が約2px下、線が文字に1px近い（文字 lh18.75・間9px・線＋点 Vector 48）。 */
.top-first-visit__more .c-link{padding-bottom:14px}
.top-first-visit__actions{position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;width:319px}
.top-first-visit__note{padding-left:1.47px}
.top-first-visit__note,.top-first-visit__tel-note{font-family:var(--font-sans);font-size:10.5px;font-weight:400;line-height:18px;letter-spacing:1.47px;color:#6b6b6b;white-space:nowrap}
.top-first-visit__sub{display:flex;align-items:flex-start;width:318px;padding:20px 57px 0}
.top-first-visit__tel{display:flex;flex-direction:column;align-items:center;flex:none;gap:8px}
.top-first-visit__tel-note{width:130px;letter-spacing:1.05px;text-align:left}

/* ---------- 医療紹介（2082:3168 概要・2082:3188 ホームページ運営について） ---------- */
.top-medical{position:relative;overflow:hidden;color:var(--color-white);background:#4b443d}
.top-medical__bg{position:absolute;inset:0;pointer-events:none}
.top-medical__bg-image{position:absolute;left:50%;top:0;width:max(1712px,100%);height:1143px;max-width:none;object-fit:cover;translate:-50% 0}
.top-medical__bg::after{content:"";position:absolute;inset:0;background:rgba(40,33,26,.52);-webkit-backdrop-filter:blur(5.2px);backdrop-filter:blur(5.2px)}
.top-medical__inner{position:relative;max-width:var(--page-width);height:1143px;margin:0 auto;translate:0 .49px}
.top-medical__head{display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:186px;font-family:var(--font-mincho);font-weight:500;white-space:nowrap}
.top-medical__title{padding-left:5.12px;font-size:32px;font-weight:500;line-height:42px;letter-spacing:5.12px}
.top-medical__sub{padding-left:1.92px;font-size:12px;line-height:1.5;letter-spacing:1.92px}
.top-medical__table{width:627.28px;max-width:calc(100% - 80px);margin:70.4px 0 0 calc(50% - 277px);font-family:var(--font-sans);font-size:16px;font-weight:400;line-height:3;letter-spacing:1.28px}
.top-medical__row{display:grid;grid-template-columns:143px minmax(0,1fr)}
.top-medical__row+.top-medical__row{margin-top:24px}
.top-medical__term-text{position:relative;display:inline-block;vertical-align:top}
/* Figma は行末の字間を幅に含めずに折り返すため、内容の列は 483px＋字間1.28px。 */
/* 原本の下線（decoration-from-font）は行の上端から約46px。参照画像の位置・濃さに合わせる。 */
.top-medical__term-text::after{content:"";position:absolute;left:0;right:0;top:46px;height:1px;background:var(--color-white);opacity:.8;translate:0 -.14px}
.top-medical__desc{margin:0}
.top-medical__policy{display:flex;flex-direction:column;align-items:center;gap:56px;width:800px;max-width:calc(100% - 80px);margin:0 auto;padding-top:290px;text-align:center}
.top-medical__policy::before,.top-medical__policy::after{content:"";align-self:stretch;height:1px;background:var(--color-white)}
.top-medical__policy-title{padding-left:4.32px;font-family:var(--font-mincho);font-size:24px;font-weight:500;line-height:41px;letter-spacing:4.32px}
.top-medical__policy-text{padding-left:2.52px;font-family:var(--font-sans);font-size:14px;font-weight:400;line-height:32px;letter-spacing:2.52px}
.top-medical__policy-links{display:flex;flex-direction:column;align-items:center;gap:18px}
.top-medical__policy-item{display:flex;justify-content:center}
.top-medical__policy-link{display:inline-flex;flex-direction:column;align-items:center;gap:6px;font-family:var(--font-sans);font-size:12px;font-weight:400;line-height:20px;letter-spacing:.48px;white-space:nowrap}
.top-medical__policy-link::after{content:"";align-self:stretch;height:1px;background:currentColor}
@media (min-width:1024px){.top-medical__policy-link:hover,.top-medical__policy-link:focus-visible{opacity:.7}}

/* ==================== SP（1023px 以下）。Figma SP TOP 2819:3194（393px）の px。docs/design-top-lower.md「第4ラウンド（SP）」 ==================== */
@media (min-width:1024px){.top-photos__lines--sp{display:none}}
@media (max-width:1023px){
  /* 04 診査（2823:3241）: 写真3枚の重ねは幅に比例させる（--u = ブロック幅/393。393px で Figma の px）。本文は流し込み（Figma の y=400）。 */
  .top-examination{container-type:inline-size}
  .top-examination__inner{--u:calc(100cqw / 393);height:auto;padding:calc(400 * var(--u)) 24px 80px}
  .top-examination__back{left:calc(93 * var(--u));top:calc(40 * var(--u));width:calc(300 * var(--u));aspect-ratio:300/450}
  .top-examination__photo--main{left:calc(24 * var(--u));top:0;width:calc(190 * var(--u));aspect-ratio:190/285}
  .top-examination__photo--sub{left:calc(168 * var(--u));top:calc(230 * var(--u));width:calc(165 * var(--u));aspect-ratio:165/110}
  .top-examination__body{position:relative;left:auto;top:auto;width:auto;gap:0}
  .top-examination__title{font-size:21px;line-height:34px;letter-spacing:2.1px}
  .top-examination__rule{margin-top:18px}
  .top-examination__text{margin-top:20px;font-size:13.5px;line-height:28px;letter-spacing:.54px}
  .top-examination__text--note{margin-top:24px}

  /* 06 診療メニュー（2825:3206）: カードは素材 anim / card / SP（2835:3312）。2列（165px・列間15・行間28）。
     PC のホバーの治療メニュー（H-4）は SP では出さない（2835:3318 の注釈、D-1）。 */
  .top-menu__inner{height:auto;padding:40px 24px}
  .top-menu__head{gap:8px}
  .top-menu__label{font-size:12px;line-height:15px;letter-spacing:1.44px}
  .top-menu__title{font-size:22px;line-height:35px;letter-spacing:2.2px}
  .top-menu__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 15px;margin-top:28px}
  .top-menu__card,.top-menu__all{height:auto}
  .top-menu__media{height:auto;aspect-ratio:165/116;margin-bottom:-16px}
  .top-menu__media::after,.top-menu__links{display:none}
  /* カードのタップで ⑤ の該当カテゴリへ（2835:3318 の注釈）。写真と帯の全体に透明のリンクを重ねる（帯の z-index:1 より上）。 */
  .top-menu__card-link{display:block;position:absolute;z-index:2;inset:0}
  /* band holder（左右6px・overflow clip）で帯の影は左右6pxだけ見える。clip-path で同じ切り抜きにする。 */
  .top-menu__band{position:relative;left:auto;right:auto;top:auto;display:flex;flex-direction:column;gap:2px;height:auto;margin:0 6px;padding:10px 10px 11px;box-shadow:0 6px 16px rgba(41,39,36,.1);white-space:normal;clip-path:inset(0 -6px)}
  .top-menu__en{position:static;font-size:10px;line-height:12px;letter-spacing:.8px}
  .top-menu__name{position:static;font-size:12px;line-height:19px;letter-spacing:.96px}
  .top-menu__all{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
  .top-menu__all-label,.top-menu__all-title{position:static}
  .top-menu__all-label{padding-left:1.2px;font-size:10px;line-height:12px;letter-spacing:1.2px}
  .top-menu__all-title{padding-left:1.04px;font-size:13px;line-height:21px;letter-spacing:1.04px}
  /* arrow 30×5（線25px＋点5px）。点は ::after で右へ5pxはみ出すため margin-right で中心を合わせる。 */
  .top-menu__all-arrow{position:relative;left:auto;top:auto;flex:none;width:25px;margin:2px 5px 2px 0;background:var(--color-charcoal)}

  /* 症状（2825:3246）: 1列（345px）。セルは PC と同じ 77px。ホバーの背景・矢印（H-1）は SP では行わない（2825:3251 の注釈、D-1）。 */
  .top-symptom__inner{height:auto;padding:56px 24px 72px}
  .top-symptom__head{gap:8px}
  .top-symptom__label{padding-left:1.76px;font-size:11px;line-height:17px;letter-spacing:1.76px}
  .top-symptom__title{padding-left:2.2px;font-size:22px;line-height:35px;letter-spacing:2.2px}
  .top-symptom__list{grid-template-columns:minmax(0,1fr);width:100%;margin-top:36px;border-bottom:1px solid var(--color-light-greige)}
  .top-symptom__arrow{display:none}
  /* 8行目「肌・エイジングケア」のアイコン: 2026-10-26 から SP だけ拡大した切り抜き（目元から耳の帯）にしていたが、
     Figma 11/18 のコメント #2012717626「サイズ感小さく修正」で顔全体の小さい表示に戻ったため、PC と同じ --icon-* を使う（第13ラウンド）。 */
  .top-symptom__more{margin-top:36px}

  /* 院内写真（2825:3338）: 72×172 を8px間隔で9枚、列の中心をブロックの中心に置く（両端ははみ出して切る）。ホバー拡大（H-3）は行わない。 */
  .top-photos__inner{height:316px;padding:0}
  .top-photos__gallery{position:absolute;left:calc(50% - 356px);top:0;width:712px;height:auto;gap:8px}
  .top-photos__panel{flex:none;width:72px;height:172px}
  .top-photos__frame{left:0;top:0;width:100%;height:100%}
  .top-photos__image,.top-photos__panel--4 .top-photos__image,.top-photos__panel--6 .top-photos__image,.top-photos__panel--8 .top-photos__image{left:0;top:0;width:100%;height:100%;object-fit:cover}
  .top-photos__panel--1,.top-photos__panel--9{--photo-top:96px}
  .top-photos__panel--2,.top-photos__panel--8{--photo-top:68px}
  .top-photos__panel--3,.top-photos__panel--7{--photo-top:48px}
  .top-photos__panel--4,.top-photos__panel--6{--photo-top:65px}
  .top-photos__panel--5{--photo-top:79px}
  /* 線画 wave 3本（2833:3317〜3319）。Figma の deco / lines と同じく幅に合わせて横だけ伸ばす（left −3.58%・幅 106.89%）。 */
  .top-photos__lines--pc{display:none}
  .top-photos__lines--sp{left:-3.58%;width:106.89%;height:1110px}
  .top-photos__line--wave-1{stroke:#acacac;stroke-width:.3}
  .top-photos__line--wave-2{stroke:#cbcbcb;stroke-width:.4}
  .top-photos__line--wave-3{stroke:#c5c5c5;stroke-width:.4}

  /* 院内写真2（2826:3485）: 393×213 に cover。 */
  .top-photos-2{padding-top:0}
  .top-photos-2__media{height:auto;aspect-ratio:393/213}
  .top-photos-2__image{left:0;top:0;width:100%;height:100%;object-fit:cover}
  /* 約10分の1の縮小。合成レイヤーにすると Figma の書き出しと同じ滑らかな縮小になる（照合 2.15%→0.47%、ブロックの y の端数によらず同じ値を実測）。位置は変えない。 */
  .top-photos-2__image{will-change:transform}

  /* 12 初めての方へ（2826:3487）。本文は左揃え、末尾の空行（原本の空の段落）は padding-bottom で。 */
  .top-first-visit__inner{height:auto;padding:80px 24px}
  /* 透かし: Figma 11/18 に「img / first-visit / 01」（2826:3488、ルフレの文字入りのロゴ全体）から「img / intro / 01」（3493:6965、570×341）へ差し替え
     （コメント #2012975030「背景の画像差し替え（ルフレの文字が入っているため）」）。同じ原本を SP イントロの透かし（2821:3205）と同じ切り抜きで顔だけ見せる。
     不透明度 5% は新しい参照画像への当てはめ（第13ラウンド。docs/design-top-lower.md）。 */
  .top-first-visit__face{left:-208px;top:-15.03px;width:570px;height:341px;opacity:.05}
  .top-first-visit__face-image{left:-79.22%;top:-44.99%;width:263.89%;height:318.48%}
  .top-first-visit__title{height:auto;padding-left:3.96px;font-size:22px;line-height:50px;letter-spacing:3.96px}
  .top-first-visit__text{width:100%;height:auto;margin-top:24px;padding:0 0 30px;line-height:30px;text-align:left}
  /* link / 初めての方へ（2826:3493）: 共通 .c-link のままでは文字と線が参照画像より約2px上のため、枠の中で2px下げる。 */
  .top-first-visit__more{height:75.83px;margin-top:28px;padding-top:2px}
  /* 下線と点は Vector 48（2826:3495）: 幅85px の線を枠（92px、中央）の中央に置き、点（半径約2.67px）の中心が線の右端。
     共通 .c-link は線が文字の幅（末尾の字間を除く約83.75px）で終わり点がその内側に入るため、SP では線を左右に0.625px 延ばし（85px）、点（6px）の中心を線の右端に置く。
     文字の幅に連動させる（文言を編集すると線も伸び縮みする。PC と同じ）。 */
  .top-first-visit__more .c-link::after{left:-.625px;right:-.625px}
  .top-first-visit__more .c-link::before{left:calc(100% - 2.375px);right:-3.625px}
  .top-first-visit__actions{width:100%;margin-top:40px;gap:0}
  /* btn / 無料カウンセリング予約（345×58、枠 325px＋矢印）。電話も同じ大きさ。大きさだけ上書き（色・矢印・ホバーは common）。 */
  .top-first-visit .c-btn--reserve,.top-first-visit .c-btn--tel{display:flex;width:100%}
  .top-first-visit .c-btn--reserve .c-btn__text,.top-first-visit .c-btn--tel .c-btn__text{flex:1 1 auto;padding-right:0;padding-left:0}
  /* 360px 未満では中央の文字が矢印の線に届くため、枠の右に余白を取って文字を左へ寄せる。 */
  @media (max-width:359px){.top-first-visit .c-btn--reserve .c-btn__text{padding-right:20px}}
  .top-first-visit__note{margin-top:10px}
  .top-first-visit__sub{width:100%;padding:24px 0 0}
  .top-first-visit__tel{flex:1 1 auto;gap:10px}
  .top-first-visit__tel-note{width:auto;padding-left:1.05px;text-align:center}

  /* 医療紹介（2827:5995・2827:6017）。背景はブロックに cover。S-3（背景の一時固定）は注釈の仮どおり SP では固定しない。 */
  .top-medical__bg-image{left:0;top:0;width:100%;height:100%;translate:none}
  .top-medical__inner{height:auto;padding:80px 24px;translate:none}
  .top-medical__head{gap:6px;padding-top:0}
  .top-medical__title{padding-left:4.16px;font-size:26px;line-height:34px;letter-spacing:4.16px}
  .top-medical__sub{padding-left:1.76px;font-size:11px;line-height:17px;letter-spacing:1.76px}
  .top-medical__table{width:auto;max-width:none;margin:40px 0 0;font-size:13px;line-height:26px;letter-spacing:1.04px}
  .top-medical__row{grid-template-columns:72px minmax(0,1fr);column-gap:16px}
  .top-medical__row+.top-medical__row{margin-top:22px}
  /* 項目名の下線（decoration-from-font）は参照画像で行の上端から約31px、太さ約0.5px相当。 */
  .top-medical__term-text::after{top:31px;opacity:.5;translate:none}
  .top-medical--policy .top-medical__inner{padding:64px 24px}
  .top-medical__policy{gap:0;width:auto;max-width:none;padding-top:0}
  /* 行末の字間の分の中央合わせは、狭い幅で折り返さないよう padding-left ではなく margin-right で。 */
  .top-medical__policy-title{margin-top:48px;margin-right:-3.42px;padding-left:0;font-size:19px;line-height:32px;letter-spacing:3.42px}
  .top-medical__policy-text{margin-top:28px;padding-left:0;font-size:12.5px;line-height:29px;letter-spacing:1px;text-align:left}
  .top-medical__policy-links{align-self:stretch;margin-top:36px}
  .top-medical__policy-link{white-space:normal}
  .top-medical__policy::after{margin-top:48px}
}
