/* =========================================================
   vergerbook — お客さまが教える「売れる商品」の見つけ方
   Instagram @verger_coffee のテイスト：生成り・明朝の字間・パステルの面
   ========================================================= */

:root {
  --gold-ink: #8E6418;
  --cream: #F6F0E4;
  --paper: #FCFAF5;
  --peach: #F3D6B8;
  --peach-deep: #E7B78D;
  --olive: #A9B44C;
  --olive-deep: #7F8B2F;
  --mustard: #E4B64B;
  --sky: #B8DAEA;
  --brown: #5B3A24;
  --ink: #3B2D22;
  --ink-soft: #7A6A5B;
  --green: #1F5F4C;
  --gold: #D9A441;
  --red: #C8352B;
  --line: #E6DCCB;

  --olive-soft: #EEF0D8;
  --peach-soft: #FBEBDC;
  --sky-soft: #E5F1F7;
  --mustard-soft: #F8EBC6;

  --f-mincho: "Zen Old Mincho", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --f-jost: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-corm: "Cormorant Garamond", "Times New Roman", serif;

  --radius: 22px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(91, 58, 36, .06), 0 10px 30px -12px rgba(91, 58, 36, .18);
  --measure: 38em;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .23  0 0 0 0 .14  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--ink);
  font-family: var(--f-gothic);
  font-size: 17.5px;
  line-height: 2.05;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--olive-deep); }

:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brown); color: var(--paper); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 読書進捗バー ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--olive);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(246, 240, 228, .88);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--brown); text-decoration: none; min-width: 0;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font-family: var(--f-mincho); font-weight: 700;
  font-size: 15px; letter-spacing: .12em; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__name small { display: block; font-family: var(--f-jost); font-weight: 300; font-size: 10px; letter-spacing: .3em; color: var(--ink-soft); text-transform: uppercase; }
.site-nav { display: flex; gap: 8px; flex: none; }
.site-nav a {
  font-family: var(--f-jost); font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--brown); text-decoration: none;
  border: 1px solid var(--brown); border-radius: 999px; padding: 5px 14px 5px 16px; line-height: 1.6;
}
.site-nav a:hover { background: var(--brown); color: var(--paper); }
.site-nav a span { font-family: var(--f-gothic); letter-spacing: .1em; text-transform: none; }

/* ---------- 装飾部品 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-mincho); font-size: 14px; letter-spacing: .2em; color: var(--brown);
  line-height: 1.6;
}
.tag::before, .tag::after { content: ""; width: 1.1em; height: 1px; background: currentColor; }

.badge {
  display: inline-grid; place-items: center; text-align: center;
  width: 5.6em; height: 5.6em; border-radius: 50%;
  background: var(--paper); color: var(--brown);
  border: 1px solid var(--brown);
  outline: 1px solid var(--brown); outline-offset: -5px;
  font-family: var(--f-mincho); font-weight: 700; font-size: 13px; line-height: 1.35; letter-spacing: .08em;
  padding: .6em;
}
.badge--olive { background: var(--olive); color: #fff; border-color: var(--olive-deep); outline-color: rgba(255,255,255,.7); }
.badge--peach { background: var(--peach); }
.badge--pill {
  width: auto; height: auto; border-radius: 999px; padding: .35em 1.2em; outline: none;
  background: var(--mustard); border-color: var(--mustard); color: var(--brown);
}

.eyebrow {
  font-family: var(--f-jost); font-weight: 300; font-size: 13px;
  letter-spacing: .4em; text-transform: uppercase; color: var(--olive-deep);
  margin: 0;
}
.vbar { /* ｜秋｜の｜新｜ 縦線区切り */
  font-family: var(--f-mincho); letter-spacing: .1em; color: var(--brown);
}
.vbar span { padding: 0 .35em; border-left: 1px solid currentColor; }
.vbar span:last-child { border-right: 1px solid currentColor; }

.tate {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--f-mincho); letter-spacing: .35em; line-height: 1.6;
  color: var(--brown); font-size: 15px;
}

.leaf::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .4em; vertical-align: -.05em;
  background: var(--olive);
  border-radius: 0 100% 0 100%;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8em;
  padding: .8em 1.8em; border-radius: 999px;
  font-family: var(--f-mincho); font-weight: 700; font-size: 15px; letter-spacing: .15em; line-height: 1.4;
  text-decoration: none; color: var(--paper); background: var(--green);
  border: 1px solid var(--green);
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn:hover { color: var(--paper); background: var(--olive-deep); border-color: var(--olive-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { color: var(--paper); }
.btn .arrow { font-family: var(--f-jost); font-weight: 300; }

/* =========================================================
   章ページ
   ========================================================= */
.chapter-hero {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 48px);
  display: grid; gap: clamp(20px, 4vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
.chapter-hero__media {
  position: relative; margin: 0;
  border-radius: 28px; overflow: hidden;
  background: var(--peach-soft);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.chapter-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.chapter-hero__media::after { /* 画像がまだ無いときの面 */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 30% 35%, var(--olive-soft) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 65%, var(--peach) 0 14%, transparent 15%),
    var(--peach-soft);
}
.chapter-hero__text { position: relative; display: grid; gap: 14px; }
.chapter-hero__title {
  margin: 0;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.5; letter-spacing: .15em; color: var(--brown);
}
.chapter-hero__en {
  margin: 0;
  font-family: var(--f-corm); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.6vw, 28px); color: var(--gold-ink); letter-spacing: .02em; line-height: 1.3;
}
.chapter-hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; line-height: 1.6;
}
.chapter-hero__meta li { display: inline-flex; align-items: center; gap: .5em; }
.chapter-hero__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--olive); }
.chapter-hero .tate {
  position: absolute; right: 0; top: 0;
  font-size: 15px; opacity: 0; transform: translateY(-10px);
  transition: opacity 1.2s var(--ease) .3s, transform 1.2s var(--ease) .3s;
}
.chapter-hero.is-in .tate { opacity: 1; transform: none; }
.chapter-hero__text > :not(.tate) { padding-right: 2.6em; }

@media (min-width: 860px) {
  .chapter-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .chapter-hero__text { padding-left: 8px; }
  .chapter-hero .tate { font-size: 17px; }
}

/* ---------- 読書レイアウト ---------- */
.reader {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.reader__toc { width: 100%; max-width: var(--measure); margin-bottom: 28px; }
.reader__body { width: 100%; max-width: var(--measure); min-width: 0; }

@media (min-width: 1100px) {
  .reader {
    grid-template-columns: 240px minmax(0, var(--measure)) 240px;
    justify-content: center; align-items: start; column-gap: 56px;
  }
  .reader__toc { position: sticky; top: calc(var(--header-h) + 28px); margin: 0; max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; }
  .reader--no-toc { grid-template-columns: minmax(0, var(--measure)); }
}

/* 節目次 */
.toc { font-size: 14px; line-height: 1.6; }
.toc details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 4px 18px;
}
.toc summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  font-family: var(--f-jost); font-size: 12px; letter-spacing: .35em; text-transform: uppercase; color: var(--brown);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 18px; font-weight: 300; letter-spacing: 0; transition: transform .3s; }
.toc details[open] summary::after { transform: rotate(45deg); }
.toc ol { list-style: none; margin: 0 0 14px; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: grid; grid-template-columns: 2.2em 1fr; gap: 4px;
  padding: 8px 0; color: var(--ink-soft); text-decoration: none;
  border-top: 1px dashed var(--line);
  transition: color .3s;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-jost); font-weight: 300; font-size: 12px; letter-spacing: .1em; padding-top: 2px; }
.toc li.is-column a::before { content: "COL"; font-size: 10px; padding-top: 4px; color: var(--olive-deep); }
.toc a:hover { color: var(--brown); }
.toc a.is-active { color: var(--olive-deep); font-weight: 700; }
.toc a.is-active::before { color: var(--olive-deep); }

@media (min-width: 1100px) {
  .toc details { background: transparent; border: 0; padding: 0; }
  .toc summary { pointer-events: none; padding-top: 0; }
  .toc summary::after { content: none; }
  .toc a { border-top: 0; border-left: 2px solid var(--line); padding-left: 12px; }
  .toc a.is-active { border-left-color: var(--olive); }
}

/* ---------- 本文 ---------- */
.prose {
  position: relative;
  font-size: 17.5px; line-height: 2.05;
  letter-spacing: .03em;
  word-break: normal; overflow-wrap: anywhere;
  line-break: strict;
  hanging-punctuation: allow-end;
}
.prose p { margin: 0 0 1.6em; }
.prose strong { font-weight: 700; color: var(--brown); background: linear-gradient(transparent 62%, var(--mustard-soft) 62%); }

.prose h2 {
  position: relative;
  margin: 3.6em 0 1.4em; padding-top: 1.6em;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(22px, 3vw, 27px); line-height: 1.6; letter-spacing: .15em; color: var(--brown);
}
.prose h2::before {
  content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 1px; background: var(--brown);
}
.prose h2::after {
  content: ""; position: absolute; left: 52px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--olive);
}
.prose h3 {
  margin: 2.6em 0 1em;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: 20px; line-height: 1.7; letter-spacing: .1em; color: var(--green);
  padding-left: 1em; border-left: 3px solid var(--olive);
}
.prose h4 {
  margin: 2.2em 0 .8em;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: 18px; line-height: 1.7; letter-spacing: .1em; color: var(--brown);
}
.prose h4::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; border: 2px solid var(--olive); margin-right: .6em; vertical-align: .1em; }
.prose > h2:first-child, .prose > .pg + h2 { margin-top: 1em; }

.prose ul, .prose ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.prose li { margin: .25em 0; padding-left: .2em; }
.prose ul > li::marker { color: var(--olive); content: "● "; font-size: .7em; }
.prose ol > li::marker { color: var(--olive-deep); font-family: var(--f-jost); font-weight: 400; }
.prose li > ul, .prose li > ol { margin: .2em 0 .4em; }

.prose table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.8em;
  font-size: 15px; line-height: 1.7; background: var(--paper);
  border-radius: var(--radius-s); overflow: hidden; box-shadow: var(--shadow);
}
.prose th, .prose td { padding: .7em 1em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--olive-soft); font-family: var(--f-mincho); letter-spacing: .08em; color: var(--brown); }
.prose tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1.8em; }
.table-scroll table { margin: 0; }

.prose hr { border: 0; height: 1px; background: var(--line); margin: 3em auto; width: 40%; }

/* 原書ページ番号 */
.pg {
  position: absolute; left: -5.2em;
  font-family: var(--f-jost); font-weight: 300; font-size: 11px; line-height: 2; letter-spacing: .12em;
  color: var(--ink-soft); opacity: .7; white-space: nowrap;
  user-select: none; pointer-events: none;
  margin-top: .2em;
}
@media (max-width: 1099px) { .pg { display: none; } }

/* 章冒頭の目次へ戻る等 */
.prose .signature { text-align: right; font-family: var(--f-mincho); letter-spacing: .12em; }

/* ---------- 囲み ---------- */
.box { position: relative; margin: 2.4em 0; border-radius: var(--radius); }
.box > :last-child { margin-bottom: 0; }
.box__label {
  display: block; margin: 0 0 .9em;
  font-family: var(--f-jost); font-weight: 400; font-size: 12px; letter-spacing: .35em; text-transform: uppercase;
}

/* ここがポイント */
.box-point {
  background: var(--peach-soft);
  padding: 2.4em 1.6em 1.8em;
  outline: 1.5px dashed var(--peach-deep); outline-offset: -10px;
}
.box-point .box__title {
  position: absolute; top: -.95em; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  background: var(--brown); color: var(--paper);
  font-family: var(--f-mincho); font-weight: 700; font-size: 15px; letter-spacing: .25em; line-height: 1;
  padding: .7em 1.6em .7em 1.85em; border-radius: 999px;
}
.box-point ul { padding-left: 1.2em; }
.box-point ul > li::marker { content: "✓ "; color: var(--olive-deep); font-size: .9em; }

/* 体験談コラム */
.box-column {
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 0 1.2em;
  background: var(--olive-soft);
  padding: 1.8em 1.4em 1.6em 0;
  overflow: hidden;
}
.box-column__band {
  grid-row: 1 / span 30;
  background: var(--olive); color: #fff;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--f-mincho); font-weight: 700; font-size: 15px; letter-spacing: .3em; line-height: 1;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 1em 0; margin: -1.8em 0 -1.6em;
  min-height: 100%;
}
.box-column__band span { display: block; width: 100%; text-align: center; }
.box-column__head { margin: 0 0 1.2em; }
.box-column__head .box__label { color: var(--olive-deep); margin-bottom: .3em; }
.box-column__title { margin: 0; font-family: var(--f-mincho); font-weight: 700; font-size: 20px; letter-spacing: .1em; line-height: 1.6; color: var(--brown); }
.box-column__body { min-width: 0; }
.box-column__body > :last-child { margin-bottom: 0; }

/* 数式 */
.box-formula {
  background: var(--paper);
  border: 1px solid var(--brown);
  box-shadow: 4px 4px 0 var(--peach);
  padding: 1.3em 1.4em;
  text-align: center;
}
.box-formula .formula-line {
  margin: .25em 0;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(17px, 2.6vw, 21px); line-height: 1.8; letter-spacing: .06em; color: var(--brown);
}
.formula-line .num, .box-formula .num { font-family: var(--f-corm); font-weight: 500; font-size: 1.22em; letter-spacing: .02em; }
.formula-line .op { font-family: var(--f-jost); font-weight: 300; color: var(--olive-deep); padding: 0 .1em; }

/* 手紙 */
.box-letter {
  background-color: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.05em - 1px), var(--line) calc(2.05em - 1px), var(--line) 2.05em);
  background-position: 0 1.6em;
  padding: 1.6em 1.8em 2em;
  font-family: var(--f-mincho); letter-spacing: .06em;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-.4deg);
}
.box-letter p { margin: 0 0 2.05em; }
.box-letter .box__title {
  margin: 0 0 1em; font-family: var(--f-mincho); font-weight: 700; font-size: 18px; letter-spacing: .3em; color: var(--brown);
  display: flex; align-items: center; gap: .8em;
}
.box-letter .box__title::before { content: ""; width: 1.4em; height: 1em; border: 1px solid var(--brown); border-radius: 2px; background: linear-gradient(155deg, transparent 48%, var(--brown) 49%, var(--brown) 51%, transparent 52%), linear-gradient(25deg, transparent 48%, var(--brown) 49%, var(--brown) 51%, transparent 52%); }

/* 注記 */
.box-note {
  margin: 2.4em 0; padding: 1em 1.3em;
  border-radius: var(--radius-s);
  background: var(--sky-soft);
  font-size: 15px; line-height: 1.9; color: var(--ink);
}

/* ---------- 図解カード ---------- */
.figure {
  position: relative;
  margin: 2.8em 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3.4vw, 32px) clamp(14px, 3vw, 30px) clamp(16px, 2.6vw, 24px);
  font-size: 15px; line-height: 1.75; letter-spacing: .02em;
}
@media (min-width: 1100px) {
  .reader__body .figure { margin-left: -2.5em; margin-right: -2.5em; }
}
.figure figcaption {
  margin-top: 1.2em; padding-top: .9em; border-top: 1px dashed var(--line);
  font-size: 12.5px; line-height: 1.7; color: var(--ink-soft); letter-spacing: .05em;
  display: flex; flex-wrap: wrap; gap: .2em 1em; justify-content: space-between;
}
.figure figcaption .fig-no { font-family: var(--f-jost); letter-spacing: .25em; text-transform: uppercase; color: var(--olive-deep); }
.figure svg { display: block; width: 100%; height: auto; overflow: visible; }
/* 文字色は各要素のfill属性を優先（既定色は親から継承） */
.figure svg { fill: var(--ink); }
.figure svg text { font-family: var(--f-gothic); }

.figure-src { margin-top: .9em; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }
.figure-src summary { cursor: pointer; font-size: 12px; letter-spacing: .12em; width: fit-content; }
.figure-src summary:hover { color: var(--brown); }
.figure-src ul { padding-left: 1.2em; margin: .6em 0 0; }
.figure-src li { margin: .1em 0; }
.figure-text .figure-body ul { padding-left: 1.2em; margin: 0; }

/* 図の中で使う部品 */
.fg-head { text-align: center; margin: 0 0 1.4em; display: grid; justify-items: center; gap: .5em; }
.fg-title {
  margin: 0;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(18px, 2.8vw, 23px); line-height: 1.55; letter-spacing: .16em; color: var(--brown);
}
.fg-sub { margin: 0; font-size: 13.5px; color: var(--ink-soft); letter-spacing: .08em; line-height: 1.7; }
.fg-lead { margin: 0 auto 1.4em; max-width: 30em; font-size: 14px; line-height: 1.85; text-align: center; color: var(--ink); }
.fg-copy { font-family: var(--f-jost); font-weight: 300; font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); text-align: right; margin: .8em 0 0; }
.fg-copy::before { content: "©"; margin-right: .1em; }

.fg-num { font-family: var(--f-corm); font-weight: 500; letter-spacing: .01em; }
.fg-en { font-family: var(--f-jost); font-weight: 300; letter-spacing: .3em; text-transform: uppercase; }

.fg-circle {
  display: inline-grid; place-items: center; flex: none;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--brown); color: var(--paper);
  font-family: var(--f-jost); font-weight: 400; font-size: .9em; line-height: 1;
}
.fg-circle--olive { background: var(--olive-deep); }
.fg-circle--peach { background: var(--peach-deep); color: var(--brown); }

.fg-bubble {
  position: relative; display: inline-block;
  background: var(--paper); border: 1px solid var(--brown); border-radius: 18px;
  padding: .7em 1.1em; font-size: 13.5px; line-height: 1.75; color: var(--brown);
}
.fg-bubble::after {
  content: ""; position: absolute; left: 1.6em; bottom: -7px; width: 12px; height: 12px;
  background: var(--paper); border-right: 1px solid var(--brown); border-bottom: 1px solid var(--brown);
  transform: rotate(45deg);
}
.fg-bubble--top::after { bottom: auto; top: -7px; transform: rotate(-135deg); }

.fg-board {
  background: var(--green); color: var(--paper);
  border-radius: 16px; padding: 1.1em 1.3em;
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.06), 0 6px 0 -2px var(--peach-deep);
  font-family: var(--f-mincho); letter-spacing: .08em;
}

.fg-card {
  background: var(--paper); border-radius: 16px; padding: 1em 1.1em;
  border: 1px solid var(--line);
}
.fg-card h5, .fg-card .fg-card__title {
  margin: 0 0 .5em; font-family: var(--f-mincho); font-weight: 700; font-size: 15.5px; letter-spacing: .1em; color: var(--brown); line-height: 1.6;
}
.fg-card ul { margin: 0; padding-left: 1.1em; }
.fg-card li { margin: .15em 0; }
.fg-card--olive { background: var(--olive-soft); border-color: transparent; }
.fg-card--peach { background: var(--peach-soft); border-color: transparent; }
.fg-card--sky { background: var(--sky-soft); border-color: transparent; }
.fg-card--mustard { background: var(--mustard-soft); border-color: transparent; }

.fg-grid { display: grid; gap: 14px; }
@media (min-width: 640px) {
  .fg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.fg-table th, .fg-table td { padding: .6em .8em; border-bottom: 1px dashed var(--line); text-align: left; }
.fg-table thead th { font-family: var(--f-mincho); font-weight: 700; letter-spacing: .1em; color: var(--brown); border-bottom: 1.5px solid var(--brown); font-size: 14px; }
.fg-table tbody th { font-family: var(--f-mincho); font-weight: 700; color: var(--brown); letter-spacing: .1em; white-space: nowrap; }
.fg-table .total th, .fg-table .total td { border-top: 1.5px solid var(--brown); border-bottom: 0; font-weight: 700; }
.fg-table td.fg-num-cell { font-family: var(--f-corm); font-weight: 500; font-size: 1.2em; white-space: nowrap; color: var(--ink); }

/* 数式の組み替え演出 */
.formula-morph { display: grid; align-items: center; justify-items: center; }
.formula-morph > .fm-step {
  grid-area: 1 / 1;
  width: 100%;
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
}
.formula-morph > .fm-step[data-step="2"] { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(3px); }
.formula-morph.is-step2 > .fm-step[data-step="1"] { opacity: 0; transform: translateY(-14px) scale(.98); filter: blur(3px); }
.formula-morph.is-step2 > .fm-step[data-step="2"] { opacity: 1; transform: none; filter: none; }
.fm-dots { display: flex; gap: 6px; justify-content: center; margin-top: .8em; }
.fm-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .4s; }
.formula-morph:not(.is-step2) + .fm-dots span:first-child,
.formula-morph.is-step2 + .fm-dots span:last-child { background: var(--olive); }

.fx { /* 式の行 */
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35em .55em;
  font-family: var(--f-mincho); font-weight: 700; font-size: clamp(16px, 2.8vw, 22px); letter-spacing: .06em; line-height: 1.5;
}
.fx .op { font-family: var(--f-jost); font-weight: 300; font-size: 1.15em; color: var(--olive-deep); }
.fx .frac { display: inline-grid; text-align: center; }
.fx .frac > span:first-child { border-bottom: 1.5px solid currentColor; padding: 0 .3em .1em; }
.fx .frac > span:last-child { padding: .1em .3em 0; }
.fx .hl { background: var(--mustard-soft); border-radius: 8px; padding: 0 .3em; }
.fx .ring { border: 1.5px solid currentColor; border-radius: 999px; padding: .05em .55em; }
.fx .dash { outline: 1.5px dashed var(--peach-deep); outline-offset: 4px; border-radius: 10px; }
.fx .tagged { display: inline-grid; justify-items: center; line-height: 1.2; }
.fx .tagged small { font-family: var(--f-gothic); font-weight: 500; font-size: .52em; color: var(--ink-soft); letter-spacing: .05em; margin-top: .25em; }

/* SVG描画 */
.draw { transition: stroke-dashoffset 2.2s var(--ease); }
.js .draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.js .is-drawn .draw, .js .draw.is-drawn { stroke-dashoffset: 0; }
.js .draw-dot { opacity: 0; transition: opacity .5s var(--ease); }
.js .is-drawn .draw-dot { opacity: 1; }

/* 生成イラスト */
.illust { margin: 2.6em 0; }
.illust img, .illust .illust__ph {
  width: 100%; border-radius: var(--radius); background: var(--peach-soft);
  box-shadow: var(--shadow);
}
.illust .illust__ph { aspect-ratio: 3 / 2; }
.illust figcaption { margin-top: .8em; text-align: center; font-family: var(--f-mincho); font-size: 13.5px; letter-spacing: .15em; color: var(--ink-soft); line-height: 1.7; }
.illust--square img { max-width: 420px; margin: 0 auto; }
@media (min-width: 1100px) { .reader__body .illust--wide { margin-left: -2.5em; margin-right: -2.5em; } }

/* ---------- 前後ナビ ---------- */
.pager {
  max-width: 1080px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 64px;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a {
  display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--brown);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s;
}
.pager a:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: #fff; color: var(--brown); }
.pager .pager__dir { font-family: var(--f-jost); font-weight: 300; font-size: 12px; letter-spacing: .35em; text-transform: uppercase; color: var(--olive-deep); }
.pager .pager__title { font-family: var(--f-mincho); font-weight: 700; font-size: 17px; letter-spacing: .1em; line-height: 1.6; }
.pager .pager__next { text-align: right; }
.pager .pager__next:only-child { grid-column: 2; }
@media (max-width: 719px) { .pager .pager__next:only-child { grid-column: auto; } }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--brown); color: #EFE5D6;
  padding: 56px clamp(16px, 4vw, 40px) 40px;
  font-size: 13.5px; line-height: 1.9; letter-spacing: .05em;
}
.site-footer__inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 820px) { .site-footer__inner { grid-template-columns: 1.3fr 1fr; align-items: end; } }
.site-footer a { color: var(--peach); }
.site-footer a:hover { color: #fff; }
.site-footer__book { font-family: var(--f-mincho); font-weight: 700; font-size: 18px; letter-spacing: .14em; color: #fff; margin: 0 0 .3em; line-height: 1.6; }
.site-footer__en { font-family: var(--f-corm); font-style: italic; color: var(--gold); font-size: 18px; margin: 0 0 1em; }
.site-footer p { margin: 0; }
.site-footer__note { color: #CDBEAA; font-size: 12.5px; }
.site-footer__copy { font-family: var(--f-jost); font-weight: 300; letter-spacing: .2em; font-size: 11px; color: #BFAE98; margin-top: 1.2em !important; }

/* =========================================================
   表紙ページ
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 8vw, 96px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 104px);
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .16; filter: saturate(.8);
}
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,240,228,.2), var(--cream) 96%); }
.hero__veg {
  position: absolute; z-index: -1; inset: -4% -6% auto auto; width: min(760px, 90vw);
  mix-blend-mode: multiply; opacity: .55; pointer-events: none;
}
.hero__inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; gap: clamp(32px, 6vw, 72px); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .hero__inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.hero__cover { justify-self: center; width: min(360px, 74vw); margin: 0; position: relative; }
.hero__cover img {
  width: 100%; border-radius: 4px 10px 10px 4px;
  transform: rotate(-4deg);
  box-shadow: 0 2px 4px rgba(59,45,34,.12), 0 30px 50px -20px rgba(59,45,34,.45), -10px 0 0 -4px rgba(59,45,34,.06);
}
.hero__cover::before {
  content: ""; position: absolute; inset: 8% -8% -6% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--peach) 0, transparent 100%); opacity: .8;
}
.hero__text { display: grid; gap: 18px; justify-items: start; }
.hero__title {
  margin: 0;
  font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(34px, 6.4vw, 66px); line-height: 1.35; letter-spacing: .1em; color: var(--green);
}
.hero__title .q { letter-spacing: 0; }
.hero__en { margin: 0; font-family: var(--f-corm); font-style: italic; font-size: clamp(22px, 3vw, 32px); color: var(--gold-ink); line-height: 1.25; }
.hero__author { margin: 6px 0 0; display: grid; gap: 2px; color: var(--brown); line-height: 1.5; }
.hero__author small { font-size: 13px; letter-spacing: .2em; }
.hero__author strong { font-family: var(--f-mincho); font-size: 24px; letter-spacing: .3em; font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hero__badge { font-size: 15px; }

.section { padding: clamp(56px, 9vw, 112px) clamp(16px, 4vw, 40px); }
.section--paper { background: var(--paper); }
.section__inner { max-width: 1080px; margin: 0 auto; }
.section__head { display: grid; justify-items: center; text-align: center; gap: 10px; margin-bottom: clamp(28px, 5vw, 56px); }
.section__title {
  margin: 0; font-family: var(--f-mincho); font-weight: 700;
  font-size: clamp(24px, 3.6vw, 34px); letter-spacing: .2em; line-height: 1.5; color: var(--brown);
}

.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  position: relative; text-align: center;
  background: var(--paper); border-radius: var(--radius); padding: 26px 12px 22px;
  box-shadow: var(--shadow); display: grid; gap: 4px; justify-items: center;
}
.stat:nth-child(1) { background: var(--peach-soft); }
.stat:nth-child(2) { background: var(--olive-soft); }
.stat:nth-child(3) { background: var(--mustard-soft); }
.stat:nth-child(4) { background: var(--sky-soft); }
.stat__label { font-family: var(--f-mincho); font-weight: 700; font-size: 14px; letter-spacing: .3em; color: var(--brown); }
.stat__value { font-family: var(--f-corm); font-weight: 500; font-size: clamp(40px, 6vw, 62px); line-height: 1.05; color: var(--brown); letter-spacing: .01em; }
.stat__value small { font-family: var(--f-mincho); font-weight: 700; font-size: .32em; letter-spacing: .1em; margin-left: .15em; }
.stat__note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; }
.stats-src { text-align: right; font-size: 12px; color: var(--ink-soft); margin: 14px 0 0; }

.about { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 1.2fr .8fr; } }
.quote {
  margin: 0; padding: 1.4em 1.6em 1.6em; position: relative;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 16.5px; line-height: 2.1;
}
.quote::before {
  content: "“"; position: absolute; left: .3em; top: -.35em;
  font-family: var(--f-corm); font-size: 88px; line-height: 1; color: var(--peach-deep);
}
.quote p { margin: 0 0 1em; }
.quote footer { font-size: 13px; color: var(--ink-soft); letter-spacing: .1em; }
.about__side { display: grid; justify-items: center; gap: 18px; text-align: center; }
.about__side .tate { font-size: 20px; letter-spacing: .5em; }

.lotus { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .lotus { grid-template-columns: .8fr 1.2fr; } }
.lotus__img { margin: 0; }
.lotus__img img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: min(380px, 80vw); margin: 0 auto; box-shadow: var(--shadow); background: var(--olive-soft); }
.lotus__text { font-size: 16px; line-height: 2; }
.lotus__text p { margin: 0 0 1em; }
.lotus .figure { margin: 0; }

.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
a.card:hover { transform: translateY(-4px); color: var(--ink); box-shadow: 0 2px 4px rgba(91,58,36,.08), 0 22px 40px -18px rgba(91,58,36,.35); }
.card__media { aspect-ratio: 16 / 10; background: var(--peach-soft); overflow: hidden; margin: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 20px 22px 22px; display: grid; gap: 8px; align-content: start; }
.card__title { margin: 0; font-family: var(--f-mincho); font-weight: 700; font-size: 19px; letter-spacing: .12em; line-height: 1.6; color: var(--brown); }
.card__list { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); }
.card__list li { position: relative; padding-left: 1em; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--olive); }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-soft); }
.card__foot .fg-en { font-size: 11px; color: var(--olive-deep); }
.card--soon { opacity: .6; }
.card--soon .card__foot::after { content: "準備中"; font-size: 12px; }

.author { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .author { grid-template-columns: auto 1fr; } }
.author__name { display: grid; gap: 6px; justify-items: start; }
.author__name strong { font-family: var(--f-mincho); font-size: 30px; letter-spacing: .3em; color: var(--brown); line-height: 1.4; }
.author__body { font-size: 16px; line-height: 2; }
.author__body p { margin: 0 0 1em; }
.timeline { list-style: none; margin: 1em 0 0; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 16px; background: var(--paper); border-radius: var(--radius-s); font-size: 15px; line-height: 1.8; }
.timeline .fg-num { font-size: 20px; color: var(--olive-deep); line-height: 1.4; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.notfound .fg-num { font-size: 96px; color: var(--peach-deep); line-height: 1; }

/* =========================================================
   動き
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes floatVeg {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  25%  { transform: translate3d(-10px, 8px, 0) rotate(-1deg); }
  50%  { transform: translate3d(-4px, 16px, 0) rotate(.6deg); }
  75%  { transform: translate3d(8px, 6px, 0) rotate(1deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
.float-veg { animation: floatVeg 20s ease-in-out infinite; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .draw-dot { opacity: 1; }
  .chapter-hero .tate { opacity: 1; transform: none; }
  .formula-morph > .fm-step { grid-area: auto; opacity: 1 !important; transform: none !important; filter: none !important; }
  .formula-morph > .fm-step + .fm-step { margin-top: 1.2em; padding-top: 1.2em; border-top: 1px dashed var(--line); }
  .fm-dots { display: none; }
  .progress { display: none; }
}

/* =========================================================
   印刷
   ========================================================= */
@media print {
  @page { margin: 18mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.9; }
  .site-header, .progress, .reader__toc, .pager, .hero__veg, .hero__bg, .figure-src summary, .skip-link { display: none !important; }
  .reader { display: block; padding: 0; }
  .reader__body, .prose { max-width: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .draw { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .js .draw-dot { opacity: 1 !important; }
  .formula-morph > .fm-step { grid-area: auto; opacity: 1 !important; transform: none !important; filter: none !important; }
  .figure, .box, .illust { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  .figure-src[open] summary, .figure-src { display: none; }
  .pg { display: none; }
  .site-footer { background: #fff; color: #000; padding: 12mm 0 0; }
  .site-footer a { color: #000; }
  a { color: #000; text-decoration: none; }
  .chapter-hero { padding: 0 0 8mm; }
  .chapter-hero__media { max-height: 70mm; }
}

/* =========================================================
   図解ごとの調整
   ========================================================= */
.fg-big { font-size: 1.6em; line-height: 1; color: var(--brown); margin: 0 .08em; }
.fg-arrow { font-family: var(--f-jost); font-weight: 300; font-size: 30px; color: var(--olive-deep); line-height: 1; justify-self: center; }
.fg-copy--plain::before { content: none; }

/* 日米 */
.fg-cost-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 12px; }
.fg-cost-badge { font-size: 14px; }
.fg-cost-usa { margin: 0; font-family: var(--f-mincho); font-weight: 700; letter-spacing: .05em; font-size: 16px; color: var(--brown); }
.fg-cost-list { margin: 0; display: grid; gap: 8px; }
.fg-cost-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; border-bottom: 1px dashed var(--peach-deep); padding-bottom: 6px; }
.fg-cost-list > div:last-child { border-bottom: 0; }
.fg-cost-list dt { font-weight: 700; color: var(--brown); }
.fg-cost-list dd { margin: 0; font-family: var(--f-mincho); font-weight: 700; color: var(--brown); }
.fg-cost-list small { font-size: 12px; margin-right: .3em; }

/* 旧公式 */
.fg-board .fx { color: var(--paper); }
.fg-board .fx .op { color: var(--mustard); }
.fg-board .fm-dots span { background: rgba(255,255,255,.25); }
.fg-board .formula-morph:not(.is-step2) + .fm-dots span:first-child,
.fg-board .formula-morph.is-step2 + .fm-dots span:last-child { background: var(--mustard); }
.fg-oldf-bottom { display: grid; gap: 12px; align-items: center; }
@media (min-width: 640px) { .fg-oldf-bottom { grid-template-columns: 1.2fr auto 1fr; } }
.fg-oldf-list { list-style: none; margin: 0; padding: .9em 1em; display: grid; gap: 6px; font-size: 14px; }
.fg-oldf-list li { display: flex; gap: .6em; align-items: center; }
.fg-oldf-list .fg-circle { font-size: 12px; }
.fg-oldf-result { margin: 0; text-align: center; font-family: var(--f-mincho); font-weight: 700; font-size: 18px; letter-spacing: .08em; color: var(--red); line-height: 1.6; text-decoration: underline wavy var(--peach-deep); text-underline-offset: .35em; }

/* PI値を理解しよう */
.fg-piu-panel .fx { color: var(--brown); }
.fg-piu-say { margin: 0 0 .9em; text-align: center; }
.fg-piu-ex { margin-top: 18px; display: grid; gap: 10px; }
.fg-piu-ex .fx { font-size: clamp(15px, 2.6vw, 20px); }
.fg-piu-ex .fg-num { font-size: 1.15em; }
.fg-piu-three { text-align: center; margin: .6em 0 0; color: var(--olive-deep); font-family: var(--f-jost); line-height: 1.5; }
.fg-piu-three strong { font-family: var(--f-mincho); color: var(--brown); font-size: 17px; letter-spacing: .12em; background: none; }

/* 週単位グラフ */
.fg-legend { display: flex; justify-content: center; gap: 22px; margin: 0 0 .4em; font-size: 13.5px; font-weight: 700; }
.fg-legend span { display: inline-flex; align-items: center; gap: .5em; }
.fg-legend span::before { content: ""; width: 26px; height: 3px; border-radius: 2px; }
.fg-legend__tomato { color: var(--red); }
.fg-legend__tomato::before { background: var(--red); }
.fg-legend__cucumber { color: var(--olive-deep); }
.fg-legend__cucumber::before { background: var(--olive-deep); }
.fg-weekly-table { margin-top: 12px; min-width: 520px; }
.fg-weekly-table th, .fg-weekly-table td { text-align: center; }

/* ヒント */
.fg-branch { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; }
.fg-branch__root { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; text-align: center; padding-right: 18px; border-right: 2px solid var(--mustard); }
.fg-branch__leaves { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fg-branch__leaves li { display: flex; flex-wrap: wrap; gap: 0 .4em; align-items: baseline; font-size: 15px; line-height: 1.6; }
.fg-branch__leaves li::before { content: "—"; color: var(--mustard); margin-right: .2em; }
.fg-branch__leaves strong { font-size: 17px; }
.fg-branch__leaves span { font-family: var(--f-gothic); font-size: 13px; opacity: .85; }
.fg-hints-say { margin: 16px 0; }
.fg-hints-say .fg-bubble { display: block; }

/* 表 */
.fg-avg-table { min-width: 420px; }
.fg-avg-table tr.is-hl th, .fg-avg-table tr.is-hl td { background: var(--olive-soft); }
.fg-range-cell { width: 45%; }
.fg-range { position: relative; display: block; height: 10px; border-radius: 5px; background: var(--cream); }
.fg-range::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: 5px; background: var(--olive); }
.fg-range--open::after { background: linear-gradient(90deg, var(--olive), rgba(169,180,76,0)); }
.fg-scale { display: flex; justify-content: space-between; font-family: var(--f-jost); font-weight: 300; font-size: 11px; color: var(--ink-soft); letter-spacing: 0; }

.fg-ppi-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fg-ppi-item { display: grid; justify-items: center; gap: 2px; padding: 18px 10px; border-radius: 18px; }
.fg-ppi-total { background: var(--brown); color: var(--paper); }
.fg-ppi-label { font-family: var(--f-mincho); font-weight: 700; letter-spacing: .3em; }
.fg-ppi-val { font-size: 30px; line-height: 1.2; }

/* 客数の視点 */
.fg-views-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .fg-views-list { grid-template-columns: 1fr 1fr; } }
.fg-views-list li { display: grid; gap: 2px; padding: .7em 1em; border-radius: 14px; background: var(--paper); border-left: 4px solid var(--olive); font-size: 14px; line-height: 1.7; }
.fg-views-list li:nth-child(3n+2) { border-left-color: var(--peach-deep); }
.fg-views-list li:nth-child(3n) { border-left-color: var(--sky); }
.fg-views-who { font-family: var(--f-mincho); font-weight: 700; color: var(--brown); letter-spacing: .08em; font-size: 15px; }
.fg-views-what b { color: var(--brown); }

/* 客単価PI値 */
.fg-kpi-say { margin: 16px 0 12px; text-align: right; }
.fg-kpi-say .fg-bubble { text-align: left; }
.fg-kpi-choice { display: grid; gap: 8px 16px; align-items: center; margin-top: 16px; justify-content: center; text-align: center; }
@media (min-width: 640px) { .fg-kpi-choice { grid-template-columns: auto auto auto; text-align: left; } }
.fg-kpi-choice p { margin: 0; font-weight: 700; color: var(--brown); }
.fg-kpi-choice ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--f-mincho); font-weight: 700; font-size: 20px; color: var(--brown); }
.fg-kpi-choice li { display: flex; gap: .5em; align-items: center; }
.fg-kpi-choice .fg-circle { font-size: 13px; }

/* マクドナルド */
.fg-mc-row { display: grid; gap: 12px; align-items: center; margin-bottom: 18px; }
@media (min-width: 680px) { .fg-mc-row { grid-template-columns: 1.1fr 1fr; } .fg-mc-label { grid-column: 1 / -1; } }
.fg-mc-label { margin: 0; }
.fg-mc-label .badge { font-size: 14px; }
.fg-mc-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: .5em .9em; }
.fg-mc-kind { font-weight: 700; color: var(--brown); font-size: 14px; }
.fg-mc-price { font-family: var(--f-mincho); font-weight: 700; color: var(--brown); border: 1.5px solid var(--brown); border-radius: 8px; padding: 0 .5em; }
.fg-mc-price .fg-num { font-size: 1.6em; line-height: 1.2; }
.fg-mc-price.is-up { background: var(--peach); }
.fg-mc-arrow { margin: .4em 0; font-size: 13px; font-weight: 700; color: var(--olive-deep); text-align: center; }
.fg-mc-notes { margin: .5em 0 0; padding-left: 1.2em; font-size: 13px; }
.fg-mc-result { text-align: center; font-size: 14.5px; }
.fg-mc-result p { margin: 0; }
.fg-mc-down { font-size: 22px; color: var(--brown); line-height: 1.4; }
.fg-mc-end { font-family: var(--f-mincho); font-weight: 700; font-size: 19px; letter-spacing: .15em; color: var(--green); border-bottom: 2px solid currentColor; display: inline-block; }
.fg-mc-end.is-bad { color: var(--red); }
.fg-mc-steps { list-style: none; padding: 0; margin: 0 0 .2em; display: grid; gap: 6px; text-align: left; }
.fg-mc-steps li { display: flex; gap: .5em; align-items: flex-start; }
.fg-mc-steps .fg-circle { font-size: 12px; margin-top: .2em; }
.fg-mc-point { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.fg-mc-point__h { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: .2em; color: var(--mustard); }
.fg-mc-point ul { margin: 0; padding-left: 1.1em; font-size: 15px; line-height: 1.8; }

/* 適正価格 */
.fg-fair-table { min-width: 460px; }
.fg-fair-table th, .fg-fair-table td { text-align: center; vertical-align: middle; }
.fg-fair-table tbody th { text-align: left; }
.fg-fair-table .badge { font-size: 12px; background: var(--brown); color: var(--paper); border-color: var(--brown); }
.fg-fair-table .up, .fg-fair-table .down { font-size: 26px; line-height: 1; font-weight: 700; }
.fg-fair-table .up { color: var(--olive-deep); }
.fg-fair-table .down { color: #B5652F; }
.fg-fair-table td:last-child { text-align: left; white-space: nowrap; }
.fg-eval { font-family: var(--f-mincho); font-weight: 700; font-size: 18px; color: var(--green); margin-left: .4em; letter-spacing: .05em; }
.fg-eval.is-bad { color: var(--red); }
.fg-eval small { font-size: 12px; color: var(--ink-soft); font-family: var(--f-gothic); }
.fg-fair-table tr.is-best td, .fg-fair-table tr.is-best th { background: var(--olive-soft); }
.fg-fair-table tr.is-worst td, .fg-fair-table tr.is-worst th { background: var(--peach-soft); }

/* POP */
.fg-pop-row { display: grid; gap: 16px; align-items: center; margin-bottom: 20px; }
@media (min-width: 640px) { .fg-pop-row { grid-template-columns: .8fr 1.2fr; } }
.fg-pop-card { justify-self: center; display: grid; justify-items: center; gap: 4px; background: #fff; border: 1.5px solid var(--brown); border-top: 10px solid var(--brown); border-radius: 4px 4px 22px 4px; padding: 14px 18px 18px; box-shadow: 4px 6px 0 var(--peach); }
.fg-pop-card--l { width: min(100%, 250px); transform: rotate(-2deg); }
.fg-pop-card--m { width: min(100%, 200px); transform: rotate(1.5deg); }
.fg-pop-name { font-weight: 700; color: var(--brown); font-size: 15px; }
.fg-pop-price { font-family: var(--f-mincho); font-weight: 700; color: var(--red); font-size: 18px; }
.fg-pop-card--l .fg-pop-price .fg-num { font-size: 3.6em; line-height: 1; }
.fg-pop-card--m .fg-pop-price { color: var(--brown); }
.fg-pop-card--m .fg-pop-price .fg-num { font-size: 2.4em; line-height: 1; }
.fg-pop-lines { width: 70%; height: 10px; border-top: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); }
.fg-pop-h { margin: 0 0 .5em; font-family: var(--f-mincho); font-weight: 700; font-size: 18px; letter-spacing: .08em; line-height: 1.6; color: var(--brown); }
.fg-pop-list { list-style: none; margin: 0; padding: .9em 1em; display: grid; gap: 6px; font-size: 14px; }
.fg-pop-list li { display: flex; gap: .6em; align-items: flex-start; }
.fg-pop-list .fg-circle { font-size: 12px; margin-top: .25em; }

.fg-flyer-next { text-align: center; margin: .8em 0 .2em; font-family: var(--f-mincho); font-weight: 700; font-size: 19px; letter-spacing: .12em; color: var(--brown); }

/* 奥付 */
.colophon { margin: 0 0 1.6em; display: grid; gap: 0; border-top: 1px solid var(--brown); border-bottom: 1px solid var(--brown); font-size: 15px; line-height: 1.8; }
.colophon > div { display: grid; grid-template-columns: 5em 1fr; gap: 1em; padding: .6em 0; border-bottom: 1px dashed var(--line); }
.colophon > div:last-child { border-bottom: 0; }
.colophon dt { font-family: var(--f-mincho); font-weight: 700; color: var(--brown); letter-spacing: .2em; }
.colophon dd { margin: 0; }

/* ===== 仕上げ調整（2026-10-19 検証後） ===== */
/* 緑の黒板の中の項目は明るい文字で */
.fg-board .fg-branch__leaves { color: var(--paper); }
.fg-board .fg-branch__leaves span { opacity: .8; }
.fg-board .fg-branch__root { color: var(--paper); }
/* 表紙の線画野菜は控えめに（タイトルに重ねない） */
.hero__veg { opacity: .28; width: min(560px, 58vw); inset: auto -5% -8% auto; }
@media (max-width: 859px) { .hero__veg { width: 72vw; opacity: .2; inset: auto -12% -4% auto; } }
/* 章題は意味の切れ目で折り返す */
.nb { display: inline-block; }
/* 図の表はスマホで小さめに */
@media (max-width: 480px) {
  .fg-table { font-size: 13px; }
  .fg-table th, .fg-table td { padding: 8px 6px; }
}
/* 緑・茶の濃い面の中の太字は白文字・マーカーなし */
.prose .fg-board strong, .fg-board strong,
.prose .fg-ppi-total strong { color: var(--paper); background: none; }
/* オリーブ地のラベルは濃い文字で（白だとコントラスト不足） */
.badge--olive { color: var(--ink); }
.box-column__band { color: var(--ink); }

/* ===== 式の切り替えボタン（自動＋手動） ===== */
.formula-morph[role="button"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.formula-morph[role="button"]:focus-visible { outline: 2px dashed var(--mustard); outline-offset: 8px; border-radius: 12px; }
.fm-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 10px; margin-top: 1.1em; }
.fm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 6px 16px 6px 8px; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; color: var(--brown);
  font: 700 14px/1 var(--f-gothic); letter-spacing: .08em; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.fm-btn:hover { transform: translateY(-1px); }
.fm-btn:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }
.fm-btn__no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--brown); font-family: var(--f-jost); font-size: 14px; }
.fm-btn.is-on { background: var(--olive); border-color: var(--olive); color: var(--ink); }
.fm-btn.is-on .fm-btn__no { background: var(--paper); }
.fm-hint { flex-basis: 100%; text-align: center; font-size: 12px; letter-spacing: .1em; opacity: .75; }
.fm-hint::before { content: "⇄ "; }
/* 緑の黒板の上 */
.fg-board .fm-btn { color: var(--paper); border-color: rgba(252,250,245,.55); }
.fg-board .fm-btn__no { background: rgba(252,250,245,.18); color: var(--paper); }
.fg-board .fm-btn.is-on { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.fg-board .fm-btn.is-on .fm-btn__no { background: var(--paper); color: var(--brown); }
.fg-board .fm-hint { color: var(--paper); }
.fm-btn__label { white-space: nowrap; }
.fg-board .fm-switch { margin-top: 1.2em; }

/* コラムの縦書きタイトルを帯の中央に */
.box-column__band { writing-mode: horizontal-tb; flex-direction: column; align-items: center; justify-content: flex-start; }
.box-column__band span { writing-mode: vertical-rl; text-orientation: upright; width: auto; text-align: start; letter-spacing: .3em; }
