/* config/brand.css から自動で取り込み（build.py）。値はインスタ用テンプレと共通 */
:root {
  --bg: #FBF7EE;          /* クリーム。リールの余白もこの色（render.py が読む） */
  --card: #FFFFFF;        /* 白カード */
  --ink: #2A2420;         /* 本文 14.3:1 */
  --ink-muted: #6B6159;   /* 補助文字 5.6:1（AA） */
  --line: rgba(42,36,32,.14);
  --accent: #F2B544;      /* アクセント（図形・塗り用）。クリーム上の文字には使わない */
  --accent-2: #4FB3A5;    /* サブアクセント（図形用） */
  --accent-ink: #8A5F00;  /* クリーム上のアクセント文字 5.3:1（AA） */
  --hu-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C40 8 78 19 118 11 S178 15 197 9' fill='none' stroke='%23FFD86B' stroke-width='13' stroke-linecap='round'/%3E%3C/svg%3E");
  --danger: #E05A4E;      /* 注意（図形用） */
  --rank-S: #E8B731;
  --rank-A: #B9C1CB;
  --rank-B: #CD8A55;
  --rank-C: #9A948D;
  --rank-D: #D9D4CC;
}
.pillar-paper    { --accent: #F2B544; --accent-2: #4FB3A5; --accent-ink: #8A5F00; }   /* 論文解説：マスタード＋ティール */
.pillar-tier     { --accent: #4FB3A5; --accent-2: #F2B544; --accent-ink: #256B61; }   /* ランキング：ティール */
.pillar-scene    { --accent: #7C8CF8; --accent-2: #F2B544; --accent-ink: #4A55C8; }   /* シーン：ラベンダー */
.pillar-incident { --accent: #E05A4E; --accent-2: #F2B544; --accent-ink: #B8382D; }   /* 事件簿：レッド */
/* そのサプ Webサイト。色トークン（--bg・--ink・--accent・--rank-* など）は config/brand.css から build.py が先頭に差し込む。
   スマホ前提・1カラム。ダークモードは対応しない（初期は工数優先） */
@font-face { font-family: "Noto Sans JP"; src: url("/fonts/noto-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans JP"; src: url("/fonts/noto-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url("/fonts/zenmaru-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-display: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --measure: 720px;
  --r: 14px;
  --warn-bg: #FDEDEB;
  --note-bg: #EEF7F5;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.85; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 900; line-height: 1.45; letter-spacing: .01em; font-feature-settings: "palt"; }
h1 { font-size: 1.6rem; margin: .4em 0 .5em; }
h2 { font-size: 1.28rem; margin: 2em 0 .6em; }
h3 { font-size: 1.08rem; margin: 1.5em 0 .4em; }
p { margin: 0 0 1em; }
.small { font-size: .82rem; color: var(--ink-muted); }
.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 16px 48px; }

.preview-bar { background: #F2B544; color: var(--ink); text-align: center; font-size: .85rem; padding: 6px 16px; font-weight: 700; }
.site-header { max-width: var(--measure); margin: 0 auto; padding: 14px 16px 6px; }
.logo { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.gnav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-top: 6px; font-size: .9rem; }
.gnav a { color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.gnav a:hover { border-color: var(--accent); }
.crumbs { max-width: var(--measure); margin: 0 auto; padding: 4px 16px; font-size: .78rem; color: var(--ink-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .4em; }
.crumbs li + li::before { content: "›"; margin-right: .4em; }
.crumbs a { color: var(--ink-muted); }

/* 柱のラベル */
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--ink); margin: 0 0 .3em; line-height: 1.7; }
.pill-paper { background: #FCEBC7; } .pill-board { background: #D5EFEB; } .pill-scene { background: #E3E6FD; } .pill-incident { background: #F9D9D5; }

/* 記事の頭 */
.a-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .82rem; color: var(--ink-muted); }
.a-meta a { color: var(--ink-muted); }
.hero { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); margin: 1.2em 0; }

/* 結論ボックス */
.conclusion { background: var(--card); border: 2px solid var(--accent); border-radius: var(--r); padding: 16px 18px 6px; margin: 1.2em 0; }
.c-label { display: inline-block; font-family: var(--font-display); font-weight: 900; font-size: .85rem; background: var(--accent); color: var(--ink); padding: 0 12px; border-radius: 99px; margin-bottom: .6em; }
.c-summary { font-weight: 700; font-size: 1.04rem; }
.c-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: .9rem; }
.c-link { font-size: .9rem; font-weight: 700; }
.rank-badge { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; border-radius: 8px; font-family: "Zen Maru Gothic", sans-serif; font-weight: 900; font-size: .95rem; color: var(--ink); margin-right: .45em; vertical-align: .05em; line-height: 1; }
.rank-S { background: var(--rank-S); } .rank-A { background: var(--rank-A); } .rank-B { background: var(--rank-B); } .rank-C { background: var(--rank-C); color: var(--ink); } .rank-D { background: var(--rank-D); }
.rank-text { font-weight: 700; }
.design { font-size: .8rem; font-weight: 700; padding: 1px 10px; border-radius: 99px; border: 1.5px solid var(--ink); }
.design-meta { background: #FFE9A8; } .design-rct { background: #D5EFEB; } .design-obs { background: #EEE; } .design-animal { background: #F3F0EB; }

/* 目次・折りたたみ */
details.toc, details.fold { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; margin: 1em 0; }
details > summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: .5em 0 .3em; padding-left: 1.3em; font-size: .92rem; line-height: 1.7; }
.toc li { margin: .25em 0; }

/* 本文 */
.sec h2 { scroll-margin-top: 12px; }
.sec h2 .rank-badge { font-size: 1.05rem; }
.band { border-left: 6px solid var(--line); padding-left: 12px; }
.band-S { border-color: var(--rank-S); } .band-A { border-color: var(--rank-A); } .band-B { border-color: var(--rank-B); } .band-C { border-color: var(--rank-C); } .band-D { border-color: var(--rank-D); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: .9rem; line-height: 1.6; border-radius: var(--r); }
caption { text-align: left; font-size: .82rem; color: var(--ink-muted); padding: 0 0 6px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: #F3EEE3; font-weight: 700; }
tbody th { font-weight: 700; white-space: nowrap; }
table.study-card { border: 2px solid var(--accent); }
table.study-card tbody th { width: 6.5em; background: #FCF4E1; }
table.timing thead th { background: #E3E6FD; }
table.tl tbody th { white-space: nowrap; }
.callout { border-radius: var(--r); padding: 12px 16px; margin: 0 0 1.2em; font-size: .95rem; }
.callout-note { background: var(--note-bg); border-left: 5px solid var(--accent-2); }
.callout-warn { background: var(--warn-bg); border-left: 5px solid var(--danger); }
.cards { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card { position: relative; display: block; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.card-body { min-width: 0; }
/* 1行目＝ランクバッジ → 成分名（左揃え）。カプセルくんはカード右上に小さく（15章3） */
.card-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.02rem; margin: 0 0 .3em; }
.card-name .rank-badge { margin: 0; flex: none; }
.card:has(.card-cap) .card-name { padding-right: 48px; min-height: 40px; }
.card-cap { position: absolute; top: 6px; right: 6px; line-height: 0; }
.card-cap .capsule { width: 48px; height: 48px; margin: 0; vertical-align: 0; opacity: .9; }
.card dl { margin: 0; display: grid; grid-template-columns: 2.8em minmax(0, 1fr); gap: 2px 8px; font-size: .88rem; line-height: 1.65; }
.card dt { color: var(--ink-muted); font-weight: 700; }
.card dd { margin: 0; overflow-wrap: anywhere; }

/* FAQ・出典・免責 */
.faq .qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px 2px; margin: 0 0 10px; }
.faq h3 { margin: .8em 0 .3em; font-size: 1rem; }
.faq h3::before { content: "Q. "; color: var(--accent-ink); }
.refs { padding-left: 1.2em; font-size: .86rem; line-height: 1.7; overflow-wrap: anywhere; }
.refs li { margin: .4em 0; }
.disclaimer { background: #F3EEE3; border-radius: var(--r); padding: 12px 16px; font-size: .85rem; margin: 2em 0 1em; }
.disclaimer p { margin: 0; }
.changelog ul { padding-left: 1.2em; font-size: .9rem; }
.insta { font-size: .88rem; color: var(--ink-muted); }

/* 記事カード */
.acards { display: grid; gap: 10px; margin: 0 0 1em; }
.acard { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-decoration: none; color: var(--ink); }
.acard:hover { border-color: var(--accent); }
.acard img { width: 76px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; }
.acard-body { display: flex; flex-direction: column; min-width: 0; }
.acard-title { font-weight: 700; line-height: 1.5; }
.acard-date { font-size: .78rem; color: var(--ink-muted); }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; }
.hub-links a { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 2px 12px; text-decoration: none; color: var(--ink); }

/* トップ・一覧 */
.hero-top { padding: 12px 0 4px; }
.hero-top h1 { font-size: 1.8rem; }
.pillar-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.pillar-list a { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--r); padding: 10px 14px; color: var(--ink); text-decoration: none; }
.pillar-list span { font-size: .9rem; }
.rank-list { list-style: none; padding: 0; font-size: .92rem; }
.rank-list li { margin: .4em 0; display: flex; align-items: center; }
.aka { font-size: .88rem; color: var(--ink-muted); }
.prose table { margin-bottom: 1.2em; }

.site-footer { max-width: var(--measure); margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); font-size: .85rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.foot-links a, .site-footer a { color: var(--ink); }

@media (min-width: 720px) {
  body { font-size: 17.5px; }
  h1 { font-size: 1.9rem; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .acards { grid-template-columns: 1fr 1fr; }
  .pillar-list { grid-template-columns: 1fr 1fr; }
}

.a-body p, .faq p, .callout { overflow-wrap: anywhere; }
.pillar-incident .c-label { background: var(--accent-ink); color: #fff; }
.crumbs ol { flex-wrap: nowrap; white-space: nowrap; }
.crumbs li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gnav { min-height: 1.7em; }

/* ===== 11章：図・マスコット・脚注 ===== */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo img { width: 36px; height: 36px; border-radius: 50%; }
sup.fn { font-size: .7em; line-height: 0; margin-left: 1px; }
sup.fn a { text-decoration: none; font-weight: 700; }
.refs-num { padding-left: 2em; }
.refs-num li:target { background: #FFF3CF; }

/* 博士の吹き出し（アイコン＋吹き出し） */
.owl { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0 14px; }
.owl img { width: 72px; height: 72px; flex: none; }
.owl-say { position: relative; margin: 0 0 20px; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; padding: 6px 12px; font-family: var(--font-display); font-weight: 900; font-size: .9rem; line-height: 1.5; }
.owl-say::before { content: ""; position: absolute; left: -9px; bottom: 10px; border: 8px solid transparent; border-right-color: var(--ink); border-left: 0; }
.owl-right { flex-direction: row-reverse; margin: 0; }
.owl-right .owl-say::before { left: auto; right: -9px; border-right-color: transparent; border-left: 8px solid var(--ink); border-right: 0; }
.owl-mini { margin: 0; } .owl-mini img { width: 56px; height: 56px; } .owl-mini .owl-say { font-size: .8rem; margin-bottom: 14px; }
.owl-lead { margin: 0 0 1.2em; }
.c-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.h-owl { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.h-owl h2 { margin-bottom: .3em; }
.capsule { width: 24px; height: 24px; vertical-align: -6px; margin-right: 4px; }

/* 図（figure）共通 */
.fig { margin: 0 0 1.4em; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.fig figcaption { font-size: .8rem; color: var(--ink-muted); margin-top: 8px; line-height: 1.6; }
.fig-ranking { padding: 8px; } .fig-ranking img { display: block; width: 100%; height: auto; border-radius: 10px; }
.fig-study { padding: 0; border: 0; background: none; } .fig-study .table-wrap { margin-bottom: 0; } .fig-study figcaption { padding: 0 4px; }

/* ビッグナンバー（_visuals.html の bignum を Web サイズで） */
.bn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.bn-row .bignum { flex: 1 1 140px; background: #FCF4E1; border-radius: 12px; padding: 10px 12px; text-align: center; }
.bignum .ic svg { width: 36px; height: 36px; color: var(--accent-ink); }
.bignum .n { font-family: "DM Serif Display", var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1.1; color: var(--accent-ink); font-feature-settings: "palt"; }
.bignum .n small { font-size: .95rem; margin-left: 2px; font-family: var(--font-display); }
.bignum .lb { font-size: .82rem; line-height: 1.5; margin-top: 4px; }
.bn-to { align-self: center; font-size: 1.6rem; color: var(--ink-muted); }

/* 2列図（わかる／わからない） */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tc { border-radius: 12px; padding: 10px 12px; }
.tc.ok { background: var(--note-bg); } .tc.ng { background: #F3EEE3; }
.tc-title { font-weight: 700; margin: 0 0 .3em; display: flex; align-items: center; gap: 6px; }
.tc-mark { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; }
.tc ul { margin: 0; padding-left: 1.2em; font-size: .9rem; line-height: 1.7; }

/* タイムライン（縦） */
.tlf { list-style: none; margin: 0; padding: 0; position: relative; }
.tlf::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: var(--line); }
.tlf li { display: flex; gap: 12px; position: relative; padding: 0 0 14px; }
.tlf-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); display: grid; place-items: center; color: var(--accent-ink); z-index: 1; }
.tlf-body p { margin: 0; }
.tlf-date { font-size: .8rem; color: var(--ink-muted); display: flex; gap: 8px; align-items: center; }
.tlf-tag { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 8px; font-weight: 700; font-size: .75rem; }
.pillar-incident .tlf-tag { background: var(--accent-ink); }
.tlf-label { font-weight: 700; line-height: 1.6; }
.tlf-num { font-size: .82rem; color: var(--ink-muted); }
.tlf-num b { font-family: "DM Serif Display", var(--font-display); font-size: 1.4rem; color: var(--accent-ink); margin-right: 2px; }
.tlf-num span { margin-left: 6px; }

/* フロー（_visuals.html の flow を Web サイズで） */
.flow { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.flow .fs { display: flex; gap: 12px; align-items: center; background: #F3EEE3; border-radius: 12px; padding: 10px 12px; }
.flow .fs .ic { flex: none; color: var(--accent-ink); } .flow .fs .ic svg { width: 36px; height: 36px; }
.flow .fs b { display: block; line-height: 1.5; }
.flow .fs span { display: block; font-size: .85rem; color: var(--ink-muted); line-height: 1.6; }
.flow .arrow { text-align: center; color: var(--accent-ink); font-size: .9rem; line-height: 1.2; }

/* 摂取タイミング（時刻×成分の帯） */
.timing-fig { display: grid; gap: 6px; font-size: .82rem; line-height: 1.45; overflow-x: auto; }
.tf-row { display: grid; grid-template-columns: 6.5em repeat(var(--slots), minmax(5.5em, 1fr)); gap: 4px; align-items: stretch; }
.tf-head span { font-weight: 700; color: var(--ink-muted); text-align: center; padding: 2px; }
.tf-name { font-weight: 700; align-self: center; }
.tf-cell { border-radius: 8px; padding: 6px 8px; }
.tf-cell.on { background: #E3E6FD; border-left: 4px solid var(--accent); }
.tf-cell.off { background: repeating-linear-gradient(45deg, #F3EEE3 0 6px, #EEE8DC 6px 12px); color: var(--ink-muted); text-align: center; }

@media (min-width: 720px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ===== 12章：ヘッダー（スマホはハンバーガー） ===== */
.site-header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.site-header .logo { margin-right: auto; }
.hdr-search { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); order: 2; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-btn { order: 3; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.nav-btn span::before { position: absolute; top: -7px; } .nav-btn span::after { position: absolute; top: 7px; }
.nav-toggle:focus-visible + .nav-btn { outline: 2px solid var(--accent-ink); border-radius: 8px; }
.site-header .gnav { order: 4; flex-basis: 100%; display: none; flex-direction: column; gap: 0; margin: 0; padding: 4px 0 8px; border-top: 1px solid var(--line); }
.site-header .gnav a { padding: 10px 2px; font-weight: 700; border-bottom: 1px solid var(--line); }
.nav-toggle:checked ~ .gnav { display: flex; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== 12章：トップ ===== */
.home-grid { display: flex; flex-direction: column; }
.home-grid > section { margin-bottom: 8px; }
.home-grid h2 { margin-top: 1.6em; }
.h-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 4px; }
.h-hero h1 { font-size: 1.75rem; margin: .2em 0 .1em; }
.hh-sub { margin: 0; font-size: .98rem; }
.owl-hero { margin: 4px 0 2px; } .owl-hero img { width: 64px; height: 64px; } .owl-hero .owl-say { font-size: .85rem; margin-bottom: 12px; }
.hh-search { display: flex; background: var(--card); border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.hh-search input { flex: 1; min-width: 0; border: 0; padding: 12px 16px; font: inherit; font-size: 1rem; background: transparent; color: var(--ink); }
.hh-search input:focus { outline: none; } .hh-search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.hh-search button { border: 0; background: var(--accent); color: var(--ink); width: 52px; display: grid; place-items: center; cursor: pointer; }
.hh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; font-size: .82rem; }
.hh-chips a { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; color: var(--ink); text-decoration: none; }
.h-trust ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.h-trust li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; color: var(--accent-ink); }
.h-trust li > :first-child { grid-row: 1 / 3; display: grid; }
.h-trust b { font-family: "DM Serif Display", var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.h-trust b.t-word { font-family: var(--font-display); font-size: 1.2rem; }
.h-trust span { font-size: .76rem; color: var(--ink-muted); line-height: 1.4; }
.ing-scroll { list-style: none; padding: 0 0 6px; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.ing-scroll li { scroll-snap-align: start; }
.ing-scroll a { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; color: var(--ink); text-decoration: none; height: 100%; }
.ing-scroll img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.ing-name { font-weight: 700; font-size: .92rem; line-height: 1.4; display: flex; align-items: center; }
.ing-name .rank-badge { font-size: .8rem; min-width: 1.6em; height: 1.6em; margin-right: .35em; flex: none; }
.tier-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; color: var(--ink); text-decoration: none; }
.tier-card img { display: block; width: 100%; height: auto; border-radius: 10px; }
.tier-title { display: block; font-weight: 700; padding: 8px 4px 2px; }
.ncards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ncard { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; color: var(--ink); text-decoration: none; }
.ncard:hover, .ing-scroll a:hover, .tier-card:hover { border-color: var(--accent); }
.ncard-top { display: flex; align-items: center; justify-content: space-between; }
.ncard-top .pill { margin: 0; }
.ncard-title { font-weight: 700; line-height: 1.5; }
.ncard-lead { font-size: .85rem; color: var(--ink-muted); line-height: 1.6; }
/* 目的タイル：固定列（スマホ2・720px〜4・960px〜6）＋行の高さもそろえる。文字数で伸縮させない（14章） */
.goal-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.goal-tiles li { min-width: 0; }
.goal-tiles a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 100%; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 6px; color: var(--accent-ink); text-decoration: none; text-align: center; }
.goal-tiles a:hover { border-color: var(--accent); }
.goal-tiles b { color: var(--ink); font-size: .9rem; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-list { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--accent); }
.inc-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 8px 0 8px 14px; color: var(--ink); text-decoration: none; position: relative; }
.inc-list a::before { content: ""; position: absolute; left: -8.5px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }
.inc-year { font-family: "DM Serif Display", var(--font-display); color: var(--accent-ink); font-size: 1.15rem; grid-row: 1 / 3; }
.inc-line { font-size: .85rem; color: var(--ink-muted); line-height: 1.6; }
.rank-bar { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.rank-bar li { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; text-align: center; font-size: .72rem; line-height: 1.35; color: var(--ink); }
.rank-bar li:first-child { border-radius: 12px 0 0 12px; } .rank-bar li:last-child { border-radius: 0 12px 12px 0; }
.rank-bar b { font-family: "DM Serif Display", var(--font-display); font-size: 1.5rem; line-height: 1.1; }

.rank-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-muted); margin: 4px 2px 0; }
.rank-axis span::before { content: "← "; } .rank-axis span:last-child::before { content: ""; } .rank-axis span:last-child::after { content: " →"; }
.rank-axis span:first-child::before { content: ""; }
.policy { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.policy li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; color: var(--accent-ink); }
.policy div { display: flex; flex-direction: column; color: var(--ink); }
.policy span { font-size: .85rem; color: var(--ink-muted); line-height: 1.6; }
.insta-head { display: flex; align-items: center; gap: 10px; margin-top: 1.6em; }
.insta-head h2 { margin: 0; } .insta-head img { width: 36px; height: 36px; border-radius: 50%; }
.insta-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
.insta-thumbs img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }

@media (min-width: 720px) {
  .hdr-search { order: 3; } .nav-btn { display: none; }
  .site-header .gnav { order: 2; display: flex; flex-direction: row; flex-basis: auto; gap: 14px; border: 0; padding: 0; }
  .site-header .gnav a { padding: 0; border-bottom: 2px solid transparent; }
  .home-grid > section { order: var(--o); }
  .h-hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: end; }
  .hh-text { grid-column: 1; } .owl-hero { grid-column: 2; grid-row: 1 / 3; flex-direction: row-reverse; align-self: center; }
  .owl-hero .owl-say::before { left: auto; right: -9px; border-right-color: transparent; border-left: 8px solid var(--ink); border-right: 0; }
  .hh-search, .hh-chips { grid-column: 1 / 3; }
  .h-trust ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ing-scroll { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; }
  .ncards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .goal-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .policy { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== 13章：ワードマーク・成分カード・Tier帯・PCレイアウト ===== */
.logo { font-size: 1.25rem; }
.logo-sub { display: none; font-family: var(--font); font-weight: 400; font-size: .78rem; color: var(--ink-muted); margin-left: 4px; }
.foot-name { font-family: var(--font-display); font-weight: 900; margin-bottom: .2em; }
.h-trust li.t-line { display: flex; align-items: center; gap: 8px; }
.h-trust li.t-line b.t-word { font-size: .95rem; line-height: 1.4; }
/* 成分カード：写真なし・1行半。スマホ2列 */
.ing-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ing-grid a { display: flex; align-items: center; gap: 8px; min-height: 56px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.ing-grid a:hover { border-color: var(--accent); }
.ing-grid .rank-badge { margin: 0; flex: none; }
.ing-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ing-body b { font-size: .92rem; overflow-wrap: anywhere; }
.ing-body .small { font-size: .74rem; }
/* 今週のTier表：ランク帯に成分チップ（HTML/CSS） */
.tier-bands { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.tb { display: flex; gap: 8px; align-items: flex-start; padding: 6px 4px; border-left: 5px solid var(--line); }
.tb-S { border-color: var(--rank-S); } .tb-A { border-color: var(--rank-A); } .tb-B { border-color: var(--rank-B); } .tb-C { border-color: var(--rank-C); } .tb-D { border-color: var(--rank-D); }
.tb .rank-badge { flex: none; margin: 0; }
.tb-items { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-items a, .tb-items span { font-size: .85rem; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; color: var(--ink); text-decoration: none; }
.tb-items a:hover { border-color: var(--accent); }
.tb-items .tb-none { border: 0; background: none; color: var(--ink-muted); font-size: .8rem; padding: 1px 0; }
.tier-side { margin-top: 10px; }
/* ランク帯の直下の1行（14章。トップの「ランクの読み方」セクションの代わり） */
.tier-note { margin: 6px 2px 0; font-size: .82rem; color: var(--ink-muted); line-height: 1.6; }
/* S〜D の帯図（/rank/・Tier表記事の結論ボックス） */
.rank-band { margin: 10px 0 12px; }
.tier-title { font-weight: 700; margin-bottom: .3em; } .tier-title a { color: var(--ink); }
/* 記事：PC は右に追従目次 */
.a-side { display: none; }

@media (min-width: 960px) {
  .site-header, .crumbs, .site-footer { max-width: 1120px; }
  .home .wrap, .article .wrap { max-width: 1120px; }
  .logo-sub { display: inline; }
  /* トップ */
  .h-hero { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; padding: 24px 0 8px; }
  .h-hero h1 { font-size: 2.6rem; }
  .hh-sub { font-size: 1.1rem; }
  .hh-search { grid-column: 1; max-width: 640px; } .hh-chips { grid-column: 1; }
  .owl-hero { grid-column: 2; grid-row: 1 / 4; flex-direction: column-reverse; align-items: center; gap: 4px; }
  .owl-hero img { width: 160px; height: 160px; }
  .owl-hero .owl-say { font-size: 1rem; margin: 0; }
  .owl-hero .owl-say::before { left: 50%; right: auto; bottom: -9px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--ink); border-bottom: 0; }
  .ing-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tier-2col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 0 32px; align-items: start; }
  .tier-bands, .tier-note { grid-column: 1; }
  .tier-side { margin-top: 0; grid-column: 2; grid-row: 1 / 3; }
  .goal-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ncards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .policy { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 記事 */
  .a-layout { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 48px; justify-content: center; align-items: start; }
  .a-main .toc { display: none; }
  .a-side { display: block; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .side-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; font-size: .85rem; line-height: 1.6; }
  .side-toc-h { font-weight: 700; margin: 0 0 .4em; }
  .side-toc ol { margin: 0; padding-left: 1.2em; } .side-toc li { margin: .35em 0; }
  .article .related, .article .insta { max-width: 1048px; margin-left: auto; margin-right: auto; }
}
/* ビッグナンバーの「誰の中で」：数字の上に必ず出す */
.bn-item { flex: 1 1 150px; display: flex; flex-direction: column; background: #FCF4E1; border-radius: 12px; padding: 8px 10px 10px; }
.bn-item .bignum { background: none; padding: 0; flex: 1; }
.bn-who { margin: 0 0 2px; font-size: .78rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.45; }
.bn-who::before { content: "対象："; color: var(--ink-muted); font-weight: 400; }
