/* 126 GELATERIA ORO — K07 目次が横に固定された読み物。色と書体は共通の13変数だけ（ここ :root 以外に色を書かない） */
:root {
  --c-bg: #0e0c0a;
  --c-bg-alt: #1a1713;
  --c-text: #e8e1d4;
  --c-sub: #bdb4a5;
  --c-line: #3a332b;
  --c-accent: #ff8a1f;
  --c-accent-text: #ff8a1f;
  --c-on-accent: #0e0c0a;
  --c-2: #ffc83d;
  --c-3: #f5efe4;
  --font-ja: "IBM Plex Sans JP", sans-serif;
  --font-head: "Dela Gothic One", "IBM Plex Sans JP", sans-serif;
  --font-en: "Anybody", "IBM Plex Sans JP", sans-serif;
  --toc-w: 300px;
  --shadow: 0 0 0 1px var(--c-line);
}

/* 明るい章：地の色が変わるので、変数を全部上書きする */
.is-light {
  --c-bg: #f6efe2;
  --c-bg-alt: #ece2cf;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #cbbd9f;
  --c-accent: #ff8a1f;
  --c-accent-text: #9a4a00;
  --c-on-accent: #0e0c0a;
  --c-2: #e0a100;
  --c-3: #0e0c0a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 1.95; letter-spacing: .03em; overflow-x: hidden; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dd, dt, li, blockquote { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul, blockquote { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }
.fz { font-family: var(--font-ja); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; letter-spacing: .06em; text-decoration: none; white-space: nowrap; flex: none; border: 0; cursor: pointer; transition: background-color .2s; }
.btn:hover, .btn:focus-visible { background: var(--c-2); }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 17px; }

/* ===== スマホのヘッダー ===== */
.header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 8px 0 20px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--c-3); white-space: nowrap; flex: none; }
.logo__mark { font-family: var(--font-en); font-weight: 900; font-stretch: 150%; font-size: 26px; color: var(--c-accent-text); }
.logo__sub { font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .2em; }
@media (max-width: 440px) { .logo__sub { display: none; } }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 14px; font-size: 15px; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; color: var(--c-3); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 24px; height: 3px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg-alt); border-bottom: 3px solid var(--c-accent); padding: 4px 20px 12px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 700; color: var(--c-3); border-bottom: 1px solid var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }

/* ===== 左に固定した目次（PCだけ） ===== */
.toc { display: none; }

/* ===== 読み物 ===== */
.read { display: block; }
.hero { padding: 36px 20px 56px; overflow: hidden; }
.hero__word { font-family: var(--font-en); font-weight: 900; font-stretch: 150%; font-size: calc((100vw - 40px) / 3.45); line-height: .88; letter-spacing: -.01em; color: var(--c-accent); margin-left: -.03em; white-space: nowrap; }
.hero__row { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.kicker { font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: .14em; color: var(--c-accent-text); display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 14px; }
.kicker span { font-family: var(--font-ja); font-weight: 400; letter-spacing: .06em; color: var(--c-sub); }
.hero__title { font-family: var(--font-head); font-weight: 400; font-size: clamp(34px, 9vw, 64px); line-height: 1.25; color: var(--c-3); margin-bottom: 20px; }
.hero__lead { max-width: 34em; margin-bottom: 28px; color: var(--c-text); }
.hero__photo { width: min(78%, 360px); aspect-ratio: 2 / 3; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--c-bg-alt); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.chap { padding: 64px 20px; background: var(--c-bg); color: var(--c-text); border-top: 1px solid var(--c-line); }
.chap > * { max-width: 40em; }
.chap > p + p, .chap > p + blockquote, .chap > blockquote + p, .chap > p + dl, .chap > p + ul, .chap > figure + p, .chap > p + figure { margin-top: 1.4em; }
.chap__no { font-family: var(--font-en); font-weight: 900; font-stretch: 150%; font-size: clamp(88px, 26vw, 200px); line-height: .85; color: var(--c-accent); letter-spacing: -.01em; margin-bottom: 18px; }
.is-light .chap__no { color: var(--c-accent-text); }
.chap__h { font-family: var(--font-head); font-weight: 400; font-size: clamp(30px, 7.4vw, 50px); line-height: 1.3; color: var(--c-3); margin-bottom: 26px; }
.lead { font-size: clamp(17px, 4.4vw, 20px); font-weight: 700; line-height: 1.8; color: var(--c-3); margin-bottom: 1.2em; }
.pull { font-family: var(--font-head); font-size: clamp(24px, 6vw, 34px); line-height: 1.45; color: var(--c-3); padding: 8px 0 8px 20px; border-left: 6px solid var(--c-accent); margin-top: 1.6em !important; margin-bottom: 1.6em; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2em; border-top: 2px solid var(--c-accent); }
.facts > div { padding: 14px 10px 0 0; }
.facts dt { font-size: 15px; color: var(--c-sub); line-height: 1.5; }
.facts dd { font-family: var(--font-en); font-weight: 900; font-size: clamp(26px, 7vw, 38px); line-height: 1.3; color: var(--c-2); }
.is-light .facts dd { color: var(--c-accent-text); }

/* スライド（CSSだけの scroll-snap） */
.chap--flavors { overflow: hidden; }
.chap--flavors > .snap { max-width: none; }
.snap-ctrl { display: flex; gap: 10px; margin: 18px 0 18px; }
.snap-ctrl__btn { width: 52px; height: 52px; border: 2px solid var(--c-3); background: transparent; color: var(--c-3); font-size: 22px; line-height: 1; cursor: pointer; font-family: var(--font-ja); }
.snap-ctrl__btn:hover, .snap-ctrl__btn:focus-visible { background: var(--c-3); color: var(--c-bg); }
.snap { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin: 0 -20px; padding: 4px 20px 22px; -webkit-overflow-scrolling: touch; }
.snap:focus-visible { outline: 3px solid var(--c-accent); outline-offset: -3px; }
.flavor { flex: 0 0 min(76vw, 280px); min-width: 0; scroll-snap-align: start; min-height: 360px; padding: 22px 20px; background: var(--card); color: var(--on); display: flex; flex-direction: column; border-radius: 0; }
.flavor__no { font-family: var(--font-en); font-weight: 900; font-stretch: 150%; font-size: 56px; line-height: 1; margin-bottom: auto; padding-bottom: 36px; }
.flavor__name { font-family: var(--font-en); font-weight: 900; font-stretch: 130%; font-size: 24px; line-height: 1.15; letter-spacing: .01em; }
.flavor__ja { font-family: var(--font-head); font-size: 17px; margin: 6px 0 10px; }
.flavor__memo { font-size: 15px; line-height: 1.7; }
.f1 { --card: var(--c-accent); --on: var(--c-on-accent); }
.f2 { --card: var(--c-2); --on: var(--c-on-accent); }
.f3 { --card: var(--c-3); --on: var(--c-on-accent); }
.f4 { --card: color-mix(in srgb, var(--c-accent) 40%, black); --on: var(--c-3); }
.f5 { --card: color-mix(in srgb, var(--c-2) 55%, white); --on: var(--c-on-accent); }
.f6 { --card: color-mix(in srgb, var(--c-accent) 55%, var(--c-2)); --on: var(--c-on-accent); }
.f7 { --card: color-mix(in srgb, var(--c-accent) 75%, white); --on: var(--c-on-accent); }
.f8 { --card: color-mix(in srgb, var(--c-2) 70%, var(--c-accent)); --on: var(--c-on-accent); }

/* 03 */
.arch { width: min(100%, 520px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--c-bg-alt); margin-top: 1.6em; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.rules { margin-top: 2em; border-top: 1px solid var(--c-line); }
.rules li { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-weight: 700; color: var(--c-3); }
.rules__k { font-family: var(--font-head); font-size: 22px; color: var(--c-accent-text); flex: none; }

/* 04 */
.steps { border-top: 2px solid var(--c-accent); }
.steps li { padding: 22px 0 24px; border-bottom: 1px solid var(--c-line); }
.steps__no { font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: .12em; color: var(--c-accent-text); }
.steps h3 { font-family: var(--font-head); font-size: clamp(21px, 5vw, 26px); line-height: 1.4; color: var(--c-3); margin: 4px 0 8px; }

/* 05 */
.menu { margin-top: 1.6em; border-top: 1px solid var(--c-line); }
.menu > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.menu dt { font-weight: 700; color: var(--c-3); }
.menu dd { color: var(--c-2); font-weight: 700; flex: none; }
.boxes { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 2em 0; }
.box { padding: 22px 20px; border: 2px solid var(--c-line); background: var(--c-bg-alt); }
.box--hot { border-color: var(--c-accent); }
.box__size { font-family: var(--font-en); font-weight: 900; font-stretch: 150%; font-size: 56px; line-height: 1; color: var(--c-accent-text); }
.box h3 { font-family: var(--font-head); font-size: 21px; color: var(--c-3); margin: 6px 0 4px; }
.box__price { font-weight: 700; color: var(--c-2); margin-top: 8px; }

/* 06 */
.info { border-top: 2px solid var(--c-accent); }
.info > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-weight: 700; color: var(--c-accent-text); }
.info a { text-underline-offset: 3px; }

.footer { padding: 40px 20px 48px; background: var(--c-bg-alt); color: var(--c-sub); text-align: center; line-height: 1.8; }
.footer__logo { font-family: var(--font-en); font-weight: 900; font-stretch: 150%; font-size: 40px; color: var(--c-accent-text); }
.footer__fiction { margin-top: 12px; }

/* ===== 動き：JS が is-motion を付けたときだけ。主役は見出しの1文字ずつ（E03） ===== */
.ch { display: inline-block; }
.is-motion .ch { animation: blurIn .8s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes blurIn { from { opacity: 0; filter: blur(14px); } to { opacity: 1; filter: blur(0px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-motion .ch { animation: none; }
}

/* ===== PC：左に固定の目次、右が読み物 ===== */
@media (min-width: 1080px) {
  html { scroll-padding-top: 24px; }
  .header { display: none; }
  .toc { display: flex; flex-direction: column; position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--toc-w); padding: 32px 28px 28px; background: var(--c-bg); border-right: 1px solid var(--c-line); overflow-y: auto; }
  .toc__logo { text-decoration: none; display: block; margin-bottom: 36px; }
  .toc__logo span { display: block; font-family: var(--font-en); font-weight: 900; font-stretch: 150%; font-size: 64px; line-height: .95; color: var(--c-accent-text); }
  .toc__logo small { display: block; margin-top: 8px; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--c-sub); }
  .toc__nav { flex: 1 1 auto; }
  .toc__nav a { display: flex; align-items: baseline; gap: 14px; min-height: 48px; padding: 10px 0 10px 16px; border-left: 3px solid var(--c-line); text-decoration: none; font-weight: 700; line-height: 1.4; color: var(--c-sub); transition: color .2s, border-color .2s; }
  .toc__nav a:hover, .toc__nav a:focus-visible { color: var(--c-3); }
  .toc__nav a[aria-current="true"] { color: var(--c-3); border-left-color: var(--c-accent); }
  .toc__no { font-family: var(--font-en); font-weight: 900; font-size: 15px; letter-spacing: .08em; color: var(--c-accent-text); flex: none; }
  .toc__btn { margin-top: 20px; width: 100%; }

  .read { margin-left: var(--toc-w); }
  .hero { padding: 56px 56px 80px; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .hero__word { font-size: min(calc((100vw - var(--toc-w) - 112px) / 3.45), 320px); }
  .hero__row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; margin-top: 32px; }
  .hero__title { font-size: clamp(40px, 4.4vw, 64px); }
  .hero__photo { width: min(26vw, 300px); flex: none; }
  .chap { padding: 96px 56px; }
  .chap__h { margin-bottom: 32px; }
  .snap { margin: 0 -56px; padding: 4px 56px 24px; scroll-padding-inline: 56px; }
  .flavor { flex-basis: 280px; }
  .boxes { grid-template-columns: 1fr 1fr; }
  .footer { margin-left: var(--toc-w); }
}
