/* きよえさん 予防食学フードマップ — 値はすべて DESIGN.md から */
:root {
  --bg: #FBF7F3;
  --paper: #FFFFFF;
  --blush: #F7E6E9;
  --leaf: #E6EFE8;
  --text: #18273A;
  --muted: #5B6476;
  --line: #E8DFD7;
  --em: #C8136F;
  --ok: #3F7457;
  --ng: #5B6476; /* 補足と同じ灰色（淡い灰色の地の上で 5.3:1） */
  --ng-bg: #F1F1F2;
  --accent: #06C755;

  --f: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --fs1: 48px; --fs2: 26px; --fs3: 19px; --fs4: 16px; --fs5: 13px;
  --gap-in: 12px; --gap-between: 32px; --gap-section: 80px; --gutter: 20px;
  --r-s: 12px; --r-m: 20px;
  --shadow: 0 8px 24px rgba(24, 39, 58, .06);

  --ease: cubic-bezier(.39, .575, .565, 1); --dur-in: .7s; --dur-tap: .2s; --rise: 8px; --step: .12s;
}
@media (min-width: 900px) {
  :root { --fs1: 72px; --fs2: 32px; --fs3: 21px; --fs4: 17px; --fs5: 13.5px;
          --gap-in: 14px; --gap-between: 40px; --gap-section: 120px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f);
  font-weight: 500;
  font-size: var(--fs4);
  line-height: 1.9;
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ol, ul, li, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
.nb { display: inline-block; }
p { text-wrap: pretty; }
.ic { width: auto; height: 36px; color: var(--text); flex: none; }

/* 本の1列 */
.book { max-width: 600px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding-top: var(--gap-section); }

.h2 { font-size: var(--fs2); font-weight: 700; line-height: 1.45; margin-bottom: var(--gap-between); font-feature-settings: "palt"; }
.h3 { font-size: var(--fs3); font-weight: 700; line-height: 1.5; margin: calc(var(--gap-between) * 1.5) 0 var(--gap-in); font-feature-settings: "palt"; }
.body p + p { margin-top: 1.2em; }
.note { margin-top: var(--gap-in); font-size: var(--fs5); color: var(--muted); }

/* × ○ の印（箱にしない。色の字＋小さな印） */
.mark { display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: var(--fs5); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.mark__ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: #fff; font-size: 12px; line-height: 1; }
.mark--ng { color: var(--ng); } .mark--ng .mark__ic { background: var(--ng); }
.mark--ok { color: var(--ok); } .mark--ok .mark__ic { background: var(--ok); }
.mark--one { color: var(--text); }

/* 吹き出し（角丸の四角と三角のしっぽ） */
.bubble { position: relative; border-radius: var(--r-m); padding: 12px 16px 14px; }
.bubble::after { content: ""; position: absolute; width: 0; height: 0; border: 9px solid transparent; }
.bubble__text { margin-top: 4px; font-size: var(--fs3); font-weight: 700; line-height: 1.55; }

/* ===== 表紙 ===== */
.cover { position: relative; padding: 28px 0 8px; isolation: isolate; }
.cover::before {
  content: ""; position: absolute; z-index: -1; top: -40px; left: calc(50% - 50vw); right: calc(50% - 50vw);
  height: 600px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
  background:
    radial-gradient(60% 55% at 85% 20%, var(--blush), transparent 70%),
    radial-gradient(55% 50% at 10% 70%, var(--leaf), transparent 70%);
}
.cover__by { display: flex; align-items: center; gap: 12px; }
.cover__face { width: 52px; height: 52px; border-radius: var(--r-s); object-fit: cover; }
.cover__by p { display: flex; flex-direction: column; line-height: 1.45; }
.cover__role { font-size: var(--fs5); font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.cover__name { font-size: var(--fs4); font-weight: 700; }
.cover__title { margin-top: var(--gap-between); font-size: var(--fs1); font-weight: 900; line-height: 1.15; letter-spacing: .01em; font-feature-settings: "palt"; }
.cover__title .nb { display: block; }
.cover__sub { margin-top: var(--gap-in); font-size: var(--fs2); font-weight: 700; line-height: 1.45; color: var(--em); font-feature-settings: "palt"; }
.cover__visual { position: relative; margin-top: var(--gap-between); }
.cover__food { width: 100%; border-radius: var(--r-m); box-shadow: var(--shadow); }
.cover__yb { position: absolute; left: -8px; bottom: -36px; display: flex; align-items: flex-end; gap: 4px; }
.cover__ybimg { width: 118px; }
.mb--cover { width: 184px; margin-bottom: 46px; padding: 30px 30px 30px 34px; align-self: auto; }
.mb--cover .mb__text { margin: 0; font-size: var(--fs4); line-height: 1.45; }
.cover__foot { margin-top: calc(var(--gap-between) + 40px); }
.cover__lead { font-size: var(--fs3); font-weight: 700; }
.btn-read {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: var(--gap-in); min-height: 56px; border-radius: var(--r-s);
  border: 1.5px solid var(--text); color: var(--text); background: var(--paper);
  font-weight: 700; font-size: var(--fs4); text-decoration: none;
  transition: transform var(--dur-tap) var(--ease);
}
.btn-read::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.btn-read:active, .cta:active { transform: translateY(1px); }
.pdf { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: var(--fs5); font-weight: 700; color: var(--muted); }

/* ===== はじめに ===== */
.sign-name { margin-top: var(--gap-in); text-align: right; font-weight: 700; }
.how-wrap { margin-top: var(--gap-section); }
.how-wrap .h3 { margin-top: 0; }
.how { display: flex; flex-direction: column; gap: var(--gap-between); }
.how__item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; }
.how__img { width: 80px; height: 96px; object-fit: contain; object-position: center bottom; }
.how__text { margin-top: 4px; line-height: 1.7; }
.how__box { display: grid; place-items: center; width: 80px; height: 80px; border-radius: var(--r-m); background: var(--blush); }

/* ===== 目次 ===== */
.toc__list { display: flex; flex-direction: column; gap: 4px; }
.toc__link { display: grid; grid-template-columns: 52px 40px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 60px; color: var(--text); text-decoration: none; font-weight: 700; }
.toc__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-s); background: var(--paper); }
.toc__ic .ic { height: 30px; max-width: 40px; }
.toc__no { font-size: var(--fs3); font-weight: 900; text-align: center; }
.toc__no--end { font-size: var(--fs5); white-space: nowrap; letter-spacing: 0; }
.toc__title { line-height: 1.5; }

/* ===== 章の扉 ===== */
.door { padding-top: var(--gap-in); }
.door__top { display: flex; align-items: center; gap: 12px; }
.door__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-m); background: var(--leaf); }
.door__ic .ic { height: 38px; max-width: 52px; }
.door__no { font-size: var(--fs4); font-weight: 700; color: var(--ok); letter-spacing: .08em; }
.door__title { margin-top: var(--gap-in); font-size: var(--fs2); font-weight: 700; line-height: 1.45; font-feature-settings: "palt"; }
.door__lead { margin-top: var(--gap-in); }

/* ===== ヤバ子 VS きよえ（Signature）: 漫画の2コマ ===== */
.manga { margin-top: var(--gap-between); display: flex; flex-direction: column; gap: 8px; }
.manga__komas { display: flex; flex-direction: column; gap: 8px; }
.vs__label { display: flex; align-items: baseline; justify-content: center; gap: 10px; font-size: var(--fs5); font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.vs__label b { font-size: var(--fs3); font-weight: 900; color: var(--text); letter-spacing: .02em; }
/* コマ枠は漫画の線（紺 2.5px・角なし）。地は網点（スクリーントーン） */
.koma { position: relative; display: grid; align-items: end; gap: 2px; border: 2.5px solid var(--text); padding: 14px 8px 0; min-height: 176px; overflow: hidden; background-size: 7px 7px; }
.koma--ng { grid-template-columns: 88px minmax(0, 1fr); background-color: var(--ng-bg); background-image: radial-gradient(rgba(24, 39, 58, .14) 1.1px, transparent 1.5px); }
.koma--ok { grid-template-columns: minmax(0, 1fr) 88px; background-color: var(--paper); background-image: radial-gradient(rgba(200, 19, 111, .13) 1.1px, transparent 1.5px); }
.koma__who { width: 88px; height: 124px; object-fit: contain; object-position: center bottom; }
/* 漫画の吹き出し（フキダシデザイン）。形は SVG、文字は上に重ねる */
.mb { position: relative; align-self: center; margin-bottom: 14px; --mb-face: #fff; --mb-line: var(--text); }
.mb__bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mb__in { position: relative; }
.mb--spiky { padding: 42px 42px 42px 48px; }
.mb--cloud { padding: 40px 36px 44px; }
.mb--round { padding: 30px 34px 46px; }
.koma--ok .mb--round .mb__bg { transform: scaleX(-1); } /* しっぽをきよえの方へ */
.mb .nb { white-space: nowrap; }
.mb__text { margin-top: 2px; font-size: var(--fs4); font-weight: 700; line-height: 1.5; }

/* ===== クイズ（章の頭。押すと答え） ===== */
.quiz { margin-top: var(--gap-between); }
.quiz__label { font-size: var(--fs5); font-weight: 900; color: var(--muted); letter-spacing: .1em; }
.quiz__q { margin-top: 4px; font-size: var(--fs3); font-weight: 700; line-height: 1.5; }
.quiz__opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: var(--gap-in); }
@media (min-width: 900px) { .quiz__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quiz__opt { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper); font: inherit; font-weight: 700; color: var(--text); text-align: left; line-height: 1.4; cursor: pointer; transition: transform var(--dur-tap) var(--ease); }
.quiz__opt:active { transform: translateY(1px); }
.quiz__ab { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--bg); font-size: var(--fs5); font-weight: 900; color: var(--muted); flex: none; }
.quiz__opt.is-ok { border-color: var(--ok); background: var(--leaf); }
.quiz__opt.is-ok .quiz__ab { background: var(--ok); color: #fff; }
.quiz__opt.is-ng { border-color: var(--ng); }
.quiz__opt:disabled { cursor: default; color: var(--text); }
.quiz__opt:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.quiz__a { margin-top: var(--gap-in); line-height: 1.75; }
.quiz__a b { display: block; color: var(--ok); font-size: var(--fs3); }

/* 読んだ分だけ伸びる線（画面の上） */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--em); transform-origin: left center; transform: scaleX(0); }

/* ===== 1章 目安・仲間・写真 ===== */
.ratio, .big { margin-top: calc(var(--gap-between) * 1.5); }
.big__label { font-size: var(--fs5); font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.big__num { font-size: var(--fs1); font-weight: 900; color: var(--em); line-height: 1.1; }
.big__num small { font-size: var(--fs3); font-weight: 700; margin-left: 4px; color: var(--text); }
.big__text { margin-top: var(--gap-in); }
.big__text b { font-weight: 700; }
.ratio__big { display: flex; align-items: baseline; gap: 8px; font-weight: 700; }
.ratio__name { font-size: var(--fs3); }
.ratio__num { font-size: var(--fs1); font-weight: 900; color: var(--em); line-height: 1.1; }
.ratio__colon { font-size: var(--fs2); font-weight: 900; color: var(--muted); margin-right: 4px; }
.ratio__sub { margin-top: 4px; font-weight: 700; }
.ratio__sub b { font-weight: 700; }
.ratio__note { margin-top: var(--gap-in); }

.grps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.grp { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--paper); border-radius: var(--r-m); padding: 16px; }
.grp__ics { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; }
.grp__ics .ic { height: 30px; max-width: 60px; }
.grp__name { font-size: var(--fs3); font-weight: 700; line-height: 1.4; }
.grp__ex { margin-top: 4px; line-height: 1.75; }
.grp__note { margin-top: 4px; font-size: var(--fs5); color: var(--muted); }

.photo { margin-top: var(--gap-between); }
.photo__img { width: 100%; border-radius: var(--r-m); box-shadow: var(--shadow); }
.photo__cap { margin-top: var(--gap-in); line-height: 1.7; }

/* ===== 2章 水 ===== */
.wtrs { display: flex; flex-direction: column; gap: var(--gap-in); }
.wtr { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.wtr__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-s); background: var(--leaf); }
.wtr__ic .ic { height: 30px; }
.wtr__name { font-size: var(--fs3); font-weight: 700; line-height: 1.45; }
.wtr__ex { margin-top: 2px; line-height: 1.75; }

/* ===== 3章 油 ===== */
.oil-list { display: flex; flex-direction: column; gap: 10px; }
.panel { border-radius: var(--r-m); padding: 18px 18px; }
.panel--ng { background: var(--ng-bg); }
.panel--ok { background: var(--leaf); }
.panel--table { background: var(--paper); padding: 4px 16px; }
.oil-list { gap: var(--gap-between); }
.oil { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.oil__no { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--paper); color: var(--ng); font-weight: 900; }
.oil__name { font-size: var(--fs3); font-weight: 700; line-height: 1.45; }
.oil__ex { margin-top: 4px; line-height: 1.75; }
.tip { margin-top: var(--gap-between); line-height: 1.75; }
.tip b { display: block; font-size: var(--fs5); color: var(--ok); }
.goils { display: flex; flex-direction: column; gap: var(--gap-in); }
.goils { gap: var(--gap-in); }
.goil__name { font-size: var(--fs3); font-weight: 700; line-height: 1.45; }
.goil__ex { margin-top: 2px; line-height: 1.75; }

/* ===== 4章 GI値 ===== */
.swaps { display: flex; flex-direction: column; }
.swap { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.swaps .swap:last-child { border-bottom: 0; }
.swap--head { min-height: 40px; font-size: var(--fs5); font-weight: 700; color: var(--muted); }
.swap--head span:last-child { color: var(--ok); }
.swap__hi, .swap__lo { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-weight: 700; line-height: 1.4; }
.swap__hi { color: var(--muted); }
.swap__hi b { font-size: var(--fs4); }
.swap__lo b { font-size: var(--fs3); color: var(--ok); }
.swap__arrow { justify-self: center; width: 8px; height: 8px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.gi { border-bottom: 1px solid var(--line); }
.gi:last-child { border-bottom: 0; }
.gi__sum { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; }
.gi__sum::-webkit-details-marker { display: none; }
.gi__sum::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-tap) var(--ease); }
.gi[open] .gi__sum::after { transform: translateY(2px) rotate(-135deg); }
.gi__sum:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: var(--r-s); }
.gi__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 0 16px; }
.gi__h { font-size: var(--fs5); font-weight: 700; margin-bottom: 4px; }
.gi__h--hi { color: var(--muted); } .gi__h--lo { color: var(--ok); }
.gi__ul li { display: flex; justify-content: space-between; gap: 6px; line-height: 1.6; padding: 3px 0; }
.gi__n { font-weight: 700; }
.gi__n--hi { color: var(--muted); } .gi__n--lo { color: var(--ok); }

/* ===== 5章 7色 ===== */
.clrs { display: flex; flex-direction: column; gap: 10px; }
.clr { display: grid; grid-template-columns: 28px 4em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.clr__dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; transform: translateY(4px); }
.clr__name { font-size: var(--fs3); font-weight: 700; }
.clr__ex { line-height: 1.75; }
.clr--aka { background: #D7504A; } .clr--dai { background: #E8913A; } .clr--ki { background: #E9C548; }
.clr--midori { background: #5E9E5B; } .clr--murasaki { background: #8B5FA8; } .clr--kuro { background: #4B4540; }
.clr--shiro { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #CFC6BC; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--gap-in); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip__in { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 10px; border-radius: var(--r-s); background: var(--paper); font-weight: 700; cursor: pointer; border: 2px solid transparent; }
.chip__in .clr__dot { transform: none; width: 18px; height: 18px; }
.chip input:checked + .chip__in { border-color: var(--em); }
.chip input:focus-visible + .chip__in { outline: 3px solid var(--text); outline-offset: 2px; }
.chips__count { margin-top: var(--gap-in); font-weight: 700; }
.chips__count b { font-size: var(--fs2); color: var(--em); }

/* ===== 今日からこれ1つ ===== */
.one { margin-top: calc(var(--gap-between) * 1.5); background: var(--blush); border-radius: var(--r-m); padding: 20px 18px 16px; }
.one__label { font-size: var(--fs5); font-weight: 700; color: var(--text); letter-spacing: .04em; }
.one__check { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 8px; cursor: pointer; min-height: 48px; }
.one__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.one__box { width: 44px; height: 44px; border-radius: var(--r-s); background: var(--paper); border: 2px solid var(--em); position: relative; display: block; }
.one__check input:checked + .one__box, .one__box--on { background: var(--em); }
.one__check input:checked + .one__box::after, .one__box--on::after { content: ""; position: absolute; left: 14px; top: 6px; width: 10px; height: 20px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.one__check input:focus-visible + .one__box { outline: 3px solid var(--text); outline-offset: 2px; }
.one__text { font-size: var(--fs2); font-weight: 700; line-height: 1.45; font-feature-settings: "palt"; }
.one__note { margin-top: var(--gap-in); font-size: var(--fs5); color: var(--muted); }
.one__check--s { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; margin-top: 0; }
.one__check--s .one__box { width: 32px; height: 32px; border-radius: 10px; }
.one__check--s input:checked + .one__box::after { left: 9px; top: 3px; width: 8px; height: 15px; }
.one__check--s .one__text { font-size: var(--fs3); }

/* ===== まとめ ===== */
.matome__count { font-weight: 700; margin-top: calc(var(--gap-between) * -0.5); margin-bottom: var(--gap-in); }
.matome__count b { font-size: var(--fs2); color: var(--em); }
.matome__list { display: flex; flex-direction: column; gap: 10px; background: var(--blush); border-radius: var(--r-m); padding: 18px; }
.finale { margin-top: var(--gap-section); display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: end; }
.finale__yb { position: relative; display: flex; flex-direction: column; align-items: center; }
.finale__ybimg { width: 100px; }
.bubble--finale { background: var(--paper); font-weight: 900; color: var(--em); padding: 8px 14px; margin-bottom: 14px; white-space: nowrap; }
.bubble--finale::after { left: calc(50% - 9px); bottom: -17px; border-top-color: var(--paper); }
.finale__word { font-size: var(--fs2); font-weight: 900; line-height: 1.4; color: var(--em); font-feature-settings: "palt"; }
.finale__text { margin-top: var(--gap-in); line-height: 1.75; }
.finale__sign { width: 180px; margin-top: var(--gap-in); }

/* 奥付（出口の前） */
.colophon { margin-top: var(--gap-between); font-size: var(--fs5); color: var(--muted); line-height: 1.8; }
.colophon p + p { margin-top: 6px; }
.colophon__title { font-weight: 700; color: var(--text); font-size: var(--fs4); }
.colophon__note { margin-top: var(--gap-in) !important; }

/* 出口（ページのいちばん最後） */
.consult { margin-top: var(--gap-section); padding: var(--gap-between) 0 120px; }
.consult__text { margin-bottom: var(--gap-between); }
.cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 12px 20px; border-radius: var(--r-s);
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--fs3);
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-tap) var(--ease);
}
.cta::after { content: ""; width: 9px; height: 9px; border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); }
.consult__note { margin-top: 10px; text-align: center; font-size: var(--fs5); color: var(--muted); }
.cta:focus-visible, .btn-read:focus-visible, .toc__link:focus-visible, .toc-fab:focus-visible, .pdf:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* 目次へ戻る（小さく、影なし、内容を隠さない） */
.toc-fab {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-s);
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--text); font-size: var(--fs5); font-weight: 700; text-decoration: none;
  transition: opacity var(--dur-in) var(--ease), transform var(--dur-in) var(--ease);
}
.toc-fab.is-hide { opacity: 0; transform: translateY(var(--rise)); pointer-events: none; }

/* 動き（写真・ステッカー・章の題だけ、1回だけ） */
.rv { transition: opacity var(--dur-in) var(--ease), transform var(--dur-in) var(--ease); }
.rv.is-wait { opacity: 0; transform: translateY(var(--rise)); }
@media (prefers-reduced-motion: reduce) { .rv, .rv.is-wait { opacity: 1; transform: none; transition: none; } }

@media (min-width: 900px) {
  .cover {
    width: min(1040px, calc(100vw - 80px)); margin-left: 50%; transform: translateX(-50%);
    padding-top: 56px;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: center;
    grid-template-areas: "head visual" "foot visual";
  }
  .cover__head { grid-area: head; align-self: end; }
  .cover__visual { grid-area: visual; margin-top: 0; }
  .cover__foot { grid-area: foot; align-self: start; margin-top: var(--gap-between); }
  .cover::before { height: 720px; }
  .cover__ybimg { width: 150px; }
  .mb--cover { width: 200px; }
  .koma { padding: 18px 16px 0; min-height: 200px; }
  .koma--ng { grid-template-columns: 128px minmax(0, 1fr); }
  .koma--ok { grid-template-columns: minmax(0, 1fr) 128px; }
  .koma__who { width: 128px; height: 164px; }
  .koma .mb { width: 100%; max-width: 380px; justify-self: center; }
  .mb--spiky { padding: 46px 56px 46px 64px; }
  .mb--cloud { padding: 44px 48px 48px; }
  .mb--round { padding: 32px 44px 50px; }
  .grps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PDF（print.html を Chrome で印刷） */
@media print {
  @page { size: A5; margin: 10mm; }
  body { background: #fff; }
  * { box-shadow: none !important; }
  img { filter: none !important; }
  .toc-fab, .btn-read, .pdf, .progress { display: none; }
  .rv.is-wait { opacity: 1; transform: none; }
  .cover::before { display: none; }
  .ch, .matome, .toc { break-before: page; }
  .manga, .koma, .quiz, .grp, .one, .photo, .oil, .swap, .gi, .big, .finale, .clr, .panel { break-inside: avoid; }
  .consult { padding-bottom: 0; }
}
