/* GOOD MEAL MEDIA — v0.4
   Colour: derived from the logo (#173f32 green, #f3c763 mustard). Rules + sources: docs/COLOR_AND_RHYTHM.md
   Rhythm: photo band → text/data band → photo band. Photos are content (food, product, process, place), never decoration. */

:root {
  /* neutrals, tinted toward the brand hue (H≈169) */
  --n0: #ffffff; --n50: #f4f8f6; --n100: #edf1ef; --n200: #dde3e0; --n500: #7a837f; --n600: #5d6662; --n700: #444d49; --n900: #1a211e;
  /* brand green */
  --g50: #ecf9f3; --g100: #d5efe4; --g200: #b2dccb; --g300: #87c3ad; --g700: #07523e; --g900: #173f32; --g950: #002117;
  /* mustard: only on green */
  --m100: #fff0d3; --m300: #f3c763; --m700: #836412;
  /* technology categories: ink on white / light on green / tint behind ink */
  --c-plant: #497101;   --c-plant-l: #b7d799; --c-plant-t: #e8f3de;
  --c-myco: #764aa2;    --c-myco-l: #d8bcfa;  --c-myco-t: #f3eafe;
  --c-precision: #2f60b2; --c-precision-l: #adccfe; --c-precision-t: #e6effe;
  --c-cult: #a13958;    --c-cult-l: #feb2c3;  --c-cult-t: #ffe8ec;
  --c-mol: #046f87;     --c-mol-l: #84d9f3;   --c-mol-t: #d9f4fd;

  --ink: var(--n900); --ink-2: var(--n700); --ink-3: var(--n600);
  --rule: var(--g900); --rule-soft: var(--n200);

  --sans: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  /* three sizes that matter: display / heading / body (NN/g: no more than 3) */
  --fs-0: 12px; --fs-1: 13px; --fs-2: 15px; --fs-3: 17px; --fs-4: 21px; --fs-5: 28px;
  --fs-d: clamp(32px, 4.6vw, 64px);
  --lh-ja: 1.85;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 80px; --s9: 112px;
  --wrap: 1280px; --gutter: 32px;
  --heavy: 6px;
  --tab-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--n0); color: var(--ink); font: 400 var(--fs-2)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
body[data-lang="ja"] { line-height: 1.7; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--g700); }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 0; text-wrap: pretty; word-break: auto-phrase; }
p, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--g700); outline-offset: 2px; }
main:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--g900); color: #fff; padding: var(--s3) var(--s4); z-index: 50; }
.skip:focus { left: var(--s2); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.ext { font-size: .85em; margin-left: 3px; }
.mlabel { display: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.fine { font-size: var(--fs-1); color: var(--ink-3); margin-top: var(--s3); line-height: 1.6; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- photos ---------- */
.ph { position: relative; background: var(--n100); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.r-wide { aspect-ratio: 21 / 9; } .r-land { aspect-ratio: 3 / 2; } .r-sq { aspect-ratio: 1; } .r-4x3 { aspect-ratio: 4 / 3; }
.cap { display: flex; flex-wrap: wrap; gap: 0 var(--s3); margin-top: var(--s2); font-size: var(--fs-0); line-height: 1.5; color: var(--ink-3); }
.cap a { color: inherit; display: inline-block; padding: 15px 0; margin: -15px 0; }
.cap__note { color: var(--ink-2); font-weight: 700; }
.bleed { width: 100%; }
.bleed--cap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.bleed--cap .cap { padding: 0; }
/* originals under 900px are never stretched past their real size (they blur) */
.bleed--small .ph { max-width: min(100%, 560px); }
.bleed .cap { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }

/* ---------- tech label: word + colour, never colour alone ---------- */
.tl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-0); font-weight: 600; line-height: 1.4; }
.tl::before { content: ""; width: 10px; height: 10px; background: currentColor; flex: none; }
.tl--plant-based { color: var(--c-plant); } .tl--mycoprotein { color: var(--c-myco); } .tl--precision-fermentation { color: var(--c-precision); }
.tl--cultivated { color: var(--c-cult); } .tl--molecular-farming { color: var(--c-mol); }
.on-green .tl--plant-based { color: var(--c-plant-l); } .on-green .tl--mycoprotein { color: var(--c-myco-l); } .on-green .tl--precision-fermentation { color: var(--c-precision-l); }
.on-green .tl--cultivated { color: var(--c-cult-l); } .on-green .tl--molecular-farming { color: var(--c-mol-l); }

/* ---------- masthead ---------- */
.masthead { background: var(--n0); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--n200); }
.masthead__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--s6); min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; white-space: nowrap; color: var(--g900); }
.wordmark:hover { color: var(--g900); }
.wordmark__w { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark b { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.wordmark small { font-size: 12px; font-weight: 800; letter-spacing: .2em; margin-top: 2px; color: var(--g700); }
.mark { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--g900); color: #fff; transform: rotate(-8deg); font: 700 31px/1 Georgia, "Times New Roman", serif; }
.mark > span { transform: rotate(8deg) translateY(-3px); }
.mark i { font-style: normal; color: var(--m300); font-size: 27px; }
.mainnav { display: flex; gap: var(--s1); flex: 1; }
.mainnav a { display: inline-flex; align-items: center; min-height: 64px; padding: 0 var(--s3); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.mainnav a:hover { border-bottom-color: var(--g200); color: var(--ink); }
.mainnav a[aria-current="page"] { border-bottom-color: var(--g900); color: var(--g900); }
.tools { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.tool { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }
.tool:hover { background: var(--n50); }
.savedcount { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; background: var(--g900); color: var(--m300); }
.langswitch { display: inline-grid; place-items: center; min-width: 44px; height: 44px; margin-left: var(--s2); border: 1.5px solid var(--g900); color: var(--g900); font-size: var(--fs-1); font-weight: 800; text-decoration: none; }
.langswitch:hover { background: var(--g900); color: #fff; }

/* ---------- shared bits ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: var(--fs-1); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tag { font-weight: 600; color: var(--n700); font-size: var(--fs-0); }
.crumb { font-weight: 700; color: var(--ink); display: inline-block; padding: 12px 2px; margin: -12px 0; }
.cc { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.sub { display: block; margin-top: 2px; font-size: var(--fs-1); font-weight: 400; color: var(--ink-3); line-height: 1.5; }
.status { display: inline-block; padding: 1px 8px; font-size: var(--fs-1); font-weight: 700; line-height: 1.6; white-space: nowrap; border: 1px solid var(--n500); color: var(--ink); background: var(--n0); }
.status--unknown, .status--partial { border: 0; padding: 0; background: none; color: var(--n700); font-weight: 400; text-decoration: underline dotted var(--n500); text-underline-offset: 4px; }
/* free-text statuses (e.g. what the label says) can be long: let them wrap */
.status--unknown { white-space: normal; overflow-wrap: anywhere; }
.status--alt { background: var(--g900); color: #fff; border-color: var(--g900); }
.alt__i { font-size: var(--fs-1); color: var(--ink); }
.status--ok { border: 0; padding: 0; background: none; color: var(--g700); font-weight: 700; }
.status--none { border: 0; padding: 0; color: var(--n700); font-weight: 400; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--s2); }

.block { margin-top: var(--s8); }
.block--near { margin-top: 64px; }
.block--close { margin-top: var(--s7); }
.block--tight { margin-top: var(--s6); }
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.shead { border-top: 1px solid var(--n200); padding-top: var(--s4); }
.shead__t { font-size: var(--fs-4); line-height: 1.25; }
.shead--major { border-top: 0; padding-top: 0; }
.shead--major .shead__t { font-size: var(--fs-5); }
.shead--major .shead__t::before { content: ""; display: block; width: 40px; height: var(--heavy); background: var(--g900); margin-bottom: var(--s3); }
.shead__c { margin-left: var(--s3); font-size: var(--fs-2); font-weight: 700; color: var(--ink-3); }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; white-space: nowrap; color: var(--g700); text-decoration-thickness: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 var(--s5); border: 2px solid var(--g900); color: var(--g900); font-weight: 800; font-size: var(--fs-2); text-decoration: none; cursor: pointer; background: var(--n0); white-space: nowrap; }
.btn--primary { background: var(--g900); color: #fff; }
.btn--primary:hover { background: var(--g950); color: #fff; }
.btn--ghost:hover { background: var(--g50); color: var(--g900); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; min-height: 44px; }

/* ---------- home: 1 hero ---------- */
.hero { padding-top: var(--s7); }
.hero__text > * { max-width: 1040px; }
.hero__t { margin-top: var(--s3); font-size: var(--fs-d); line-height: 1.16; font-weight: 900; }
.hero__t a { text-decoration: none; }
.hero__t a:hover { color: var(--g700); }
.hero__x { margin-top: var(--s4); font-size: var(--fs-3); line-height: var(--lh-ja); color: var(--ink-2); max-width: 44em; }
.hero__go { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s5); }
.hero .bleed { margin-top: var(--s6); }
.hero .ph { aspect-ratio: 21 / 8; max-height: 62vh; }
.hero .ph img { object-position: 50% 55%; }

/* ---------- home: 2 photo grid of stories ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.pcard { position: relative; }
.pcard .ph { aspect-ratio: 4 / 3; }
.pcard__b { margin-top: var(--s3); }
.pcard__t { margin-top: var(--s2); font-size: var(--fs-3); line-height: 1.45; font-weight: 700; }
.pcard__t a { text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; }
.pcard__t a::after { content: ""; position: absolute; inset: 0; }
.pcard:hover .pcard__t { color: var(--g700); text-decoration: underline; }
.pcard:hover img { filter: brightness(.95); }
.pgrid--lead { grid-template-columns: 2fr 1fr 1fr; }
.pgrid--lead .pcard:first-child .pcard__t { font-size: var(--fs-5); line-height: 1.35; }
.pgrid--lead .pcard:first-child { grid-row: span 2; display: flex; flex-direction: column; }
.pgrid--lead .pcard:first-child .ph { aspect-ratio: auto; flex: 1; min-height: 360px; }

/* ---------- home: 3 green band (the database) ---------- */
.band { background: var(--g900); color: #fff; margin-top: var(--s8); }
.band + .block { margin-top: var(--s8); }
.band__in { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: center; }
.band__t { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.25; font-weight: 900; }
.band__x { margin-top: var(--s3); color: var(--g200); font-size: var(--fs-3); line-height: 1.7; }
.band__q { display: flex; margin-top: var(--s5); max-width: 620px; }
.band__q input { flex: 1; min-width: 0; min-height: 56px; padding: 0 var(--s4); border: 0; background: #fff; color: var(--n900); font-size: 16px; border-radius: 0; }
.band__q button { min-height: 56px; padding: 0 var(--s5); border: 0; background: var(--m300); color: var(--g900); font-weight: 900; cursor: pointer; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--g700); }
.nums a { display: block; padding: var(--s4) var(--s3) var(--s2) 0; text-decoration: none; color: #fff; min-height: 44px; }
.nums a + a { padding-left: var(--s4); border-left: 1px solid var(--g700); }
.nums b { display: block; font-size: 32px; line-height: 1; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.nums span { display: block; margin-top: var(--s1); font-weight: 400; font-size: var(--fs-1); color: var(--g200); }
.nums a:hover span { text-decoration: underline; }
.band__tech { display: flex; flex-wrap: wrap; gap: 0 var(--s4); margin-top: var(--s4); }
.band__tech a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.band__tech a:hover .tl { text-decoration: underline; }
.band__tech .tl { font-size: var(--fs-2); }

/* ---------- home: 4 product shelf ---------- */
.shelf { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.shelf .pcard .ph { aspect-ratio: 1; }
.shelf .pcard__t { font-size: var(--fs-2); }
.shelf .sub { margin-top: 0; }

/* ---------- home: 5 eat (photo-led band) ---------- */
.eat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.eat__main .ph { aspect-ratio: 3 / 2; }
.eat__list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--n200); position: relative; }
.eat__list li:first-child { border-top: 0; padding-top: 0; }
.eat__list .ph { aspect-ratio: 1; }
.eat__list h3 { font-size: var(--fs-3); line-height: 1.4; }
.eat__list h3 a { text-decoration: none; }
.eat__list h3 a::after { content: ""; position: absolute; inset: 0; }
.eat__list li:hover h3 { color: var(--g700); text-decoration: underline; }

/* ---------- home: 6 tech strip ---------- */
.techstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
.techstrip .pcard .ph { aspect-ratio: 3 / 4; }
.techstrip .pcard__t { font-size: var(--fs-3); }

/* ---------- home: 7 text list (no photos) ---------- */
.tlist2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); border-top: 2px solid var(--g900); }
.tlist2 li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--n200); }
.tlist2 .n { font-size: var(--fs-1); font-weight: 800; color: var(--ink-3); padding-top: 3px; font-variant-numeric: tabular-nums; }
.tlist2 h3 { font-size: var(--fs-3); line-height: 1.45; }
.tlist2 h3 a { text-decoration: none; }
.tlist2 h3 a:hover { text-decoration: underline; }
.mlist { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--n200); }
.mlist a { display: inline-flex; align-items: baseline; gap: var(--s2); min-height: 56px; padding: var(--s4) var(--s5) var(--s4) 0; margin-right: var(--s5); font-size: var(--fs-4); font-weight: 900; text-decoration: none; }
.mlist a small { font-size: var(--fs-1); font-weight: 700; color: var(--ink-3); }
.mlist a:hover { color: var(--g700); }
/* ロゴ: 各社の色のまま。暗いヘッダー用の白抜きロゴ（is-mono）だけ墨一色にする。大きさは build で面積をそろえる */
.mlist a.mlist__logo { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--s2); min-height: 96px; }
.mlist__logo img { display: block; height: auto; max-width: 176px; }
.mlist__logo img.is-mono { filter: brightness(0); opacity: .88; }

/* ---------- list pages ---------- */
.phead { padding: var(--s7) 0 var(--s5); }
.phead:not(.phead--entity) { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
.phead__row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); }
.phead__t { font-size: var(--fs-d); font-weight: 900; line-height: 1.1; }
.phead__c { font-size: var(--fs-2); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.phead__x { margin-top: var(--s3); font-size: var(--fs-3); color: var(--ink-2); max-width: 44em; line-height: var(--lh-ja); }
.phead--entity .phead__t { margin-top: var(--s3); font-size: clamp(30px, 4vw, 52px); }
.phead__logo { margin-top: var(--s5); }
.phead__logo img { display: block; height: auto; max-width: min(320px, 70vw); }
.phead__logo img.is-mono { filter: brightness(0); opacity: .88; }
/* ロゴを左に大きく、社名は右下に小さく（ロゴと社名が同じ大きさで二重に見えないように） */
.mgrid__id { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); min-height: 64px; margin-bottom: var(--s3); }
.mgrid__logo { display: flex; align-items: center; min-width: 0; }
.mgrid__logo img { display: block; height: auto; max-width: 100%; }
.mgrid .pcard__t.mgrid__name { flex: 0 1 auto; max-width: 40%; margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0; line-height: 1.35; text-align: right; color: var(--ink-2); overflow-wrap: normal; word-break: keep-all; }
.mgrid .pcard__t.mgrid__name a { color: inherit; }
@media (max-width: 860px) {
  .mgrid__id { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: var(--s2); min-height: 0; }
  .mgrid .pcard__t.mgrid__name { max-width: none; text-align: left; font-size: 13px; }
}
.mgrid__logo img.is-mono { filter: brightness(0); opacity: .88; }

.filters { display: grid; grid-template-columns: minmax(0, 1fr) 200px 200px; gap: var(--s3); padding: var(--s4) 0; border-top: 2px solid var(--g900); border-bottom: 1px solid var(--n200); }
.field { position: relative; display: flex; align-items: center; }
.field input, .field select { width: 100%; min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--n500); background: var(--n0); border-radius: 0; font-size: 16px; appearance: none; }
.field input:focus, .field select:focus { border-color: var(--g900); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field--q .ico { position: absolute; left: 12px; pointer-events: none; }
.field--q input { padding-left: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); padding: var(--s4) 0; border-top: 2px solid var(--g900); border-bottom: 1px solid var(--n200); }
.chips__g { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { min-height: 44px; padding: 0 var(--s4); border: 1.5px solid var(--n500); background: var(--n0); font-size: var(--fs-1); font-weight: 800; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--g900); border-color: var(--g900); color: #fff; }
.chips button:hover:not([aria-pressed="true"]) { border-color: var(--g900); background: var(--g50); }
.empty { padding: var(--s6) 0; font-weight: 700; }

/* article index: thumbnails in one aligned column (NN/g: no zigzag) */
.alist .arow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--n200); position: relative; }
.arow .ph { aspect-ratio: 3 / 2; }
.arow__t { margin-top: var(--s2); font-size: var(--fs-4); line-height: 1.4; }
.arow__t a { text-decoration: none; }
.arow__t a::after { content: ""; position: absolute; inset: 0; }
.arow:hover .arow__t { color: var(--g700); text-decoration: underline; }
.arow__x { margin-top: var(--s2); color: var(--ink-2); line-height: 1.7; max-width: 46em; }

/* data tables with a thumbnail column */
.tablewrap { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.dtable thead th { text-align: left; font-size: var(--fs-1); font-weight: 800; padding: var(--s2) var(--s3); border-bottom: 2px solid var(--g900); white-space: nowrap; }
.dtable td, .dtable tbody th { text-align: left; vertical-align: top; padding: var(--s3); border-bottom: 1px solid var(--n200); }
.dtable tbody th { font-weight: 800; font-size: var(--fs-3); }
.dtable tbody th a { text-decoration: none; }
.dtable tbody th a:hover { text-decoration: underline; }
.dtable th:first-child, .dtable td:first-child { padding-left: 0; }
.dtable .thumb { width: 104px; padding-right: 0; }
.dtable .thumb .ph { width: 92px; aspect-ratio: 1; }
.dtable td.num { white-space: nowrap; }
.dtable .pick { width: 44px; padding-right: 0; }
.dtable .act { width: 1%; padding-right: 0; text-align: right; }
.dtable .avail { color: var(--ink-2); font-size: var(--fs-1); max-width: 18em; }
.dtable tr[hidden] { display: none; }
.dtable tr.is-picked { background: var(--g50); }

.check { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--g900); cursor: pointer; }
.check--btn { display: inline-flex; width: auto; gap: var(--s2); }
.savebtn { min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--n500); color: var(--g900); background: var(--n0); font-size: var(--fs-1); font-weight: 800; cursor: pointer; white-space: nowrap; }
.btn.savebtn { padding: 0 var(--s5); font-size: var(--fs-2); border-width: 2px; }
.savebtn__on { display: none; }
.savebtn[aria-pressed="true"] { background: var(--g900); color: #fff; }
.savebtn[aria-pressed="true"] .savebtn__on { display: inline; }
.savebtn[aria-pressed="true"] .savebtn__off { display: none; }

/* makers grid */
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s5); padding-top: var(--s5); }
.mgrid .pcard .ph { aspect-ratio: 3 / 2; }
.mgrid .pcard__t { margin-top: var(--s4); font-size: clamp(28px, 2.6vw, 40px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mgrid .meta { margin-top: var(--s2); font-size: var(--fs-1); }
.mgrid__tech { margin-top: 2px; font-size: var(--fs-0); }
.mgrid .pcard__x { margin-top: var(--s3); color: var(--ink); font-size: var(--fs-3); line-height: 1.75; }
.mgrid .pcard[hidden] { display: none; }
.ph--blank { display: grid; place-items: center; background: var(--g900); }
.ph--blank span { font-size: clamp(28px, 3vw, 40px); font-weight: 900; color: var(--m300); letter-spacing: .02em; padding: var(--s4); text-align: center; line-height: 1.1; }

/* ---------- story ---------- */
.story__head { padding-top: var(--s7); }
.story__head > * { max-width: 1040px; }
.story__t { margin-top: var(--s4); font-size: clamp(30px, 4vw, 54px); line-height: 1.22; font-weight: 900; }
.story__deck { margin-top: var(--s4); font-size: var(--fs-4); line-height: 1.7; color: var(--ink-2); max-width: 38em; }
.story__alt { margin-top: var(--s2); font-size: var(--fs-1); font-weight: 700; }
.story__alt a { display: inline-flex; align-items: center; min-height: 44px; color: var(--g700); }
.story .bleed { margin-top: var(--s6); }
.story .bleed .ph { aspect-ratio: 21 / 9; max-height: 70vh; }
.story__grid { display: grid; grid-template-columns: minmax(0, 720px) 320px; justify-content: space-between; gap: 96px; padding-top: var(--s7); }
.story__body { max-width: 720px; }
.story__body section + section, .story__body .inset + section { margin-top: var(--s7); }
.story__body h2 { font-size: var(--fs-4); line-height: 1.45; }
.story__body h2::before { content: ""; display: block; width: 32px; height: 4px; background: var(--g900); margin-bottom: var(--s3); }
.story__body p { margin-top: var(--s3); font-size: 17px; line-height: var(--lh-ja); }
body[data-lang="en"] .story__body p { line-height: 1.7; font-size: 18px; }
.inset { margin: var(--s7) 0 0; position: relative; }
.story__body .cap { font-size: var(--fs-0); line-height: 1.5; margin-top: var(--s2); }
.pcard__t .tl, .tech__t .tl { font-size: inherit; }
.tech__t .tl::before { width: 16px; height: 16px; }
.pcard__t .tl::before { width: 12px; height: 12px; }
.inset .ph { aspect-ratio: 3 / 2; }
.inset__t { margin-top: var(--s2) !important; }
.inset__k { font-size: var(--fs-1); font-weight: 800; color: var(--ink-3); }
.inset__t { font-size: var(--fs-3) !important; font-weight: 700; }
.inset__t a { text-decoration: none; }
.inset__t a:hover { text-decoration: underline; color: var(--g700); }
.sources { margin-top: var(--s8) !important; padding-top: var(--s4); border-top: var(--heavy) solid var(--g900); }
.sources h2::before { display: none; }
.sources ol { counter-reset: s; margin-top: var(--s3); }
.sources li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; padding: var(--s2) 0; border-bottom: 1px solid var(--n200); font-size: var(--fs-2); font-weight: 700; }
.sources li::before { content: counter(s); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sources li a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.host { grid-column: 2; font-size: var(--fs-1); font-weight: 400; color: var(--ink-3); }
.story__aside { position: relative; }
.story__aside .label { position: sticky; top: 88px; }
/* 記事の右の欄: 目次＋この記事に出てくるもの（空にしない） */
.aside__in { position: sticky; top: 88px; display: grid; gap: var(--s6); }
.aside__h { font-size: var(--fs-1); font-weight: 800; color: var(--g900); padding-bottom: var(--s2); border-bottom: 2px solid var(--g900); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--n200); }
.toc a { display: grid; grid-template-columns: 2em minmax(0, 1fr); align-items: start; min-height: 44px; padding: var(--s2) 0; font-size: 13px; line-height: 1.55; color: var(--ink); text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--g700); font-weight: 800; font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--g700); text-decoration: underline; }
.rel ul { list-style: none; margin: 0; padding: 0; }
.rel li { border-bottom: 1px solid var(--n200); }
.rel a { display: flex; align-items: center; gap: var(--s3); min-height: 64px; padding: var(--s2) 0; text-decoration: none; color: var(--ink); }
.rel__ph { flex: 0 0 64px; width: 64px; height: 64px; background: var(--n100); overflow: hidden; }
.rel__ph img { width: 100%; height: 100%; object-fit: cover; }
.rel__t { display: grid; gap: 2px; min-width: 0; }
.rel__k { font-size: 13px; color: var(--ink-2); }
.rel__n { font-size: var(--fs-2); font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.rel a:hover .rel__n { color: var(--g700); text-decoration: underline; }
.story__fig { margin: 0 0 var(--s7); }
.story__fig .ph { aspect-ratio: 3 / 2; }
.story__fig .cap { margin-top: var(--s2); }
.story__body section { scroll-margin-top: 88px; }
/* ホームの先頭（写真が小さいとき）: 左に見出し、右に縦長の写真 */
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: end; }
.hero--split .hero__text > * { max-width: none; }
.hero--split .hero__t { font-size: clamp(32px, 3.6vw, 52px); }
.hero__fig { margin: 0; }
.hero__fig .ph { aspect-ratio: 4 / 5; max-height: calc(100dvh - 200px); }
.hero__fig .cap { margin-top: var(--s2); }

/* the fact panel */
.label { margin: 0; background: var(--n50); border-top: var(--heavy) solid var(--g900); padding: var(--s3) var(--s4) var(--s4); font-size: var(--fs-2); }
.label__h { font-size: var(--fs-3); font-weight: 800; line-height: 1.2; padding: var(--s1) 0 var(--s3); border-bottom: 2px solid var(--g900); color: var(--g900); }
.label__sub { margin-top: var(--s4); padding-bottom: 4px; font-size: var(--fs-1); font-weight: 800; border-bottom: 2px solid var(--g900); }
.label > div:not(.label__h):not(.label__sub):not(.label__foot):not(.label__go) { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--n200); }
.label dt { font-weight: 800; color: var(--ink-2); }
.label dd { margin: 0; }
.label__foot { padding-top: var(--s3); font-size: var(--fs-1); color: var(--ink-2); line-height: 1.6; }
.label__go { padding-top: var(--s4); }
.label__go .btn { width: 100%; }

/* ---------- entity (maker / product) ---------- */
.entity { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); padding-top: var(--s5); align-items: start; }
.entity__main { min-width: 0; }
.entity__main > .block--tight:first-child { margin-top: 0; }
.entity__side { display: grid; gap: var(--s5); align-content: start; position: sticky; top: 88px; }
.buy { display: grid; gap: var(--s3); }
.buy .btn { width: 100%; }
.buy .fine { margin-top: 0; }
.buy__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.buy__row .btn { padding: 0 var(--s3); }

/* ---------- places ---------- */
.mapsplit { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: var(--s6); padding-top: var(--s5); align-items: start; }
.mapsplit > * { min-width: 0; }
.plist--select .prow { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); padding: 10px var(--s3); border-bottom: 1px solid var(--n200); border-left: 4px solid transparent; scroll-margin-top: 96px; }
.pnum { width: 32px; height: 32px; display: grid; place-items: center; background: var(--g900); color: #fff; font: 700 var(--fs-1)/1 var(--sans); font-variant-numeric: tabular-nums; }
.prow[data-vegan="false"] .pnum { background: #fff; color: var(--g900); box-shadow: inset 0 0 0 2px var(--g900); }
.prow.is-on .pnum { background: var(--m300); color: var(--g950); box-shadow: inset 0 0 0 2px var(--g900); }
.prow__chk { display: block; margin-top: 2px; font-size: var(--fs-0); color: var(--n600); }
.map .map__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__fail { position: absolute; inset: auto var(--s4) var(--s4) var(--s4); background: #fff; padding: var(--s3); font-size: var(--fs-1); }
.pin { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.pin span { width: 28px; height: 28px; display: grid; place-items: center; background: var(--g900); color: #fff; font: 700 12px/1 var(--sans); box-shadow: 0 0 0 2px #fff; }
.pin--some span { background: #fff; color: var(--g900); box-shadow: inset 0 0 0 2px var(--g900), 0 0 0 2px #fff; }
.pin.is-on span { background: var(--m300); color: var(--g950); box-shadow: inset 0 0 0 2px var(--g900), 0 0 0 2px #fff; }
.pin.is-on { z-index: 2; }
.pin[hidden] { display: none !important; }
.plist--select .prow.is-on { border-left-color: var(--g900); background: var(--g50); }
.plist--select .prow[hidden] { display: none; }
.prow__t .linkbtn { font-weight: 800; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; color: var(--ink); }
.prow__t .linkbtn:hover { text-decoration: underline; color: var(--g700); }
.prow__x { margin-top: 2px; color: var(--ink-2); font-size: var(--fs-2); }
.prow__addr { margin-top: 4px; font-size: var(--fs-1); color: var(--ink-3); }
.mapsplit__map { position: sticky; top: 88px; }
.map { position: relative; background: var(--n100); aspect-ratio: 1 / 1; max-height: calc(100dvh - 88px - 220px); width: 100%; min-height: 320px; border-top: var(--heavy) solid var(--g900); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map .maplibregl-ctrl-group button { width: 44px; height: 44px; }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding-top: var(--s3); }
.map__name { flex: 1 1 100%; font-size: var(--fs-4); font-weight: 900; }
.map__desc { flex: 1 1 100%; font-size: var(--fs-2); line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.map__addr { flex: 1 1 100%; font-size: 13px; color: var(--ink-3); }

/* ---------- tech ---------- */
.techlist .tech { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); padding: var(--s7) 0; border-bottom: 1px solid var(--n200); scroll-margin-top: 80px; }
.techlist .tech .ph { aspect-ratio: 3 / 2; }
.tech__t { margin-top: var(--s2); font-size: var(--fs-5); line-height: 1.3; }
.tech__en { display: block; font-size: var(--fs-1); font-weight: 700; color: var(--ink-3); margin-top: 2px; }
.tech__x { margin-top: var(--s3); font-size: var(--fs-3); line-height: var(--lh-ja); max-width: 40em; }
.kv { margin: var(--s4) 0 0; }
.kv > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--n200); }
.kv dt { font-size: var(--fs-1); font-weight: 800; padding-top: 2px; }
.kv dd { margin: 0; line-height: 1.7; }
.kv--wide { margin-top: var(--s5); max-width: 920px; }
.kv--wide > div { grid-template-columns: 10em minmax(0, 1fr); padding: var(--s4) 0; }
.kv--wide dt { font-size: var(--fs-3); }
.checklist li { position: relative; padding: var(--s3) 0 var(--s3) 30px; border-bottom: 1px solid var(--n200); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 14px; border: 2px solid var(--n500); }
.checklist--on li::before { background: var(--g900); border-color: var(--g900); box-shadow: inset 0 0 0 2px var(--n0); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
.credits li { padding: var(--s2) 0; border-bottom: 1px solid var(--n200); font-size: var(--fs-1); color: var(--ink-2); }
.credits a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- compare tray & sheet ---------- */
.has-tray main { padding-bottom: 96px; }
.tray { position: fixed; left: 0; right: 0; bottom: var(--tab-h); z-index: 30; background: var(--g900); color: #fff; }
.tray__in { max-width: var(--wrap); margin: 0 auto; padding: var(--s3) var(--gutter); display: flex; align-items: center; gap: var(--s3); }
.tray__l { flex: 1; min-width: 0; font-size: var(--fs-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray__l b { font-variant-numeric: tabular-nums; margin-right: var(--s2); color: var(--m300); }
.tray .btn--ghost { background: transparent; color: #fff; border-color: var(--g300); }
.tray .btn--ghost:hover { background: var(--g950); }
.tray .btn--primary { background: var(--m300); color: var(--g900); border-color: var(--m300); }
.sheet { width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); padding: var(--s5); border: 0; border-top: var(--heavy) solid var(--g900); }
.sheet::backdrop { background: rgb(0 33 23 / .55); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); border-bottom: 2px solid var(--g900); padding-bottom: var(--s3); }
.sheet__head h2 { font-size: var(--fs-5); }
.sheet__body { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; margin-top: var(--s3); font-size: var(--fs-2); }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--n200); min-width: 180px; }
.cmp thead th { font-size: var(--fs-3); font-weight: 900; border-bottom: 2px solid var(--g900); }
.cmp tbody th { font-size: var(--fs-1); font-weight: 800; min-width: 110px; padding-left: 0; position: sticky; left: 0; background: var(--n0); }

.is-saved-page [data-saved-list] tbody tr { display: none; }
.is-saved-page [data-saved-list] tbody tr.is-saved { display: table-row; }

/* ---------- footer & tab bar ---------- */
.foot { margin-top: var(--s9); background: var(--g950); color: var(--g200); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: var(--s7) var(--gutter); display: grid; gap: var(--s4); }
.foot__mission { display: flex; align-items: center; gap: var(--s4); font-size: var(--fs-4); font-weight: 900; color: #fff; word-break: auto-phrase; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; color: #fff; }
.foot__nav a:hover { color: var(--m300); }
.foot__fine { font-size: var(--fs-1); color: var(--g200); }
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid--lead .pcard:first-child { grid-column: 1 / -1; grid-row: auto; }
  .pgrid--lead .pcard:first-child .ph { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mainnav a { padding: 0 var(--s2); }
  .band__in { grid-template-columns: 1fr; gap: var(--s6); }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; --tab-h: calc(60px + env(safe-area-inset-bottom)); --fs-d: clamp(28px, 7.4vw, 40px); --fs-5: 24px; --s9: 72px; --s8: 56px; }
  body { padding-bottom: var(--tab-h); }
  .mainnav { display: none; }
  .masthead__in { gap: var(--s3); min-height: 56px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: var(--tab-h); padding-bottom: env(safe-area-inset-bottom); background: var(--n0); border-top: 1px solid var(--n200); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; font-size: 12px; font-weight: 800; text-decoration: none; border-top: 3px solid transparent; }
  .tabbar a span { white-space: nowrap; }
  .tabbar a[aria-current="page"] { border-top-color: var(--g900); color: var(--g900); background: var(--g50); }
  .hero { padding-top: var(--s5); }
  .hero .bleed { margin-top: var(--s4); }
  .hero .ph { aspect-ratio: 4 / 3; max-height: none; }
  .hero__x { font-size: var(--fs-2); }
  .hero__go .btn { flex: 1 1 100%; }
  .pgrid, .pgrid--lead { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s3); }
  .pcard__t { font-size: var(--fs-2); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); }
  .eat { grid-template-columns: minmax(0, 1fr); }
  .eat__list li { grid-template-columns: 96px minmax(0, 1fr); }
  .techstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); gap: var(--s3); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) var(--s2); }
  .techstrip .pcard { flex: 0 0 62%; scroll-snap-align: start; }
  .tlist2 { grid-template-columns: 1fr; }
  .mlist a { font-size: var(--fs-3); margin-right: var(--s4); padding-right: var(--s3); }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums a:nth-child(3) { border-left: 0; padding-left: 0; }
  .nums a:nth-child(n+3) { border-top: 1px solid var(--g700); }
  .band__in { padding: var(--s7) var(--gutter); }
  .story__head { padding-top: var(--s5); }
  .story .bleed .ph { aspect-ratio: 4 / 3; }
  .story__grid, .entity, .mapsplit, .techlist .tech { grid-template-columns: 1fr; gap: var(--s5); }
  .story__aside .label, .entity__side, .mapsplit__map { position: static; }
  .mapsplit__map { order: -1; }
  .story__deck { font-size: var(--fs-3); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field--q { grid-column: 1 / -1; }
  .alist .arow { grid-template-columns: 112px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; }
  .arow .ph { aspect-ratio: 1; }
  .arow__t { font-size: var(--fs-3); }
  .arow__x { display: none; }
  .mgrid { grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s3); }
  .mgrid .pcard__t { font-size: 24px; }
  .mgrid .pcard__x { font-size: var(--fs-2); line-height: 1.7; }
  .duo { grid-template-columns: 1fr; gap: 0; }
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td, .dtable tbody th { display: block; }
  .dtable tr { position: relative; padding: var(--s3) 0 var(--s3) 100px; min-height: 112px; border-bottom: 1px solid var(--n200); }
  .dtable td, .dtable tbody th { padding: 2px 0; border: 0; }
  .dtable tr[hidden] { display: none; }
  .dtable .thumb { position: absolute; left: 0; top: var(--s3); width: 88px; }
  .dtable .thumb .ph { width: 88px; }
  .dtable .pick { position: absolute; left: 22px; top: calc(var(--s3) + 92px); width: 44px; }
  .dtable .act { width: auto; text-align: left; padding-top: var(--s2); }
  .dtable td.num { display: inline-block; margin-right: var(--s3); color: var(--ink-3); font-size: var(--fs-1); }
  .mlabel { display: inline; }
  .dtable .avail, .dtable td .sub { display: none; }
  .dtable tr:has(.pick) { min-height: 150px; }
  .inset { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .inset .cap, .inset .inset__t { padding: 0 var(--gutter); }
  .band + .block, .band { margin-top: 96px; }
  .is-saved-page [data-saved-list] tbody tr.is-saved { display: block; }
  .tray { bottom: var(--tab-h); }
  .tray__in .btn { min-height: 44px; padding: 0 var(--s3); }
  .has-tray main { padding-bottom: 80px; }
  .kv > div, .kv--wide > div { grid-template-columns: 1fr; gap: 2px; }
  .label > div:not(.label__h):not(.label__sub):not(.label__foot):not(.label__go) { grid-template-columns: 6.5em minmax(0, 1fr); }
  .sheet { padding: var(--s4); width: calc(100vw - 16px); }
  .cmp th, .cmp td { min-width: 132px; }
  .cmp tbody th { min-width: 84px; max-width: 84px; }
  .chips { gap: var(--s2); }
  .plist--select .prow { grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); }
  .map { aspect-ratio: 4 / 5; max-height: 72dvh; }
}
@media (max-width: 380px) {
  .wordmark b { font-size: 15px; }
  .mark { width: 34px; height: 34px; font-size: 27px; }
  .filters { grid-template-columns: 1fr; }
  .pgrid, .pgrid--lead, .mgrid { gap: var(--s4) var(--s2); }
}

/* ---------- dual-screen (Surface Duo / foldables) ---------- */
@media (horizontal-viewport-segments: 2) {
  :root { --seg-l: env(viewport-segment-width 0 0, 50vw); --seam: calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw)); --col: calc(var(--seg-l) - 32px); --col2: calc(100vw - var(--seg-l) - var(--seam) - 32px); --gap2: calc(var(--seam) + 32px); }
  body { padding-bottom: 0; }
  .tabbar { right: auto; width: var(--seg-l); }
  .tray { right: auto; width: var(--seg-l); }
  .wrap { max-width: none; padding-left: 16px; padding-right: 16px; }
  .hero { display: grid; grid-template-columns: var(--col) var(--col2); column-gap: var(--gap2); padding-left: 16px; padding-right: 16px; }
  .hero .bleed { margin-top: 0; }
  .hero .bleed .cap { padding: 0; }
  .hero .ph { aspect-ratio: 4 / 3; }
  .chips { display: grid; grid-template-columns: var(--col) var(--col2); column-gap: var(--gap2); }
  .chips__g { flex-wrap: wrap; }
  .pgrid, .pgrid--lead, .mgrid, .shelf, .techstrip, .tlist2, .eat, .duo { grid-template-columns: var(--col) var(--col2); column-gap: var(--gap2); }
  .pgrid--lead .pcard:first-child { grid-column: auto; }
  .techstrip { display: grid; overflow: visible; margin: 0; padding: 0; }
  .techstrip .pcard { flex: none; }
  .band__in { grid-template-columns: var(--col) var(--col2); column-gap: var(--gap2); padding-left: 16px; padding-right: 16px; }
  .phead--entity > * { max-width: var(--col); }
  /* first screen: text on the left screen, the photo on the right screen */
  .is-home main, .story { display: grid; grid-template-columns: var(--seg-l) minmax(0, 1fr); column-gap: var(--seam); align-items: start; }
  .is-home main > *, .story > * { grid-column: 1 / -1; min-width: 0; }
  .is-home main > .hero { grid-column: 1; display: block; padding: var(--s7) 0 0; }
  .is-home main > .hero .bleed { margin-top: var(--s5); }
  .is-home main > .hero .bleed .cap { padding: 0 16px; }
  .is-home main > .hero + .block { grid-column: 2; margin-top: var(--s7); padding: 0 16px; }
  .is-home main > .hero + .block .pgrid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .is-home main > .hero + .block .pgrid .pcard:first-child { grid-column: 1 / -1; }
  .is-home main > .hero + .block .pgrid .pcard:first-child .ph { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .story > .story__head { grid-column: 1; padding-left: 16px; padding-right: 16px; }
  .story > .bleed { grid-column: 2; margin-top: var(--s7); }
  .story > .bleed .ph { aspect-ratio: 4 / 3; }
  .story > .bleed .cap { padding: 0 16px 0 0; }
  .story__grid, .entity, .mapsplit, .techlist .tech { grid-template-columns: var(--col) var(--col2); column-gap: var(--gap2); }
  .story__aside .label, .entity__side, .mapsplit__map { position: sticky; }
  .mapsplit__map { order: 0; }
  .alist .arow { grid-template-columns: 112px minmax(0, calc(var(--col) - 136px)); }
}
@media (vertical-viewport-segments: 2) {
  .masthead { position: static; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .chips button, .savebtn, .pcard img { transition: background-color .12s ease, filter .2s ease; }
}
@media print {
  .masthead, .tabbar, .tray, .foot__nav { display: none; }
}

/* photos inside a story: after a section, as wide as the text column, caption = what it shows + credit */
.bfig { margin: var(--s5) 0 var(--s6); }
.bfig .ph { aspect-ratio: 3 / 2; }
.bfig .cap { margin-top: var(--s2); }
.bfig__alt { flex-basis: 100%; color: var(--ink-2); font-size: var(--fs-1); }
/* 引用の商品画像: 本文が主・画像は従。切り抜かず小さく、白地のまま */
.bfig--quote { max-width: 200px; margin: 0 0 var(--s4); }
@media (min-width: 861px) { .bfig--quote { float: right; width: 180px; margin: var(--s1) 0 var(--s3) var(--s5); } .story__body section:has(.bfig--quote) { display: flow-root; } }
.bfig--quote .ph { aspect-ratio: auto; background: #fff; }
.bfig--quote .ph img { width: 100%; height: auto; object-fit: contain; }
.bfig--quote .bfig__alt { display: none; }

/* map card: opens on a pin, square like the rest of the site */
.maplibregl-popup-content { border-radius: 0; padding: 0; box-shadow: 0 2px 12px rgb(0 0 0 / .18); border-top: 4px solid var(--g900); font: inherit; }
.maplibregl-popup-close-button { width: 44px; height: 44px; font-size: 24px; line-height: 1; color: var(--ink-2); }
.pop { padding: var(--s4); }
.pop__m { font-size: var(--fs-0); color: var(--ink-3); padding-right: 40px; }
.pop__t { margin-top: var(--s1); font-size: var(--fs-3); font-weight: 900; line-height: 1.3; padding-right: 32px; }
.pop__alt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: var(--s3); font-size: var(--fs-1); font-weight: 700; color: var(--ink); }
.pop__d { margin-top: var(--s2); font-size: var(--fs-1); line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pop__f { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: var(--s2); font-size: var(--fs-0); color: var(--g700); font-weight: 700; }
.pop__go { display: flex; gap: var(--s2); margin-top: var(--s3); }
.pop__go .btn { flex: 1; min-height: 44px; justify-content: center; }
/* メーカーのカードは全体が押せる（社名を小さくしたので押し場所を広げる） */
.mgrid .pcard { position: relative; }
.mgrid .pcard__t a::after { content: ""; position: absolute; inset: 0; }

/* ホームのメーカー欄: ロゴだけを罫線なしで並べる（founder 2026-11-24） */
.mlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); align-items: center; column-gap: var(--s6); row-gap: var(--s4); border-top: 0; }
.mlist a, .mlist a.mlist__logo { margin: 0; padding: var(--s3) 0; min-height: 88px; align-items: center; justify-content: flex-start; }
@media (max-width: 560px) { .mlist { grid-template-columns: repeat(2, 1fr); column-gap: var(--s5); } .mlist a, .mlist a.mlist__logo { min-height: 72px; } }

/* 2026-11-27 公開後の詰め（Director の講評）: 基本の規則より後ろに置く */
@media (max-width: 1180px) {
  .story__grid { grid-template-columns: minmax(0, 720px); gap: var(--s7); }
  .toc { display: none; }
  .aside__in { position: static; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero__fig .ph { aspect-ratio: 3 / 2; max-height: none; }
  .story__fig { margin-bottom: var(--s6); }
}
.plist--select .prow .flags { margin-top: 4px; }
.plist--select .prow .meta { font-size: 13px; }
@media (horizontal-viewport-segments: 2) {
  .story__grid { grid-template-columns: var(--col) var(--col2); column-gap: var(--gap2); justify-content: start; }
  .toc { display: block; }
  .aside__in { position: sticky; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__fig .ph { aspect-ratio: 3 / 2; }
}
/* メーカー名のリンクを押せる高さ 44px に */
.mgrid__name a { display: inline-flex; align-items: center; min-height: 44px; }
/* 2 周目（Director 再講評）: 右欄は関連を流し、目次だけ画面に留める */
.aside__in { position: static; }
.toc { position: sticky; top: 88px; max-height: calc(100dvh - 96px); overflow-y: auto; }
/* 店の行: 食事の札は 1 行目の後ろ、代替肉の行は 1 行で切る */
.mflag { color: var(--n700); text-decoration: underline dotted var(--n500); text-underline-offset: 4px; white-space: nowrap; }
.mflag--ok { color: var(--g700); font-weight: 700; text-decoration: none; }
.flags--alt { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.flags--alt > * { min-width: 0; }
.flags--alt > :last-child { overflow: hidden; text-overflow: ellipsis; }
/* 編集方針: 表と罫線の幅をそろえ、1 行を読みやすい長さに */
.kv--wide > div { grid-template-columns: 11.5em minmax(0, 1fr); }
.kv--wide dd { max-width: 40em; }
html[lang="en"] .kv--wide dd { max-width: 65ch; }
@media (horizontal-viewport-segments: 2) {
  .masthead__in { gap: var(--s6); }
  .mainnav { gap: 0; }
  .mainnav a { padding: 0 var(--s2); }
}
@media (max-width: 1100px) { .mainnav a { min-width: 44px; justify-content: center; } }
/* 目次が右欄の高さいっぱいを使えるように（sticky の効く範囲を記事の終わりまで） */
.story__aside .aside__in { height: 100%; display: flex; flex-direction: column; gap: var(--s6); }
@media (horizontal-viewport-segments: 2) {
  .masthead__in { gap: var(--s5); }
  .mainnav a { padding: 0 6px; }
}
/* 3 周目: 札は縮ませず、切るのは品名だけ */
.flags--alt .status--alt { flex: none; }
.flags--alt .alt__i { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow__t .linkbtn { text-align: left; }
/* 編集方針: 狭い画面では語の下に説明を積む */
@media (max-width: 600px) {
  .kv--wide > div { grid-template-columns: 1fr; gap: 6px; }
  .kv--wide dd { max-width: none; }
}
/* パンくずを押せる幅に */
.crumb { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.prow__t .linkbtn { display: block; width: 100%; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
/* 製品の一覧: 写真が主役のグリッド（本人 2026-11-27「見やすい・インパクト・明快・明瞭・シンプル」、Director 講評で 2 列に） */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s6); margin-top: var(--s6); }
.fgrid--small { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); margin-top: var(--s8); padding-top: var(--s6); border-top: 1px solid var(--n200); }
.fcard[hidden] { display: none; }
.fcard__media { position: relative; }
.fcard__ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--n100); }
.fcard__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.fcard:hover .fcard__ph img { transform: scale(1.03); }
.fcard__note { position: absolute; right: 0; bottom: 0; padding: 4px 8px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); }
.fcard__ph--logo { display: flex; align-items: center; justify-content: center; background: var(--n50); }
.fcard__ph--logo img { width: auto; height: auto; max-width: 50%; max-height: 30%; object-fit: contain; }
.fcard:hover .fcard__ph--logo img { transform: none; }
.fcard__ph--name { display: flex; align-items: flex-end; padding: var(--s5); background: var(--g900); color: #fff; text-decoration: none; }
.fcard__ph--name span { font-size: 24px; font-weight: 900; line-height: 1.25; overflow-wrap: anywhere; }
.fcard__k { margin-top: var(--s4); font-size: 13px; }
.fcard__row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-top: var(--s1); }
.fcard__t { font-size: 32px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; min-width: 0; }
.fgrid--small .fcard__t { font-size: 20px; }
.fcard__t a { display: block; padding: 6px 0; text-decoration: none; color: var(--ink); }
.fcard__t a:hover { color: var(--g700); text-decoration: underline; }
.fcard__m { color: var(--ink-2); font-size: var(--fs-2); }
.fcard__save { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.fcard__save[aria-pressed="true"] { color: var(--g900); }
.fcard__save[aria-pressed="true"] .ico { fill: currentColor; }
.fcard__cmp { display: none; position: absolute; top: 8px; left: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; background: #fff; cursor: pointer; }
.fcard__cmp input { width: 22px; height: 22px; accent-color: var(--g900); }
[data-list].is-cmp .fcard__cmp { display: flex; }
.fcard.is-picked .fcard__ph { outline: 4px solid var(--m300); outline-offset: -4px; }
.fmode { min-height: 44px; margin-right: var(--s3); }
.fmode[aria-pressed="true"] { background: var(--g900); color: #fff; }
@media (max-width: 1100px) { .fgrid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fcard__t { font-size: 26px; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; gap: var(--s6); } .fgrid--small { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fcard__t { font-size: 24px; } .fgrid--small .fcard__t { font-size: 17px; } }
@media (horizontal-viewport-segments: 2) { .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fcard__save[aria-pressed="true"] { background: none; }
.fcard__t a { padding: 8px 0; min-height: 44px; }
