/* 村山 史朗 先生 公式サイト F2 — Apple 型（2026-12-01 井上さん指示「Apple みたいなデザイン」）。決まりごとは DESIGN.md
   借りたのは並べ方の型だけ（大きな太い見出し／施術の帯／白とグレーの交互の区切り／横に送るカードの棚）。
   色・書体・寸法は自前の値。書体は端末の標準（Apple 端末ではヒラギノ角ゴ）で、外部フォントは読み込まない
   v15（2026-12-01 深夜）: 井上さん「とにかく余裕感」。左右の余白・節の上下・見出しの大きさを一段広げ、写真と線画を増やした */
:root {
  --c-bg: #ffffff;
  --c-trust: #eaf2fa;        /* 信頼の青（経歴の節）。文字 #1d1f24 で 14:1 */
  --c-accent-d: #155a92;     /* #eaf2fa の上の青文字 6.3:1 */
  --c-sub-trust: #4a5361;    /* #eaf2fa の上の補足文字 6.9:1 */
  --c-alt: #f4f5f7;          /* 区切りのグレー・白地の上のカード */
  --c-alt-2: #e9ebef;        /* グレーの上で一段濃い面・押した時 */
  --c-ink: #1d1f24;
  --c-sub: #5c6068;          /* 白で 6.2:1、#f4f5f7 で 5.7:1 */
  --c-line: #e1e3e8;
  --c-photo: #e5e6ee;        /* 先生の写真の背景色に合わせたカード */
  --c-accent: #1b6fb3;       /* リンク・「新着」・選択中 */
  --c-line-green: #06c755;   /* LINE 公式の緑。LINE で相談のボタンだけ */
  --c-tbd-bg: #fbf4dc;
  --c-tbd: #765c14;

  --f: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Yu Gothic', Meiryo, sans-serif;

  --max: 1120px;
  --pad: clamp(24px, 6.4vw, 80px);  /* 左右の余白。スマホ 390px で 25px、PC で 80px */
  --sec-y: clamp(96px, 13vw, 168px); /* 節の上下 */
  --gap: clamp(12px, 1.8vw, 24px);  /* カードの間 */
  --gutter: max(var(--pad), calc((100vw - var(--max)) / 2));
  --head-h: 48px;
  --c-menu: #fafafb;          /* スマホのメニューの地 */
  --r-s: 14px;               /* 小さい面（要点のタイル・帯の四角） */
  --r-l: 28px;               /* カード */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glass: rgba(255, 255, 255, .8);
  --blur: saturate(180%) blur(20px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font: 400 17px/1.8 var(--f); letter-spacing: .01em; line-break: strict; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
/* 横スクロールの中の隠し文字がページ幅を広げないよう、帯と棚の中で位置の基準を作る */
.shelf-track, .shelf-item, .case-mini { position: relative; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 120; padding: 8px 14px; border-radius: 999px; background: var(--c-ink); color: #fff; font-size: 13px; text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.tbd { color: var(--c-tbd); background: var(--c-tbd-bg); padding: 0 3px; border-radius: 4px; }
.sub { color: var(--c-sub); font-size: 14px; }
.plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.plain li:first-child { border-top: 1px solid var(--c-line); }
a[href^="tel:"] { white-space: nowrap; display: inline-block; padding: 12px 2px; margin: -12px -2px; }

/* ---------- 見出し ---------- */
.eyebrow { font-weight: 600; font-size: clamp(15px, 1.4vw, 17px); color: var(--c-sub); letter-spacing: .04em; }
.top-title { margin: 8px 0 0; font-weight: 700; font-size: clamp(40px, 7vw, 80px); line-height: 1.12; letter-spacing: .01em; }
.d-head { margin: 0; font-weight: 700; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.2; letter-spacing: .01em; }
.sec-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: clamp(36px, 5vw, 64px); }
/* 名前のふりがな：小さく、名前の上に */
ruby { ruby-position: over; }
rt { font-size: max(11px, .2em); font-weight: 500; color: var(--c-sub); letter-spacing: .12em; }
.name-sp { display: inline-block; width: .3em; }
.sec-note { margin: -8px 0 clamp(20px, 3vw, 32px); font-size: 13.5px; color: var(--c-sub); }
.h-s { margin: 0 0 28px; font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.35; }
.lead { max-width: 34em; margin-top: 20px; color: var(--c-sub); font-size: clamp(17px, 1.6vw, 19px); }
.body-l > * + * { margin-top: 16px; }

/* ---------- ボタン・リンク ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--c-accent); border-radius: 999px; background: transparent; color: var(--c-accent); font: 600 15px/1.3 var(--f); text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn:hover { background: var(--c-accent); color: #fff; }
.btn-primary { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
/* LINE で相談：LINE 公式の緑。白文字は 2.3:1 で基準外のため墨色の文字（6.1:1）。
   地の色を変えるとアイコンの角が浮くので、押せる反応は影と下線で出す */
.btn-line { padding: 0 26px 0 18px; background: var(--c-line-green); border-color: var(--c-line-green); color: var(--c-ink); }
.btn-line:hover { background: var(--c-line-green); color: var(--c-ink); box-shadow: 0 6px 18px rgba(6, 120, 60, .28); }
.btn-line:hover span { text-decoration: underline; text-underline-offset: 4px; }
/* 緑の上の青い枠は見分けにくいので、LINE ボタンだけ墨色の枠 */
.btn-line:focus-visible { outline-color: var(--c-ink); }
.btn-s { min-height: 40px; padding: 0 16px 0 12px; font-size: 14px; gap: 6px; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.line-ico { width: 24px; height: 24px; flex: none; border-radius: 6px; }
.btn-s .line-ico { width: 20px; height: 20px; }
/* 「›」付きの文字リンク */
.more, .text-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--c-accent); font-weight: 500; font-size: 15px; text-decoration: none; }
.more::after { content: ''; width: 6px; height: 6px; margin-left: 2px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.more:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- ヘッダー：全幅の薄いすりガラスの帯 ---------- */
.head { position: sticky; top: 0; z-index: 40; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.head.is-scrolled { border-bottom-color: rgba(0, 0, 0, .08); }
.head-in { display: flex; align-items: center; gap: 28px; max-width: calc(var(--max) + var(--pad) * 2); min-height: var(--head-h); margin: 0 auto; padding: 0 var(--pad); }
.brand { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-left: -8px; color: var(--c-ink); transition: opacity .2s; }
.brand:hover { opacity: .65; }
.mark { width: 30px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gnav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.gnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gnav a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 12.5px; color: rgba(29, 31, 36, .82); text-decoration: none; transition: color .2s; }
.gnav a:not(.btn):hover { color: var(--c-ink); }
.gnav a[aria-current] { color: var(--c-ink); font-weight: 600; }
.menu-btn, .head-cta { display: none; }
.gnav-cta { display: flex; align-items: center; gap: 16px; }
.gnav a.gnav-media { display: none; }
/* ヘッダーは細く小さい文字（Apple 型）。LINE のボタンも小さく */
.gnav-cta .btn-s { min-height: 30px; padding: 0 12px 0 8px; font-size: 12px; gap: 5px; }
.gnav-cta .btn-s .line-ico { width: 16px; height: 16px; border-radius: 4px; }
.gnav-cta .btn-s::after { content: ''; position: absolute; inset: -7px 0; }
.gnav-cta .btn-s { position: relative; }


/* ---------- 区切り：白とグレーを交互に ---------- */
.sec { padding: var(--sec-y) 0; }
.sec-alt { background: var(--c-alt); }
.sec-flush { padding-top: clamp(28px, 4vw, 48px); }
.sec-in { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.sec-in.narrow { max-width: calc(760px + var(--pad) * 2); }
.sec-tight { padding: 8px 0 0; }
main > .sec:last-child { padding-bottom: var(--sec-y); }

.badge-new { display: inline-block; margin-left: 8px; color: var(--c-accent); font-weight: 600; font-size: 12.5px; letter-spacing: .02em; }
.tile-new { color: var(--c-accent); font-weight: 600; font-size: 12px; }

/* 症例ページの絞り込み：丸いボタンを横に（件数付き） */
.filter { margin: clamp(28px, 4vw, 48px) auto clamp(28px, 4vw, 48px); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchips button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; color: var(--c-ink); font: 500 14px/1 var(--f); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.fchips button:hover { border-color: var(--c-ink); }
.fchips button .num { color: var(--c-sub); font-size: 12.5px; }
.fchips button[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.fchips button[aria-pressed="true"] .num { color: #c9ccd2; }

/* ---------- 横に送るカードの棚 ---------- */
.shelf-track { display: flex; gap: var(--gap); overflow-x: auto; padding: 4px var(--gutter) 20px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-track:focus-visible { outline-offset: -2px; }
.shelf-item { flex: 0 0 clamp(280px, 34vw, 440px); scroll-snap-align: start; }
.shelf-ctrl { display: flex; justify-content: flex-end; gap: 14px; margin-top: 12px; }
.shelf-ctrl[hidden] { display: none; }
.paddle { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(210, 212, 218, .64); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--c-ink); cursor: pointer; transition: background-color .2s, opacity .2s; }
.paddle:hover { background: rgba(190, 193, 201, .8); }
.paddle::before { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; }
.paddle-next::before { transform: translate(-65%, -50%) rotate(45deg); }
.paddle-prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.paddle:disabled { opacity: .35; cursor: default; }

/* ---------- 症例カード：写真のすぐ下に、費用・リスクなどをすべて置く ---------- */
.case { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--r-l); background: #fff; }
.case[hidden] { display: none; }
.case-photo { margin: 0; background: var(--c-photo); }
.case-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; cursor: zoom-in; }
.case-body { padding: 20px 22px 18px; }
.case-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 600; font-size: 12.5px; color: var(--c-sub); }
.case-tag .tile-new { display: inline; margin: 0; }
.case-title { margin: 4px 0 0; font-weight: 700; font-size: 19px; line-height: 1.45; }
.case-about { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--c-sub); }
.case-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; }
.case-key div { padding: 10px 12px; border-radius: var(--r-s); background: var(--c-alt); }
.case-key dt { font-size: 14px; color: var(--c-sub); }
.case-key dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; line-height: 1.55; }
.case-key .key-cost { grid-column: 1 / -1; }
.case-spec { margin: 12px 0 0; }
.case-spec div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--c-line); font-size: 13.5px; line-height: 1.7; }
.case-spec dt { color: var(--c-sub); }
.case-spec dd { margin: 0; }
.spec-risk { grid-template-columns: 1fr !important; gap: 6px !important; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 1px 10px; border-radius: 999px; background: var(--c-alt); font-size: 12.5px; line-height: 1.8; }
.chips-tail { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--c-sub); }
.case-indiv, .case-note { margin-top: 10px; font-size: 12.5px; color: var(--c-sub); }
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: auto; padding: 4px 22px 14px; }
.case-body + .case-links { padding-top: 0; }
.case-body .case-links { padding: 0; margin-top: 6px; }
.case-links .text-link { font-size: 14px; }
.case-src { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--c-sub); text-underline-offset: 4px; }

/* 症例の個別ページ */
.crumb { padding: 14px 0 0; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--c-accent); font-size: 14px; font-weight: 500; text-decoration: none; }
.back::before { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.back:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-detail { padding: 8px 0 clamp(40px, 6vw, 72px); background: none; border-radius: 0; overflow: visible; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.case-detail .case-photo { position: sticky; top: calc(var(--head-h) + 16px); overflow: hidden; border-radius: var(--r-l); }
.case-detail .case-body { padding: 0; }
.detail-title { margin: 12px 0 0; font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; text-wrap: balance; word-break: auto-phrase; }
.case-detail .case-links { padding: 0; margin-top: 16px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: clamp(48px, 7vw, 88px); }
.pager a { display: grid; gap: 2px; padding: 16px 20px; border-radius: 20px; background: var(--c-alt); text-decoration: none; transition: background-color .2s; }
.pager a:hover { background: var(--c-alt-2); }
.pager-next { text-align: right; }
.pager-lab { font-size: 12.5px; color: var(--c-sub); }
.pager-t { font-weight: 600; font-size: 15px; line-height: 1.5; }
.pager + .next { padding-top: 0 !important; }

/* 症例ページ：グレーの上に白いカードを並べる */
.notes { margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; list-style: none; font-size: 13px; line-height: 1.9; color: var(--c-sub); }
.notes li::before { content: '・'; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--gap); }

/* 経歴の帯：期間の長さに比例 */
.career-bar { display: flex; gap: 4px; margin: 24px 0 0; padding: 0; list-style: none; }
.career-bar li { position: relative; min-width: 0; padding-top: 18px; }
.career-bar li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; border-radius: 999px; background: var(--bar); }
.career-bar .p1 { --bar: #c5c8cf; min-width: 4.8em; }
.career-bar .p2 { --bar: #868b95; }
.career-bar .p3 { --bar: var(--c-ink); }
.cb-name { display: block; font-weight: 600; font-size: 13px; line-height: 1.5; }
.cb-year { display: block; font-size: 12px; color: var(--c-sub); white-space: nowrap; }
.career-bar .p1 .cb-name { font-size: 12px; color: var(--c-sub); }

/* ---------- ニュース ---------- */
.panel { padding: 8px clamp(24px, 4vw, 48px); border-radius: var(--r-l); background: #fff; }
.news { margin: 0; padding: 0; list-style: none; }
.news li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.news li:last-child { border-bottom: 0; }
.news time { color: var(--c-sub); }
.sec-tight .news { border-top: 1px solid var(--c-line); }

/* ---------- 相談の2つの窓口 ---------- */
.exits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.exit { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(32px, 4.4vw, 56px); border-radius: var(--r-l); background: var(--c-alt); }
.exit-title { margin: 0; font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; }
.exit-body { color: var(--c-sub); font-size: 15px; }
.exit-sub { margin-top: 6px; font-size: 13.5px; }
.exit .btn-line { margin-top: auto; }
.line-help { font-size: 13px; color: var(--c-sub); }
.mail-line { font-weight: 600; }

/* ---------- ページ末尾の出口 ---------- */
.next { padding-top: 0 !important; }
.sec-alt + .next { padding-top: var(--sec-y) !important; }
.next-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-l); background: var(--c-alt); }
.next-title { margin: 0; font-weight: 700; font-size: clamp(24px, 2.8vw, 32px); }
.next-text { grid-column: 1; color: var(--c-sub); font-size: 15px; }
.next-btn { grid-column: 2; grid-row: 1 / span 2; }
.next-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 28px; }

/* ---------- 下層ページの見出し ---------- */
.page-head { padding: clamp(64px, 10vw, 128px) 0 0; }
.page-head + .sec, .page-head + .ptoc + .sec { padding-top: clamp(40px, 6vw, 72px); }

/* ---------- プロフィール ---------- */
.prof-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: calc(100% - var(--pad) * 2); max-width: var(--max); min-height: min(70svh, 600px); margin: clamp(16px, 3vw, 32px) auto 0; overflow: hidden; border-radius: var(--r-l); background: var(--c-photo); }
.prof-photo { position: relative; margin: 0; min-height: 420px; }
.prof-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.prof-text { align-self: center; padding: clamp(32px, 5vw, 72px); }
.prof-name { margin: 0; font-weight: 700; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.12; }
.prof-role { margin-top: 14px; font-weight: 600; font-size: 16px; }
.prof-lead { max-width: 28em; margin-top: 12px; color: #4c5058; }
.prof-body { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.block + .block, .photo-row + .block, .block + .photo-row { margin-top: clamp(72px, 9vw, 120px); }
.timeline { margin: 0; border-top: 1px solid var(--c-line); }
.timeline div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.timeline dt { font-weight: 600; color: var(--c-sub); }
.timeline dd { margin: 0; }
.tl-phased { margin-top: 28px; }
.tl-phased div { border-left: 3px solid; padding-left: 14px; }
.tl-phased .p1 { border-left-color: #c5c8cf; }
.tl-phased .p2 { border-left-color: #868b95; }
.tl-phased .p3 { border-left-color: var(--c-ink); }
.zones { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px; margin-top: 24px; }
.zone { padding: 18px 20px 20px; border-radius: 20px; background: var(--c-alt); }
.zone-area { font-weight: 600; font-size: 13px; color: var(--c-sub); }
.zone ul { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 6px 0 0; padding: 0; list-style: none; }
.zone li { font-weight: 700; font-size: 17px; }
.zones-note { margin-top: 14px; color: var(--c-sub); font-size: 15px; }

/* ---------- 施術と料金 ---------- */
.ptoc { position: sticky; top: var(--head-h); z-index: 30; margin-top: clamp(20px, 3vw, 32px); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.ptoc .sec-in { display: flex; gap: 4px; padding-top: 6px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.ptoc a { display: inline-flex; align-items: center; flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #3c3f46; text-decoration: none; transition: background-color .2s; }
.ptoc a:hover { background: var(--c-alt); color: var(--c-ink); }
.price-in > * { max-width: 860px; }
section:has(> .price-in), #risk { scroll-margin-top: calc(var(--head-h) + 64px); }
.price-top { display: flex; align-items: center; gap: 20px; margin: clamp(72px, 9vw, 120px) 0 28px; }
.price-art { flex: none; width: clamp(88px, 10vw, 120px); padding: 6px; border-radius: 20px; background: var(--c-alt); }
.price-h { margin: 0; font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25; }
.price-body { padding: clamp(20px, 3vw, 36px); border-radius: var(--r-l); background: var(--c-alt); }
.price-sub { margin: 32px 0 6px; font-weight: 700; font-size: 16px; }
.price-body > .price-sub:first-child, .price-body > .price-list:first-child { margin-top: 0; }
.price-list { margin: 0; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 0; border-bottom: 1px solid #dcdee3; }
.price-list div:last-child { border-bottom: 0; }
.price-list dt { min-width: 0; }
.price-list dd { margin: 0; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
#extra .price-list { padding: 4px clamp(20px, 3vw, 36px); border-radius: var(--r-l); background: var(--c-alt); }
.price-spec { margin-top: 0; }
.price-spec div { grid-template-columns: 13em minmax(0, 1fr); border-top-color: #dcdee3; }
.price-risk dt { font-weight: 600; color: var(--c-ink); }
.price-risk .chips li { background: #fff; }
.price-note { margin: 14px 0 0; font-size: 13px; color: var(--c-sub); }
.price-cases { margin-top: 12px; }

/* ---------- 流れ・チェックリスト ---------- */
.flow { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.flow-time { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.flow li { counter-increment: step; padding: 18px 18px 20px; border-radius: 20px; background: var(--c-alt); }
.price-body .flow li { background: #fff; }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-ink); color: #fff; font-weight: 700; font-size: 13px; }
.flow-t { margin-top: 10px; font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.flow-d { margin-top: 4px; font-size: 13.5px; line-height: 1.75; color: var(--c-sub); }
.flow-note { margin-top: 20px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 14px 16px 14px 44px; border-radius: 16px; background: var(--c-alt); font-size: 15px; line-height: 1.7; }
.checks li::before { content: ''; position: absolute; left: 18px; top: 21px; width: 10px; height: 5px; border: solid var(--c-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* ---------- 文書（プライバシーポリシー） ---------- */
.doc h2 { margin: 48px 0 12px; font-weight: 700; font-size: 19px; line-height: 1.5; }
.doc p + p, .doc ul + p { margin-top: 12px; }
.doc ul { margin: 0; padding-left: 1.4em; }
.doc-date { margin-top: 40px !important; color: var(--c-sub); font-size: 14px; }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; line-height: 1.7; }
.doc th, .doc td { padding: 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.doc thead th { border-bottom-color: var(--c-ink); font-weight: 600; }

/* ---------- 線画（自作。患者さんの写真の代わり）：墨の線、施術で変えるところだけ青 ---------- */
.ill { display: block; width: 100%; height: auto; fill: none; stroke: var(--c-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill .ac { stroke: var(--c-accent); stroke-width: 2.4; }
.ill .fill { fill: var(--c-ink); stroke: none; }
.ill .dash { stroke-dasharray: 5 7; }

/* ---------- トップ：名前（Apple 型の大きな中央の名前と写真） ---------- */
.hero { padding: clamp(56px, 10vw, 128px) 0 0; }
.hero-in { text-align: center; }
.hero-name { margin: 10px 0 0; font-weight: 700; font-size: clamp(52px, 10vw, 112px); line-height: 1.12; letter-spacing: .02em; }
.hero-lead { margin-top: clamp(16px, 2vw, 24px); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 32px; margin-top: clamp(28px, 3.6vw, 40px); }
.hero-photo { margin: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; border-radius: var(--r-l); background: var(--c-photo); }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 14%; }

/* 施術から探す：線画のカード（施術名と新着だけ） */
.menus { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.mcard { display: flex; flex-direction: column; align-items: center; height: 100%; padding: clamp(28px, 3.6vw, 44px) 20px clamp(24px, 3vw, 36px); border-radius: var(--r-l); background: var(--c-alt); text-align: center; text-decoration: none; transition: background-color .25s; }
.mcard:hover { background: var(--c-alt-2); }
.mcard .ill { max-width: 180px; transition: transform .4s var(--ease); }
@media (hover: hover) { .mcard:hover .ill { transform: translateY(-4px); } }
.mcard-name { margin-top: 20px; font-weight: 700; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.45; }
.mcard .badge-new { margin: 6px 0 0; }

/* 経歴：黒い節に白黒の手術の写真 */
.story { padding: var(--sec-y) 0; background: var(--c-trust); color: var(--c-ink); }   /* 2026-12-01 黒→信頼の青（井上さん「黒すぎる」） */
.story-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.story-photo { margin: 0; overflow: hidden; border-radius: var(--r-l); }
.story-photo img { width: 100%; aspect-ratio: 8 / 7; object-fit: cover; }
.story .eyebrow { color: var(--c-accent-d); }
.story-h { margin: 14px 0 0; font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; color: var(--c-ink); }
.story-lead { max-width: 24em; margin-top: 24px; color: var(--c-sub-trust); font-size: clamp(16px, 1.5vw, 18px); }
.more-light { color: #fff; }
.story .more { margin-top: 24px; color: var(--c-accent-d); }
.band :focus-visible, .media :focus-visible { outline-color: #fff; }

/* 中心の施術：線画のカード2枚と写真 */
.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: var(--gap); }
.bento-card { margin: 0; border-radius: var(--r-l); background: var(--c-alt); overflow: hidden; }
.bento-photo { display: flex; flex-direction: column; padding: clamp(32px, 4.4vw, 56px); text-decoration: none; transition: background-color .25s; }
.bento-photo:hover { background: var(--c-alt-2); }
.bento-art { display: block; width: min(220px, 70%); margin-bottom: clamp(20px, 3vw, 36px); }
.bento-big { font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
.bento-sub { margin-top: 10px; color: var(--c-sub); font-size: clamp(15px, 1.4vw, 17px); }
.bento-img { grid-column: 2; grid-row: 1 / span 2; }
.bento-img img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: 50% 20%; }

/* クリニック：ロビーの写真の上に公式ロゴ（白）。写真に暗い幕をかけて文字を読めるように */
.band { position: relative; display: grid; align-items: end; min-height: clamp(560px, 72vw, 820px); overflow: hidden; color: #fff; background: #2a2c31; }
.band-media { position: absolute; inset: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 12, .86) 0%, rgba(8, 9, 12, .62) 42%, rgba(8, 9, 12, .12) 78%); }
.band-in { position: relative; width: 100%; padding-top: 120px; padding-bottom: clamp(56px, 8vw, 112px); }
.band-logo { display: block; width: clamp(200px, 24vw, 300px); height: auto; }
.band-eyebrow { color: rgba(255, 255, 255, .86); }
.band-h { margin: 18px 0 0; font-weight: 700; font-size: clamp(28px, 4vw, 48px); line-height: 1.35; }
.band-text { margin-top: 16px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.band .more { margin-top: 16px; }
.sec-shelf { padding: clamp(32px, 5vw, 56px) 0 var(--sec-y); }
.photo-card { margin: 0; }
.photo-card img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--r-l); background: var(--c-alt); }
.photo-card figcaption { margin-top: 12px; color: var(--c-sub); font-size: 14px; }

/* 発信：YouTube を大きく、ほかの SNS は公式マークの行 */
.media { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.media-main { position: relative; display: block; min-height: 480px; overflow: hidden; border-radius: var(--r-l); background: #111214; color: #fff; text-decoration: none; }
.media-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .6s var(--ease); }
@media (hover: hover) { .media-main:hover img { transform: scale(1.03); } }
.media-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 9, 12, .82) 0%, rgba(8, 9, 12, .2) 55%, rgba(8, 9, 12, 0) 80%); }
.media-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; justify-items: start; gap: 12px; padding: clamp(28px, 4vw, 48px); }
.media-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.media-brand .ico { width: 24px; height: 24px; }
.media-h { font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.35; }
.media-main .more { min-height: 0; }
.sns-cards { display: grid; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.sns-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 0 18px; height: 100%; padding: 24px clamp(24px, 3vw, 36px); border-radius: var(--r-l); background: var(--c-alt); text-decoration: none; transition: background-color .25s; }
.sns-card:hover { background: var(--c-alt-2); }
.sns-card .ico { grid-row: 1 / span 2; width: 30px; height: 30px; }
.sns-card::after { content: ''; grid-column: 3; grid-row: 1 / span 2; width: 8px; height: 8px; border: solid var(--c-sub); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.sns-card-name { font-weight: 700; font-size: 18px; line-height: 1.4; }
.sns-card-handle { grid-column: 2; color: var(--c-sub); font-size: 13.5px; }

/* 症例一覧：線画・施術名・新着・日付だけのカード */
.ccard { position: relative; border-radius: var(--r-l); background: #fff; }
.ccard-link { display: flex; flex-direction: column; height: 100%; padding: clamp(28px, 3vw, 36px) clamp(24px, 2.6vw, 32px); border-radius: var(--r-l); text-decoration: none; transition: background-color .25s; }
.ccard-link:hover { background: #fbfbfc; }
.ccard-art { display: block; width: min(200px, 72%); margin: 0 auto 24px; }
@media (hover: hover) { .ccard-link .ill { transition: transform .4s var(--ease); } .ccard-link:hover .ill { transform: translateY(-4px); } }
.ccard-body { display: grid; gap: 6px; }
.ccard-tag { font-weight: 600; font-size: 13px; color: var(--c-sub); }
.ccard-title { font-weight: 700; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; }
.ccard-date { color: var(--c-sub); font-size: 13px; }

/* プロフィール・ご相談の写真 */
.photo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); }
.photo-row figure { margin: 0; }
.photo-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-l); }
.wide-photo { margin: 0 0 clamp(48px, 6vw, 80px); }
.wide-photo img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--r-l); }

/* ---------- フッター（Apple 型）：上に注記、見出し付きの列。スマホでは列ごとに開閉 ---------- */
.foot { background: var(--c-alt); color: var(--c-sub); font-size: 12.5px; line-height: 1.7; }
.foot-in { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 24px var(--pad) 32px; }
.foot-notes { padding-bottom: 18px; border-bottom: 1px solid #d6d8dd; }
.foot-notes p + p { margin-top: 8px; }
.foot-dir { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; padding: 24px 0 28px; }
.fcol summary { list-style: none; }
.fcol summary::-webkit-details-marker { display: none; }
.fcol-h { margin: 0; font-weight: 600; font-size: 12.5px; color: var(--c-ink); }
.fcol ul { margin: 10px 0 0; padding: 0; list-style: none; }
.fcol li { padding: 0; }
.fcol a { display: inline-flex; align-items: center; min-height: 32px; gap: 6px; color: var(--c-sub); text-decoration: none; }
.fcol a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
.fcol .ico { width: 14px; height: 14px; flex: none; }
.foot-logo { display: inline-block; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--c-ink); }
.foot-logo img { width: 92px; height: auto; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid #d6d8dd; }
.foot-legal { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.foot-legal a { color: var(--c-sub); text-decoration: none; }
.foot-legal a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 症例写真の拡大：説明は写真の下に常に出す ---------- */
.viewer { width: 100%; max-width: 760px; height: 100%; max-height: 100%; margin: 0 auto; padding: 0; border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: #fff; color: var(--c-ink); }
.viewer::backdrop { background: rgba(29, 31, 36, .6); }
.viewer-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--c-line); }
.viewer-bar .count { margin-right: auto; font-size: 13px; color: var(--c-sub); }
.viewer-bar button { min-width: 44px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--c-alt); color: var(--c-ink); font: 600 13.5px var(--f); cursor: pointer; }
.viewer-bar button:hover { background: var(--c-alt-2); }
.viewer-bar button:disabled { opacity: .35; cursor: default; }
.viewer-img { width: 100%; height: auto; background: var(--c-photo); touch-action: pan-y pinch-zoom; }
.viewer-body .case-body { padding: 20px; }

/* ---------- 動き：控えめに。見出しとカードが下から少し上がって現れるだけ ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .top-head .sec-in > *, .js .hero-card { animation: rise .7s var(--ease) both; }
  .js .top-title { animation-delay: .05s; }
  .js .hero-card { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sr, .sec-top, .bento-card, .exit, .gallery .case, .menus > li, .story-in > *, .media > *, .hero-photo { animation: sr-in linear both; animation-timeline: view(); animation-range: entry 0px entry 180px; }
    @keyframes sr-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  }
}
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .io .sr { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
    .io .sr.is-in { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- タブレット・スマホ ---------- */
@media (max-width: 900px) {
  .head-in { gap: 10px; }
  .head-cta { display: inline-flex; margin-left: auto; white-space: nowrap; }
  .head-cta.btn-line { min-height: 32px; padding: 0 12px 0 8px; font-size: 12.5px; gap: 5px; }
  .head-cta .line-ico { width: 17px; height: 17px; border-radius: 4px; }
  /* 押せる範囲は 44px 以上に広げる（見た目は 32px） */
  .head-cta { position: relative; transition: opacity .2s; }
  .head-cta::after { content: ''; position: absolute; inset: -6px 0; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--c-ink); cursor: pointer; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  /* 2本線 → ×（線が中央に寄ってから回る） */
  .menu-bar { position: relative; width: 18px; height: 12px; }
  .menu-bar::before, .menu-bar::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor; transition: top .16s var(--ease) .16s, transform .2s var(--ease); }
  .menu-bar::before { top: 3px; }
  .menu-bar::after { top: 8px; }
  .menu-btn[aria-expanded="true"] .menu-bar::before, .menu-btn[aria-expanded="true"] .menu-bar::after { top: 5.5px; transition: top .16s var(--ease), transform .22s var(--ease) .14s; }
  .menu-btn[aria-expanded="true"] .menu-bar::before { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bar::after { transform: rotate(-45deg); }

  /* メニュー：画面いっぱい。上から幕が下りるように開き、項目が少しずつ遅れて上から現れる。閉じる時は項目が先に消えてから幕が上がる */
  .gnav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100svh - var(--head-h)); flex-direction: column; align-items: stretch; gap: 28px; overflow-y: auto; overscroll-behavior: contain; padding: 4px calc(var(--pad) + 16px) 40px; background: var(--c-menu); }
  html.menu-lock { overflow: hidden; }
  .head.menu-ready .gnav { display: flex; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .3s cubic-bezier(.4, 0, .6, 1), visibility 0s linear .3s; }
  .head.menu-ready.is-open .gnav { visibility: visible; clip-path: inset(0); transition: clip-path .4s var(--ease), visibility 0s; }
  .head.menu-ready .gnav li, .head.menu-ready .gnav-cta { opacity: 0; transform: translateY(-6px); transition: opacity .12s, transform .12s; }
  .head.menu-ready.is-open .gnav li, .head.menu-ready.is-open .gnav-cta { opacity: 1; transform: none; transition: opacity .3s var(--ease) calc(.1s + var(--n, 0) * .03s), transform .3s var(--ease) calc(.1s + var(--n, 0) * .03s); }
  .gnav li:nth-child(2) { --n: 1; } .gnav li:nth-child(3) { --n: 2; } .gnav li:nth-child(4) { --n: 3; } .gnav li:nth-child(5) { --n: 4; } .gnav-cta { --n: 6; }
  .head { transition: background-color .3s .1s, border-color .3s; }
  .head.is-open { background: var(--c-menu); -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color .15s; }
  .head.is-open .head-cta { opacity: 0; pointer-events: none; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a:not(.btn) { min-height: 48px; padding: 0; font-weight: 600; font-size: 26px; line-height: 1.3; color: var(--c-ink); }
  .gnav a:not(.btn):hover { color: var(--c-accent); }
  .gnav a[aria-current] { color: var(--c-ink); }
  .gnav-cta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gnav-cta .btn-s { min-height: 48px; padding: 0 22px 0 14px; font-size: 15px; gap: 8px; }
  .gnav-cta .btn-s .line-ico { width: 22px; height: 22px; border-radius: 6px; }
  .gnav a.gnav-media { display: inline-flex; min-height: 44px; font-weight: 500; font-size: 14px; color: var(--c-accent); }

  .prof-head { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 12%; }
  .prof-photo { order: -1; min-height: 0; height: min(56svh, 100vw); }
  .prof-text { padding: 28px 24px 32px; }
  .exits { grid-template-columns: 1fr; }
  .menus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-in, .media { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .bento-img { grid-column: auto; grid-row: auto; }
  .bento-img img { height: auto; aspect-ratio: 4 / 5; }
  .foot-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .sec-top { flex-direction: column; align-items: flex-start; }
  .sec-top .more { margin-top: -4px; }
  .shelf-track { gap: 14px; }
  .shelf-item { flex-basis: min(84vw, 340px); }
  .hero-photo img { aspect-ratio: 4 / 5; }
  .hero-cta .btn-line { flex: 1 1 100%; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  .timeline div { grid-template-columns: 5.5em minmax(0, 1fr); }
  /* フッター：列ごとに開閉（Apple のスマホ版と同じ型） */
  .foot-dir { grid-template-columns: 1fr; gap: 0; padding: 4px 0 20px; }
  .fcol { border-bottom: 1px solid #d6d8dd; }
  .fcol summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer; }
  .fcol summary::after { content: ''; width: 7px; height: 7px; margin-right: 4px; border: solid var(--c-sub); border-width: 1.5px 1.5px 0 0; transform: translateY(-2px) rotate(135deg); transition: transform .25s var(--ease); }
  .fcol[open] summary::after { transform: translateY(2px) rotate(-45deg); }
  .fcol-h { font-size: 14px; font-weight: 500; }
  .fcol ul { margin: 0 0 14px; }
  .fcol li { padding: 0; }
  .fcol a { min-height: 40px; font-size: 14px; }
  .fcol li:not(:has(a)) { padding: 6px 0; font-size: 13.5px; }
  .foot-logo { margin: 0 0 18px; }
  .ccard-link { flex-direction: row; align-items: center; gap: 20px; padding: 20px; }
  .ccard-art { flex: none; width: 104px; margin: 0; padding: 6px; border-radius: 18px; background: var(--c-alt); }
  .media-main { min-height: 0; aspect-ratio: 4 / 5; }
  .sns-card { padding: 20px 24px; }
  .band-text { font-size: 14px; }
  .flow, .flow-time { grid-template-columns: 1fr; }
  .zones, .checks { grid-template-columns: 1fr; }
  .case-spec div { grid-template-columns: 6em minmax(0, 1fr); font-size: 14px; }
  .price-list div { gap: 16px; font-size: 14.5px; }
  .price-spec div { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .next-in { grid-template-columns: 1fr; }
  .next-btn { grid-column: 1; grid-row: auto; justify-self: stretch; }
  .next-links { grid-column: 1; }
  .exit .btn-line { align-self: stretch; }
  .gallery { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .case-detail .case-photo { position: static; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .cb-name { font-size: 12px; }
}

/* 狭いスマホ（360px 以下）：ヘッダーを1行に収める */
@media (max-width: 374px) {
  :root { --pad: 16px; }
  .head-cta.btn-line { padding: 0 10px 0 8px; font-size: 12.5px; gap: 4px; }
  .ptoc .sec-in { flex-wrap: wrap; overflow-x: visible; }
}

/* 透明を減らす設定・すりガラス非対応：不透明の白に戻す */
@media (prefers-reduced-transparency: reduce) {
  .head, .ptoc, .viewer-bar { background: #fff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .paddle { background: var(--c-alt-2) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .head, .ptoc, .viewer-bar { background: #fff; }
  .paddle { background: var(--c-alt-2); }
}

main:focus, main:focus-visible { outline: none; }
@media (max-width: 760px) { .foot-bottom { border-top: 0; } }
.nb { display: inline-block; }
.tbd { display: inline-block; max-width: 100%; }
h1, h2, h3, dt, dd, .flow-t, .mcard-name, .ccard-title, .prof-role, .bento-sub { word-break: auto-phrase; text-wrap: balance; }
.hero-lead, .lead { word-break: auto-phrase; text-wrap: pretty; }
.addr-b { white-space: nowrap; }
@media (max-width: 760px) { .top-title { font-size: clamp(34px, 10vw, 40px); } .fcol a { min-height: 44px; } }

/* SNS カード：各サービスのロゴのデザインを背景のモチーフに（2026-12-01 井上さん指示） */
.sns-card { position: relative; overflow: hidden; isolation: isolate; align-content: center; }
.sns-mark { position: absolute; right: -6%; top: 50%; z-index: -1; width: 46%; transform: translateY(-50%) rotate(-8deg); pointer-events: none; }
.sns-mark .ico { display: block; width: 100%; height: auto; }
.sns-instagram { background: linear-gradient(160deg, #4f5bd5 0%, #962fbf 34%, #d62976 70%, #fa7e1e 100%); color: #fff; }
.sns-instagram .sns-mark { color: rgba(255, 255, 255, .22); }
.sns-x { background: #000; color: #fff; }
.sns-x .sns-mark { color: rgba(255, 255, 255, .14); }
.sns-threads { background: #fff; color: #000; box-shadow: inset 0 0 0 1px #d6d8dd; }
.sns-threads .sns-mark { color: rgba(0, 0, 0, .07); }
.sns-instagram .sns-card-handle, .sns-x .sns-card-handle { color: rgba(255, 255, 255, .9); }
.sns-threads .sns-card-handle { color: var(--c-sub); }
.sns-instagram::after, .sns-x::after { border-color: #fff; }
.sns-instagram:hover, .sns-x:hover { background-color: inherit; filter: brightness(1.08); }
.sns-instagram:hover { background: linear-gradient(160deg, #4f5bd5 0%, #962fbf 34%, #d62976 70%, #fa7e1e 100%); }
.sns-x:hover { background: #1a1a1a; filter: none; }
.sns-threads:hover { background: #f7f7f8; }
.sns-instagram:focus-visible, .sns-x:focus-visible { outline-color: var(--c-ink); }

/* 症例の個別ページ（2026-12-01 井上さん「詳細は Instagram にある。HP は症例紹介でクリエイティブ重視、あまり語らずおしゃれに」）
   写真を大きく、文字は施術名と Instagram のロゴだけ。費用・経過・回数・リスクは医療広告の条件なので、写真の近くに小さく静かに残す */
.case-detail { padding-top: clamp(16px, 3vw, 40px); }
.detail-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: end; }
.case-detail .case-photo { position: static; }
.case-detail .case-body { padding-bottom: 8px; }
.dt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.case-detail .case-tag { font-size: 13px; letter-spacing: .04em; }
.detail-title { margin: 10px 0 0; font-weight: 700; font-size: clamp(26px, 3vw, 40px); line-height: 1.3; text-wrap: balance; word-break: auto-phrase; }
.d-ig { flex: none; display: block; width: 48px; height: 48px; border-radius: 22.5%; }
.d-ig img { display: block; width: 100%; height: 100%; }
.d-ig:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.d-facts { margin: clamp(40px, 5vw, 64px) 0 0; }
.d-facts div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--c-line); font-size: 13.5px; line-height: 1.7; }
.d-facts dt { color: var(--c-sub); }
.d-facts dd { margin: 0; }
.d-fine { margin-top: 14px; font-size: 12.5px; line-height: 1.7; color: var(--c-sub); }
.case-detail + .pager { margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-detail .case-photo { margin: 0 calc(var(--pad) * -1); border-radius: 0; }
  .d-facts { margin-top: 32px; }
  .d-facts div { grid-template-columns: 6em minmax(0, 1fr); }
}
.ill.glass { fill: none; stroke: none; overflow: visible; }

/* ===== 動き（2026-12-02 井上さん「アニメーションをふんだんに。Apple を参考に」）=====
   Apple の製品ページの型：読み込み時にぼかしから浮かぶ見出し、スクロールに合わせて広がる写真、
   順に立ち上がるカード、文字が左から濃くなる見出し、横の棚は端のカードを小さく薄く。
   スクロールの乗っ取りはしない（スクロール量に連動するだけ）。無限ループはしない。
   動きを減らす設定の人には一切出さない（上の prefers-reduced-motion: reduce で全停止） */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }
@media (prefers-reduced-motion: no-preference) {
  /* 押した感触・乗せた時 */
  .btn, .mcard, .ccard-link, .sns-card, .media-main { transition: background-color .2s, color .2s, box-shadow .2s, transform .45s var(--ease-out); }
  .btn:active, .mcard:active, .ccard-link:active, .sns-card:active, .media-main:active { transform: scale(.97); transition-duration: .1s; }
  .d-ig { transition: transform .5s var(--ease-spring); }
  .d-ig:active { transform: scale(.92); transition-duration: .1s; }
  .ill.glass { transition: translate .6s var(--ease-spring), rotate .6s var(--ease-spring); }
  .sns-mark { transition: rotate .7s var(--ease-spring), scale .7s var(--ease-spring); }
  @media (hover: hover) {
    .mcard:hover .ill, .ccard-link:hover .ill { transform: none; translate: 0 -8px; rotate: -4deg; }
    .mcard:hover, .sns-card:hover { transform: translateY(-4px); }
    .sns-card:hover .sns-mark { rotate: 10deg; scale: 1.12; }
    .d-ig:hover { transform: scale(1.1) rotate(-8deg); }
    .media-main:hover img { transform: scale(1.04); }
  }

  /* 読み込み時：ぼかしから浮かび上がる（トップ・各ページの見出し・症例ページ） */
  .js .hero-in > *, .js .page-head .sec-in > *, .js .prof-head .sec-in > *, .js .case-detail .case-body > * { animation: blur-rise 1.1s var(--ease-out) both; }
  .js .hero-in > :nth-child(2), .js .page-head .sec-in > :nth-child(2), .js .prof-head .sec-in > :nth-child(2), .js .case-detail .case-body > :nth-child(2) { animation-delay: .1s; }
  .js .hero-in > :nth-child(3), .js .prof-head .sec-in > :nth-child(3), .js .case-detail .case-body > :nth-child(3) { animation-delay: .2s; }
  .js .hero-in > :nth-child(4), .js .prof-head .sec-in > :nth-child(4) { animation-delay: .32s; }
  @keyframes blur-rise { from { opacity: 0; transform: translateY(32px); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
  /* 症例ページの写真：角の丸い窓が開くように広がる */
  .js .case-detail .case-photo { animation: photo-reveal 1.2s var(--ease-out) both; }
  .js .case-detail .case-photo img { animation: zoom-out 1.6s var(--ease-out) both; }
  .js .d-facts div { animation: rise 0.8s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * .06s); }
  .d-facts div:nth-child(2) { --i: 1; } .d-facts div:nth-child(3) { --i: 2; } .d-facts div:nth-child(4) { --i: 3; } .d-facts div:nth-child(5) { --i: 4; } .d-facts div:nth-child(6) { --i: 5; }
  .js .dt-head .d-ig { animation: pop-in .9s var(--ease-spring) .45s both; }
  @keyframes photo-reveal { from { clip-path: inset(8% 8% 8% 8% round 40px); opacity: 0; } to { clip-path: inset(0 0 0 0 round 0); opacity: 1; } }
  @keyframes zoom-out { from { transform: scale(1.15); } to { transform: none; } }
  @keyframes pop-in { from { opacity: 0; transform: scale(.4) rotate(-20deg); } to { opacity: 1; transform: none; } }

  /* ページ切替：前のページは少し縮んで消え、次のページが下から浮かぶ */
  ::view-transition-old(root) { animation: vt-out .3s var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease-out) both; }
  @keyframes vt-out { to { opacity: 0; transform: scale(.98); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* トップの大きな写真：スクロールに合わせて左右の余白が消え、中の写真が引いていく */
    .hero-photo { animation: photo-open linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .hero-photo img, .story-photo img, .bento-photo img, .media-main img { animation: zoom-out linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes photo-open { from { clip-path: inset(0 10% 0 10% round 56px); } to { clip-path: inset(0 0 0 0 round var(--r-l)); } }
    .story-photo { animation: photo-open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }

    /* 節の見出し：ぼかしから浮かぶ */
    .sec-top, .d-head, .price-h, .block h2, .exit-title, .media-h { animation: blur-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes blur-in { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

    /* 経歴の見出し：読み進めると文字が左から濃くなる */
    .story-h { background: linear-gradient(90deg, var(--c-ink) 0 50%, #8a99ab 50% 100%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ink-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .story-h * { color: transparent; }
    @keyframes ink-in { to { background-position: 0 0; } }

    /* カード：順に立ち上がる（同じ段は少しずつずらす） */
    .menus > li, .bento-card, .gallery .case, .sns-cards > li, .news > li, .exit, .price-body, .block, .flow > li { animation: card-in linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .menus > li:nth-child(even), .sns-cards > li:nth-child(2), .bento-card:nth-child(even) { animation-range: entry 10% cover 34%; }
    .sns-cards > li:nth-child(3) { animation-range: entry 20% cover 40%; }
    @keyframes card-in { from { opacity: 0; transform: translateY(56px) scale(.94); } to { opacity: 1; transform: none; } }

    /* ガラスのイラスト：回りながら落ち着き、縁の光がなぞる */
    .ill.glass { view-timeline: --glass; animation: glass-in linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes glass-in { from { opacity: 0; transform: translateY(28px) scale(.82) rotate(-8deg); } to { opacity: 1; transform: none; } }
    .ill.glass .hl { stroke-dasharray: 1; animation: hl-draw linear both; animation-timeline: --glass; animation-range: entry 30% cover 40%; }
    @keyframes hl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

    /* SNS カードの大きなロゴ：回りながら所定の角度へ */
    .sns-card { view-timeline: --sns; }
    .sns-mark { animation: mark-in linear both; animation-timeline: --sns; animation-range: entry 0% cover 45%; }
    @keyframes mark-in { from { transform: translateY(-50%) rotate(-40deg) scale(.6); opacity: 0; } to { transform: translateY(-50%) rotate(-8deg); opacity: 1; } }

    /* 横の棚：真ん中のカードは等倍、端に寄るほど小さく薄く */
    .shelf-item { animation: shelf-fx linear both; animation-timeline: view(inline); }
    @keyframes shelf-fx { 0% { opacity: .35; scale: .9; } 30%, 75% { opacity: 1; scale: 1; } 100% { opacity: .35; scale: .9; } }
  }
}
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .io .sr { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); filter: blur(8px); transform: translateY(40px); }
    .io .sr.is-in { filter: none; }
  }
}

/* ===== スライドインと色の流れ（2026-12-02 井上さん「Apple が豊富なのはスライドインとグラデーションのアニメーション」）=====
   スライド：横から滑り込む（左右の列・写真と文章は反対側から）。individual の translate で書き、他の動きと重ねられるようにする
   色の流れ：見出しの文字に青い光が一度だけ通り抜け、最後は墨色で止まる。経歴の地はスクロールに合わせて淡い青がゆっくり流れる。
   ボタンは乗せた時に光が走る。どれも無限ループにはしない（L1） */
@media (prefers-reduced-motion: no-preference) {
  /* 名前：読み込み時に青い光が左から右へ通り抜ける */
  .js .hero-name, .js .page-head .top-title {
    background: linear-gradient(100deg, var(--c-ink) 0 32%, #1b6fb3 42%, #6fb6ee 50%, #1b6fb3 58%, var(--c-ink) 68% 100%) 100% 0 / 320% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: blur-rise 1.1s var(--ease-out) .1s both, sheen 2.4s var(--ease-out) .5s both;
  }
  @keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

  /* LINE のボタン：乗せた時と、トップでは読み込みの最後に一度だけ光が走る（緑は変えない） */
  .btn-line { position: relative; overflow: hidden; isolation: isolate; }
  .btn-line::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%); translate: -130% 0; pointer-events: none; }
  .btn-line:hover::after { translate: 130% 0; transition: translate .9s var(--ease-out); }
  .js .hero-cta .btn-line::after { animation: glint 1.2s var(--ease-out) 1.4s both; }
  @keyframes glint { from { translate: -130% 0; } to { translate: 130% 0; } }

  /* Instagram のカード：乗せるとグラデーションが流れる */
  .sns-instagram { background-size: 180% 180%; background-position: 0% 0%; transition: transform .45s var(--ease-out), background-position 1s var(--ease-out); }
  .sns-instagram:hover { background-position: 100% 100%; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* 節の見出し：左から滑り込み、文字に青い光が通り抜ける */
    .sec-top { animation: slide-l linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .sec-top .more { animation: slide-r linear both; animation-timeline: view(); animation-range: entry 10% cover 34%; }
    .sec-top .d-head, .price-h, .block h2 {
      background: linear-gradient(100deg, var(--c-ink) 0 32%, #1b6fb3 42%, #6fb6ee 50%, #1b6fb3 58%, var(--c-ink) 68% 100%) 100% 0 / 320% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      animation: sheen linear both; animation-timeline: view(); animation-range: entry 30% cover 45%;
    }
    @keyframes slide-l { from { opacity: 0; translate: -72px 0; filter: blur(8px); } to { opacity: 1; translate: 0 0; filter: none; } }
    @keyframes slide-r { from { opacity: 0; translate: 72px 0; } to { opacity: 1; translate: 0 0; } }

    /* カード：左右の列は外側から、横一列は右から順に滑り込む */
    .menus > li, .bento-card, .gallery .case, .news > li, .exit { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .menus > li:nth-child(odd), .bento-card:nth-child(odd), .exit:nth-child(odd) { --sx: -80px; }
    .menus > li:nth-child(even), .bento-card:nth-child(even), .exit:nth-child(even), .gallery .case, .news > li { --sx: 80px; }
    @media (min-width: 761px) {
      .menus > li { --sx: 96px; }
      .menus > li:nth-child(2) { animation-range: entry 6% cover 34%; }
      .menus > li:nth-child(3) { animation-range: entry 12% cover 38%; }
      .menus > li:nth-child(4) { animation-range: entry 18% cover 42%; }
    }
    @keyframes slide-in { from { opacity: 0; translate: var(--sx, 80px) 0; scale: .96; } to { opacity: 1; translate: 0 0; scale: 1; } }

    /* 写真と文章は反対側から（経歴・YouTube） */
    .story-photo, .media-main { animation: photo-open linear both, slide-from-l linear both; animation-timeline: view(), view(); animation-range: entry 0% cover 45%, entry 0% cover 35%; }
    .story-text, .sns-cards { animation: slide-from-r linear both; animation-timeline: view(); animation-range: entry 5% cover 40%; }
    .sns-cards > li { animation: slide-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; --sx: 64px; }
    .sns-cards > li:nth-child(2) { animation-range: entry 8% cover 36%; }
    .sns-cards > li:nth-child(3) { animation-range: entry 16% cover 42%; }
    @keyframes slide-from-l { from { translate: -10% 0; } to { translate: 0 0; } }
    @keyframes slide-from-r { from { opacity: 0; translate: 12% 0; } to { opacity: 1; translate: 0 0; } }

    /* 横の棚：右から順に滑り込み、端は小さく薄く */
    .shelf-item { animation: shelf-fx linear both, slide-from-r linear both; animation-timeline: view(inline), view(); animation-range: normal, entry 0% cover 30%; }

    /* 経歴の地：スクロールに合わせて淡い青がゆっくり流れる */
    .story { background: linear-gradient(135deg, #f3f8fd 0%, #dbeaf8 30%, #eaf2fa 55%, #d4e5f6 80%, #eef5fc 100%) 0 0 / 260% 260%; animation: flow-bg linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes flow-bg { to { background-position: 100% 100%; } }
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* 症例ページの数値の行：右から順に滑り込む（読み込み時） */
  .js .d-facts div { animation: facts-in .8s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * .06s); }
  @keyframes facts-in { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
}
/* 横から滑り込む途中で画面の横幅を広げない（sticky のヘッダーを壊さない clip を使う） */
main, .foot { overflow-x: clip; }
.media-h { display: block; }   /* 2026-12-02 評価 P2：inline のままだとスクロール連動の動きが最後まで進まない */
/* overflow:hidden の箱はスクロール連動の基準になってしまい、中の動き（写真の引き・ガラス・見出し）が最後まで進まない。
   見た目は同じで基準にならない clip にする（2026-12-02 評価 P2 の原因） */
.hero-photo, .story-photo, .bento-card, .media-main, .sns-card, .case-photo { overflow: clip; }

/* 2026-12-02 平船さん指摘「美容外科医とふりがなの間が詰まっている」→ PC だけ広げる（SP は今のまま） */
@media (min-width: 768px) {
  .hero-name { margin-top: clamp(20px, 2.4vw, 36px); }
}
/* 2026-12-02 施術カードに「何をする施術か」の一言 */
.mcard-what { margin-top: 4px; color: var(--c-sub); font-size: clamp(13px, 1.1vw, 14px); line-height: 1.5; }

/* 症例ギャラリー（2026-12-06）：Instagram の1投稿＝1枚。写真は横スクロール、押すと Instagram へ */
.gallery-ig { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.igcard { position: relative; }
.ig-media { position: relative; background: var(--c-alt); }
.ig-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; aspect-ratio: 4 / 5; }
.ig-track::-webkit-scrollbar { display: none; }
.ig-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.ig-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ig-count { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 22, 26, .62); color: #fff; font-size: 12px; line-height: 1.4; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ig-arrow { position: absolute; top: 50%; width: 36px; height: 36px; margin-top: -18px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); box-shadow: 0 2px 10px rgba(0, 0, 0, .16); cursor: pointer; opacity: 0; transition: opacity .2s; }
.ig-arrow::before { content: ''; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-top: 2px solid var(--c-ink); border-right: 2px solid var(--c-ink); }
.ig-prev { left: 10px; } .ig-prev::before { transform: translateX(2px) rotate(-135deg); }
.ig-next { right: 10px; } .ig-next::before { transform: translateX(-2px) rotate(45deg); }
@media (hover: hover) { .igcard:hover .ig-arrow, .ig-arrow:focus-visible { opacity: 1; } }
.ig-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; color: var(--c-ink); text-decoration: none; }
.ig-tag { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.ig-go { flex: none; color: var(--c-sub); font-size: 12.5px; }
.ig-go::after { content: ' ↗'; }
.ig-foot:hover .ig-go { color: var(--c-ink); }
@media (max-width: 640px) {
  .gallery-ig { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-ig .case { border-radius: 18px; }
  .ig-foot { min-height: 44px; padding: 8px 10px; }
  .ig-tag { font-size: 12px; gap: 2px; }
  .ig-tag .badge-new { margin-left: 0; font-size: 11px; }
  .ig-go { display: none; }
  .ig-count { top: 8px; right: 8px; padding: 2px 8px; font-size: 11px; }
}

/* モニター価格の表（2026-12-06。2027年1月末まで） */
.mon-until { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: var(--c-alt); font-size: 14px; font-weight: 700; color: var(--c-ink); }
.mon-lead { margin: 0 0 16px; }
.mon-wrap { overflow-x: auto; border-radius: var(--r-l); background: var(--c-alt); padding: 4px clamp(14px, 3vw, 32px); }
.mon-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.mon-table th, .mon-table td { padding: 12px 8px; border-bottom: 1px solid #dcdee3; text-align: right; font-variant-numeric: tabular-nums; }
.mon-table th[scope="row"], .mon-table thead th:first-child { text-align: left; font-weight: 500; }
.mon-table thead th { font-size: 13px; color: var(--c-sub); font-weight: 600; line-height: 1.4; }
.mon-table .mon-g th { padding-top: 20px; text-align: left; font-weight: 700; color: var(--c-ink); }
.mon-table tbody tr:last-child th, .mon-table tbody tr:last-child td { border-bottom: 0; }
.mon-hl { font-weight: 700; }
.mon-off { color: var(--c-accent); font-size: 12px; }
.mon-terms li { font-size: 14px; }

/* 出演・取材のご依頼フォーム */
.cform { display: grid; gap: 22px; margin-top: 24px; }
.f-row { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.f-row > label, .f-row legend { font-weight: 600; font-size: 15px; padding: 0; }
.req-mark, .opt-mark { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.req-mark { background: var(--c-ink); color: #fff; }
.opt-mark { background: var(--c-alt); color: var(--c-sub); }
.f-hint { font-size: 13px; color: var(--c-sub); }
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"], .cform textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #c9ccd2; border-radius: 12px; background: #fff; color: var(--c-ink); font: 16px/1.6 var(--f); }
.cform textarea { resize: vertical; }
.cform input:focus-visible, .cform textarea:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); }
.f-radios { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.f-radio, .f-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; cursor: pointer; }
.f-radio input, .f-check input { width: 20px; height: 20px; accent-color: var(--c-ink); }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-msg { margin: 0; min-height: 1.6em; font-size: 14px; }
.f-msg.is-bad { color: #b3261e; }
.f-submit { justify-self: start; min-width: 200px; }
.f-submit:disabled { opacity: .5; cursor: wait; }
.f-done { padding: 24px; border-radius: 16px; background: var(--c-alt); font-weight: 600; }

[data-until][hidden], .ig-arrow[hidden] { display: none; }
/* モニター価格: スマホは横スクロールせず、施術ごとに縦に並べる */
@media (max-width: 640px) {
  .mon-table { min-width: 0; }
  .mon-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mon-table tbody tr:not(.mon-g) { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid #dcdee3; }
  .mon-table tbody tr:not(.mon-g) th { grid-column: 1 / -1; padding: 4px 0 6px; border: 0; font-weight: 600; }
  .mon-table tbody tr:not(.mon-g) td { display: contents; }
  .mon-table tbody tr:not(.mon-g) td::before { content: attr(data-l); padding: 3px 0; color: var(--c-sub); font-size: 13px; text-align: left; font-weight: 400; }
  .mon-table tbody tr:not(.mon-g) td { font-size: 15px; }
  .mon-table .mon-g, .mon-table .mon-g th { display: block; border: 0; padding: 18px 0 2px; }
}
