[hidden] { display: none !important; }
/* レイアウト：街頭アンケートの「シールを貼るボード」が主役。期間の行×食べた/やめたの列に丸シールが並ぶ。縁どり＋下影のシール風カード */
:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --paper: #fffdf7;
  --sunk: #f4f7fa;
  --ink: #1f2636;
  --muted: #667085;
  --edge: #1f2636;
  --line: #d9e1ea;
  --sun: #ffd54a;
  --sun-soft: #fff3c4;
  --ate: #17a567;
  --toss: #f05a46;
  --devil: #8a6cf2;
  --warn-bg: #fff3c4;
  --warn-ink: #6b4d00;
  --ad: #e3e9f0;
  --link: #1769d1;
  --mockbar: #1b1f2e;
  --mockbar-ink: #e9ecff;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Outfit", "Zen Maru Gothic", sans-serif;
  --r: 22px;
  --r-sm: 14px;
  --pop: 0 3px 0 var(--edge);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121722; --surface: #1b2230; --paper: #1f2737; --sunk: #232b3b; --ink: #ecf0f7; --muted: #a3adbf; --edge: #05070c; --line: #2f3a4d;
    --sun: #ffd54a; --sun-soft: #3a3214; --ate: #3fd396; --toss: #ff8a76; --devil: #a68bff;
    --warn-bg: #3a3214; --warn-ink: #f6dc8a; --ad: #1b2230; --link: #7db4ff; --mockbar: #2a3150; --mockbar-ink: #e9ecff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121722; --surface: #1b2230; --paper: #1f2737; --sunk: #232b3b; --ink: #ecf0f7; --muted: #a3adbf; --edge: #05070c; --line: #2f3a4d;
  --sun: #ffd54a; --sun-soft: #3a3214; --ate: #3fd396; --toss: #ff8a76; --devil: #a68bff;
  --warn-bg: #3a3214; --warn-ink: #f6dc8a; --ad: #1b2230; --link: #7db4ff; --mockbar: #2a3150; --mockbar-ink: #e9ecff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 792px; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; line-height: 1.4; margin: 0; font-family: var(--font-display); font-weight: 900; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* モック用の案内バー（本番には出ない） */

/* ロゴ */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo svg.word { width: auto; height: 36px; }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo svg.word { width: min(100%, 600px); height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo-sheet { display: grid; gap: 16px; }
.logo-sheet .card { gap: 10px; }
.logo-sheet svg.word { width: min(100%, 520px); height: auto; }
.logo-sheet svg.mark { width: 96px; }
.logo-opt { gap: 12px; }
.lo-head { display: flex; align-items: center; gap: 10px; font-size: 17px; font-family: var(--font-display); }
.lo-no { white-space: nowrap; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); border: 2px solid var(--edge); display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; font-size: 14px; color: #2b2100; }
.lo-big { display: grid; place-items: center; padding: 14px 0; background: var(--bg); border-radius: 14px; }
.lo-big svg.lg-alt { width: min(100%, 420px); height: auto; }
.lo-big svg.lg-alt:not(.wide) { width: min(70%, 220px); }
.lo-big svg.word { width: min(100%, 420px); height: auto; }
.logo svg.word.main { height: 30px; }
.logo svg.wm { height: 38px; width: auto; }
.hero-logo { width: 100%; margin: -6px 0 2px; }
.hero-logo svg.wm { width: 100%; height: auto; display: block; }
@media (max-width: 420px) { header.site .logo svg.wm { height: 32px; } }
.hero-logo svg.word.main { width: min(100%, 520px); }
.lo-small { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1.5px dashed var(--line); }
.lo-small span { font-family: var(--font-num); font-weight: 800; color: var(--muted); width: 14px; }
.lo-small svg, .lo-small svg.word, .lo-small svg.lg-alt { height: 40px; width: auto; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--edge); }
.wm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lo-big svg.wm { width: min(100%, 380px); height: auto; max-height: 170px; }
.lo-big svg.wm.sq { width: auto; height: 150px; }
.lo-small svg.wm { height: 38px; width: auto; max-width: 80%; }
.logo .word { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: .02em; line-height: 1; display: block; }
.logo .word i { font-style: normal; color: var(--toss); }
.logo .word small { font-size: .74em; color: var(--muted); margin-right: 1px; }
.logo .sub { display: block; font-family: var(--font-body); font-size: 9px; font-weight: 700; letter-spacing: .2em; color: var(--muted); margin-top: 3px; }

/* ヘッダー */
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); border-bottom: 2px solid var(--edge); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--surface); }
header.site .wrap { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.search { position: relative; flex: 1; min-width: 0; }
.search .field-wrap { position: relative; }
.search svg.icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; border: 2px solid var(--line); background: var(--sunk); color: var(--ink); border-radius: 999px; padding: 8px 14px 8px 40px; font: inherit; font-size: 14px; transition: border-color .15s, background .15s; }
.search input:focus { outline: none; border-color: var(--edge); background: var(--surface); }
.btn.hdr-post { display: none; }
@media (min-width: 720px) { .btn.hdr-post { display: inline-flex; } }
@media (max-width: 420px) { header.site .logo svg.word { height: 30px; } }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--ink); border: 2px solid var(--edge); border-radius: 16px; box-shadow: 0 4px 0 var(--edge); list-style: none; margin: 0; padding: 6px; z-index: 50; text-align: left; }
.suggest li :is(button,a) { width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.suggest li :is(button,a):hover, .suggest li :is(button,a):focus-visible { background: var(--sun-soft); }
.suggest .sthumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; flex: none; }
.suggest .sthumb > * { width: 100%; height: 100%; }
.suggest .sname { flex: 1; font-weight: 700; font-size: 14px; }
.suggest .add { color: var(--link); font-weight: 700; font-size: 14px; padding: 10px 8px; }

main { padding-block: 0 56px; display: grid; gap: 40px; }
.section { display: grid; gap: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(20px, 2.8vw, 24px); }
.section-head .sub { color: var(--muted); font-size: 13px; }

.notice { display: flex; gap: 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; line-height: 1.7; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.notice a { color: inherit; font-weight: 700; }
.notice p { margin: 0; }
.notice p + p { margin-top: 4px; font-weight: 700; }
.ad { background: var(--ad); border-radius: var(--r-sm); color: var(--muted); font-size: 11px; text-align: center; padding-block: 30px; letter-spacing: .12em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--sun); color: #2b2100; border: 2px solid var(--edge); border-radius: 999px; padding: 12px 24px; font-family: var(--font-display); font-weight: 900; font-size: 16px; text-decoration: none; box-shadow: var(--pop); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--edge); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn .seal { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7) 0 20%, transparent 22%), var(--toss); border: 1.5px solid var(--edge); flex: none; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.sm { padding: 7px 16px; font-size: 14px; }
.btn.block { width: 100%; }

/* 写真・イラスト */
.ph { position: relative; overflow: hidden; background: var(--sunk); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.illus { display: grid; place-items: center; }
.ph.illus span { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 6vw, 44px); color: rgba(255,255,255,.95); }
.ph.illus i { position: absolute; right: 8px; bottom: 6px; font-style: normal; font-size: 10px; color: rgba(255,255,255,.9); }
.kind { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 0 7px; line-height: 1.8; border: 1.5px solid currentColor; white-space: nowrap; font-family: var(--font-body); }
.kind.k-s { color: #2f6fd0; }
.kind.k-c { color: #c2410c; }
.kind.k-m { color: var(--muted); }

/* 丸シール */
.dots { display: flex; flex-wrap: wrap; gap: 3px; align-content: flex-start; min-width: 0; }
.dot { --c: var(--ate); width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.6) 0 16%, transparent 18%), var(--c); box-shadow: 0 1px 0 rgba(0,0,0,.28), inset 0 -1px 0 rgba(0,0,0,.12); transform: translate(var(--x, 0), var(--y, 0)); flex: none; }
.dot.t { --c: var(--toss); }
.dots .more-n { font-family: var(--font-num); font-weight: 700; font-size: 11px; color: var(--muted); align-self: center; margin-left: 2px; }
.seal-lg { --c: var(--ate); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 14px; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.45) 0 14%, transparent 16%), var(--c); box-shadow: 0 2px 0 rgba(0,0,0,.3), inset 0 -2px 0 rgba(0,0,0,.12); transform: rotate(-8deg); }
.seal-lg.t { --c: var(--toss); transform: rotate(6deg); }
.seal-sm { --c: var(--ate); display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; color: var(--ate); }
.seal-sm::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.6) 0 16%, transparent 18%), var(--c); box-shadow: 0 1px 0 rgba(0,0,0,.28); }
.seal-sm.t { color: var(--toss); --c: var(--toss); }

/* アンケートボード（食品ページの主役） */
.board { background: var(--paper); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--pop); overflow: hidden; }
.board-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 12px 16px; border-bottom: 2px solid var(--edge); background: var(--surface); }
.board-title b { font-family: var(--font-display); font-weight: 900; font-size: 17px; }
.board-title small { color: var(--muted); font-size: 12px; }
.bgrid { display: grid; grid-template-columns: clamp(84px, 25%, 104px) minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 640px) { .bgrid { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); } }
.bhead, .brow { display: contents; }
.bhead > span { padding: 8px 10px; font-family: var(--font-display); font-weight: 900; font-size: 15px; text-align: center; border-bottom: 2px solid var(--edge); }
.bhead > span:first-child { font-family: var(--font-body); font-size: 11px; font-weight: 700; color: var(--muted); display: grid; place-items: center; }
.bhead .a { background: var(--ate); color: #fff; border-left: 2px solid var(--edge); }
.bhead .t { background: var(--toss); color: #fff; border-left: 2px solid var(--edge); }
.brow > button { background: none; border: 0; border-bottom: 1.5px dashed var(--line); min-width: 0; cursor: pointer; }
.bper { padding: 10px 6px; display: grid; align-content: center; justify-items: center; text-align: center; }
.bper b { font-family: var(--font-display); font-weight: 900; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; max-width: 100%; }
.bper small { font-size: 9px; color: var(--muted); line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; max-width: 100%; }
.bper .open-hint { max-width: 100%; font-size: 11px; color: var(--ink); font-weight: 700; margin-top: 4px; padding: 2px 8px; border: 1.5px solid var(--edge); border-radius: 999px; background: var(--sun-soft); white-space: nowrap; }
.bper.has { cursor: pointer; }
/* スマホ：体験談○件を2行に（「体験談」／「41件 ▼」）。幅が広いときは1行 */
@media (max-width: 639px) { .bper .open-hint { white-space: pre-line; font-size: 10px; line-height: 1.35; padding: 2px 6px; border-radius: 10px; } .bper b { font-size: 15px; } }
.bper.has:hover .open-hint, .bper[aria-expanded="true"] .open-hint { background: var(--sun); }
.bcell { padding: 10px; border-left: 2px solid var(--edge) !important; display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; text-align: left; }
.bcell .cnt { font-family: var(--font-num); font-weight: 800; font-size: 18px; line-height: 1; flex: none; }
.bcell.a .cnt { color: var(--ate); }
.bcell.t .cnt { color: var(--toss); }
.bcell .cnt.zero { color: var(--muted); opacity: .5; font-size: 14px; }
.brow:hover > button { background: color-mix(in srgb, var(--sun) 14%, transparent); }
.bdetail { grid-column: 1 / -1; background: var(--surface); border-bottom: 1.5px dashed var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.vote { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.vote .who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.vote .det { color: var(--muted); }
.vote .c { flex-basis: 100%; margin: 0 0 0 30px; background: var(--sunk); border-radius: 4px 12px 12px 12px; padding: 6px 10px; font-size: 13px; }
.av { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; flex: none; }

/* 天使と悪魔 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.chara { display: grid; justify-items: center; gap: 14px; text-align: center; }
.chara svg { width: clamp(104px, 24vw, 150px); height: auto; overflow: visible; }
.chara .say { position: relative; background: var(--surface); border: 2px solid var(--edge); border-radius: 16px; padding: 6px 12px; font-family: var(--font-display); font-weight: 900; font-size: 14px; line-height: 1.4; box-shadow: var(--pop); }
.chara .say::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 12px; height: 12px; background: var(--surface); border-right: 2px solid var(--edge); border-bottom: 2px solid var(--edge); transform: translateX(-50%) rotate(45deg); }
.chara.devil .say { color: var(--ate); }
.chara.angel .say { color: var(--toss); }
.chara .nm { font-size: 11px; color: var(--muted); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .chara.devil svg { animation: bob 3.2s ease-in-out infinite; }
  .chara.angel svg { animation: bob 3.2s ease-in-out -1.6s infinite; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* トップ：ヒーロー */
.hero { padding-block: 18px 4px; }
.hero .grid { display: grid; gap: 26px; align-items: center; }
.hero .grid > * { min-width: 0; }
@media (min-width: 880px) { .hero .grid { grid-template-columns: 1.1fr .9fr; gap: 36px; } }
.hero .copy { display: grid; gap: 12px; justify-items: start; }
.hero .count-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; padding: 4px 14px 4px 8px; font-size: 13px; font-weight: 700; box-shadow: var(--pop); }
.hero .count-pill .dots { gap: 2px; flex-wrap: nowrap; }
.hero .count-pill .dot { width: 12px; height: 12px; }
.hero h1 { font-size: clamp(44px, 10vw, 76px); line-height: 1.12; letter-spacing: .01em; }
.hero h1 i { font-style: normal; color: var(--toss); }
.hero .lead { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 2.4vw, 20px); line-height: 1.6; max-width: 26em; }
.hero .lead mark { background: linear-gradient(transparent 60%, var(--sun) 60%, var(--sun) 92%, transparent 92%); color: inherit; }
.hero .search { width: 100%; max-width: 560px; }
.hero .search input { padding: 16px 18px 16px 48px; font-size: 16px; background: var(--surface); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); }
.hero .search svg.icon { left: 18px; width: 20px; height: 20px; color: var(--ink); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; align-items: center; }
.quick span { color: var(--muted); }
.quick :is(button,a) { background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; font-weight: 700; }
.quick :is(button,a):hover { border-color: var(--edge); }
.hero .stage { display: grid; gap: 18px; }
.mini-board { background: var(--paper); border: 2px solid var(--edge); border-radius: var(--r-sm); box-shadow: var(--pop); padding: 10px 12px; display: grid; gap: 8px; text-align: left; }
.mini-board .q { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 900; font-size: 15px; }
.mini-board .q .ph { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.mb-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--edge); border-radius: 10px; overflow: hidden; background: var(--paper); }
.mb-col { display: grid; gap: 6px; padding: 8px; align-content: start; min-width: 0; }
.mb-col + .mb-col { border-left: 2px solid var(--edge); }
.mb-col .lab { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 900; font-size: 13px; }
.mb-col.a .lab { color: var(--ate); }
.mb-col.t .lab { color: var(--toss); }
.mb-col .lab .num { font-size: 18px; }
.mb-col .dot { width: 12px; height: 12px; }

/* 新着の投票 */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.vcard { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--r-sm); box-shadow: var(--pop); padding: 10px 12px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; text-align: left; transition: transform .15s, box-shadow .15s; }
.vcard:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--edge); }
.vcard .ph { width: 52px; height: 52px; border-radius: 10px; grid-row: span 2; }
.vcard .ph.illus span { font-size: 20px; }
.vcard .ph.illus i { display: none; }
.vcard .fn { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vcard .fn b { font-family: var(--font-display); font-weight: 900; font-size: 16px; }
.vcard .det { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vcard .det .av { width: 18px; height: 18px; font-size: 9px; }
.vcard .det b { color: var(--ink); }
.vcard .seal-lg { grid-row: 1 / span 2; grid-column: 3; width: 54px; height: 54px; font-size: 13px; }
.vcard .c { grid-column: 1 / -1; margin: 8px 0 0; background: var(--sunk); border-radius: 4px 12px 12px 12px; padding: 6px 10px; font-size: 13px; }

/* よく見られている食品（ミニボード付きカード） */
.foodgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .foodgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.foodcard { position: relative; background: var(--surface); border: 2px solid var(--edge); border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; box-shadow: var(--pop); display: grid; grid-template-rows: auto 1fr; transition: transform .15s, box-shadow .15s; }
.foodcard:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--edge); }
.foodcard .ph { aspect-ratio: 16 / 10; border-bottom: 2px solid var(--edge); }
.foodcard .meta { padding: 10px; display: grid; gap: 8px; align-content: start; }
.foodcard .nm { display: flex; align-items: center; justify-content: space-between; gap: 4px 6px; flex-wrap: wrap; }
.foodcard b { font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1.3; }
.foodcard .mb-col { padding: 6px; gap: 5px; }
.foodcard .mb-col .lab { flex-direction: column; align-items: flex-start; line-height: 1.15; white-space: nowrap; font-size: 12px; }
.foodcard .mb-col .lab .num { font-size: 20px; }
.foodcard .mb-col .dot { width: 10px; height: 10px; }
.foodcard .mb-col .dots { gap: 2px; }
.rank { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--sun); color: #2b2100; font-family: var(--font-num); font-weight: 800; font-size: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--edge); }

/* カテゴリー */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cats :is(button,a) { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 700; font-size: 14px; transition: border-color .15s; }
.cats :is(button,a):hover { border-color: var(--edge); }
.cats .cdot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 13px; color: #fff; }

.cta-band { background: var(--sun); color: #2b2100; border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 0 4px 0 var(--edge); padding: 22px; display: grid; gap: 18px; align-items: center; }
@media (min-width: 720px) { .cta-band { grid-template-columns: 1fr auto; padding: 26px 30px; } }
.cta-band h2 { font-size: clamp(21px, 3.4vw, 28px); }
.cta-band p { margin: 6px 0 14px; max-width: 30em; }
.cta-band .btn { background: var(--surface); color: var(--ink); }
.cta-band .duo { width: min(300px, 100%); justify-self: center; color: var(--ink); }
.cta-band .chara .say { font-size: 13px; }
.cta-band .chara .nm { color: #5a4a10; }

/* 食品ページ */
.crumb { font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); padding-top: 18px; }
.crumb :is(button,a) { background: none; border: 0; padding: 0; color: var(--link); font-size: 12px; font-weight: 700; }
.foodhead { display: grid; gap: 16px; }
@media (min-width: 640px) { .foodhead { grid-template-columns: 240px 1fr; align-items: center; gap: 22px; } }
.foodhead .ph { border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--pop); aspect-ratio: 4 / 3; }
.foodhead .ph .credit { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0,0,0,.35); padding: 1px 7px; border-radius: 999px; }
.foodhead h1 { font-size: clamp(21px, 4.2vw, 28px); }
.foodhead .kindline { margin-bottom: 6px; }
.foodhead .kind { font-size: 13px; padding: 1px 10px; }
.foodhead .totals { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; align-items: baseline; font-weight: 700; }
.foodhead .totals .num { font-size: 24px; font-weight: 800; }
.foodhead .totals .a { color: var(--ate); }
.foodhead .totals .t { color: var(--toss); }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; padding: 4px; gap: 4px; }
.tabs :is(button,a) { background: none; border: 0; border-radius: 999px; padding: 8px 4px; color: var(--muted); font-family: var(--font-display); font-weight: 900; font-size: 15px; display: flex; justify-content: center; align-items: baseline; gap: 6px; transition: background .15s, color .15s; }
.tabs :is(button,a) small { font-family: var(--font-num); font-weight: 600; font-size: 12px; }
.tabs :is(button,a)[aria-selected="true"] { background: var(--ink); color: var(--surface); }
.optabs { display: flex; justify-content: center; gap: 8px; }
.optabs :is(button,a) { background: var(--surface); border: 2px solid var(--edge); border-radius: 999px; padding: 5px 16px; color: var(--muted); font-family: var(--font-display); font-weight: 900; font-size: 13px; display: flex; align-items: baseline; gap: 6px; }
.optabs :is(button,a) small { font-family: var(--font-num); font-weight: 600; font-size: 11px; }
.optabs :is(button,a)[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.notice.warn { border: 2px solid #f2604c; background: color-mix(in srgb, #f2604c 9%, var(--surface)); }

.vote-panel { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: var(--pop); padding: 20px 18px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.vote-panel h3 { font-size: 19px; }
.vote-panel .duo { width: min(320px, 100%); }
.vote-panel .chara svg { width: 104px; }
.vote-panel .chara .say { font-size: 13px; }

.comments-list { display: grid; gap: 10px; }
.cm { display: grid; grid-template-columns: 24px 1fr; gap: 8px; }
.cm .bub { background: var(--surface); border: 2px solid var(--edge); border-radius: 4px 14px 14px 14px; padding: 8px 12px; display: grid; gap: 2px; }
.cm .bub .top { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); align-items: center; }
.cm .bub .top b { color: var(--ink); }
.cm .bub p { margin: 0; font-size: 14px; }
.hint { color: var(--muted); font-size: 12px; margin: 0; }

.related { display: grid; grid-auto-flow: column; grid-auto-columns: 170px; justify-content: start; gap: 14px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x mandatory; }
.related .foodcard { scroll-snap-align: start; }

/* フォーム */
.page-title { font-size: clamp(23px, 4vw, 30px); padding-top: 26px; }
.card { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--r); padding: clamp(18px, 4vw, 26px); display: grid; gap: 22px; box-shadow: var(--pop); }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-family: var(--font-display); font-weight: 900; font-size: 16px; }
.field input[type="text"], .field input[type="number"], .field textarea, .field select { width: 100%; border: 2px solid var(--line); background: var(--sunk); color: var(--ink); border-radius: 14px; padding: 12px 14px; font: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--edge); background: var(--surface); }
.field textarea { min-height: 90px; resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: 14px; font-weight: 700; transition: all .12s; }
.seg input:checked + label { border-color: var(--edge); background: var(--ink); color: var(--surface); }
.seg input:focus-visible + label { outline: 3px solid var(--link); outline-offset: 2px; }
.daysrow { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.daysrow input { max-width: 110px; font-family: var(--font-num); font-size: 20px !important; font-weight: 800; }
.pickseal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pickseal input { position: absolute; opacity: 0; pointer-events: none; }
.pickseal label { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border: 2px dashed var(--line); border-radius: 18px; cursor: pointer; background: var(--paper); transition: all .12s; }
.pickseal label .seal-lg { width: 72px; height: 72px; font-size: 16px; opacity: .3; transform: none; transition: all .15s; }
.pickseal label small { font-size: 12px; color: var(--muted); }
.pickseal input:checked + label { border-style: solid; border-color: var(--edge); box-shadow: var(--pop); }
.pickseal input:checked + label .seal-lg { opacity: 1; transform: rotate(-8deg) scale(1.05); }
.pickseal input:checked + label.t .seal-lg { transform: rotate(6deg) scale(1.05); }
.pickseal input:focus-visible + label { outline: 3px solid var(--link); outline-offset: 2px; }
details.opt { border: 2px dashed var(--line); border-radius: 14px; padding: 10px 14px; }
details.opt summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
details.opt[open] summary { margin-bottom: 10px; }
.picked { display: flex; align-items: center; gap: 12px; background: var(--sun-soft); border: 2px solid var(--edge); border-radius: 16px; padding: 8px; flex-wrap: wrap; }
.picked .ph { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.picked .ph.illus span { font-size: 18px; }
.picked .ph.illus i { display: none; }
.picked .nm { flex: 1; font-family: var(--font-display); font-weight: 900; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.picked button { background: none; border: 0; color: var(--link); font-size: 13px; font-weight: 700; padding-right: 8px; }
.step { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 900; font-size: 16px; }
.step span { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: #2b2100; border: 2px solid var(--edge); display: grid; place-items: center; font-family: var(--font-num); font-size: 13px; flex: none; }
.done { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 34px; }
.done .seal-lg { width: 110px; height: 110px; font-size: 22px; }
@media (prefers-reduced-motion: no-preference) { .done .seal-lg { animation: stick .5s cubic-bezier(.2,1.6,.4,1) both; } }
@keyframes stick { from { transform: scale(1.8) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }

.login { display: grid; gap: 12px; max-width: 380px; }
.login :is(button,a) { border: 2px solid var(--edge); background: var(--surface); border-radius: 999px; padding: 12px; font-weight: 700; display: flex; justify-content: center; gap: 12px; align-items: center; box-shadow: var(--pop); }
.login .mk { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; font-weight: 800; }

.stat { background: var(--sun); color: #2b2100; border: 2px solid var(--edge); border-radius: var(--r); padding: 22px 24px; display: grid; box-shadow: 0 4px 0 var(--edge); }
.stat small { font-size: 14px; font-weight: 700; }
.stat .num { font-size: clamp(44px, 10vw, 60px); font-weight: 800; line-height: 1.1; }
.stat .num u { text-decoration: none; font-size: 22px; font-family: var(--font-display); font-weight: 900; margin-left: 4px; }
.mylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mylist li { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--r-sm); padding: 10px; display: flex; gap: 12px; align-items: center; box-shadow: var(--pop); }
.mylist .ph { width: 60px; height: 60px; border-radius: 12px; flex: none; }
.mylist .ph.illus span { font-size: 20px; }
.mylist .ph.illus i { display: none; }
.mylist .body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mylist .body b { font-family: var(--font-display); font-weight: 900; font-size: 16px; }
.mylist .views { color: var(--muted); font-size: 12px; }
.mylist .views .num { color: var(--ink); font-weight: 800; font-size: 15px; }
.mylist .acts { display: flex; gap: 14px; font-size: 13px; flex-wrap: wrap; }
.mylist .acts :is(button,a) { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; }
.mylist .seal-lg { width: 50px; height: 50px; font-size: 12px; }

footer.site { background: var(--surface); border-top: 2px solid var(--edge); font-size: 13px; color: var(--muted); }
footer.site .wrap { padding-block: 26px 34px; display: grid; gap: 12px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site :is(button,a) { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; }
footer.site :is(button,a):hover { color: var(--ink); text-decoration: underline; }

/* キャラのちょい添え */
.mini { display: inline-block; flex: none; line-height: 0; }
.mini svg { width: 46px; height: auto; overflow: visible; }
.mini.sm svg { width: 34px; }
.mini.lg svg { width: 78px; }
.section-head h2 { display: flex; align-items: center; gap: 6px; }
.section-head h2 .mini svg { width: 34px; }
.tap-hint { display: flex; align-items: center; gap: 8px; background: var(--sun-soft); border: 2px dashed var(--edge); border-radius: 16px; padding: 6px 10px; font-family: var(--font-display); font-weight: 900; font-size: 14px; line-height: 1.45; }
.tap-hint span.t { flex: 1; text-align: center; }
.notice .mini svg { width: 38px; margin-top: -4px; }
/* タップで貼る */
.bcell { cursor: pointer; position: relative; }
.bcell .plus { position: absolute; right: 8px; bottom: 6px; font-size: 10px; font-weight: 700; color: var(--muted); opacity: 0; transition: opacity .15s; }
.bcell:hover .plus, .bcell:focus-visible .plus { opacity: 1; }
.bcell.mine { background: color-mix(in srgb, var(--sun) 22%, transparent) !important; }
.bcell .you { position: absolute; right: 6px; bottom: 4px; font-size: 10px; font-weight: 900; font-family: var(--font-display); background: var(--sun); color: #2b2100; border: 1.5px solid var(--edge); border-radius: 999px; padding: 0 6px; line-height: 1.5; }
.dot.me { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--edge); }
@media (prefers-reduced-motion: no-preference) { .dot.pop { animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; } .sheet { animation: up .28s cubic-bezier(.2,.9,.3,1) both; } }
@keyframes pop { from { transform: scale(2.4) rotate(-40deg); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 2px solid var(--edge); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.18); padding-top: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-height: 86vh; overflow-y: auto; }
.sheet .in { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; position: relative; }
.sheet .head { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.sheet .head h3 { font-size: 20px; }
.sheet .head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.sheet .say2 { position: relative; background: var(--sun-soft); border: 2px solid var(--edge); border-radius: 14px; padding: 4px 10px; font-family: var(--font-display); font-weight: 900; font-size: 13px; }
.sheet .x { position: absolute; right: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 16px; line-height: 1; }
.sheet .acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sheet .linkbtn { background: none; border: 0; color: var(--link); font-weight: 700; font-size: 13px; padding: 4px; }
.sheet.toast { z-index: 59; }
.sheet .more-form { display: grid; gap: 14px; border-top: 2px dashed var(--line); padding-top: 14px; }
.myvote { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--edge); border-radius: var(--r-sm); padding: 10px 14px; box-shadow: var(--pop); }
.myvote .tx { flex: 1; font-size: 14px; }
.myvote .tx b { font-family: var(--font-display); }
footer.site .pals { display: flex; gap: 4px; align-items: end; }
footer.site .pals .mini svg { width: 40px; }
.note-mock { font-size: 12px; color: #4b5bd1; background: color-mix(in srgb, #4b5bd1 10%, transparent); border-radius: 10px; padding: 8px 12px; margin: 0; }

/* 本番：ボタンをリンクにした部品 */
a.foodcard, a.vcard, a.mini-board, .tabs a, .optabs a, .quick a, .cats a, .login a, footer.site nav a { text-decoration: none; color: inherit; }
.tabs a[aria-selected="true"] { color: var(--surface); }
.optabs a[aria-selected="true"] { color: var(--surface); }
.optabs a[aria-selected="true"]::before { content: "✓ "; }
.btn { text-decoration: none; }
.brow > button[disabled] { cursor: default; }
.err { color: #c8402e; font-weight: 700; font-size: 13px; margin: 0; }
.legal-small { font-size: 12px; color: var(--muted); }
.suggest li a { color: inherit; text-decoration: none; }
.mine-exps { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--edge); border-radius: var(--r-sm); background: var(--sun-soft); }
.mine-exps .label { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 14px; }
[data-more-btn] { justify-self: center; }
/* 種類の絞り込みと開封の選択を1行にまとめる（親の食品のモック 2026-10-20） */
.subrow { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.subrow .optabs { margin-top: 0; }
.vpick { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 900; font-size: 13px; }
.vpick select { border: 2px solid var(--edge); border-radius: 999px; padding: 4px 28px 4px 12px; background: var(--surface); color: var(--ink); font: inherit; }
.state-board { margin-top: 14px; }
.state-board .board-title b::before { content: "⚠ "; }
#board { display: grid; gap: 10px; }
/* 似た食品の導線・よくある状態（2026-10-20） */
.samegroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.samegroup .lab { font-family: var(--font-display); font-weight: 900; font-size: 13px; margin-right: 4px; }
.samegroup a { border: 2px solid var(--edge); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 13px; color: var(--ink); text-decoration: none; background: var(--surface); }
.samegroup a:hover { background: var(--sun-soft); }
.state-tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--sun-soft); border: 1.5px solid var(--edge); font-weight: 700; }
.seg.wrap { flex-wrap: wrap; }
/* 似た食品の細い帯（ボードの上） */
.samestrip { display: grid; gap: 6px; }
.samestrip .lab { font-family: var(--font-display); font-weight: 900; font-size: 13px; }
.samestrip .items { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.samestrip a { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border: 2px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 13px; }
.samestrip a:hover { background: var(--sun-soft); }
.samestrip .th { width: 30px; height: 30px; border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.samestrip .th .ph { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.samestrip .th img { width: 100%; height: 100%; object-fit: cover; }
.samestrip .th .ph.illus span { font-size: 14px; }
