/* 診療メニュー一覧（⑤ 2558:46664）。docs/design-menu.md */

/* ---------- 02 主要メニュー（2558:46699 1440×520）: 診療カテゴリ ---------- */
.menu-category{background:var(--color-white)}
.menu-category__inner{max-width:var(--page-width);height:520px;margin:0 auto;padding-top:56px}
.menu-category__heading{text-align:center}
/* 中央揃えの見出しは末尾の字間ぶん左へずれるため、字間と同じ左余白で合わせる */
.menu-category__label{padding-left:1.92px;font-family:var(--font-en);font-size:16px;font-weight:400;line-height:1.75;letter-spacing:1.92px;color:var(--color-silver-gray)}
.menu-category__title{margin-top:8px;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)}
.menu-category__lead{margin-top:22px;font-family:var(--font-sans);font-size:14px;line-height:2;letter-spacing:1.12px;color:var(--color-warm-brown-gray)}
/* アンカー（703×162、x=380・y=268）。上段3・下段2を原本の座標で置く */
.menu-category__anchors{position:relative;width:703px;height:162px;margin:78px 0 0 calc(50% - 340px)}
.menu-category__item{position:absolute;top:0;left:0;width:189px;height:53px}
.menu-category__item--2{left:257px}
.menu-category__item--3{left:514px}
.menu-category__item--4{top:110px;left:130px}
.menu-category__item--5{top:110px;left:387px;width:244px}
.menu-category__anchor{position:relative;display:block;height:100%;color:var(--color-charcoal);text-decoration:none}
.menu-category__anchor::after{content:"";position:absolute;top:51px;left:2px;right:0;height:2px;background:rgba(88,88,88,.5);transition:background-color .3s ease-out}
.menu-category__latin{display:block;font-family:var(--font-en);font-size:11px;font-weight:400;line-height:1.75;letter-spacing:1.32px;color:var(--color-silver-gray);white-space:nowrap}
.menu-category__name{position:absolute;top:22px;left:0;font-family:var(--font-mincho);font-size:16px;font-weight:400;line-height:1.7;letter-spacing:1.28px;white-space:nowrap;transition:color .3s ease-out}
.menu-category__chevron{position:absolute;top:35.63px;left:172.67px;width:9.66px;max-width:none;height:5.04px}
.menu-category__item--5 .menu-category__chevron{left:232.67px}
.menu-category__anchor:hover .menu-category__name{color:var(--color-champagne-gold)}
.menu-category__anchor:hover::after{background:var(--color-champagne-gold)}
/* SP（2881:23074 393×493.5）: 見出し＋アンカーを2列（165×61.5、列間15・行間24）、5つ目は全幅。テキストの箱の高さは Figma の値（25/35/19/24） */
@media (max-width:1023px){
  .menu-category__inner{height:auto;padding:40px 24px 53px}
  .menu-category__label{position:relative;top:1px;height:25px;padding-left:1.68px;font-size:14px;letter-spacing:1.68px}
  .menu-category__title{height:35px;margin-top:6px;padding-left:2.2px;font-size:22px;letter-spacing:2.2px}
  .menu-category__lead{margin-top:11px;padding-left:1.04px;font-size:13px;letter-spacing:1.04px}
  .menu-category__anchors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 15px;width:auto;height:auto;margin:39px 0 0}
  .menu-category__item,.menu-category__item--2,.menu-category__item--3,.menu-category__item--4,.menu-category__item--5{position:static;width:auto;height:auto}
  .menu-category__item--5{grid-column:1 / -1}
  /* 英字19 → 4 → 名前24 → 4+6+4 → 下線0.5（#585858） */
  .menu-category__anchor{height:auto;min-height:61.5px;padding-bottom:14.5px}
  .menu-category__anchor::after{top:auto;bottom:0;left:0;height:.5px;background:#585858}
  .menu-category__latin{height:19px}
  .menu-category__name{position:relative;top:1px;display:block;min-height:24px;margin-top:4px;padding-right:17px;font-size:14px;line-height:1.7;letter-spacing:1.12px;white-space:normal}
  .menu-category__chevron,.menu-category__item--5 .menu-category__chevron{top:32.63px;right:-.33px;left:auto}
  /* SP はホバー演出なし（D-1） */
  .menu-category__anchor:hover .menu-category__name{color:inherit}
  .menu-category__anchor:hover::after{background:#585858}
}
/* 1倍の画面だけ: 0.5px の下線は Figma の描画どおり1px・不透明度50%。2行目（y85.5）も画素に揃うよう上端 60.75px に置く */
@media (max-width:1023px) and (max-resolution:1dppx){
  .menu-category__anchor::after,.menu-category__anchor:hover::after{bottom:-.25px;height:1px;background:rgba(88,88,88,.5)}
}

/* ---------- 02 メニュー（2558:46729 1440×2593）: 5グループ・15枚のカード ---------- */
.menu-list{background:var(--color-white)}
.menu-list__inner{max-width:var(--page-width);min-height:2593px;margin:0 auto;padding:49px 120px 132px}
.menu-list__group{scroll-margin-top:70px}
.menu-list__group:focus{outline:none}
.menu-list__group + .menu-list__group{margin-top:96px}
.menu-list__group + .menu-list__group--implant{margin-top:104px}
.menu-list__heading{border-bottom:1px solid #777}
.menu-list__latin{height:16px;font-family:var(--font-en);font-size:13px;font-weight:400;line-height:normal;letter-spacing:1.56px;color:var(--color-silver-gray)}
.menu-list__title{height:42px;font-family:var(--font-mincho);font-size:18px;font-weight:400;line-height:1.7;letter-spacing:1.44px;color:#2a2a2a}
.menu-list__row{display:flex;justify-content:space-between}
.menu-list__row + .menu-list__row{margin-top:8px}
.menu-list__row--rule{border-top:1px solid #777}

/* 見出し・説明の top は Figma より 1px 下（ブラウザの字面が 1px 上に出るため。照合で実測）。下線は Figma では文字の箱の 3px 下 */
/* カード: 画像 → 放射状の暗いベール（不透明度60%）→ 見出し（下線）・説明・矢印。ホバーで画像だけ 1→1.05（H-3） */
.menu-card{--desc-x:0px;--desc-w:584px;--arrow-x:535px;position:relative;display:block;flex:none;height:244px;overflow:hidden;color:var(--color-white);text-decoration:none}
.menu-card--half{width:596px}
.menu-card--third{--desc-w:386.067px;--arrow-x:336px;width:394px}
.menu-card--full{--desc-x:308px;--arrow-x:1142px;width:1200px}
.menu-card--botox{--arrow-x:538px}
.menu-card--fat{--desc-x:12px}
/* 脂肪溶解注射の見出しは原本で中央から右へ 13.2px ずれている（原本どおり） */
.menu-card--fat .menu-card__title{padding-left:28.8px}
.menu-card__media{position:absolute;inset:0;overflow:hidden}
.menu-card--full .menu-card__media{right:auto;left:234px;width:769px}
.menu-card__zoom{position:absolute;inset:0;transition:transform .6s ease-out}
.menu-card:hover .menu-card__zoom,.menu-card:focus-visible .menu-card__zoom{transform:scale(1.05)}
.menu-card__image{position:absolute;max-width:none}
.menu-card__image--fill{inset:0;width:100%;height:100%}
.menu-card__image--invisalign{top:-9%;left:-.02%;width:100.03%;height:121.23%}
.menu-card__image--wire{top:-6.56%;left:-.06%;width:100.11%;height:107.79%}
.menu-card__image--partial{top:-4.1%;left:-.06%;width:100.11%;height:107.79%}
.menu-card__image--implant{top:-48.5%;left:0;width:100%;height:210.11%}
.menu-card__image--botox{top:-.08%;left:0;width:100%;height:162.86%}
.menu-card__image--hyaluronic{top:-.28%;left:0;width:100%;height:162.86%}
.menu-card__image--fat{top:-27.71%;left:-.06%;width:100.11%;height:162.7%}
.menu-card__image--stemcell{top:-60.66%;left:-.08%;width:100.16%;height:163.11%}
/* 審美の5枚（06〜10）: 第13ラウンド（Figma 11/18、コメント PC #2010848295・SP #2012824543「画像変更」）で専用の写真になった。
   Figma の切り抜き（get_design_context 2558:46807）。06 の画像枠は原本で 595px（カードは 596px）、08 は x+1px だが、カードの幅に合わせた */
.menu-card__image--laminate{top:-18.85%;left:-.05%;width:100.09%;height:137.3%}
.menu-card__image--bonding{top:-34.02%;left:-.13%;width:101.59%;height:141.8%}
.menu-card__image--ceramic-ortho{top:0;left:-7.98%;width:114.44%;height:105.76%}
.menu-card__image--ceramic{top:-31.2%;left:-39.06%;width:141.94%;height:131.2%}
.menu-card__image--whitening{top:-81.66%;left:-63.07%;width:284.14%;height:261.86%}
/* インプラント: 画像（x234・幅769）の右端を白へ溶かす帯（x945・幅76） */
.menu-card--full::before{content:"";position:absolute;top:0;left:945px;z-index:1;width:76px;height:100%;background:linear-gradient(to left,#fff 50%,rgba(255,255,255,0) 98.698%)}
.menu-card__veil{position:absolute;inset:0;z-index:1;opacity:.6;background:radial-gradient(50% 50% at 50% 50%,rgba(72,72,72,.84) 0%,#333 100%)}
.menu-card__title{position:absolute;top:63px;left:0;right:0;z-index:2;padding-left:2.4px;font-family:var(--font-mincho);font-size:30px;font-weight:400;line-height:1.7;letter-spacing:2.4px;text-align:center;white-space:nowrap;text-decoration:underline;text-decoration-thickness:1.2px;text-underline-offset:15px}
.menu-card__text{position:absolute;top:144px;left:var(--desc-x);z-index:2;width:var(--desc-w);font-family:var(--font-sans);font-size:13px;line-height:1.9;letter-spacing:1.04px;text-align:center}
.menu-card__arrow{position:absolute;top:208px;left:var(--arrow-x);z-index:2;width:27px;height:5px}
.menu-card__arrow::before{content:"";position:absolute;top:2px;left:0;width:22px;height:1px;background:currentColor}
.menu-card__arrow::after{content:"";position:absolute;top:0;right:0;width:5px;height:5px;border-radius:50%;background:currentColor}
@media (max-width:1439px){
  .menu-list__inner{padding-right:40px;padding-left:40px}
  .menu-list__row{gap:8px}
  .menu-card{flex:1 1 0;min-width:0}
  .menu-card--full{--desc-x:calc(50% - 292px);--arrow-x:calc(100% - 58px)}
  .menu-card--half{--desc-x:calc(50% - 298px);--arrow-x:calc(100% - 61px)}
  .menu-card--third{--desc-x:calc(50% - 197px);--arrow-x:calc(100% - 58px)}
  .menu-card__title{right:12px;left:12px;white-space:normal}
  .menu-card__text{right:12px;left:12px;width:auto}
  .menu-card__image{inset:0;width:100%;height:100%;object-fit:cover}
  .menu-card--full .menu-card__media{left:19.5%;width:64.08%}
  .menu-card--full::before{left:78.75%}
}
/* SP（2881:23131 393×3506）: 見出し（英字15 → 6 → 見出し26 → 6 → 罫線1 → 6）＋カード 345×180 を縦に並べる（間24、グループ間40）。
   カードは object-fit:cover・中央（Figma の SP は cover。PC の切り抜き指定は使わない）。審美の5枚（06〜10）だけは第13ラウンドから SP も切り抜き（下）。インプラントの白い帯なし、審美の下段の罫線なし。
   1倍の画面では、ブロックが半画素の位置（y837.5）から始まり Figma で1px の線が2行にまたがって描かれるため、罫線・見出しの下線・矢印の線を 2px・不透明度50%で描く（PC と同じ扱い。下の max-resolution:1dppx） */
@media (max-width:1023px){
  .menu-list__inner{min-height:0;padding:40px 24px 66px}
  .menu-list__group + .menu-list__group,.menu-list__group + .menu-list__group--implant{margin-top:40px}
  .menu-list__heading{position:relative;margin-bottom:6px;padding-bottom:7px;border-bottom:0}
  .menu-list__heading::after{content:"";position:absolute;right:0;bottom:0;left:0;height:1px;background:#777}
  .menu-list__latin{height:15px;font-size:12px;letter-spacing:1.44px}
  .menu-list__title{height:26px;margin-top:6px;font-size:15px;letter-spacing:1.2px}
  .menu-list__row{flex-direction:column;gap:24px}
  .menu-list__row + .menu-list__row{margin-top:24px}
  .menu-list__row--rule{border-top:0}
  /* 393px で 180px。狭い幅で見出し・説明が折り返したら高さを伸ばす（矢印は下端から20px） */
  .menu-card,.menu-card--half,.menu-card--third,.menu-card--full{flex:none;width:auto;height:auto;min-height:180px;padding:50px 16px 30px}
  .menu-card__media,.menu-card--full .menu-card__media{inset:0;width:auto}
  /* 01・02・06・07: SP は <picture> の source で元写真（card-*-sp）を出し、他のカードと同じく cover・中央 */
  .menu-card__image--fill{object-fit:cover}
  /* 審美の5枚（06〜10）: SP の Figma（2881:23201〜23243 345×180）は PC と同じ幅の倍率・横位置の切り抜き（縦横比は保つ）。
     写真の点（横 cx・縦 cy）をカードの中央に置く（left: 50% − cx×幅、top: 50%、translateY(−cy)）。値は SP の参照画像との当てはめ（第13ラウンド。07 だけ PC と縦の位置が違う）。
     幅の下限（px）は、カードの高さ180px を縦に覆う最小の幅（縦横比 × 90 ÷ min(cy, 1−cy)）。393px より狭い画面で上下に隙間が出ないようにする（320〜375px で実測した隙間への対処） */
  .menu-card__image--laminate,.menu-card__image--bonding,.menu-card__image--ceramic-ortho,.menu-card__image--ceramic,.menu-card__image--whitening{inset:auto;top:50%;height:auto;object-fit:fill}
  .menu-card__image--laminate{left:calc(50% - max(50.05%, 160.5px));width:max(100.09%, 321px);transform:translateY(-50.15%)}
  .menu-card__image--bonding{left:calc(50% - max(50.13%, 172.9px));width:max(101.59%, 350.4px);transform:translateY(-55.05%)}
  .menu-card__image--ceramic-ortho{left:calc(50% - max(57.98%, 168.7px));width:max(114.44%, 333px);transform:translateY(-47.3%)}
  .menu-card__image--ceramic{left:calc(50% - max(89.06%, 259.8px));width:max(141.94%, 414px);transform:translateY(-61.9%)}
  .menu-card__image--whitening{left:calc(50% - max(113.07%, 126.1px));width:max(284.14%, 317px);transform:translateY(-50.28%)}
  .menu-card--full::before{display:none}
  .menu-card__title,.menu-card--fat .menu-card__title{position:relative;top:auto;right:auto;left:auto;display:block;padding-left:1.76px;font-size:min(22px,5.598vw);line-height:1.6818;letter-spacing:1.76px;white-space:normal;text-decoration-thickness:.88px;text-underline-offset:10px}
  .menu-card__text{position:relative;top:auto;right:auto;left:auto;display:block;width:auto;margin-top:15px;padding-left:.96px;font-size:12px;letter-spacing:.96px;text-wrap:balance}
  .menu-card--caries .menu-card__text{text-wrap:wrap}/* 第11ラウンド: 新しい文はキャンバスで均等割りでなく自然な折り返し（「…電動麻酔で痛／みに…」。SP の参照画像） */
  .menu-card__arrow{top:auto;right:20px;bottom:20px;left:auto}
  /* SP はホバー演出なし（D-1）。キーボードの focus-visible の拡大は残す */
  .menu-card:hover .menu-card__zoom{transform:none}
  .menu-card:focus-visible .menu-card__zoom{transform:scale(1.05)}
}
@media (max-width:1023px) and (max-resolution:1dppx){
  .menu-list__heading::after{bottom:-.5px;height:2px;background:rgba(119,119,119,.5)}
  .menu-card__title,.menu-card--fat .menu-card__title{text-decoration-color:rgba(255,255,255,.5);text-decoration-thickness:2px}
  .menu-card__arrow::before{top:1.5px;height:2px;background:rgba(255,255,255,.5)}
}

/* ---------- 03 お悩みから（2558:46884 1440×554、背景 #efefef） ---------- */
/* 傾いた写真（虫眼鏡）は右外へはみ出すので横だけ切る */
.menu-concern{position:relative;background:var(--color-light-gray);overflow-x:clip}
.menu-concern__inner{position:relative;max-width:var(--page-width);height:554px;margin:0 auto}
/* 罫線（#d0d0d0 1px）は Figma の描画どおり2pxの半透明。縦線は原本の 0.12° の傾きを再現 */
.menu-concern__line{position:absolute;pointer-events:none}
.menu-concern__line--top,.menu-concern__line--bottom{left:0;right:0;height:2px;background:rgba(208,208,208,.5)}
.menu-concern__line--top{top:48px}
.menu-concern__line--bottom{top:499px}
.menu-concern__line--left,.menu-concern__line--right{top:0;width:1px;height:500px;background:#d0d0d0;transform:rotate(.12deg)}
.menu-concern__line--left{left:80px}
.menu-concern__line--right{left:calc(100% - 81px)}
.menu-concern__body{position:relative;z-index:1;width:760px;margin-left:145px;padding-top:78px}
.menu-concern__label{font-family:var(--font-en);font-size:16px;font-weight:400;line-height:1.75;letter-spacing:1.92px;color:var(--color-silver-gray)}
.menu-concern__title{margin-top:6px;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}
.menu-concern__catch{position:relative;top:1px;margin-top:37px;font-family:var(--font-mincho);font-size:20px;font-weight:400;line-height:2;letter-spacing:1.6px;color:var(--color-charcoal)}
.menu-concern__text{margin-top:49px;font-family:var(--font-sans);font-size:14px;line-height:2.2;letter-spacing:1.12px;color:var(--color-warm-brown-gray)}
.menu-concern__more{position:absolute;top:445px;left:609px;margin:0}
.menu-concern__visual{position:absolute;inset:0;pointer-events:none}
.menu-concern__photo{position:absolute;top:49px;left:64.0278%;width:437px;height:298px;overflow:hidden;opacity:.7}
.menu-concern__photo-image{position:absolute;top:-.01%;left:0;width:155.24%;max-width:none;height:151.59%}
/* 円で切り抜いた拡大（Mask group: 194×193 の円。画像の枠は 517.393×352.822 を円の左上から -115.722, -49.514） */
.menu-concern__lens{position:absolute;top:93px;left:calc(64.0278% + 104px);width:194px;height:193px;overflow:hidden;border-radius:50%}
.menu-concern__lens-image{position:absolute;top:-49.549px;left:-115.722px;width:803.2px;max-width:none;height:534.84px}
.menu-concern__tilt{position:absolute;top:11.51px;left:calc(64.0278% - 84px);width:687.144px;height:461.016px}
.menu-concern__tilt-image{position:absolute;top:50%;left:50%;width:632.223px;max-width:none;height:344.821px;object-fit:cover;transform:translate(-50%,-50%) rotate(11.2deg)}
@media (max-width:1439px){
  .menu-concern__body{width:auto;max-width:calc(64.0278% - 169px)}
  .menu-concern__title{white-space:normal}
  .menu-concern__more{position:static;margin-top:24px}
}
/* SP（2881:23320 393×833）: 罫線 → 写真の合成（345×300）→ 文章 → リンク（右寄せ）→ 罫線。写真は文章の前に並べ替え（order）、
   合成は 345×300 の箱に対する%で置き、幅に合わせて拡大縮小する。罫線は #d0d0d0 0.5px（1倍の画面では Figma の描画どおり1px・不透明度50%）、縦線なし */
@media (max-width:1023px){
  .menu-concern__inner{display:flex;flex-direction:column;height:auto;padding:72.5px 24px 80.5px}
  .menu-concern__line--top,.menu-concern__line--bottom{right:24px;left:24px;height:.5px;background:#d0d0d0}
  .menu-concern__line--top{top:40px}
  .menu-concern__line--bottom{top:auto;bottom:40px}
  .menu-concern__line--left,.menu-concern__line--right{display:none}
  .menu-concern__visual{position:relative;inset:auto;order:-1;width:100%;aspect-ratio:345 / 300;margin-bottom:32px}
  .menu-concern__photo{top:0;left:0;width:100%;height:78.4211%}
  .menu-concern__lens{top:11.579%;left:23.7986%;width:44.3936%;height:50.7895%}
  .menu-concern__lens-image{top:-25.6738%;left:-59.6499%;width:414.0225%;height:277.1209%}
  .menu-concern__tilt{top:-9.8667%;left:-19.2232%;width:157.2412%;height:121.32%}
  .menu-concern__tilt-image{width:92.0074%;height:74.7959%}
  .menu-concern__body{width:auto;max-width:none;margin:0;padding:0}
  .menu-concern__label{position:relative;top:1px;height:25px;font-size:14px;letter-spacing:1.68px}
  .menu-concern__title{height:35px;margin-top:4px;font-size:22px;letter-spacing:2.2px}
  .menu-concern__catch{top:auto;margin-top:24px;font-size:14px;letter-spacing:1.12px}
  .menu-concern__text{margin-top:20px;font-size:13px;line-height:2;letter-spacing:1.04px}
  .menu-concern__more{display:flex;justify-content:flex-end;margin-top:24px}
}
@media (max-width:1023px) and (max-resolution:1dppx){
  .menu-concern__line--top,.menu-concern__line--bottom{height:1px;background:rgba(208,208,208,.5)}
  .menu-concern__line--top{top:39.5px}
  .menu-concern__line--bottom{bottom:39.5px}
}
