/* 案件固有のスタイル。型(styles.css)は編集禁止 — 上書きはすべてここに書く。
   読み込み順は styles.css → custom.css なので、同じセレクタ/変数はこちらが勝つ。 */

:root {
  --mold-version: 9;
  /* font-preset: serene */
  --lh-body: 1.95;
  --lh-display: 1.35;
  --ls-en: .10em;
  --ls-body: .02em;
  --ls-display: .04em;
  --fw-strong: 700;
  --fw-body: 400;
  --fw-display: 500;
  --font-en: "Cormorant Garamond", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "Zen Old Mincho", serif;
  /* 配色: extract_palette.py の4値をここに */
  /* 書体: apply_design_tokens.py --preset <key> が自動で書く */
}

/* ルートAヒーロー(make_hero_bg.py の出力座標)はここに書く */
:root {
  --ink: #3b2c21;
  --muted: #6b5a4c;
  --paper: #fbfaf6;
  --soft: #f3efe6;
  --gold: #7c9659;          /* アクセント（カンプのCTAの緑） */
  --green: #74904f;
  --green-deep: #5d7a3c;
  --plum: #7a2e63;
  --peach: #f6ece1;
  --line: rgba(59, 44, 33, .14);
}
body { font-size: 16px; color: var(--ink); background: var(--paper); }
p { line-height: var(--lh-body); }

/* ===== header（カンプの白いヘッダー帯 0〜114px/944） ===== */
.site-header { background: #fff; border-bottom: 1px solid rgba(59,44,33,.06); grid-template-columns: auto 1fr auto auto; }
.brand__mark { color: var(--green); width: 2.1vw; height: 2.6vw; min-width: 20px; min-height: 25px; }
.brand__text { font-family: var(--font-display); font-weight: 500; letter-spacing: .12em; font-size: clamp(1.25rem, 2.45vw, 2.6rem); color: var(--ink); }
.nav { font-family: var(--font-display); font-size: clamp(.95rem, 1.42vw, 1.5rem); gap: clamp(20px, 4vw, 70px); color: var(--ink); }
.nav a:hover, .nav a:focus-visible { color: var(--green-deep); }
.head-line {
  display: inline-flex; align-items: center; gap: .6em; padding: .75em 1.4em; border-radius: 999px;
  background: var(--gold); color: #fff; font-family: var(--font-display); font-size: clamp(.85rem, 1.25vw, 1.32rem); white-space: nowrap;
  transition: transform .3s var(--ease-out-expo), box-shadow .3s var(--ease-out-expo), background .3s;
}
.head-line svg { width: 1.4em; height: 1.4em; }
.head-line:hover, .head-line:focus-visible { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(59,44,33,.18); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

/* ===== ルートAヒーロー（make_hero_bg.py の座標） ===== */
@media (min-width: 1041px) {
  .site-header { height: calc(100vw * 114 / 1680); padding: 0 2.6vw; }
  .vf-hero { padding-top: 0; aspect-ratio: 1680 / 944; background: url('assets/fv-bg.jpg') center / cover no-repeat; }
  .vf-hero .hero__stage { position: absolute; inset: 0; }
  .vf-hero__photo-wrap { display: none; }
  .vf-hero__copy { position: absolute; inset: auto; left: 4.3%; top: 23.2%; width: 62%; padding: 0; display: block; }
  .vf-hero h1 { font-size: 3.86vw; line-height: 1.55; letter-spacing: .03em; color: var(--ink); margin: 0; font-weight: 700; }
  .vf-hero__sub { position: static; margin: 2.7vw 0 0; font-family: var(--font-display); font-size: 1.78vw; letter-spacing: .1em; color: var(--ink); line-height: 1.4; }
  .vf-hero__cta { margin-top: 2.7vw; }
  .vf-btn { width: 30vw; height: 4.8vw; font-size: 1.43vw; }
  .vf-hero__badge { position: absolute; left: 3.0%; top: 72.8%; width: 15.6%; margin: 0; }
  .vf-hero__info { position: absolute; left: 51.3%; top: 81.9%; width: 46.1%; height: 13.7%; }
}

.vf-hero h1 { color: var(--ink); }
.vf-hero__sub { font-family: var(--font-display); color: var(--ink); letter-spacing: .1em; }
.vf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em; border-radius: 999px;
  background: var(--gold); color: #fff; font-family: var(--font-display); letter-spacing: .04em;
  box-shadow: 0 .6vw 1.6vw rgba(93,122,60,.28);
  transition: transform .3s var(--ease-out-expo), box-shadow .3s var(--ease-out-expo), background .3s;
}
.vf-btn:hover, .vf-btn:focus-visible { background: var(--green-deep); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(93,122,60,.32); }
.vf-btn__line {
  display: inline-grid; place-items: center; width: 2.2em; height: 1.6em; border-radius: 50%;
  background: #fff; color: var(--gold); font-family: var(--font-body); font-weight: 700; font-size: .62em; letter-spacing: 0;
}
.vf-hero__badge img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: .35vw solid #fff; box-shadow: 0 1vw 2.4vw rgba(59,44,33,.16); }
.vf-hero__info {
  list-style: none; margin: 0; padding: 0 2%; display: grid; grid-template-columns: 1.15fr .9fr 1.35fr; align-items: center;
  background: rgba(255,255,255,.94); border-radius: 1vw; box-shadow: 0 1vw 2.6vw rgba(59,44,33,.14);
  font-family: var(--font-display); font-size: 1.45vw; color: var(--ink);
}
.vf-hero__info li { display: flex; align-items: center; justify-content: center; gap: .55em; height: 56%; border-right: 1.5px dashed rgba(59,44,33,.22); white-space: nowrap; }
.vf-hero__info li:last-child { border-right: 0; }
.vf-hero__info svg { width: 1.6em; height: 1.6em; color: #8c996e; flex: none; }

@media (max-width: 1040px) {
  .vf-hero { padding-top: 72px; background: #fff; }
  .vf-hero .hero__stage { display: flex; flex-direction: column; }
  .vf-hero__copy { padding: 40px 22px 28px; }
  .vf-hero h1 { font-size: clamp(1.8rem, 7.4vw, 3rem); line-height: 1.5; margin-bottom: 14px; }
  .vf-hero__sub { font-size: 1rem; margin: 0 0 22px; }
  .vf-btn { width: 100%; max-width: 420px; min-height: 58px; font-size: 1.05rem; }
  .vf-hero__photo-wrap { width: 100%; }
  .vf-hero .hero__photo { aspect-ratio: 900 / 640; }
  .vf-hero__badge { position: absolute; left: 16px; bottom: 70px; width: 31vw; max-width: 170px; margin: 0; z-index: 3; }
  .vf-hero__badge img { border-width: 4px; }
  .vf-hero__info { position: relative; margin: -36px 16px 0; z-index: 2; font-size: .92rem; padding: 14px 6px; grid-template-columns: 1fr .8fr 1.25fr; border-radius: 12px; }
  .vf-hero__info li { height: auto; flex-direction: column; gap: 4px; white-space: normal; text-align: center; padding: 0 4px; }
  .vf-hero__info svg { width: 22px; height: 22px; }
  .head-line { display: none; }
  .sticky-cta { background: var(--gold); }
}

/* ===== 共通 ===== */
.section { background: transparent; }
.vf-kicker { margin: 0 0 14px; color: var(--green-deep); font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .95rem; }
.vf-kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; margin-right: 12px; vertical-align: middle; background: var(--green); }
.section h2 { color: var(--ink); }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.vf-small { font-size: .9rem; color: var(--muted); }
.vf-note { background: var(--peach); border-radius: 14px; padding: 28px 30px; }
.vf-note h3 { margin: 0 0 8px; font-size: 1.12rem; color: var(--ink); }
.vf-note p { margin: 0; }
.vf-note ol { margin: 6px 0 0; padding-left: 1.4em; line-height: 2; }
.vf-btn--inline { padding: 18px 34px; font-size: 1.08rem; }

/* こんな毎日 */
.vf-worry { background: #fff; }
.vf-worry__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.vf-check { list-style: none; margin: 8px 0 0; padding: 0; }
.vf-check li { position: relative; padding: 16px 0 16px 48px; font-size: 1.15rem; line-height: 1.6; border-bottom: 1.5px dashed var(--line); }
.vf-check li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.vf-check li::after { content: ""; position: absolute; left: 9px; top: 20px; width: 9px; height: 15px; border: solid var(--plum); border-width: 0 3.5px 3.5px 0; transform: rotate(40deg); }
.vf-answer { margin: 32px 0 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.8; color: var(--plum); }
.vf-stack { position: relative; height: 440px; }
.vf-stack img { position: absolute; width: 60%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid #fff; box-shadow: 0 10px 26px rgba(59,44,33,.18); }
.vf-stack img:nth-child(1) { left: 0; top: 0; rotate: -4deg; }
.vf-stack img:nth-child(2) { right: 0; top: 130px; rotate: 3deg; }
.vf-stack img:nth-child(3) { left: 14%; bottom: 0; width: 52%; rotate: -1deg; }

/* 教室 */
.vf-class { background: var(--soft); }
.vf-class__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.vf-ticket { position: relative; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; padding: 26px 28px 20px; box-shadow: 8px 8px 0 #dfe6cf; }
.vf-ticket::before { content: ""; position: absolute; top: -10px; left: 30px; width: 18px; height: 18px; border-radius: 50%; background: var(--soft); border: 1.5px solid var(--ink); }
.vf-ticket h3 { font-family: var(--font-display); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1.5px dashed var(--ink); font-size: 1.15rem; }
.vf-ticket dl { margin: 0; display: grid; gap: 6px; }
.vf-ticket dl div { display: grid; grid-template-columns: 5.5em 1fr; }
.vf-ticket dt { color: var(--muted); }
.vf-ticket dd { margin: 0; font-weight: 500; }
.vf-ticket__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1.5px dashed var(--ink); font-family: var(--font-display); }
.vf-ticket__total strong { font-size: 1.5rem; color: var(--plum); }
.vf-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 60px 0 44px; }
.vf-three article { background: #fff; border-radius: 16px; padding: 26px 26px 30px; transition: transform .35s var(--ease-out-expo), box-shadow .35s var(--ease-out-expo); }
.vf-three article:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(59,44,33,.12); }
.vf-three img { height: 96px; width: auto; margin: 0 0 12px; }
.vf-three h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 8px; }
.vf-three p { margin: 0; font-size: .98rem; }

/* 歯の数 */
.vf-teeth { background: #fff; }
.vf-teeth__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vf-teeth__svg { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.vf-teeth__row i { aspect-ratio: 3/4; border-radius: 6px 6px 10px 10px; }
.vf-teeth .g { --c: #8a5a3c; } .vf-teeth .v { --c: #6e9a3a; } .vf-teeth .m { --c: #d9772b; }
.vf-teeth__row i { background: var(--c); }
.vf-teeth__legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vf-teeth__legend div { border-top: 5px solid var(--c); padding-top: 8px; font-size: .95rem; line-height: 1.6; }
.vf-teeth__legend strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }

/* コラボ */
.vf-collab { background: var(--peach); }
.vf-collab__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.vf-collab figure { margin: 0; }
.vf-collab img { width: 100%; height: auto; border-radius: 20px; background: #fff; }

/* 閉店のご挨拶 */
.vf-letter { background: #fff; }
.vf-letter__box { position: relative; max-width: 760px; margin: 0 auto; background: var(--paper); border-left: 4px solid var(--plum); padding: 40px 44px; box-shadow: 8px 8px 0 #ece6da; }
.vf-letter__box h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.vf-letter__sign { text-align: right; font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.vf-letter__veg { position: absolute; right: -60px; bottom: -40px; width: 130px; height: auto; }

/* あゆみ */
.vf-ayumi { background: var(--soft); }
.vf-timeline { list-style: none; margin: 0; padding: 0; max-width: 780px; border-left: 2px solid #c9cfb4; }
.vf-timeline li { position: relative; padding: 0 0 28px 32px; }
.vf-timeline li::before { content: ""; position: absolute; left: -8px; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--soft); border: 2px solid var(--ink); }
.vf-timeline li.is-now::before { background: var(--plum); border-color: var(--plum); }
.vf-timeline span { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.vf-timeline p { margin: 4px 0 0; }
.vf-media { margin-top: 20px; color: var(--muted); font-size: .92rem; max-width: 780px; }

/* プロフィール */
.vf-profile { background: #fff; }
.vf-profile__grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.vf-profile figure { margin: 0; }
.vf-profile img { width: 100%; height: auto; border-radius: 50%; background: #fff; }
.vf-profile h2 small { display: block; margin-top: 6px; font-size: 1rem; color: var(--muted); letter-spacing: .06em; }

/* お便り */
.vf-letters { background: var(--paper); padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(64px, 8vw, 110px); }

/* お弁当 */
.vf-obento { background: #fff; }
.vf-obento__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.vf-rules { list-style: none; margin: 0 0 26px; padding: 0; }
.vf-rules li { position: relative; padding-left: 1.3em; line-height: 2; }
.vf-rules li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 8px; border-radius: 2px; background: var(--plum); }

/* 締め */
.vf-closing { background: var(--green-deep); color: #fff; text-align: center; overflow: hidden; }
.vf-closing h2 { color: #fff; }
.vf-closing p { max-width: 640px; margin: 0 auto 28px; color: rgba(255,255,255,.92); }
.vf-closing .vf-btn { background: #fff; color: var(--green-deep); }
.vf-closing .vf-btn__line { background: var(--green-deep); color: #fff; }
.vf-closing > .vf-closing__veg { position: absolute; z-index: 0 !important; height: auto; opacity: .95; pointer-events: none; }
.vf-closing__veg--cab { width: 190px; left: 2%; bottom: -36px; rotate: -8deg; }
.vf-closing__veg--l { width: 78px; left: 15%; bottom: 18px; rotate: 18deg; }
.vf-closing__veg--rad { width: 120px; left: 4%; top: 26px; rotate: -10deg; }
.vf-closing__veg--r { width: 130px; right: 4%; top: 22px; rotate: 6deg; }
.vf-closing__veg--mush { width: 150px; right: 13%; bottom: 8px; }
.vf-closing__veg--kabu { width: 110px; right: 2%; bottom: -20px; rotate: 10deg; }

.footer { background: #3b2c21; gap: 22px; min-height: 0; padding-top: 52px; padding-bottom: 40px; }
.footer__brand { gap: 8px; }
.footer p { line-height: 1.8; font-size: .9rem; }

@media (max-width: 1040px) {
  .vf-worry__grid, .vf-class__top, .vf-teeth__grid, .vf-collab__grid, .vf-obento__grid { grid-template-columns: 1fr; gap: 32px; }
  .vf-profile__grid { grid-template-columns: 1fr; gap: 24px; }
  .vf-profile figure { max-width: 260px; }
  .vf-three { grid-template-columns: 1fr; gap: 18px; margin: 40px 0 32px; }
  .vf-stack { height: 66vw; max-height: 520px; margin-top: 8px; }
  .vf-letter__box { padding: 30px 24px; }
  .vf-letter__veg { right: -4px; bottom: -46px; width: 80px; }
  .vf-closing { padding-bottom: 150px; }
  .vf-closing__veg { opacity: .9; }
  .vf-closing__veg--cab { width: 110px; left: 2%; bottom: -18px; }
  .vf-closing__veg--l { width: 46px; left: 30%; bottom: 10px; }
  .vf-closing__veg--rad { display: none; }
  .vf-closing__veg--r { display: none; }
  .vf-closing__veg--mush { width: 90px; right: 26%; bottom: 8px; }
  .vf-closing__veg--kabu { width: 66px; right: 3%; bottom: -8px; }
}



/* ヒーロー内はスクロール発火ではなく読み込み時に順番に出す（静止状態＝カンプ） */
.is-loaded .vf-in { animation: vfIn .9s var(--ease-out-expo) var(--d, 0s) both; }
@keyframes vfIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .is-loaded .vf-in { animation: vfFade .6s ease var(--d,0s) both; } @keyframes vfFade { from { opacity: 0; } to { opacity: 1; } } }

.vf-obento__photo { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 55%; border-radius: 14px; margin-bottom: 18px; }
.marquee { background: var(--green-deep); color: #fff; }
.marquee span { font-family: var(--font-display); letter-spacing: .12em; }

.vf-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: .82rem; color: rgba(255,255,255,.7); }
.vf-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* あゆみ：大きさとカットを変えたモザイク */
.vf-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(56px, 6.4vw, 92px); gap: 12px; margin: 10px 0 52px; }
.vf-mosaic__item { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: #e8e2d6; }
.vf-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14) translateY(var(--py, 0px)); transition: transform 1.4s var(--ease-out-expo); will-change: transform; }
.vf-mosaic__item:hover img { transform: scale(1.2) translateY(var(--py, 0px)); }
.vf-mosaic__item figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); font-family: var(--font-display); font-size: .8rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.vf-mosaic__item--a { grid-column: 1 / 7; grid-row: 1 / 6; }
.vf-mosaic__item--a img { object-position: 50% 60%; }
.vf-mosaic__item--b { grid-column: 7 / 13; grid-row: 1 / 3; }
.vf-mosaic__item--b img { object-position: 50% 72%; }
.vf-mosaic__item--c { grid-column: 7 / 10; grid-row: 3 / 6; border-radius: 50%; }
.vf-mosaic__item--c figcaption { left: 50%; transform: translateX(-50%); bottom: 14px; }
.vf-mosaic__item--d { grid-column: 10 / 13; grid-row: 3 / 7; }
.vf-mosaic__item--e { grid-column: 1 / 4; grid-row: 6 / 10; }
.vf-mosaic__item--f { grid-column: 4 / 10; grid-row: 6 / 10; }
.vf-mosaic__item--f img { object-position: 50% 45%; }
.vf-mosaic__item--g { grid-column: 10 / 13; grid-row: 7 / 10; }
@media (max-width: 760px) {
  .vf-mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 64px; gap: 8px; }
  .vf-mosaic__item--a { grid-column: 1 / 7; grid-row: 1 / 6; }
  .vf-mosaic__item--b { grid-column: 1 / 5; grid-row: 6 / 8; }
  .vf-mosaic__item--c { grid-column: 5 / 7; grid-row: 6 / 8; }
  .vf-mosaic__item--d { grid-column: 1 / 3; grid-row: 8 / 12; }
  .vf-mosaic__item--e { grid-column: 3 / 7; grid-row: 8 / 10; }
  .vf-mosaic__item--f { grid-column: 3 / 7; grid-row: 10 / 12; }
  .vf-mosaic__item--g { grid-column: 1 / 7; grid-row: 12 / 15; }
  .vf-mosaic__item figcaption { font-size: .72rem; left: 6px; bottom: 6px; }
  .vf-mosaic__item--c { border-radius: 6px; }
  .vf-mosaic__item--c figcaption { left: 6px; transform: none; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { .vf-mosaic__item img { transition: none; --py: 0px !important; } }
