/* きよえさん 毛髪再生マッサージ方法 — ../foodmap/style.css（v14）を写し、末尾に「マッサージ本の部品」を足した。値は DESIGN.md から
   （以下はフードマップのときの説明）
   きよえさん 予防食学フードマップ — 値はすべて DESIGN.md から
   v14（AIっぽさを減らす）: 面・ラベル・線画・角丸の写真をやめ、章ごとにコマの形を変える。一覧は1つの形 */
:root {
  --bg: #FBF7F3;
  --paper: #FFFFFF;
  --blush: #F7E6E9;
  --leaf: #E6EFE8;
  --text: #18273A;
  --muted: #5B6476;
  --line: #E8DFD7;
  --em: #C8136F;
  --ok: #3F7457;
  --ng: #5B6476;
  --ng-bg: #F1F1F2;
  --accent: #06C755;

  --f: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-en: "Poppins", "Zen Maru Gothic", sans-serif; /* 数字・英字（LP・サロンのホームページと同じ） */
  --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;
  --koma: 2.5px solid var(--text); /* 漫画の線（コマ枠・枠のないコマの地面） */

  --ease: cubic-bezier(.39, .575, .565, 1); --dur-in: .7s; --dur-tap: .2s; --rise: 8px;
}
@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, dl, dt, dd { 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; }

/* 文字組（DESIGN.md 4節。印は jp-typeset.js が付ける） */
.jt-pt { font-size: .78em; }                      /* 助詞は小さく（見出し・キャッチだけ） */
.jt-br { font-weight: 300; }                      /* かっこは細く */
.jt-u { font-size: .62em; }                       /* 数字の後ろの単位は小さく */
.jt-en { font-family: var(--f-en); font-size: 1.03em; } /* 数字・英字は欧文で、少し大きく */
.jt-mid { position: relative; top: -.08em; }      /* 数字にはさまれたコロン・ハイフンを上げる */
.jt-cho { display: inline-block; transform: scaleX(.85); margin: 0 -.075em; } /* 音引きは 85% */
.jt-ka { letter-spacing: -.05em; }                /* 本文のカタカナの続きを少し詰める（丸ゴシックはカナの字面が小さく開いて見える） */
.toc__title .jt-br { font-weight: 500; }         /* 目次の大きさでは 300 のかっこが点に見えた */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 本の1列 */
.book { max-width: 600px; margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding-top: var(--gap-section); }
.ch, .matome { padding-top: calc(var(--gap-section) * 1.5); } /* 章の境目は、章の中の組の間よりはっきり広く */
.h2 { font-size: var(--fs2); font-weight: 700; line-height: 1.45; margin-bottom: var(--gap-between); }
.h3 { font-size: var(--fs3); font-weight: 700; line-height: 1.5; margin: calc(var(--gap-between) * 1.5) 0 var(--gap-in); }
.body p + p { margin-top: 1.2em; }
.note { margin-top: var(--gap-in); font-size: var(--fs5); color: var(--muted); }
.after { margin-top: var(--gap-in); }
.lead { margin: var(--gap-between) 0 var(--gap-in); font-weight: 700; }
.aside { margin-top: var(--gap-between); }
.after b { font-weight: 700; }

/* 3章: 控えたい油と摂りたい油は、見出しと名前の字の色で分ける（印の箱は使わない） */
.h3--ng { color: var(--ng); }
.h3--ok { color: var(--ok); margin-top: calc(var(--gap-between) * 2); }
.fl--ng dt { color: var(--ng); }

/* ===== 表紙（本の表紙: 言葉 → 題 → 著者 → 料理の写真。写真は角なし・影なし・スマホは端まで） ===== */
.cover { padding: 72px 0 8px; }
.cover__head, .cover__foot { padding: 0 12px; }  /* 表紙だけ左右を 32px に（2026-11-19「FVが余白なくてやだ、左によりすぎ」） */
.cover__h1 { display: block; font-weight: 900; }
.cover__catch { display: block; font-size: var(--fs1); line-height: 1.22; }
.cover__catch .nb { display: block; white-space: nowrap; }
/* 表紙の言葉: 名詞と動詞を大きく、つなぎの「は、」「から」を半分に（2026-11-19 依頼者「頭皮（大きく）は、（小さく）背中（大きく）から（小さく）ほぐす（大きく）」）。
   2行目「背中からほぐす」は 大5字＋小2字＝6字分。390px で使える幅 326px ÷ 6 ≒ 54px */
.cover__catch { font-size: 44px; line-height: 1.45; font-weight: 700; letter-spacing: .03em; }
.cover__catch .nb { margin-right: -.03em; }  /* 字間は行末にも付くので打ち消す */
.cover__catch .cv-s { font-size: .5em; letter-spacing: .02em; margin: 0 .08em 0 .04em; }  /* 小さい字の前後に少しだけ息つぎ */
.cover__catch .cv-kana { letter-spacing: -.03em; }
.cover__catch .cv-ho { margin-right: -.1em; }  /* 「ほ」は右の白が大きく、「ぐ」は字面が細い */  /* 丸ゴシックのかなは字面が小さく、漢字と同じ字間だとばらける */
.cover__title { font-weight: 700; }
/* 2026-11-19「FVのカーニングきつくないか？圧迫感がある」→ 実在LP 41本の FV を見比べた。やわらかく見せる美容・ジム・クリニックの FV は
   700前後・画面幅の7〜8割・行間1.4前後・字間少し空け。900・幅いっぱい・詰めはチラシ型の組み方。太さ 900→700、52→44px、行間 1.3→1.45、字間 +.04em、字詰めの道具は外す */
.cover__title { display: block; margin-top: var(--gap-in); font-size: var(--fs2); line-height: 1.4; }
.cover__by { display: flex; flex-direction: column; margin-top: var(--gap-in); line-height: 1.5; }
.cover__role { font-size: var(--fs5); font-weight: 700; color: var(--muted); }
.cover__name { font-size: var(--fs4); font-weight: 700; }
.cover__visual { position: relative; margin: var(--gap-between) calc(var(--gutter) * -1) 0; overflow: hidden; }
.cover__food { width: 100%; }
.cover__yb { position: absolute; left: 24px; right: 24px; bottom: 0; display: flex; align-items: flex-end; gap: 4px; }
.cover__ybimg { width: 118px; }
.mb--cover { width: 184px; margin-bottom: 40px; 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: var(--gap-between); }
.btn-read {
  display: flex; align-items: center; justify-content: center;
  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:active, .cta:active, .pick__opt: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); }

/* ===== はじめに・目次 ===== */
.intro__sign { width: 150px; margin-top: var(--gap-between); }
.toc__list { display: flex; flex-direction: column; }
.toc__link { display: grid; grid-template-columns: 2em minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 10px 0; min-height: 48px; color: var(--text); text-decoration: none; font-weight: 700; }
.toc__no { font-family: var(--f-en); font-size: var(--fs3); font-weight: 700; }
.toc__title { line-height: 1.5; }

/* ===== 章の扉（番号は小さく、題で立てる） ===== */
.door__title { font-size: var(--fs2); font-weight: 700; line-height: 1.4; }
.door__n { font-family: var(--f-en); font-weight: 800; margin-right: .5em; }

/* ===== 漫画（Signature）: コマの大きさと置き方を章ごとに変える ===== */
.koma { position: relative; display: grid; align-items: end; margin-top: var(--gap-between); border: var(--koma); overflow: hidden; }
.koma--ng { background-color: var(--ng-bg); background-image: radial-gradient(rgba(24, 39, 58, .14) 1.1px, transparent 1.5px); background-size: 7px 7px; }
.koma--ok { background: var(--paper); }
.koma__who, .say__who { object-fit: contain; object-position: center bottom; }
.koma--ng .mb { margin-left: -12px; z-index: 1; }
.koma--ok .mb { margin-right: -12px; z-index: 1; }
/* 大: 1章（ヤバ子がいちばん大きい） */
.koma--xl { grid-template-columns: minmax(0, 1fr); min-height: 340px; padding: 10px 8px 0; }
.koma--xl > * { grid-area: 1 / 1; }
.koma--xl .koma__who { justify-self: start; align-self: end; width: 62%; height: 250px; }
.koma--xl .mb { justify-self: end; align-self: start; width: 80%; margin: 0; padding: 36px 34px 38px 42px; }
/* 中 */
.koma--m { grid-template-columns: 112px minmax(0, 1fr); min-height: 176px; padding: 14px 8px 0; }
.koma--ok.koma--m, .koma--ng.koma--flip { grid-template-columns: minmax(0, 1fr) 112px; }
.koma--ng.koma--flip .mb { margin: 0 -12px 14px 0; }
.koma--m .koma__who { width: 112px; height: 150px; }
/* 小: 2章（幅も狭くして、余白に置く） */
.koma--s { width: 88%; grid-template-columns: 92px minmax(0, 1fr); min-height: 140px; padding: 12px 6px 0; }
.koma--s .koma__who { width: 92px; height: 124px; }
@media (max-width: 400px) { .koma--s { width: 100%; } }
/* 2コマを1枚の枠に（3章: だめな例と正しい例） */
.pair { margin-top: var(--gap-between); border: var(--koma); }
.pair__cell { margin: 0; border: 0; }
.pair__cell + .pair__cell { border-top: var(--koma); }
/* 枠のないコマ（きよえの答え）。下の線に立つ */
.say { display: grid; align-items: end; margin-top: var(--gap-between); border-bottom: var(--koma); }
.say--right { grid-template-columns: minmax(0, 1fr) 104px; }
.say--right .mb { margin-right: -16px; z-index: 1; }
.say--m .say__who { width: 104px; height: 160px; }
.say--left { grid-template-columns: 104px minmax(0, 1fr); }
.say--left .mb { margin-left: -16px; z-index: 1; }

/* 漫画の吹き出し（フキダシデザイン）。形は 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: 34px 32px 54px 40px; }
.koma--ok .mb--round .mb__bg, .say--right .mb--round .mb__bg, .stand .mb--round .mb__bg { transform: scaleX(-1); } /* しっぽをきよえの方へ（4章の表の上のきよえも。2026-11-18 依頼者「吹き出しがおかしくない？」） */
/* 吹き出しの中は、まとまり1つを1行に決めて、行を真ん中にそろえる
   （2026-11-18 依頼者「吹き出しの中の文章、バランス悪すぎ」: 左にそろえていて右が空き、iPhone ではまとまりが勝手に1行につながっていた） */
.mb .nb { display: block; white-space: nowrap; }
.mb__text { font-size: var(--fs4); font-weight: 700; line-height: 1.5; text-align: center; }
/* 吹き出しの中の大きな数字（漫画の大きな台詞） */
.mb__big { display: flex; justify-content: center; align-items: baseline; flex-wrap: nowrap; gap: 2px; margin: 2px 0 4px; font-size: var(--fs3); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.mb__big b { font-family: var(--f-en); font-size: var(--fs1); font-weight: 800; color: var(--em); line-height: 1; }
.mb__big i { position: relative; top: -.08em; margin: 0 2px; font-style: normal; font-family: var(--f-en); font-size: var(--fs2); font-weight: 800; color: var(--muted); }
.mb__big small { font-size: var(--fs3); font-weight: 700; }
.mb__em { display: block; margin-top: 6px; font-size: var(--fs3); font-weight: 900; line-height: 1.4; }

/* ===== 1章: 写真を押して選ぶ ===== */
.pick { margin-top: var(--gap-between); }
.pick__q { font-size: var(--fs3); font-weight: 700; line-height: 1.5; }
.pick__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: var(--gap-in); }
.pick__opt { display: block; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform var(--dur-tap) var(--ease), opacity var(--dur-tap) var(--ease); }
.pick__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pick__name { display: block; margin-top: 6px; font-size: var(--fs4); font-weight: 700; line-height: 1.3; }
.pick__opt.is-ok .pick__img { outline: 4px solid var(--ok); outline-offset: -4px; }
.pick__opt.is-ok .pick__name { color: var(--ok); }
.pick__opt.is-ng { opacity: .5; }
.pick__opt:disabled { cursor: default; }
.pick__opt:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.quiz__hint { display: none; margin-top: 2px; }
.js .quiz:not(.is-done) .quiz__hint { display: block; }
.quiz__a { margin-top: var(--gap-in); font-size: var(--fs3); font-weight: 700; color: var(--ok); }
.quiz.is-wrong .quiz__a { color: var(--text); }
.js .reveal:not(.is-open) { display: none; }

/* 読んだ分だけ伸びる線（画面の上） */
.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); }

/* ===== 食べものの一覧（全部の章で同じ形） ===== */
.fl { display: flex; flex-direction: column; gap: calc(var(--gap-in) * 1.75); }
.fl dt { font-size: var(--fs3); font-weight: 700; line-height: 1.5; }
.fl dd { margin-top: 2px; line-height: 1.75; }
/* 一覧の左に食べものの絵（koboyo の漫画風の絵を色で塗ったもの） */
.fl__row--pic { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 14px; grid-template-areas: "pic name" "pic text"; align-items: start; }
.fl__row--pic dt { grid-area: name; }
.fl__row--pic .fl__text { grid-area: text; }
.fl__pic { grid-area: pic; display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; margin: 0; }
.fl__picimg { width: 46px; height: 46px; object-fit: contain; }
.fl__pic--1 .fl__picimg { width: 72px; height: 72px; }
.fl__pic--3 .fl__picimg:nth-child(3) { margin-top: -4px; }
.fl__dot { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; vertical-align: -1px; }
.fl__sub { display: inline-block; margin-left: .6em; font-size: var(--fs4); font-weight: 500; color: var(--muted); } /* 5章: 色ごとの成分（きよえさんの一覧の画像から） */
/* 5章: 食材の写真（きよえさんの一覧の画像から切り出し）。4列で、名前は写真の下に1行 */
.fl--colors { gap: var(--gap-between); }
.pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 4px; margin-top: 8px; }
.pics__item { display: flex; flex-direction: column; align-items: center; }
.pics__img { width: 56px; height: 56px; object-fit: contain; }
.pics__name { margin-top: 2px; font-size: var(--fs5); font-weight: 700; line-height: 1.4; text-align: center; white-space: nowrap; letter-spacing: -.03em; } /* 6字の名前が 360px で列からはみ出した */
.pics__more { margin-top: var(--gap-in); line-height: 1.75; }
@media (min-width: 900px) { .pics { gap: 14px 10px; } .pics__img { width: 72px; height: 72px; } }
.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; }

/* ===== 4章: 表の上に立つきよえ → 置きかえ表（行の線は引かない）→ 種類ごとの表（開閉） ===== */
.stand { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; margin-top: var(--gap-between); }
.stand .mb { align-self: start; justify-self: end; margin: 24px -34px 0 0; z-index: 1; } /* しっぽの先が、きよえの肩に届く所まで寄せる */
.mb--stand { max-width: 220px; padding: 26px 26px 42px 32px; }
.mb--stand .mb__text { font-size: var(--fs3); font-weight: 900; line-height: 1.45; }
.stand__who { width: 150px; height: 200px; object-fit: contain; object-position: center bottom; }
.swaps { border-top: var(--koma); padding-top: 6px; }
.swap { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; min-height: 52px; }
.swap--head { min-height: 32px; font-size: var(--fs5); font-weight: 700; color: var(--muted); }
.swap--head span:last-child { color: var(--ok); }
.swap--head span:first-child { color: var(--muted); }
.swap__hi, .swap__lo { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; line-height: 1.35; }
.swap__hi > span, .swap__lo > span { flex: 1; min-width: 0; overflow-wrap: normal; } /* 決めた区切り（wbr）でだけ折る。「ナッ／ツ」と折れた */
.swap__ic { width: 36px; height: 36px; flex: none; object-fit: contain; }
@media (max-width: 400px) { .swap { grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr); } .swap__hi, .swap__lo { gap: 4px; } .swap__ic { width: 32px; height: 32px; } }
.swap__hi { color: var(--muted); }
.swap__hi b { font-size: var(--fs4); white-space: nowrap; }
.swap__lo b { font-size: var(--fs3); color: var(--ok); white-space: nowrap; }
.gis { border-top: 1px solid var(--line); }
.gi { border-bottom: 1px solid var(--line); }
.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: minmax(0, 1fr); gap: var(--gap-in); padding: 0 0 16px; }
@media (min-width: 480px) { .gi__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; } }
.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: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; line-height: 1.6; padding: 3px 0; }
.gi__n { font-weight: 700; white-space: nowrap; text-align: right; }
.gi__n--hi { color: var(--muted); } .gi__n--lo { color: var(--ok); }

/* ===== 5章: 数字と、今日食べた色 ===== */
.chart { margin: var(--gap-between) calc(var(--gutter) * -1) 0; }
.chart__link { display: block; }
.chart__img { width: 100%; }
.chart__cap { margin-top: 8px; padding: 0 var(--gutter); font-size: var(--fs5); color: var(--muted); }
.five { display: grid; grid-template-columns: minmax(0, 1fr) 42%; align-items: end; gap: 8px; margin-top: var(--gap-between); }
.five__text p { font-size: var(--fs3); font-weight: 700; line-height: 1.45; }
.five__big { display: flex; align-items: baseline; gap: 4px; margin: 2px 0 4px; }
.five__big b { font-family: var(--f-en); font-size: var(--fs1); font-weight: 800; color: var(--em); line-height: 1; }
.five__big small { font-size: var(--fs3); font-weight: 700; }
.five .five__how { margin-top: var(--gap-in); font-size: var(--fs4); font-weight: 500; }
.five__who { width: 100%; height: 240px; object-fit: contain; object-position: center bottom; }
.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); border: 2px solid transparent; font-weight: 700; cursor: pointer; }
.chip__in .fl__dot { margin: 0; width: 18px; height: 18px; vertical-align: 0; }
.chip input:checked + .chip__in { border-color: var(--em); }
.chip input:focus-visible + .chip__in { outline: 3px solid var(--text); outline-offset: 2px; }

/* ===== 章の終わり: 今日からこれ1つ（箱にしない） ===== */
.end { margin-top: calc(var(--gap-between) * 2); }
.end__lead { font-size: var(--fs3); font-weight: 700; line-height: 1.4; }
.end__text { margin-top: 4px; font-size: var(--fs2); font-weight: 700; line-height: 1.45; }

/* ===== まとめ: チェックはここだけ ===== */
.chks { display: flex; flex-direction: column; gap: 12px; margin-top: var(--gap-between); padding: 18px; border-radius: var(--r-m); background: var(--blush); }
.chk { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk__box { position: relative; display: block; width: 32px; height: 32px; border-radius: 10px; background: var(--paper); border: 2px solid var(--text); }
.chk input:checked + .chk__box { background: var(--em); border-color: var(--em); }
.chk input:checked + .chk__box::after { content: ""; position: absolute; left: 9px; top: 3px; width: 8px; height: 15px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.chk input:focus-visible + .chk__box { outline: 3px solid var(--text); outline-offset: 2px; }
.chk__text { font-size: var(--fs3); font-weight: 700; line-height: 1.45; }

/* 決めぜりふと出口は1つの組 */
.finale { margin-top: var(--gap-section); }
/* ヤバ子の吹き出しは頭の横（しっぽは顔へ）、決めぜりふは地面の線の上。間は空けたまま
   （2026-11-18 依頼者「ここもバランスおかしい」「なんだよこの吹き出し」: 吹き出しが決めぜりふの横に浮き、しっぽが足もとを指していた） */
.finale__row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: stretch; border-bottom: var(--koma); }
.finale__ybimg { width: 104px; align-self: end; }
.finale__say { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: var(--gap-in); }
.mb--finale { align-self: flex-start; margin: 0 0 0 -16px; padding: 20px 22px 34px 26px; }
.mb--finale .mb__text { font-weight: 900; white-space: nowrap; }
.finale__word { font-size: var(--fs2); font-weight: 900; line-height: 1.4; }
.finale__text { margin-top: var(--gap-in); line-height: 1.75; }
.finale__sign { width: 180px; margin-top: var(--gap-in); }
@media (max-width: 380px) { .finale__word { font-size: 23px; } } /* 「！」だけ落ちた（WebKit・360px） */
.exit { margin-top: var(--gap-between); }
.exit__text { margin-bottom: var(--gap-in); font-weight: 700; }
.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: 900; 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); }
.exit__note { margin-top: 10px; 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; }

/* 奥付（本の最後） */
.colophon { margin-top: var(--gap-section); padding-bottom: 120px; 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; }

/* 目次へ戻る（小さく、影なし、内容を隠さない） */
.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(900px, calc(100vw - 80px)); margin-left: 50%; transform: translateX(-50%);
    padding-top: 96px;
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 64px;
    grid-template-areas: "head visual" "foot visual";
  }
  .cover__head { grid-area: head; align-self: end; }
  .cover__catch { font-size: 56px; }  /* 列の幅 418px の8割ほど */
  .cover__visual { grid-area: visual; margin: 0; align-self: center; }
  .cover__head, .cover__foot { padding: 0; }
  .cover__food { height: auto; }
  .cover__foot { grid-area: foot; align-self: start; }
  .cover__ybimg { width: 150px; }
  .mb--cover { width: 210px; padding: 34px 40px 34px 46px; }
  .koma .mb, .say .mb { width: 100%; max-width: 380px; justify-self: center; }
  .koma--xl { grid-template-columns: 260px minmax(0, 1fr); min-height: 340px; padding: 20px 16px 0; }
  .koma--xl > .koma__who { grid-area: 1 / 1; width: 260px; height: 330px; }
  .koma--xl > .mb { grid-area: 1 / 2; justify-self: center; align-self: center; width: 100%; margin: 0 0 14px -12px; padding: 44px 44px 44px 52px; }
  .koma--m { grid-template-columns: 176px minmax(0, 1fr); min-height: 220px; padding: 18px 16px 0; }
  .koma--ok.koma--m, .koma--ng.koma--flip { grid-template-columns: minmax(0, 1fr) 176px; }
  .koma--flip { min-height: 200px; }
  .koma--flip .koma__who { height: 200px; }
  .koma--m .koma__who { width: 176px; height: 220px; }
  .koma--s { width: 78%; grid-template-columns: 140px minmax(0, 1fr); min-height: 180px; }
  .koma--s .koma__who { width: 140px; height: 176px; }
  .say--right { grid-template-columns: minmax(0, 1fr) 180px; }
  .say--left { grid-template-columns: 180px minmax(0, 1fr); }
  .say--m .say__who { width: 180px; height: 240px; }
  .stand { grid-template-columns: minmax(0, 1fr) 200px; }
  .stand__who { width: 200px; height: 260px; }
  .mb--stand { max-width: 280px; padding: 30px 34px 48px 40px; }
  .five { grid-template-columns: minmax(0, 1fr) 240px; }
  .five__who { height: 320px; }
  .finale__row { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; }
  .finale__ybimg { width: 140px; }
  .finale__say .finale__word { margin-top: var(--gap-between); }
  .mb--spiky { padding: 46px 56px 46px 64px; }
  .mb--cloud { padding: 44px 48px 48px; }
  .mb--round { padding: 48px 52px 66px 68px; }
  .mb--finale { padding: 22px 24px 36px 28px; }
  .pick__opts { gap: 16px; }
  .chart { margin: var(--gap-between) 0 0; }
  .chart__cap { padding: 0; }
  .fl__row--pic { grid-template-columns: 112px minmax(0, 1fr); }
  .fl__picimg { width: 56px; height: 56px; }
  .fl__pic--1 .fl__picimg { width: 88px; height: 88px; }
  .swap__ic { width: 44px; height: 44px; }
}

/* PDF（print.html を Chrome で印刷） */
@media print {
  @page { size: A5; margin: 10mm; }
  body { background: #fff; }
  * { box-shadow: none !important; }
  .toc-fab, .btn-read, .pdf, .progress { display: none; }
  .rv.is-wait { opacity: 1; transform: none; }
  .reveal { display: block !important; }
  .quiz__hint { display: none !important; }
  .cover__visual { margin-left: 0; margin-right: 0; }
  .ch, .matome, .toc { break-before: page; }
  .koma, .say, .pair, .pick, .fl__row, .swap, .gi, .finale, .exit, .end, .chks, .stand, .five, .chart { break-inside: avoid; }
  .cover__visual, .chart { margin-left: 0; margin-right: 0; }
  .colophon { padding-bottom: 0; }
}


/* ===== マッサージ本の部品（DESIGN.md 2節・3〜9節の追記） ===== */
/* はじめに: 背中→首→頭の道すじ（後ろ姿の絵に、線と点を重ねる） */
.path { margin: var(--gap-between) auto 0; max-width: 360px; }
.path__pic { position: relative; }
.path__img { width: 100%; }
.path__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path__line path { fill: none; stroke: var(--em); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 3px; }
.path__line circle { fill: var(--em); }
.path__lb { position: absolute; left: 58%; transform: translateY(-50%); font-size: var(--fs3); font-weight: 700; line-height: 1.3; white-space: nowrap; } /* 札は付けない（線と点と字だけ） */

/* 動く手順 */
.steps { display: flex; flex-direction: column; gap: calc(var(--gap-between) * 1.5); margin-top: var(--gap-between); }
.step__h { display: flex; align-items: baseline; gap: 12px; font-weight: 700; }
.step__no { font-family: var(--f-en); font-size: var(--fs2); font-weight: 800; line-height: 1; }
.step__t { font-size: var(--fs3); line-height: 1.5; }
.step__fig { margin: var(--gap-in) 0 0; }
.step__how { margin-top: var(--gap-in); }
.step__count { margin-top: 4px; font-weight: 700; font-size: var(--fs3); line-height: 1.2; }
.step__count .cn { font-family: var(--f-en); font-weight: 700; color: var(--em); }
.step__count .cu { font-size: var(--fs5); color: var(--text); margin: 0 1px; }
.step__count .jt-en { font-weight: 700; }
.step__point { margin-top: 4px; font-weight: 700; color: var(--muted); }
.anim { position: relative; display: block; width: 100%; max-width: 420px; margin: 0 auto; padding: 0; border: 0; background: none;
        cursor: pointer; -webkit-tap-highlight-color: transparent; }
.anim img { width: 100%; }
.anim__b { position: absolute; inset: 0; opacity: 0; }
.anim.is-play .anim__b { animation: frame 4.4s var(--ease) infinite; }
.anim.is-stop .anim__b { animation-play-state: paused; }
.anim:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
@keyframes frame {
  0%, 34% { opacity: 0; }
  50%, 84% { opacity: 1; }
  100% { opacity: 0; }
}
/* 動かさないとき（動きを減らす設定・PDF）: 2コマを左右に並べて止める */
@media (prefers-reduced-motion: reduce) {
  .anim { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: none; cursor: default; }
  .anim__b { position: static; opacity: 1; animation: none !important; }
}
.is-print .anim { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: none; }
.is-print .anim__b { position: static; opacity: 1; animation: none; }

/* 3章: 耳のツボの地図 */
.ear { margin: var(--gap-in) auto 0; max-width: 360px; }
.ear__pic { position: relative; }
.ear__img { width: 100%; }
.ear__dot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
            background: var(--text); color: #fff; font-family: var(--f-en); font-weight: 700; font-size: 14px; line-height: 30px; text-align: center; }
.ear__cap { margin-top: 8px; font-size: var(--fs5); color: var(--muted); }
.tb__h { margin: var(--gap-between) 0 var(--gap-in); font-weight: 700; }
.tb__n { display: inline-block; min-width: 1.6em; margin-right: 6px; font-family: var(--f-en); font-weight: 800; }
.tb rt { font-size: 10px; font-weight: 500; color: var(--muted); }

@media (min-width: 900px) {
  .path__lb { left: 60%; }
}
@media print {
  .step, .path, .ear { break-inside: avoid; }
}

/* たたむ手順・ツボの地図（2026-11-19 採点「今夜1つには量が多い」。中身は開いたときだけ） */
.folds { margin-top: var(--gap-section); border-top: 1px solid var(--line); }
.fold { border-bottom: 1px solid var(--line); }
.fold__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; font-size: var(--fs3); font-weight: 700; cursor: pointer; list-style: none; }
.fold__sum::-webkit-details-marker { display: none; }
.fold__t { flex: 1; min-width: 0; }
.fold__sum::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-tap) var(--ease); }
.fold[open] .fold__sum::after { transform: translateY(2px) rotate(-135deg); }
.fold__sum:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: var(--r-s); }
.fold[open] { padding-bottom: var(--gap-between); }
.fold .steps { margin-top: var(--gap-in); }
.is-print .fold__sum::after { display: none; }
