/* =========================================================
   SUN LABO ToC 層 デザインシステム（案D わいわい屋台）
   ToB（site.css）とは別系統。

   考え方:
   - 紙の地に黒い太枠とずらした影。部品はすべて「棚に並んだ札」として扱う。
   - 食感図鑑のタイルだけは食べものごとに表情を変える（.pt-* の型 + 色変数）。
     均質なグリッドにすると棚の賑わいが死ぬため、ここだけ意図的に揃えない。
   - 言葉は口語でよい。厳密な定義や測定条件は ToB 側が引き受ける。
   ========================================================= */

:root {
    /* 地と線 */
    --c-paper: #f6f1e7;
    --c-surface: #ffffff;
    --c-ink: #1c1b1f;
    --c-text: #1c1b1f;
    --c-muted: #6f6a63;
    --c-line: #1c1b1f;
    --c-hair: #e2dace;

    /* 効かせ色 */
    --c-yellow: #ffd23f;
    --c-red: #ff5a3c;
    --c-brand: #1f6f5f;

    /* 食品由来のアクセント（波形・タグ・地色に使う） */
    --c-orange: #f0913a;   /* クラッカー・せんべい */
    --c-tan: #c9954f;      /* ビスケット */
    --c-pink: #f2849e;     /* マシュマロ・ハム */
    --c-sky: #67b8d6;      /* ヨーグルト・ミルク */
    --c-yellow-f: #f2c53d; /* バター・チーズ・パン */
    --c-purple: #a284d6;   /* グミ */
    --c-green: #7cb36b;    /* 野菜 */
    --c-tomato: #d15b52;   /* 肉・トマト */

    /* 枠と影。この 3 つがこの層の見た目をほぼ決めている */
    --bd: 2.5px solid var(--c-ink);
    --sh: 5px 5px 0 var(--c-ink);
    --sh-lift: 8px 8px 0 var(--c-ink);

    --r: 12px;
    --r-sm: 8px;
    --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 動きを減らす設定ではスクロールもアニメーションさせない（V2-6） */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--c-paper);
    color: var(--c-text);
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
/* hidden 属性は必ず隠す。.btn{display:inline-block} などが UA の [hidden] に勝ち、
   「つぎの検体」が答える前から押せていた（2026-10-05・V2-1）。 */
[hidden] { display: none !important; }

/* 本文へ飛ぶリンク。フォーカスしたときだけ見える（V4-3） */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: .5rem; top: .5rem; z-index: 1000; background: var(--c-surface); color: var(--c-ink);
    padding: .5rem 1rem; border: var(--bd); border-radius: 999px; font-weight: 900; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 900; line-height: 1.32; }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.wrap > section { margin: 3.4rem 0; }

/* =========================================================
   流れる帯
   ========================================================= */
.marquee {
    background: var(--c-ink); color: var(--c-paper); overflow: hidden; white-space: nowrap;
    padding: 8px 0; font-weight: 900; font-size: 14px; letter-spacing: .16em;
}
.marquee div { display: inline-block; animation: mq-run 26s linear infinite; }
.marquee span { padding: 0 22px; }
.marquee b { color: var(--c-yellow); }
@keyframes mq-run { to { transform: translateX(-50%); } }

/* =========================================================
   ヘッダー / フッター
   ========================================================= */
.toc-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--c-paper); border-bottom: var(--bd);
}
.toc-header > div {
    max-width: var(--max); margin: 0 auto; padding: 10px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.toc-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 900; font-size: 1.05rem; }
.toc-brand .mark {
    width: 34px; height: 34px; flex: none; background: var(--c-red);
    border: 2px solid var(--c-ink); border-radius: 9px;
    display: grid; place-items: center; transform: rotate(-5deg);
}
.toc-brand .mark svg { width: 20px; height: 20px; }
.toc-brand .logo { height: 34px; width: auto; max-width: none; flex: none; }
.toc-brand small { display: block; font-size: .64rem; font-weight: 700; color: var(--c-muted); letter-spacing: .1em; }

.toc-nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.toc-nav a {
    font-size: .875rem; font-weight: 900; text-decoration: none;
    padding: 7px 12px; border-radius: var(--r-sm); border: 2px solid transparent;
}
.toc-nav a:hover { background: var(--c-surface); border-color: var(--c-ink); }
.toc-nav a[aria-current] { background: var(--c-surface); border-color: var(--c-ink); }
.toc-nav .to-biz {
    background: var(--c-yellow); border: 2px solid var(--c-ink); box-shadow: 3px 3px 0 var(--c-ink);
}
.toc-nav .to-biz:hover { background: var(--c-yellow); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--c-ink); }

.toc-footer { border-top: var(--bd); margin-top: 4rem; padding: 1.8rem 0 2.6rem; background: var(--c-paper); }
.toc-footer .inner {
    max-width: var(--max); margin: 0 auto; padding: 0 18px;
    display: flex; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
    font-size: .875rem; color: var(--c-muted); font-weight: 700;
}
.toc-footer p { margin: 0 0 .2rem; }
.toc-footer nav { display: flex; gap: .4rem 1.1rem; flex-wrap: wrap; }
.toc-footer nav a { text-decoration: none; }
.toc-footer nav a:hover { text-decoration: underline; }

/* =========================================================
   共通の部品
   ========================================================= */
.hero { padding: 2.4rem 0 .4rem; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 5.4vw, 3.1rem); }
.hero h1 i { font-style: normal; display: inline-block; animation: bounce 2.6s ease-in-out infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    30% { transform: translateY(-10px) rotate(-5deg); }
}
.hero .lead { max-width: 34em; margin: .8rem auto 0; color: #4d4841; font-weight: 700; font-size: .96rem; }

/* ページ見出し（黒い丸ピル） */
.sec-h {
    display: inline-block; background: var(--c-ink); color: var(--c-paper);
    padding: 4px 18px; border-radius: 999px; transform: rotate(-1.2deg);
}
.sub { color: #4d4841; font-weight: 700; margin: .75rem 0 1.1rem; font-size: .92rem; max-width: 46em; }
.eyebrow { font-size: .78rem; font-weight: 900; letter-spacing: .1em; color: var(--c-muted); margin: 0 0 .3rem; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* 黒枠の白い箱。表・波形・注記などの土台 */
.panel {
    background: var(--c-surface); border: var(--bd); border-radius: var(--r);
    box-shadow: var(--sh); padding: 1.3rem 1.5rem;
}

.btn {
    display: inline-block; text-decoration: none; font-weight: 900; font-size: .96rem;
    padding: 11px 28px; border: var(--bd); border-radius: 999px;
    background: var(--c-yellow); box-shadow: 4px 4px 0 var(--c-ink);
    transition: transform .14s, box-shadow .14s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-ink); }
.btn.dark { background: var(--c-ink); color: var(--c-paper); }

.band {
    border: var(--bd); border-radius: var(--r); background: var(--c-surface);
    padding: 1.7rem 1.8rem; box-shadow: var(--sh); text-align: center;
}
.band h2, .band h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.band p { font-size: .9rem; color: #4d4841; font-weight: 700; max-width: 36em; margin: 0 auto 1rem; }

.prose { max-width: 42rem; }
.lead { font-size: 1.02rem; font-weight: 700; }
.prose h2 { margin: 1.9rem 0 .6rem; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.note { font-size: .82rem; color: var(--c-muted); font-weight: 700; }
.small { font-size: .86rem; }
.more-link { margin: 1rem 0 0; font-weight: 900; font-size: .88rem; }
.more-link a { text-decoration: none; }
.more-link a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 1rem 0; padding: 0 7px 8px 0; }   /* 右下のずらした影が隠れないぶんの逃げ */
.table-wrap table {
    width: 100%; border-collapse: collapse; font-size: .9rem; font-weight: 700;
    background: var(--c-surface); border: var(--bd); border-radius: var(--r); overflow: hidden;
    box-shadow: var(--sh);
}
.table-wrap th, .table-wrap td { padding: .62rem .9rem; text-align: left; border-bottom: 1.5px solid var(--c-hair); white-space: nowrap; }
.table-wrap thead th { background: var(--c-yellow); font-size: .82rem; border-bottom: var(--bd); }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap a { font-weight: 900; }

.article-nav { margin: 2.6rem 0 1rem; font-weight: 900; font-size: .9rem; }
.article-nav a { text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }

/* =========================================================
   食感図鑑のタイル
   タイルだけは食べものごとに表情を変える。
   .pt-* が「型」、--sk-* が色。新しい食べものは型を 1 つ選んで色を足すだけでよい。
   ========================================================= */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.tile {
    position: relative; aspect-ratio: 16 / 10; display: block; overflow: hidden;
    border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
    text-decoration: none; color: inherit;
    transition: transform .14s, box-shadow .14s;
}
.tile:hover { transform: translate(-2px, -2px) rotate(-.7deg); box-shadow: var(--sh-lift); }
.tile .ttl {
    position: absolute; z-index: 4; left: 14px; top: 40px; right: 40%;
    text-align: left; line-height: 1.2; white-space: nowrap;
    font-size: 1.32rem; font-weight: 900; color: var(--sk-title, var(--c-ink));
}
.tile .ttl small {
    display: block; font-size: .66rem; letter-spacing: .2em; font-weight: 700;
    color: var(--sk-sub, var(--c-muted));
}
.tile .food {
    position: absolute; z-index: 3; width: 40%; max-height: 66%; object-fit: contain;
    right: 5%; bottom: 7%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3));
}
.tile .wv { position: absolute; inset: auto 0 0 0; height: 46%; z-index: 2; opacity: .85; }
.tile .wv path { fill: none; stroke: var(--sk-wave, var(--c-ink)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tile .pk {
    position: absolute; left: 10px; top: 10px; z-index: 5;
    font-size: .72rem; font-weight: 900; background: var(--c-ink); color: #fff;
    padding: 2px 9px; border-radius: 999px;
}

/* --- 型 1: 方眼（かたく、割れるもの） --- */
.pt-grid {
    background-color: var(--sk-bg, #fffdf6);
    background-image: linear-gradient(var(--sk-pat, #d9e3ef) 1px, transparent 1px),
                      linear-gradient(90deg, var(--sk-pat, #d9e3ef) 1px, transparent 1px);
    background-size: 18px 18px;
}
.pt-grid .ttl { font-family: "Zen Kaku Gothic New", sans-serif; }

/* --- 型 2: ドット（焼き菓子・粉もの） --- */
.pt-dots {
    background-color: var(--sk-bg, #d9c39b);
    background-image: radial-gradient(var(--sk-pat, rgba(0,0,0,.07)) 1px, transparent 1px);
    background-size: 9px 9px;
}
.pt-dots .ttl { font-family: "Kaisei Decol", serif; }

/* --- 型 3: ネオン（つやのあるもの・弾力） --- */
.pt-glow { background: radial-gradient(120% 100% at 30% 10%, var(--sk-bg, #5b2ea8), var(--sk-bg2, #160a2b)); }
.pt-glow .ttl { font-family: "DotGothic16", sans-serif; text-shadow: 0 0 16px var(--sk-glow, #b06bff); }
.pt-glow .ttl small { text-shadow: none; }
.pt-glow .wv path { filter: drop-shadow(0 0 7px var(--sk-glow, #a855f7)); }

/* --- 型 4: 斜めストライプ（繊維・生もの） --- */
.pt-stripe {
    background-color: var(--sk-bg, #fff);
    background-image: repeating-linear-gradient(-45deg, var(--sk-pat, #ffe6e2) 0 11px, transparent 11px 22px);
}
.pt-stripe .ttl { font-family: "Zen Kaku Gothic New", sans-serif; }

/* --- 型 5: グラデ（やわらかいもの・流動体） --- */
.pt-soft { background: linear-gradient(160deg, var(--sk-bg, #ffe3ee), var(--sk-bg2, #ffc0d8)); }

/* =========================================================
   図鑑の個別ページ
   ========================================================= */
.zukan-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: .2rem 0 1.4rem; }
.zukan-head h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.zukan-head .onm {
    font-size: .84rem; font-weight: 900; letter-spacing: .06em;
    background: var(--c-ink); color: #fff; padding: 3px 14px; border-radius: 999px;
}

.zukan-detail { display: grid; gap: 1.2rem; grid-template-columns: 320px 1fr; align-items: start; }
/* 写真パネルはタイルと同じ「型」を着る。ページごとに表情が変わる */
.zukan-photo {
    position: relative; margin: 0; aspect-ratio: 1; overflow: hidden;
    border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
    display: grid; place-items: center;
}
.zukan-photo img { width: 74%; height: 74%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28)); }

/* 図鑑の個別ページの波形。中身（.wv-plot）は toc.js が組む */
.wave-slot { border: var(--bd); border-radius: var(--r); box-shadow: var(--sh); background: var(--c-surface); padding: .7rem; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
.chip {
    border: var(--bd); border-radius: var(--r); background: var(--c-surface);
    box-shadow: 3px 3px 0 var(--c-ink); padding: .5rem .9rem; min-width: 104px;
}
.chip strong { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.2; }
.chip strong em { font-style: normal; font-size: .62em; color: var(--c-muted); margin-left: .12em; }
.chip span { font-size: .68rem; font-weight: 900; color: var(--c-muted); }

.broken-fig {
    margin: 1.8rem 0; padding: 1rem 1.2rem; max-width: 42rem;
    background: var(--c-surface); border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
    display: grid; gap: 1rem; grid-template-columns: 148px 1fr; align-items: center;
}
.broken-fig img { border-radius: var(--r-sm); }
.broken-fig figcaption { font-size: .86rem; color: #4d4841; font-weight: 700; margin: 0; }

/* =========================================================
   あそぶ
   ========================================================= */
.games { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.game {
    position: relative; min-height: 158px; padding: 18px;
    border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: var(--g-bg, var(--c-surface));
    transition: transform .14s, box-shadow .14s;
}
.game.ready:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lift); }
.game h2, .game h3 { margin: 26px 0 .4rem; font-size: 1.08rem; line-height: 1.45; }
.game p { margin: 0; font-size: .9rem; font-weight: 700; line-height: 1.75; }
.game .game-badge {
    position: absolute; left: 18px; top: 14px;
    font-size: .68rem; font-weight: 900; padding: 2px 10px;
    border-radius: 999px; border: 2px solid var(--c-ink); background: var(--c-surface);
}
.game.ready .game-badge { background: var(--c-ink); color: var(--c-yellow); }
.game.soon { opacity: .92; }
.game .go { margin-top: auto; padding-top: .7rem; font-weight: 900; font-size: .9rem; }

/* =========================================================
   食感のふしぎ（カードと記事）
   ========================================================= */
.arts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.art {
    background: var(--c-surface); border: var(--bd); border-radius: var(--r); overflow: hidden;
    box-shadow: var(--sh); display: flex; flex-direction: column;
    text-decoration: none; color: inherit; transition: transform .14s, box-shadow .14s;
}
.art:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lift); }
.art .th { height: 118px; border-bottom: var(--bd); display: grid; place-items: center; overflow: hidden; background: var(--th-bg, #f0e9dc);
    grid-template: minmax(0, 1fr) / minmax(0, 1fr); }   /* トラックを枠に固定する（V5-3） */
.art .th img { max-width: 46%; max-height: 78%; width: auto; height: auto; }
.art .tag { display: block; margin: .8rem 15px 0; font-size: .7rem; font-weight: 900; letter-spacing: .08em; color: var(--c-muted); }
.art h2, .art h3 { margin: .35rem 15px .35rem; font-size: 1.02rem; line-height: 1.5; }
.art p { margin: 0 15px .8rem; font-size: .9rem; color: #4d4841; font-weight: 700; line-height: 1.75; }
.art .go { margin: auto 15px .9rem; font-weight: 900; font-size: .9rem; }

/* 記事本文の中の部品 */
.finding {
    margin: 1.3rem 0; padding: 1rem 1.3rem; max-width: 42rem;
    background: var(--c-yellow); border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
    font-weight: 700;
}
.finding p:last-child { margin-bottom: 0; }
.reference { font-size: .8rem; color: var(--c-muted); font-weight: 700; }
.to-note {
    margin: 1.8rem 0; padding: 1.1rem 1.3rem; max-width: 42rem;
    background: var(--c-surface); border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
}
.to-note p { margin-bottom: .4rem; font-size: .86rem; color: #4d4841; font-weight: 700; }
.to-note a { font-weight: 900; text-decoration: none; }
.to-note a:hover { text-decoration: underline; }

/* =========================================================
   お知らせ / 箇条
   ========================================================= */
.news-list { list-style: none; padding: 0; margin: 1.2rem 0; max-width: 46rem; }
.news-list li {
    display: grid; gap: .1rem 1.1rem; grid-template-columns: 7rem 1fr;
    padding: .9rem 1.1rem; margin-bottom: 10px;
    background: var(--c-surface); border: var(--bd); border-radius: var(--r); box-shadow: 3px 3px 0 var(--c-ink);
}
.news-list time { font-variant-numeric: tabular-nums; color: var(--c-muted); font-size: .82rem; font-weight: 900; }
.news-list strong { font-size: .98rem; }
.news-list p { margin: .1rem 0 0; font-size: .84rem; color: #4d4841; font-weight: 700; }

.props { display: grid; gap: 12px; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.prop {
    padding: 1.1rem 1.3rem; background: var(--c-surface);
    border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
}
.prop h3 { margin-bottom: .3rem; }
.prop p { margin: 0; font-size: .86rem; color: #4d4841; font-weight: 700; }

/* =========================================================
   測定シミュレータ
   （マークアップは simulator.js が組む。クラス名は変えないこと）
   ========================================================= */
.sim {
    background: var(--c-surface); border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
    padding: 1.4rem; display: grid; grid-template-columns: 290px 1fr; gap: 1.6rem; align-items: start;
}

/* 装置。中身はすべて SVG（viewBox 220×330）なので、画面幅が変わっても部品の位置関係が崩れない */
.machine { height: 330px; user-select: none; }
.machine svg { display: block; width: 100%; height: 100%; }
.machine #food-img { transition: opacity .25s; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .18)); }
.machine.is-empty #food-img { opacity: 0; }

/* 破片。割れた瞬間に飛び散る */
.crumb {
    transform-box: fill-box; transform-origin: center;
    animation: crumb-fly .85s cubic-bezier(.22, .6, .5, 1) forwards;
}
@keyframes crumb-fly {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* 割れた瞬間に装置が軽く揺れる */
.machine.shake svg { animation: machine-shake .3s ease-out; }
@keyframes machine-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2.5px); }
    55% { transform: translateX(2px); }
    80% { transform: translateX(-1px); }
}

/* 読み取り窓（SVG テキスト） */
.ro-val { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; fill: #8dffc4; letter-spacing: .02em; }

.sim-main { min-width: 0; }
.sim-title { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .2rem; }
.sim-title h2 { font-size: 1.3rem; }
.onomatopoeia { font-size: .88rem; font-weight: 900; color: var(--c-orange); }

.chart-box {
    position: relative; background: var(--c-paper); border: 2px solid var(--c-ink);
    border-radius: var(--r-sm); padding: .5rem; margin: .7rem 0 .9rem;
}
.chart-box svg { display: block; width: 100%; height: auto; }
.axis-label { font-size: 10px; fill: var(--c-muted); font-weight: 700; }
.grid-line { stroke: #ddd5c6; stroke-width: 1; }
.axis-line { stroke: var(--c-ink); stroke-width: 1.8; }
.wave-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.peak-dot { opacity: 0; transition: opacity .3s; }
.peak-dot.show { opacity: 1; }

.stats { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: .7rem; }
.stat-item strong { display: block; font-size: 1.45rem; font-weight: 900; line-height: 1.2; }
.stat-item span { font-size: .72rem; color: var(--c-muted); font-weight: 900; }
.stat-item strong em { font-style: normal; font-size: .62em; margin-left: .12em; color: var(--c-muted); }

.explain {
    background: var(--c-yellow); border: 2px solid var(--c-ink); border-radius: var(--r-sm);
    padding: .9rem 1.1rem; font-size: .88rem; font-weight: 700;
    opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s;
}
.explain.show { opacity: 1; transform: none; }
.explain p { margin: 0; }
.explain .summary { font-weight: 900; margin-bottom: .35rem; }

.picker { margin-top: 1.2rem; }
.picker-label { font-size: .76rem; font-weight: 900; color: var(--c-muted); margin-bottom: .5rem; }
.picker-list { display: flex; gap: .6rem; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.food-btn {
    border: 2px solid var(--c-ink); background: var(--c-surface); border-radius: var(--r-sm);
    padding: .45rem .45rem .3rem; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 900;
    color: var(--c-text); width: 90px; text-align: center;
    transition: transform .14s, box-shadow .14s;
}
.food-btn img { width: 100%; height: 50px; object-fit: contain; display: block; margin-bottom: .2rem; }
.food-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--c-ink); }
.food-btn[aria-pressed="true"] { box-shadow: 4px 4px 0 var(--c-ink); }
.food-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }

.sim-actions { display: flex; align-items: center; gap: .9rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-measure {
    font: inherit; font-weight: 900; font-size: .98rem; cursor: pointer;
    padding: .6rem 1.7rem; border: var(--bd); border-radius: 999px;
    background: var(--c-yellow); color: var(--c-ink); box-shadow: 4px 4px 0 var(--c-ink);
    transition: transform .14s, box-shadow .14s;
}
.btn-measure:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--c-ink); }
.btn-measure:disabled { opacity: .5; cursor: default; transform: none; box-shadow: 2px 2px 0 var(--c-ink); }
.autoplay-note { font-size: .76rem; color: var(--c-muted); font-weight: 700; }

/* =========================================================
   動きを減らす設定
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .marquee div, .hero h1 i, .machine.shake svg, .crumb { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* =========================================================
   狭い画面
   ========================================================= */
@media (max-width: 880px) {
    .sim { grid-template-columns: 1fr; }
    .machine { height: 270px; }
    .zukan-detail { grid-template-columns: minmax(0, 1fr); }
    .zukan-photo { max-width: 300px; margin-inline: auto; }
}
/* ヘッダは sticky なので、折り返すと画面の上を占有し続ける。
   820px 未満ではナビが 2〜3 段になり、高さが 141px（PC の約 2 倍）になっていた。
   iPhone SE では画面の 25% がヘッダで埋まる。
   リンクは減らさず、1 行に収めて横へ流す。 */
/* ロゴを入れて、820〜880px でナビが 2 段に落ちるようになった（2026-10-09）。この帯だけ副題を畳む */
@media (min-width: 820px) and (max-width: 900px) {
    .toc-brand small { display: none; }
}
@media (max-width: 819px) {
    .toc-header > div { padding: 7px 14px; gap: 10px; }
    .toc-brand { flex: 0 0 auto; }
    .toc-brand > span { white-space: nowrap; font-size: .95rem; }
    .toc-brand small { display: none; }   /* 「しょっかんの研究所」は畳む */
    .toc-brand .mark { width: 28px; height: 28px; }
    .toc-brand .logo { height: 28px; }
    .toc-nav {
        flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        /* 右へ続いていることが分かるよう、端をぼかす */
        -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
        mask-image: linear-gradient(90deg, #000 88%, transparent);
    }
    .toc-nav::-webkit-scrollbar { display: none; }
    .toc-nav a { white-space: nowrap; flex: 0 0 auto; }
}

@media (max-width: 620px) {
    body { font-size: 15.5px; }
    .wrap { padding: 0 16px; }
    .toc-header > div { padding: 7px 14px; }
    .toc-nav { gap: 2px; }
    .toc-nav a { padding: 6px 9px; font-size: .875rem; }
    .tiles { grid-template-columns: 1fr; }
    .broken-fig { grid-template-columns: 1fr; }
    .broken-fig img { max-width: 200px; }
    .news-list li { grid-template-columns: 1fr; }
    .marquee { font-size: 14px; letter-spacing: .1em; }
}

/* =========================================================
   波形の箱（トップのヒーロー / 図鑑の個別ページ）
   線を引いて、破断点に達したらフキダシを出す。
   ========================================================= */
.wavebox {
    background: var(--c-surface); border: var(--bd); border-radius: var(--r);
    box-shadow: var(--sh); padding: 1.1rem 1.3rem 1rem;
}
.wv-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.wv-head h3 { font-size: 1.25rem; }
.wv-onm {
    font-size: .74rem; font-weight: 900; letter-spacing: .06em; color: #fff;
    padding: 2px 12px; border-radius: 999px; background: var(--c-ink);
}

/* SVG は viewBox どおりに伸び縮みするので、フキダシは％で置ける */
.wv-plot {
    position: relative; background: var(--c-paper);
    border: 2px solid var(--c-ink); border-radius: var(--r-sm); padding: .4rem;
}
.wv-plot svg { display: block; width: 100%; height: auto; }

/* 破断の瞬間のことば */
.bubble {
    position: absolute; z-index: 3; transform: translate(-50%, -118%) scale(.4);
    opacity: 0; pointer-events: none; white-space: nowrap;
    font-size: clamp(.95rem, 2.1vw, 1.3rem); font-weight: 900; letter-spacing: .04em;
    padding: .28em .8em; background: var(--c-surface); color: var(--c-ink);
    border: 2.5px solid var(--c-ink); border-radius: 999px;
    box-shadow: 4px 4px 0 var(--c-ink);
}
.bubble::after {          /* フキダシのしっぽ */
    content: ""; position: absolute; left: 50%; bottom: -11px; width: 0; height: 0;
    margin-left: -8px; border: 8px solid transparent;
    border-top-color: var(--c-ink); border-bottom: 0;
}

/* 特徴の場所を指す引き出し線と丸。
   フキダシはプロット領域の外に出したので、指している場所はこれで伝える。
   線が出るのはフキダシが現れたあと（.wv-plot.marked）。 */
.mark-leader {
    stroke: var(--c-ink); stroke-width: 1.6; stroke-dasharray: 3 3;
    opacity: 0; transition: opacity .3s ease .1s;
}
.mark-dot { fill: var(--c-surface); stroke: var(--c-ink); stroke-width: 2.5;
            opacity: 0; transition: opacity .3s ease .1s; }
.wv-plot.marked .mark-leader, .wv-plot.marked .mark-dot,
.zukan-chart.marked .mark-leader, .zukan-chart.marked .mark-dot { opacity: 1; }
.bubble.show { animation: bubble-pop .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes bubble-pop {
    0%   { opacity: 0; transform: translate(-50%, -90%) scale(.4) rotate(-8deg); }
    55%  { opacity: 1; transform: translate(-50%, -128%) scale(1.14) rotate(3deg); }
    100% { opacity: 1; transform: translate(-50%, -118%) scale(1) rotate(-2deg); }
}

/* 割れるものは箱が軽く跳ねる */
.wv-plot.jolt { animation: jolt .32s ease-out; }
@keyframes jolt {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-3px, 1px); }
    60% { transform: translate(2px, -1px); }
}

.wv-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .8rem; }
.wv-nums { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.wv-nums strong { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1.2; }
.wv-nums strong em { font-style: normal; font-size: .58em; color: var(--c-muted); margin-left: .12em; }
.wv-nums span { font-size: .72rem; font-weight: 900; color: var(--c-muted); }

.wv-dots { display: flex; gap: 7px; }
.wv-dot {
    width: 13px; height: 13px; padding: 0; cursor: pointer;
    border: 2px solid var(--c-ink); border-radius: 50%; background: var(--c-surface);
    transition: background .18s, transform .18s;
}
.wv-dot:hover { transform: scale(1.18); }
.wv-dot.on { background: var(--wv-c, var(--c-ink)); }

@media (prefers-reduced-motion: reduce) {
    .bubble { opacity: 1; transform: translate(-50%, -118%) scale(1); animation: none; }
    .wv-plot.jolt { animation: none; }
}
@media (max-width: 620px) {
    .wavebox { padding: .9rem 1rem .9rem; }
    .wv-nums { gap: 1.1rem; }
    .wv-nums strong { font-size: 1.25rem; }
}

/* 壊れたあとの図（割れないものは写真がないので図で示す） */
.broken-fig.is-diagram { grid-template-columns: 250px 1fr; }
.broken-fig.is-diagram svg { width: 100%; height: auto; display: block; }
.broken-fig .dg-label { font-size: 11px; font-weight: 900; fill: var(--c-muted); text-anchor: middle; }
@media (max-width: 620px) { .broken-fig.is-diagram { grid-template-columns: 1fr; } }

/* =========================================================
   トップのヒーロー「一本の線」

   世界観は装飾では作れない。素材そのものが持つ形を画面の構造に変えると作れる。
   SUN LABO の固有の形は波形なので、グラフの箱から出して**地面**として使う。
   6 品の波形をつないだ一本の線が画面を横断し、食べものはそれぞれの山の上に乗る。
   左の帯にも同じ形が縦に走る（同じ形の反復が世界の一貫性になる）。
   ========================================================= */
.hero-thread {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 84px 1fr;
    background: var(--c-paper); border-bottom: var(--bd);
}

/* 左の細い帯 */
.hero-thread .rail {
    position: relative; border-right: var(--bd); background: #fffdf7;
    display: flex; flex-direction: column; align-items: center;
    justify-content: space-between; padding: 16px 0 18px;
}
.hero-thread .rail .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-red); border: 2px solid var(--c-ink); z-index: 2; }
.hero-thread .rail .v { writing-mode: vertical-rl; font-weight: 900; font-size: .8rem; letter-spacing: .3em; z-index: 2; }
.hero-thread .rail .meta { writing-mode: vertical-rl; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .56rem; letter-spacing: .1em; color: var(--c-muted); z-index: 2; }
.hero-thread .rail svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.hero-thread .rail svg path { fill: none; stroke: var(--c-ink); stroke-width: 2; }

/* 本文側 */
.hero-thread .stage {
    position: relative; padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.6vw, 48px) 0;
    min-height: min(78vh, 680px); display: flex; flex-direction: column;
}
.hero-thread .grain {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(120, 100, 70, .10) 1px, transparent 1px);
    background-size: 4px 4px;
}
.hero-thread .head { position: relative; z-index: 6; max-width: 60%; }
.hero-thread .kicker {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: .7rem; letter-spacing: .22em; color: var(--c-muted); margin-bottom: .6rem;
}
.hero-thread h1 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); line-height: 1.16; }
.hero-thread h1 i {
    font-style: normal; display: inline-block;
    background: linear-gradient(transparent 62%, var(--c-yellow) 62%); padding: 0 .06em;
}
.hero-thread .lead { margin-top: .9rem; max-width: 25em; font-weight: 700; font-size: .95rem; color: #4d4841; }

/* 右上の検体カード。見出しと線の両方に重なる */
.hero-thread .card {
    position: absolute; right: clamp(20px, 3.6vw, 48px); top: clamp(58px, 8vw, 104px);
    width: min(378px, 36vw); z-index: 7; transform: rotate(-1.4deg);
    background: var(--c-surface); border: var(--bd); border-radius: var(--r);
    box-shadow: var(--sh); padding: .7rem .8rem .6rem;
}
.hero-thread .card .cap {
    display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: .6rem; color: var(--c-muted); letter-spacing: .08em; margin-bottom: .35rem;
}
.hero-thread .card .wv-plot { border-width: 2px; }
.hero-thread .card .nums { display: flex; gap: 1rem; margin-top: .45rem; }
.hero-thread .card .nums b { display: block; font-size: 1.15rem; font-weight: 900; line-height: 1.1; }
.hero-thread .card .nums b em { font-style: normal; font-size: .5em; color: var(--c-muted); }
.hero-thread .card .nums span { font-size: .56rem; font-weight: 900; color: var(--c-muted); }

/* 画面を横断する一本の線。ここが中央の空白を埋める */
.hero-thread .thread { position: relative; margin-top: auto; z-index: 3; }
.hero-thread .thread svg { display: block; width: 100%; height: clamp(150px, 19vw, 240px); overflow: visible; }
.hero-thread .thread .line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.hero-thread .thread .base { stroke: rgba(28, 27, 31, .18); stroke-width: 2; }

/* 食べものは線の山の上に乗る */
.hero-thread .perch { position: absolute; inset: 0; pointer-events: none; }
.hero-thread .perch button {
    position: absolute; transform: translate(-50%, -100%); cursor: pointer;
    border: 0; background: none; padding: 0; pointer-events: auto;
    filter: drop-shadow(0 8px 12px rgba(80, 60, 30, .26));
    transition: transform .2s cubic-bezier(.34, 1.6, .64, 1);
}
.hero-thread .perch button img { width: 100%; display: block; }
.hero-thread .perch button:hover,
.hero-thread .perch button.on { transform: translate(-50%, -108%) scale(1.07); }
.hero-thread .perch .tag {
    position: absolute; transform: translate(-50%, 0);
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: .56rem; letter-spacing: .08em; color: var(--c-muted); white-space: nowrap;
}

.hero-thread .footline {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: .6rem; letter-spacing: .1em; color: var(--c-muted);
    padding: .2rem 0 .9rem; position: relative; z-index: 6;
}

@media (max-width: 860px) {
    .hero-thread .head { max-width: 100%; }
    .hero-thread .card { position: static; width: auto; margin-top: 1rem; transform: none; }
    .hero-thread .thread svg { height: 150px; }
    .hero-thread .stage { min-height: 0; }
}
@media (max-width: 620px) {
    .hero-thread { grid-template-columns: 44px 1fr; }
    .hero-thread .perch .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-thread .perch button, .hero-thread .thread .line { transition: none; }
}

/* 用語集。定義は自己完結した短い塊なので、そのまま <dl> で書く */
.glossary { max-width: 46rem; margin: 1.2rem 0; }
.glossary dt {
    font-weight: 900; font-size: 1.02rem; margin-top: 1.4rem;
    display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
    border-bottom: 2px solid var(--c-hair); padding-bottom: .3rem;
}
.glossary dt .yomi { font-size: .72rem; font-weight: 700; color: var(--c-muted); letter-spacing: .06em; }
.glossary dd { margin: .5rem 0 0; font-size: .93rem; line-height: 1.85; color: #3f3a34; }

/* 中身の短いページでフッターが画面の途中に浮くのを防ぐ。
   body をフレックスにすると直下の .wrap どうしのマージン相殺が消えて
   全ページの縦が伸びてしまうので、通常フローのまま最後の塊に下限を置く。
   差し引いているのは マーキー + ヘッダー + フッター のおおよその高さ。 */
body > .wrap:last-of-type, main > .wrap:last-of-type { min-height: calc(100vh - 22rem); }

/* ふしぎ記事の実測グラフ。研究ノートと同じ図を、やさしい説明つきで見せる。
   図鑑の波形（wave.js）とは別物で、こちらは記事が語っている測定そのもの。 */
.art-fig {
    margin: 1.6rem 0 1.4rem;
    border: var(--bd); border-radius: var(--r); box-shadow: var(--sh);
    background: var(--c-surface); padding: .9rem .9rem .2rem;
}
.art-fig img { display: block; width: 100%; height: auto; border-radius: calc(var(--r) - .4rem); }
.art-fig figcaption {
    margin: .8rem .2rem 1rem; font-size: .84rem; line-height: 1.85; color: var(--c-sub);
}
.art-fig figcaption b { color: var(--c-text); }
@media (max-width: 600px) { .art-fig { padding: .6rem .6rem .1rem; } }


/* =========================================================
   背の低い画面のシミュレータ
   グラフの高さは幅で決まる（縦横比 2:1）ので、幅を絞って高さを下げる。
   ========================================================= */
@media (max-height: 760px) {
    .sim { padding: 1.1rem 1.2rem; gap: 1.2rem; }
    /* 装置は SVG なので縮めても部品の位置関係は崩れない */
    /* 下限がないと、スマホを横にした高さで装置とグラフが潰れる（V5-1） */
    .sim .machine { height: clamp(200px, calc(100vh - 21rem), 330px); }
    .sim .chart-box { max-width: clamp(300px, calc((100vh - 19rem) * 2), 660px); margin-inline: auto; }
    .sim .picker { margin-top: .8rem; }
    .sim .sim-actions { margin-top: .7rem; }
}


/* =========================================================
   本文の列がページの左半分に寄るのを直す（2026-09-29）
   ========================================================= */

/* 図鑑の個別: 本文の右に測定の条件を置く。
   条件は読み物ではなく参照するものなので、並べても読みの流れを切らない。 */
.zukan-body {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.6rem 2.4rem; align-items: start; margin: 2.2rem 0;
}
.zukan-body .prose { max-width: none; }
.zukan-body > * > section:first-child { margin-top: 0; }
.zb-side .table-wrap { margin-top: 0; }

/* 記事は上から下へ読むので段に割らない。列の幅は変えず、左右の余白を均す。 */
.page-article .prose, article.prose { margin-inline: auto; }

@media (max-width: 860px) {
    /* 1fr は最小幅が中身なりになり、条件の表が列ごと押し広げていた。minmax(0, …) で表の枠に逃がす */
    .zukan-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
}


/* 写真と波形の下端を揃える（2026-09-29）。
   写真は正方形で 320px、右側は波形＋数値で 500px 近くあり、段が崩れて見えた。 */
.zukan-detail { align-items: stretch; }
.zukan-photo { aspect-ratio: auto; min-height: 320px; }

/* 1 段のときは写真を正方形に戻し、幅を明示する（2026-10-05）。
   margin-inline:auto の枠は中身から幅を決めるが、中の img は width:74% で親に依存する。
   この循環を iOS Safari は幅 0 に倒し、min-height だけが残って黒い縦線 2 本になっていた。 */
@media (max-width: 880px) {
    .zukan-photo { width: 100%; aspect-ratio: 1; min-height: 0; }
}

/* 見出しの最後の 1 文字だけが次の行に落ちるのを防ぐ */
h1, h2, .sec-h, .lead { text-wrap: balance; }


/* 「壊れたあと」の枠は本文と同じ幅にする。2 段にしたあと、42rem 固定だと
   列の中で浮いて見えた（2026-09-29）。 */
.zukan-body .broken-fig { max-width: none; }

/* 表の前に置く注意。下に置くと、読み手は先に表を見て比べてしまう。 */
.caution {
    background: #fff6d8; border: 2px solid var(--c-ink); border-radius: var(--r-sm);
    padding: .7rem .9rem; font-size: .88rem; font-weight: 700; margin: 0 0 .9rem;
}

/* ことばの索引。19 項目を上から読む以外に探す手がなかった。 */
.term-index { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: 0 0 1.6rem; }
.term-index a {
    font-size: .9rem; font-weight: 900; text-decoration: none;
    padding: 6px 11px; border: 2px solid var(--c-ink); border-radius: 999px;
    background: var(--c-surface);
}
.term-index a:hover { background: var(--c-yellow); }

/* 飛び先が sticky ヘッダの下に潜らないようにする。
   ヘッダは幅で 53〜72px になるので、いちばん高いぶんに余白を足して取る。 */
:target, .glossary dt, .term-h, h2[id], h3[id], section[id] { scroll-margin-top: 92px; }

/* 用語集の章立て。18 語を区切り線だけで並べると、関係のあることば同士が
   離れて置かれて探しにくい。 */
.term-h {
    font-size: 1.12rem; margin: 2.2rem 0 .2rem; padding-bottom: .3rem;
    border-bottom: 3px solid var(--c-ink);
}
.term-h:first-of-type { margin-top: 1rem; }
.term-lead { font-size: .88rem; color: var(--c-muted); font-weight: 700; margin: .3rem 0 1rem; }
/* 関連する語へ。dd の末尾に小さく置く（Yo-11） */
.term-rel { display: block; margin-top: .45rem; font-size: .82rem; font-weight: 700; }
.term-rel b { color: var(--c-muted); font-weight: 900; margin-right: .5em; }
/* 語の途中で折らない。折るなら区切りの「 / 」のところで */
.term-rel a { color: inherit; text-underline-offset: 2px; white-space: nowrap; }
.term-rel a:hover { background: var(--c-yellow); }
.ti-group { display: flex; flex-wrap: wrap; gap: .4rem .5rem; align-items: baseline; }
.ti-group > b { font-size: .8rem; color: var(--c-muted); flex: 0 0 100%; }

/* 用語集は 2 段にする。1 段だと縦に 3000px を超えて一覧できない。 */
@media (min-width: 880px) {
    .glossary { columns: 2; column-gap: 2.6rem; }
    .glossary > div { break-inside: avoid; }
    .term-index { gap: 1rem 2rem; }
    .ti-group { flex: 1 1 0; align-content: start; }
}


/* 並びの最後に置く案内のカード。食べものが 7 つで 4 列だと右端が 1 枠空く。 */
.tile-more {
    display: grid; place-content: center; gap: .5rem; text-align: center;
    background: var(--c-surface); text-decoration: none; padding: 1rem;
}
.tile-more .tm-lead { font-size: .92rem; font-weight: 900; color: #4d4841; }
.tile-more .tm-go { font-size: 1rem; font-weight: 900; }
.tile-more:hover { background: var(--c-yellow); }


/* 「やっていること」のカードは行き先。押せると分かるようにする。 */
a.property { text-decoration: none; color: inherit; display: block; transition: transform .14s, box-shadow .14s; }
a.property:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-lift); }
a.property h3::after { content: " →"; font-size: .9em; }


/* グミの配合ちがいを重ねた図（2026-09-29）。本文が 3 種の比較に触れているので図でも見せる。 */
.mix-fig { margin: 1.2rem 0 0; }
.mix-fig .chart-box { margin: 0 0 .8rem; }
.mix-legend { list-style: none; padding: 0; margin: 0 0 .7rem; display: grid; gap: .4rem; }
.mix-legend li { display: grid; grid-template-columns: 18px minmax(0,1fr) auto auto;
                 gap: .6rem; align-items: baseline; font-size: .9rem; font-weight: 700; }
.mix-legend .sw { width: 16px; height: 4px; border-radius: 2px; background: var(--sw); align-self: center; }
.mix-legend span:last-of-type { color: var(--c-muted); font-size: .84rem; }
.mix-legend em { font-style: normal; font-weight: 900; font-variant-numeric: tabular-nums; }
.mix-fig figcaption { font-size: .86rem; color: #4d4841; font-weight: 700; }
@media (max-width: 560px) {
    .mix-legend li { grid-template-columns: 18px 1fr auto; }
    .mix-legend span:last-of-type { grid-column: 2 / -1; }
}

/* 表の中の行き先。高さ 20px では指で押しにくいので、上下に余白を足す。 */
.table-wrap th a { display: inline-block; padding: 5px 0; }


/* 記事の図（描き直した SVG）。線は画面に入ってから描かれる。
   「いま測っている」感じを出すためで、意味は静止した図と同じ。 */
.art-fig-svg .fig-draw svg { display: block; width: 100%; height: auto; }
.fig-draw .ln {
    stroke-dasharray: 2400; stroke-dashoffset: 2400;
    transition: stroke-dashoffset 1.6s cubic-bezier(.4, 0, .2, 1);
    transition-delay: calc(var(--i, 0) * .35s);
}
.fig-draw.drawn .ln { stroke-dashoffset: 0; }
.fig-draw .lbl { opacity: 0; transition: opacity .5s ease 1.2s; }
.fig-draw.drawn .lbl { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .fig-draw .ln { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
    .fig-draw .lbl { opacity: 1; transition: none; }
}


/* 1 行だけの行き先（「くわしく →」「← 食感図鑑」「図鑑をぜんぶ見る →」）は
   文字の高さしか押せる場所がなかった。上下に余白を足す（2026-09-29）。 */
.more-link a, .eyebrow a, .article-nav a, .toc-footer nav a {
    display: inline-block; padding-block: 4px;
}
