/*
 * TOP 上部（top-upper 担当）: .top-fv / .top-news / .top-intro / .top-message / .top-features。docs/design-top.md。
 * 寸法・字間・行間は Figma 2082:2548（1440px）の値。中身は1440pxの箱（__inner）を中央に置き、1440px未満は箱ごと zoom で縮める。
 * 縦書きは writing-mode:vertical-rl。Figma（1文字ずつ改行した横組み）の「行送り」（Figmaは行高を整数pxに丸めて積む）は letter-spacing＝行送り−文字サイズ、
 * 列の中心は Figma の文字枠の中心に合わせる（Figma の字間は末尾の文字の後ろに付かない）。
 * 画像の不透明度: Figma の塗りの不透明度は書き出したPNGのアルファに含まれている（features 01/04/05・質感・メッセージ背景2）ため、CSSでは重ねない。JPGの切り抜き画像（features 02/03）だけCSSで指定する。
 * 動き（A-1・A-2・S-3・S-4）は html.top-motion（top.js が動作軽減でないときだけ付ける）の下だけで動かす。既定は Figma の静止状態。
 */
.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:1;position:relative;background:var(--color-white);text-spacing-trim:space-all}
@media (max-width:1439.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.93}}
@media (max-width:1339.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.875}}
@media (max-width:1259.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.819}}
@media (max-width:1179.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.763}}
@media (max-width:1099.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.711}}
:is(.top-fv,.top-news,.top-intro,.top-message,.top-features) :is(.top-fv__inner,.top-news__inner,.top-intro__inner,.top-message__inner,.top-features__inner){position:relative;width:1440px;margin:0 auto;zoom:var(--top-zoom)}

/* 線画 S-4（外枠直下の Vector 39〜41）。他のブロックの上に重ねるため、ブロックの外へはみ出して描く。 */
:is(.top-fv,.top-news,.top-intro) .top-line{position:absolute;left:0;top:0;z-index:3;max-width:none;overflow:visible;pointer-events:none}
:is(.top-fv,.top-news,.top-intro) .top-line path{fill:none;stroke:#b0b0b0;stroke-width:1}
.top-news .top-line path{stroke:#818181}
/* Vector 41（intro-b）はイントロの下端の40px上から始まりメッセージへ伸びる。イントロが本文の全文表示で伸びても位置関係が変わらないよう下端基準（Figma の 3032px のブロックで bottom −2091px） */
.top-intro .top-line--intro-b{top:auto;bottom:-2091px}

/* ぐるぐる（A-2）。文字は Figma から書き出した輪郭（Zen Old Mincho Black は配布しないため）。色は mask の背景色。
   FV（2082:2583）はイントロ（2082:3315）より太い字形。FVの書き出しは枠で切れた31字だけなので、残りは同じ字の輪郭を回転して補った（docs/design-top.md）。 */
:is(.top-fv__ring,.top-intro__ring){-webkit-mask:url("../images/top/ring.svg") 0 0/100% 100% no-repeat;mask:url("../images/top/ring.svg") 0 0/100% 100% no-repeat}
@keyframes top-ring-spin{to{transform:rotate(360deg)}}
.top-motion :is(.top-fv__ring,.top-intro__ring){animation:top-ring-spin 20s linear infinite}

/* ---------- 01 FV（2082:2578） ---------- */
.top-fv__inner{height:837px}
.top-fv__media{position:absolute;inset:0;overflow:hidden}
.top-fv__slides{position:absolute;left:212px;top:0;width:1228px;height:946px;overflow:hidden}
.top-fv__slide{position:absolute;left:0;top:0;width:100%;max-width:none;height:100%;object-fit:fill;opacity:0;transition:opacity 1s ease}
.top-fv__slide.is-active{opacity:1}
.top-fv__slide--4{left:-5.49%;width:115.54%}
.top-fv__badge{position:absolute;left:1173px;top:557px;width:346px;height:346px;border-radius:50%;background:rgba(255,255,255,.76);-webkit-backdrop-filter:blur(4.65px);backdrop-filter:blur(4.65px)}
.top-fv__ring{position:absolute;left:12px;top:13px;width:323.617px;height:323.617px;background:#4d4d4d;-webkit-mask-image:url("../images/top/ring-fv.svg?v=20261123");mask-image:url("../images/top/ring-fv.svg?v=20261123")}
/* ロゴ（第11ラウンド）: 組 3363:7739（124×126、バッジ内 107,103）。写真は 98×90 の枠（13,0）に Figma の塗りの切り抜き（use の行列 0.00155828／0.00169905、−1.44667／−0.467757）。 */
.top-fv__badge-logo{position:absolute;left:107px;top:103px;width:124px;height:126px}
.top-fv__badge-mark{position:absolute;left:10.484%;top:0;width:79.032%;height:71.429%;overflow:hidden}
.top-fv__badge-logo-image{position:absolute;left:-144.667%;top:-46.7757%;width:389.57%;max-width:none;height:305.829%}
.top-fv__badge-type{position:absolute;left:0;top:0;width:100%;max-width:none;height:100%}
.top-fv__badge-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.top-fv__catch{position:absolute;top:114.5px;writing-mode:vertical-rl;font-family:var(--font-mincho);font-size:32px;font-weight:400;line-height:32px;letter-spacing:7px;color:var(--color-charcoal);white-space:nowrap}
.top-fv__catch--first{left:135px}
.top-fv__catch--second{left:64.5px;top:210.5px}
.top-fv__lead{position:absolute;left:233px;top:33px;writing-mode:vertical-rl;font-family:var(--font-en);font-size:38px;font-weight:400;line-height:39px;letter-spacing:7.22px;color:var(--color-white);text-shadow:-4px 0 4px rgba(58,58,58,.25);white-space:nowrap}

/* ---------- お知らせ・コラム（2082:2662） ---------- */
.top-news__inner{display:flex;flex-direction:column;align-items:center;height:1178px;padding-top:70px}
.top-news__news{display:flex;align-items:center;gap:65px;width:1053px;height:286px;padding-left:103px}
.top-news__heading{display:flex;flex-direction:column;align-items:center;gap:14px;white-space:nowrap}
.top-news__news .top-news__heading{padding-bottom:86px}
.top-news__title{position:relative;top:1px;margin-right:-5.12px;font-family:var(--font-mincho);font-size:32px;font-weight:500;line-height:1.3;letter-spacing:5.12px;color:#292724}
.top-news__subtitle{margin-right:-1.92px;font-family:var(--font-mincho);font-size:12px;font-weight:500;line-height:1.5;letter-spacing:1.92px;color:#857d75}
.top-news__list{position:relative;flex:none;width:793px;height:286px}
.top-news__list-image{position:absolute;left:0;top:0;width:793px;max-width:none;height:181px;filter:blur(2.35px);opacity:.2}
/* Figma の link コンポーネントは文字の行高15px（高さ30px）。common の .c-link は行高 normal（約18px）のため、このパートでは15pxにそろえる。 */
:is(.top-news,.top-intro,.top-features) .c-link__text{line-height:15px}
.top-news__more{opacity:.2;pointer-events:none}
.top-news__more--news{position:absolute;left:363.11px;top:256px}
.top-news__column{display:flex;flex-direction:column;align-items:center;gap:46px;width:1120px;margin-top:74px}
.top-news__cards{display:flex;align-items:flex-start;gap:32px;height:262px}
.top-news__card{position:relative;width:352px;height:220px;background:linear-gradient(123.024745833747deg,#f5f5f5 .59092%,#f2f2f2 52.483%,#ddd 99.132%)}
.top-news__card-rules{position:absolute;left:0;top:110px;max-width:none}
.top-news__card-rules path{fill:none;stroke:#6c6c6c;stroke-width:.5}
.top-news__card-text,.top-news__soon-text{position:absolute;text-align:center;font-family:var(--font-sans);font-size:12.5px;font-weight:400;line-height:15px;letter-spacing:1.75px;color:#000;white-space:nowrap}
.top-news__card-text{left:0;top:103px;width:352px;padding-left:1.75px}
.top-news__soon{position:absolute;left:0;top:0;width:1440px;height:252px;pointer-events:none}
.top-news__soon-rules{position:absolute;left:0;top:0;max-width:none}
.top-news__soon-rules path{fill:none;stroke:#b4b4b4;stroke-width:1}
.top-news__soon-text{left:794px;top:151px;width:96px}
.top-news__banner{position:absolute;left:440px;top:1049px;display:block;width:560px;height:129px;overflow:hidden;background:var(--color-white);color:var(--color-deep-brown);text-decoration:none}
.top-news__banner::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.1) 47.927%,rgba(255,255,255,.96) 54.815%,#c8c9c9 100%)}
.top-news__banner-photo{position:absolute;left:-61px;top:-20px;width:370px;height:170px;overflow:hidden}
.top-news__banner-image{position:absolute;left:0;top:-3.75%;width:100%;max-width:none;height:145.73%}
.top-news__banner-text{position:absolute;left:322px;top:43px;z-index:2;font-family:var(--font-mincho);font-size:24px;font-weight:500;line-height:1.85;letter-spacing:3.12px;white-space:nowrap}
.top-news__banner-arrow{position:absolute;left:509px;top:83px;z-index:2;width:33px;height:33px;border:1px solid var(--color-white);border-radius:50%}
.top-news__banner-arrow svg{position:absolute;left:13.5px;top:10.5px;max-width:none;overflow:visible}
.top-news__banner-arrow path{fill:none;stroke:var(--color-white);stroke-linecap:round}

/* ---------- 01b イントロ（2082:2749）。docs/design-top.md「第5ラウンド（S-3 イントロ）」。
   既定（動作軽減・JavaScript なし）: 本文3段落を全部表示（切り抜かない・フェードなし・固定しない）。高さは本文の枠（body 1864px）の下端 3267px ＋ Figma と同じ下余白 170px。
   PC の動きあり（top.js が .is-intro-s3 を付ける）: Figma どおり intro-text（2082:2750）の 2798px で本文を切り、scroll / fade（2692:26198）を重ね、
   3032px の舞台ごと sticky にして本文だけを流す（下の @media (min-width:1024px)） ---------- */
.top-intro__inner{height:3437px}
/* 横にはみ出すロゴの透かしだけを切る。overflow:clip はスクロール枠を作らないので、中の S-3 の sticky が効く */
.top-intro__clip{position:absolute;left:0;top:64px;width:1440px;height:3203px;overflow:clip}
.top-intro__head{position:absolute;left:0;top:0;width:1440px;height:365px;overflow:hidden}
.top-intro__title{position:absolute;left:129px;top:168px;width:741px;font-family:var(--font-mincho);font-size:33px;font-weight:400;line-height:56px;letter-spacing:5.94px;color:var(--color-charcoal)}
.top-intro__title-line{display:block;height:56px}
.top-intro__title-line>span{line-height:1;letter-spacing:.18em}
/* 2026-11-16 レビュー: 2行目は字間込みで 741.06px になり、Chrome が数える末尾の字間（Figma は数えない）の分だけ箱 741px を超えて「者」が次の行へ落ちていた
   （1920・1440・1340・1024px で再現）。行は原本の行ごとに要素を分けてあるので、PC では行の中で折り返さない（字の位置は変わらない）。
   末尾の span に負の margin-right を付ける方法は、Chrome が折り返しを決めた後に足すため効かなかった。SP は行の組み方が違うので PC だけ。 */
@media (min-width:1024px){.top-intro__title-line{white-space:nowrap}}
.top-intro__t24{font-size:24px}
.top-intro__t32{font-size:32px}
.top-intro__t33{font-size:33px}
.top-intro__t40{font-size:40px}
.top-intro__visual{position:absolute;left:0;top:405px;width:1440px;height:894px}
.top-intro__ripple{position:absolute;left:0;top:15px;width:1440px;height:894px;opacity:.7}
.top-intro__ripple-image{width:100%;max-width:none;height:100%;object-fit:cover;opacity:.09}
.top-intro__mark{position:absolute;left:754px;top:323px;width:785.586px;height:586px;overflow:hidden;opacity:.07}
.top-intro__mark-image{position:absolute;left:-115.28%;top:-52.24%;width:332.35%;max-width:none;height:321.13%}
.top-intro__vtext{position:absolute;writing-mode:vertical-rl;font-family:var(--font-mincho);font-weight:400;color:var(--color-charcoal);white-space:nowrap}
.top-intro__vtext--design,.top-intro__vtext--tenjin{font-size:32px;line-height:32px;letter-spacing:19px}
.top-intro__vtext--design{left:640px;top:261.6px}
.top-intro__vtext--tenjin{left:722px;top:211.6px}
.top-intro__vtext--short{left:854px;top:125.5px;font-size:24px;line-height:24px;letter-spacing:15px}
.top-intro__body{position:absolute;left:90px;top:1339px;width:1260px;height:1864px}
.top-intro__photo{position:absolute;overflow:hidden}
.top-intro__photo img{position:absolute;left:0;top:0;width:100%;max-width:none;height:100%;object-fit:fill}
.top-intro__photo--clinic{left:0;top:0;width:688px;height:465px}
.top-intro__photo--texture{left:249px;top:718px;width:439px;height:640px}
.top-intro__photo--texture img{object-fit:cover}
.top-intro__photo--aligner{left:0;top:1118px;width:544px;height:371px}
/* 本文3段落の入れ物（S-3 で top.js が上へ移動する）。本文は従来どおり本文の枠（body）の座標で置く */
.top-intro__flow{position:absolute;left:0;top:0;width:100%;height:100%}
/* scroll / fade（2692:26198、イントロ内 x699・y2795、452×68、rgba(246,246,246,0)→#fff 上→下）。既定では出さない */
/* Figma の scroll / fade（2692:26198）は幅452px。本文の列は最大592px（x698〜1290）あり、流れている途中の長い行の右端がフェードから外れてくっきり切れるため、列の幅まで広げた（初期表示でフェードの下にある行は452px内に収まり、見た目は変わらない。2026-10-26 統合担当） */
.top-intro__fade{display:none;position:absolute;left:699px;top:2731px;width:592px;height:68px;background:linear-gradient(to bottom,rgba(246,246,246,0),#fff);pointer-events:none}
.top-intro__text{position:absolute;left:608px;margin-top:-1px;font-family:var(--font-sans);font-size:16px;font-weight:400;line-height:3;letter-spacing:.64px;color:var(--color-charcoal)}
.top-intro__text--1{top:1005px;width:592px}
.top-intro__text--2{top:1339px;width:577px}
.top-intro__text--3{top:1672px;width:566px}
.top-intro__text--4{left:834px;top:59px;width:426px}
.top-intro__more{position:absolute;left:1031px;top:306px;display:flex;align-items:center;height:119px}
.top-intro__badge{position:absolute;left:47px;top:1753px;z-index:2;width:198.492px;height:198.493px;pointer-events:none}
.top-intro__ring{position:absolute;inset:0;background:#343434}
.top-intro__tooth{position:absolute;left:21.195px;top:52.365px;width:155.848px;max-width:none;height:107.847px}

/* ---------- 02 メッセージ（2082:2773）。S-3: 背景画像（02_Message_bg・_bg_2）だけ sticky、文章は通常スクロール ---------- */
.top-message__inner{height:2190px}
.top-message__media{position:absolute;inset:0;overflow:clip}
.top-message__photo{position:absolute;overflow:hidden}
.top-message__photo img{position:absolute;left:0;top:0;width:100%;max-width:none;height:100%;object-fit:fill}
.top-message__photo--room{left:63px;top:103px;width:809px;height:508px}
.top-message__photo--consult{left:93px;top:487px;width:418px;height:525px}
.top-message__bg-track{position:absolute;left:644px;top:1100px;bottom:77px;display:flex;flex-direction:column;justify-content:flex-end;width:796px}
.top-message__bg{position:relative;flex:none;width:796px;height:649px;overflow:clip}
.top-motion .top-message__bg{position:sticky;bottom:0}
/* イントロ S-3（PC・動きあり。top.js が .is-intro-s3 と --top-intro-travel＝本文の移動量 T を付ける）。
   舞台（__inner 3032px）を、切り抜きの下端（イントロ内 2862）が画面上端から min(740px×zoom, 画面の高さ−40px) に来た所で sticky にする（top は top.js の --top-intro-stick。zoom の中の値）。
   外側の高さは 3032＋T。固定中は top.js が本文の入れ物だけをスクロール量と同じだけ上へ移動し、T 分で固定が解ける。線画 intro-b は Figma どおり上端基準 */
@media (min-width:1024px){
  .top-intro.is-intro-s3{height:calc((3032px + var(--top-intro-travel,0px)) * var(--top-zoom))}
  .top-intro.is-intro-s3 .top-intro__inner{position:sticky;top:var(--top-intro-stick,-2122px);z-index:1;height:3032px}
  .top-intro.is-intro-s3 .top-intro__clip{height:2798px}
  .top-intro.is-intro-s3 .top-intro__fade{display:block}
  .top-intro.is-intro-s3 .top-line--intro-b{top:0;bottom:auto}
}
.top-message__bg-image{position:absolute;max-width:none;object-fit:fill}
.top-message__bg-image--front{left:0;top:0;width:796px;height:390px}
.top-message__bg-image--back{left:102px;top:50px;width:1079px;height:599px}
.top-message__voices{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.top-message__closing{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.top-message__vtext{position:absolute;writing-mode:vertical-rl;font-family:var(--font-mincho);font-size:32px;font-weight:400;line-height:32px;letter-spacing:19px;color:var(--color-charcoal);white-space:nowrap;pointer-events:auto}
.top-message__vtext--voice-1{left:1161.5px;top:160.6px}
.top-message__vtext--voice-2{left:1085px;top:160.6px}
.top-message__vtext--voice-3{left:1041px;top:517.6px}
.top-message__vtext--small{top:1399.72px;font-family:var(--font-sans);font-size:16px;line-height:16px;letter-spacing:9px}
.top-message__vtext--beauty{left:453px}
.top-message__vtext--plan{left:416px}
.top-message__vtext--continue{left:316px;top:1405.6px}
.top-message__vtext--aim{left:248px;top:1579.2px;font-size:24px;line-height:24px;letter-spacing:14px}
.top-message__text{position:absolute;left:600px;top:939px;width:734px;font-family:var(--font-sans);font-size:16px;font-weight:400;line-height:3;letter-spacing:.64px;color:var(--color-charcoal)}

/* ---------- 03 features（2082:2792）。S-2: 既定は5項目を縦に並べ、1項目目が Figma の 1440×722 と同じ配置になる。
   Figma では中身の枠（1444px幅のグループ）が x=-2 にあるため、見出し・本文・ナビは2px左。 ---------- */
.top-features__inner{padding-top:247px;overflow-x:clip}
.top-features__heading{position:absolute;left:-2px;top:140px;display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;white-space:nowrap}
.top-features__label{font-family:var(--font-mincho);font-size:16px;font-weight:400;line-height:1.7;color:#9d9d9d}
.top-features__title{margin-right:-3px;font-family:var(--font-mincho);font-size:30px;font-weight:400;line-height:1.6;letter-spacing:3px;color:var(--color-charcoal)}
.top-features__slide{position:relative;height:475px}
.top-features__slide+.top-features__slide{margin-top:40px}
.top-features__media{position:absolute;top:2px;width:676px;height:323px;overflow:hidden;filter:blur(5px)}
.top-features__image{position:absolute;left:0;top:0;width:100%;max-width:none;height:100%;object-fit:fill}
.top-features__slide--1 .top-features__media{left:766px;top:0;filter:blur(4.95px)}
.top-features__slide--2 .top-features__media{left:768px;filter:blur(4.95px)}
.top-features__slide--2 .top-features__image{left:-39.47%;top:-35.69%;width:160.24%;height:223.22%;opacity:.51}
.top-features__slide--3 .top-features__media{left:770px;width:672px}
.top-features__slide--3 .top-features__image{left:.03%;top:-65.64%;height:312.07%;opacity:.51}
.top-features__slide--4 .top-features__media{left:770px;width:672px}
.top-features__slide--5 .top-features__media{left:768px}
.top-features__item{position:absolute;left:327px;top:66px;width:782px;padding-top:27px;border-top:1px solid #1c1a17}
.top-features__no{font-family:var(--font-en);font-size:34px;font-weight:300;line-height:1.1;letter-spacing:2.04px;color:var(--color-stone-gray);white-space:nowrap}
.top-features__item-title{font-family:var(--font-mincho);font-size:17px;font-weight:500;line-height:1.8;letter-spacing:1.7px;color:var(--color-charcoal)}
.top-features__text{margin-top:16px;font-family:var(--font-sans);font-size:12.5px;font-weight:400;line-height:2.2;letter-spacing:.5px;color:var(--color-warm-brown-gray)}
.top-features__nav{position:absolute;left:99px;top:268px;width:524px;height:24px}
.top-features__arrow{position:absolute;top:-1px;display:block;width:72px;height:15px;color:#9d9d9d}
.top-features__arrow svg{display:block;max-width:none;overflow:visible}
.top-features__arrow path{fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round}
.top-features__arrow--prev{left:-1px}
.top-features__arrow--next{left:453px;transform:scaleX(-1)}
.top-features__arrow[aria-disabled="true"]{cursor:default}
.top-features__dots{position:absolute;left:230px;top:0;display:flex;align-items:center;gap:8px;height:24px}
.top-features__dot{width:6px;height:6px;border-radius:50%;background:#d9d9d9}
.top-features__dot.is-current{width:8px;height:8px;background:var(--color-silver-gray)}
.top-features__more{position:absolute;left:99px;top:292px;display:flex;align-items:center;justify-content:center;width:524px;height:116px}
/* S-2 有効時（common.js が .is-scroll-switch-enabled を付ける）: 722px の舞台に5項目を重ね、現在の項目だけを表示。PC だけ（SP はスライド。下の SP 節） */
@media (min-width:1024px){
  .top-features.is-scroll-switch-enabled .top-features__inner{height:722px}
  .top-features.is-scroll-switch-enabled .top-features__slide{position:absolute;left:0;top:247px;width:100%;margin-top:0;pointer-events:none}
  .top-features.is-scroll-switch-enabled [data-scroll-switch-item]{visibility:hidden;opacity:0;transition:opacity .4s ease,visibility 0s linear .4s}
  .top-features.is-scroll-switch-enabled [data-scroll-switch-item].is-active{visibility:visible;opacity:1;pointer-events:auto;transition:opacity .4s ease}
  .top-features.is-scroll-switch-enabled [data-scroll-switch-bg]{opacity:0;transition:opacity .6s ease}
  .top-features.is-scroll-switch-enabled [data-scroll-switch-bg].is-active{opacity:1}
}

/* =====================================================================
   SP（@media (max-width:1023px)。Figma SP TOP 2819:3194、393px 基準）。docs/design-top.md「第4ラウンド（SP）」。
   - 393px 以上は幅に合わせて伸びる（左右の端・中央に合わせて置く）。393px 未満は __inner ごと zoom で縮め、中の幅が常に 393px 以上になるようにする。
   - 線画（deco / lines 2833:3312）は SP 用の SVG（.top-line--sp）。Figma と同じく写真・文字の下、ページの白の上に描くため、SP では5ブロックの背景を透明にし、線を各ブロックの先頭に置く。
     Figma の 0.3px／0.5px の線（#030303）は 1x で整数座標の両側2pxに 223／192 で描かれている。1px の線を整数座標に置いて同じ画素値にした（#c0c0c0／#818181）。
   - 行の高さは Figma が整数に丸めて積んだ値（13px×2.2→29、13.5px×2.2→30、12.5px×2.2→28）。
   ===================================================================== */
:is(.top-fv,.top-news,.top-intro,.top-message) .top-line--sp,.top-news__soon-rules-sp{display:none}
.top-fv__picture,.top-message__picture,.top-features__picture{display:contents}
@media (max-width:1023px){
  .top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:1;background:transparent}
  :is(.top-fv,.top-news,.top-intro,.top-message,.top-features) :is(.top-fv__inner,.top-news__inner,.top-intro__inner,.top-message__inner,.top-features__inner){width:auto}

  /* 線画（S-4 は PC と同じ仕組み）。PC の線は消す */
  :is(.top-fv,.top-news,.top-intro) .top-line:not(.top-line--sp){display:none}
  :is(.top-fv,.top-news,.top-intro,.top-message) .top-line--sp{display:block;position:absolute;left:0;z-index:auto;width:100%;max-width:none;overflow:visible;pointer-events:none}
  :is(.top-fv,.top-news,.top-intro,.top-message) .top-line--sp path{fill:none;stroke:#c0c0c0;stroke-width:1}
  :is(.top-news,.top-intro) :is(.top-line--sp-column-h1,.top-line--sp-tail) path{stroke:#818181}
  .top-fv .top-line--sp-fv-news{top:456px;height:470px}
  .top-news .top-line--sp-column-h1{top:346px;height:749.5px}
  .top-intro .top-line--sp-tail{top:-.473px;height:516px}
  .top-intro .top-line--sp-lead{top:1294.527px;height:178px}
  /* 第11ラウンド: deco / lines（2833:3312）は SP のページの絶対座標のまま動いておらず、イントロが 29px 縮んだ分だけ線がこのブロックに対して下がった（キャンバスどおり 11.527→40.527px） */
  .top-message .top-line--sp-message{top:40.527px;height:1506.5px}

  /* ---------- 01 FV（2819:3206、393×580）。画像切替 A-1 は PC と同じ4枚（02〜04: 2855:1919・2002・2085） ---------- */
  .top-fv__inner{height:580px}
  .top-fv__slides{left:88px;right:0;width:auto;height:470px}
  .top-fv__slide,.top-fv__slide--4{left:0;width:100%;object-fit:cover}
  .top-fv__slide--2{object-position:72.07% 0}
  .top-fv__badge{left:auto;right:-57.538px;top:753.846px;zoom:.52}
  /* ロゴの組 3363:7740（FV 内 x301.048 y443、65.936×67）。バッジの zoom .52 で割った値（PC の 1.0226 倍） */
  .top-fv__badge-logo{left:111.63px;top:98.08px;width:126.8px;height:128.85px}
  .top-fv__catch{top:39.5px;font-size:21px;line-height:21px;letter-spacing:5px}
  .top-fv__catch--first{left:50.5px}
  .top-fv__catch--second{left:14.5px;top:103.5px}
  .top-fv__lead{left:100px;top:18px;font-size:19px;line-height:20px;letter-spacing:3.61px}

  /* ---------- お知らせ・コラム（2819:3289、393×873.47） ---------- */
  .top-news__inner{gap:28px;height:auto;padding:40px 24px 56px}
  .top-news__news{display:contents}
  .top-news__heading,.top-news__news .top-news__heading{gap:6px;padding-bottom:0}
  .top-news__title{top:0;margin-right:-4.16px;font-size:26px;line-height:34px;letter-spacing:4.16px}
  .top-news__subtitle{margin-right:-1.76px;font-size:11px;line-height:17px;letter-spacing:1.76px}
  .top-news__list{width:345px;max-width:100%;height:110px;margin-bottom:110px}
  .top-news__list-image{top:16px;width:100%;height:79px;object-fit:cover;filter:none}
  .top-news__more--news{left:0;right:0;top:138px;width:fit-content;margin:0 auto}
  .top-news__soon{left:50%;top:125px;width:345px;height:110px;margin-left:-172.5px}
  .top-news__soon-rules{display:none}
  .top-news__soon-rules-sp{display:block;position:absolute;left:0;top:0;max-width:none;overflow:visible}
  .top-news__soon-rules-sp path{fill:none;stroke:#b5b5b5;stroke-width:1}
  .top-news__soon-text{left:124.5px;top:47.5px}
  /* コラム: 横スワイプ（注釈 2819:3309「コラムカードは左右スワイプで送る」）。Figma の静止画は1枚だけが中央に見えるため、1枚を画面幅の枠に入れて送る */
  .top-news__column{align-self:stretch;gap:28px;width:auto;margin:0 -24px 44px;overflow-x:clip}
  .top-news__cards{align-self:stretch;gap:0;height:150px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
  .top-news__cards::-webkit-scrollbar{display:none}
  .top-news__card{flex:0 0 100%;width:auto;height:150px;background:none;scroll-snap-align:center}
  .top-news__card::before{content:"";position:absolute;left:calc(50% - 120px);top:0;width:240px;height:150px;background:linear-gradient(123.024745833747deg,#f5f5f5 .59092%,#f2f2f2 52.483%,#ddd 99.132%)}
  .top-news__card-rules{left:calc(50% - 120px);top:75px;width:240px;height:1.3636px}
  .top-news__card-text{left:calc(50% - 120px);top:70.23px;width:240px;padding-left:1.1932px;font-size:8.523px;line-height:10.227px;letter-spacing:1.1932px}
  /* インビザラインのバナーは PC の 560×129 を 0.616 倍（345×79.47）にした Figma の値と同じ */
  .top-news__banner{position:relative;left:auto;top:auto;flex:none;zoom:.616071}

  /* ---------- 01b イントロ（2821:3200、393×2461）。SP は本文を切り抜かない（全文表示）。並びは grid で SP の順に ---------- */
  .top-intro__inner{display:grid;grid-template-columns:100%;grid-template-areas:"head" "visual" "photo" "lead" "more" "collage" "text1" "text2" "text3";height:auto;padding:72px 0 80px}
  .top-intro__clip,.top-intro__body,.top-intro__flow{display:contents}
  .top-intro__head{grid-area:head;position:relative;left:auto;top:auto;width:auto;height:auto;overflow:visible;padding:0 24px 48px}
  .top-intro__title{position:relative;left:auto;top:auto;width:auto;height:102px;font-size:20px;line-height:34px}
  .top-intro__title-line{position:relative;top:1px;height:34px}
  .top-intro__title-line+.top-intro__title-line{top:0;height:68px}
  .top-intro__title-line>span{line-height:34px}
  .top-intro__title [data-editable="title-lead"]{position:relative;top:2.5px;display:block;height:34px}
  .top-intro__t24{font-size:14.5px}
  .top-intro__t32{font-size:19px}
  .top-intro__t33{font-size:20px}
  .top-intro__t40{font-size:24px}
  .top-intro__visual{grid-area:visual;position:relative;left:auto;top:auto;width:auto;height:580px;overflow:hidden}
  .top-intro__ripple{top:0;width:100%;height:580px}
  .top-intro__mark{left:28px;top:238.53px;width:570px;height:341px}
  .top-intro__mark-image{left:-79.22%;top:-44.99%;width:263.89%;height:318.48%}
  .top-intro__vtext--short{left:210px;top:51px;font-size:17px;line-height:17px;letter-spacing:10px}
  .top-intro__vtext--tenjin{left:127.5px;top:112.25px;font-size:22.5px;line-height:22.5px;letter-spacing:13.5px}
  .top-intro__vtext--design{left:70.25px;top:147px;font-size:22.5px;line-height:22.5px;letter-spacing:13.5px}
  .top-intro__photo{position:relative;left:auto;top:auto}
  .top-intro__photo img,.top-intro__photo--texture img{object-fit:cover}
  .top-intro__photo--clinic{grid-area:photo;width:345px;height:233px;margin:24px 0 67px}
  .top-intro__badge{grid-area:photo;position:relative;left:auto;top:auto;align-self:start;justify-self:start;zoom:.5;margin:428px 0 0 20px}
  .top-intro__text{position:relative;left:auto;top:auto;width:auto;margin:0 24px;font-size:13.5px;line-height:30px;letter-spacing:.54px}
  /* 第11ラウンド: 新しい文（2821:3292、345×116＝4行）。旧の Figma は5行（145）で Chrome は4行だったため1行分の詰め物 padding-bottom:29px を入れていたが、外した */
  .top-intro__text--4{grid-area:lead;margin-top:8px;font-size:13px;line-height:29px;letter-spacing:.52px}
  .top-intro__more{grid-area:more;position:relative;left:auto;top:auto;height:auto;justify-self:end;margin:24px 24px 0 0}
  .top-intro__photo--texture{grid-area:collage;align-self:start;justify-self:end;width:200px;height:291px;margin:64px 6.107% 0 0}
  .top-intro__photo--aligner{grid-area:collage;align-self:start;justify-self:start;width:240px;height:164px;margin:260px 0 20px}
  .top-intro__photo--clinic img{left:-.29%;top:-.21%;width:102.03%;height:100.43%;object-fit:fill}
  .top-intro__photo--aligner img{left:-.42%;top:-5.8%;width:100.7%;height:105.06%;object-fit:fill}
  .top-intro__text--1{grid-area:text1;margin-top:8px;padding-bottom:30px}
  .top-intro__text--2{grid-area:text2;margin-top:28px}
  .top-intro__text--3{grid-area:text3;margin-top:28px}

  /* ---------- 02 メッセージ（2823:3203、393×1790）。S-3 の背景固定は SP ではしない（D-1） ---------- */
  .top-message__inner{height:1790px}
  .top-message__photo img{object-fit:cover}
  .top-message__photo--room{left:auto;right:0;top:40px;width:300px;height:188px}
  .top-message__photo--consult{left:-31px;top:179.53px;width:236px;height:296px}
  .top-message__bg-track{display:block;left:auto;right:0;top:1518px;bottom:auto;width:345px;height:248px}
  .top-message__bg,.top-motion .top-message__bg{position:relative;width:345px;height:248px;overflow:visible}
  .top-message__bg-image{object-fit:cover}
  .top-message__bg-image--front{left:0;top:0;width:345px;height:169px}
  .top-message__bg-image--back{left:25px;top:70px;width:320px;height:178px;opacity:.22}
  .top-message__vtext{font-size:22.5px;line-height:22.5px;letter-spacing:13.5px}
  .top-message__vtext--voice-1{left:auto;right:66.25px;top:276.25px}
  .top-message__vtext--voice-2{left:auto;right:116.25px;top:276.25px}
  .top-message__vtext--voice-3{left:auto;right:147.25px;top:526.25px}
  .top-message__text{left:24px;right:24px;width:auto;top:784px;font-size:13.5px;line-height:30px;letter-spacing:.54px}
  /* 上端は第4ラウンドで1倍の参照画像に合わせた 1004px から +0.75px（第8ラウンド。字ごとのインクの重心が2倍・3倍とも Figma より約0.8px 上だったため。docs/design-top.md） */
  .top-message__vtext--small{top:1004.75px;font-size:13px;line-height:13px;letter-spacing:8px}
  .top-message__vtext--beauty{left:calc(50% + 75.5px)}
  .top-message__vtext--plan{left:calc(50% + 51.5px)}
  .top-message__vtext--continue{left:calc(50% - 20px);top:1008.5px;font-size:24px;line-height:24px;letter-spacing:14px}
  .top-message__vtext--aim{left:calc(50% - 65px);top:1137.5px;font-size:18px;line-height:18px;letter-spacing:11px}

  /* ---------- 03 features（2823:3216、393×771）。スライド切替（注釈 2824:3206: ← → ・ドット・左右スワイプ。SP は固定しない）。
     既定（JavaScript なし・動作軽減）は5項目を縦に並べ、1項目目が Figma の 393×771 と同じ配置。ブラーなし（SP コメント「ブラーはずす」） ---------- */
  .top-features[data-scroll-switch].is-scroll-switch-enabled{height:auto}
  .top-features[data-scroll-switch].is-scroll-switch-enabled [data-scroll-switch-stage]{position:static}
  .top-features__inner{display:flex;flex-direction:column;gap:28px;padding:72px 24px;overflow-x:visible}
  .top-features__heading{position:static;left:auto;top:auto;gap:8px;width:auto}
  .top-features__label{font-size:12px;line-height:20px}
  .top-features__title{margin-right:-2.2px;font-size:22px;line-height:35px;letter-spacing:2.2px}
  .top-features__slide{display:flex;flex-direction:column;gap:28px;height:auto}
  .top-features__slide+.top-features__slide{margin-top:72px}
  .top-features__media,.top-features__slide--1 .top-features__media,.top-features__slide--2 .top-features__media,.top-features__slide--3 .top-features__media,.top-features__slide--4 .top-features__media,.top-features__slide--5 .top-features__media{position:relative;left:auto;top:auto;width:100%;height:165px;filter:none}
  .top-features__image,.top-features__slide--2 .top-features__image,.top-features__slide--3 .top-features__image{left:0;top:0;width:100%;height:100%;object-fit:cover;opacity:1}
  .top-features__slide--1 .top-features__image{opacity:.51}
  .top-features__slide--3 .top-features__image{object-position:50% 36.84%}
  .top-features__item{position:relative;left:auto;top:auto;width:auto;padding-top:20px}
  .top-features__no{position:relative;top:1px;font-size:28px;line-height:31px;letter-spacing:1.68px}
  .top-features__item-title{position:relative;top:1px;font-size:16px;line-height:29px;letter-spacing:1.6px}
  .top-features__text{margin-top:12px;font-size:12.5px;line-height:28px;letter-spacing:.5px}
  .top-features__nav{position:relative;left:auto;top:auto;width:auto;height:24px;margin-top:28px}
  .top-features__arrow{top:9.643px;zoom:.7}
  .top-features__arrow--prev{left:-1px}
  .top-features__arrow--next{left:auto;right:-1px}
  .top-features__dots{left:calc(50% - 32px)}
  .top-features__more{position:relative;left:auto;top:auto;width:auto;height:auto;margin-top:28px}
  /* スライド（top.js が SP かつ動作軽減でないときに .is-top-slider を付ける）。5項目を同じ枠に重ね、現在の項目だけを表示。文章0.4s・画像0.6s のフェード */
  .top-features.is-top-slider .top-features__list{display:grid;touch-action:pan-y}
  .top-features.is-top-slider .top-features__slide{grid-area:1/1;margin-top:0}
  /* 第11ラウンド: スライド 05 が 800px（2855:2244、見出し2行・本文5行）になったため、高さは「1項目目と表示中の項目の高い方」にする。
     1項目目以外の非表示の項目は枠の高さに数えない（Figma のページ枠 771px のまま、02・04 では下のブロックが動かず、05 のときだけ 800px） */
  .top-features.is-top-slider .top-features__list{position:relative}
  .top-features.is-top-slider .top-features__slide:not(:first-child):not(.is-shown){position:absolute;top:0;left:0;width:100%}
  .top-features.is-top-slider .top-features__slide:not(.is-shown){visibility:hidden;pointer-events:none;transition:visibility 0s linear .6s}
  .top-features.is-top-slider .top-features__media{opacity:0;transition:opacity .6s ease}
  .top-features.is-top-slider .top-features__item{opacity:0;transition:opacity .4s ease}
  .top-features.is-top-slider .is-shown :is(.top-features__media,.top-features__item){opacity:1}
  .top-features.is-top-slider .top-features__dot{cursor:pointer}
}
/* 393px 未満: 中の幅が 393px 以上になる倍率で縮める */
@media (max-width:392.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.954}}
@media (max-width:374.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.916}}
@media (max-width:359.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.865}}
@media (max-width:339.98px){.top-fv,.top-news,.top-intro,.top-message,.top-features{--top-zoom:.814}}
