:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --text: #1a1d23;
  --muted: #667085;
  --line: #e3e6eb;
  --accent: #1c3f7a;
  --accent-ink: #ffffff;
  --accent-weak: #eaf0f8;
  --price: #c4380c;
  --hot: #d92d20;
  --hot-weak: #fdeceb;
  --nv: #1c3f7a;
  --or: #e0621a;
  --or-weak: #fdeee5;
  --teal: #0f766e;
  --pr-bg: #fff5dc;
  --pr-ink: #8a5300;
  --pr-line: #f0d08a;
  --staff: #1f4fd1;
  --staff-weak: #eaf0ff;
  --bot: #0f766e;
  --bot-weak: #e6f4f2;
  --ended: #98a2b3;
  --warn-bg: #fff4ec;
  --warn-ink: #9a3412;
  --warn-line: #fcd3b0;
  --error: #c62828;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161a21;
    --surface-2: #1c212a;
    --text: #e6e9ee;
    --muted: #98a2b3;
    --line: #2a303b;
    --accent: #8fb0ec;
    --accent-ink: #0b1633;
    --accent-weak: #1b2544;
    --price: #ff8f57;
    --hot: #ff6b5e;
    --hot-weak: #3a1714;
    --nv: #24487f;
    --or: #f08a4b;
    --or-weak: #3a2214;
    --teal: #2cc5b0;
    --pr-bg: #2c2412;
    --pr-ink: #f4c76b;
    --pr-line: #5c4718;
    --staff: #86a8ff;
    --staff-weak: #1b2544;
    --bot: #2cc5b0;
    --bot-weak: #12302c;
    --ended: #6b7385;
    --warn-bg: #2d1a10;
    --warn-ink: #fdba74;
    --warn-line: #5b3419;
    --error: #ff8a80;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo UI", "Noto Sans JP", Meiryo, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 0.6em; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 0.8em; }
code, .code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 4px; padding-bottom: 48px; min-height: 60vh; }

.icon { width: 18px; height: 18px; flex: none; vertical-align: -4px; }
.icon.sm { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }

/* ── header ─────────────────────────────── */
.proto-banner { background: var(--text); color: var(--bg); font-size: 12px; text-align: center; padding: 4px 16px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 58px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 26px; height: 26px; color: var(--accent); }
.tagline { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; gap: 2px; margin-left: auto; }
.site-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.site-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.site-nav a.on { color: var(--text); font-weight: 700; background: var(--surface-2); }

/* ── buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { background: var(--accent); filter: brightness(1.06); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── メールアドレス表示（文字確認） ───────── */
.eml-gate { display: inline-block; }
.eml-open { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.eml-open:hover { background: var(--accent-weak); }
.eml-check { display: inline-grid; gap: 6px; }
.eml-canvas { width: 150px; height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.eml-row { display: flex; gap: 6px; }
.eml-input { width: 150px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.eml-input::placeholder { letter-spacing: 0; text-transform: none; }
.eml-hint { color: var(--muted); font-size: 12px; }
.eml-address { font-weight: 600; font-size: 15px; }

/* ── 特集ページ（読み物の書式） ─────────────── */
.feature-card p { margin: 4px 0 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px 48px 36px; box-shadow: var(--shadow); font-size: 16px; line-height: 1.95; }
.article p, .article li, .article dd { font-size: 16px; line-height: 1.95; }
.article p { margin: 0 0 1.1em; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article a.btn { text-decoration: none; }

.article-kicker { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.article h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.4; letter-spacing: 0.01em; }
/* 見出しは語の途中で折り返さない（「プライ／ム感謝祭」のような改行を防ぐ） */
.nb { display: inline-block; }
.article-sub { display: block; margin-top: 8px; font-size: 19px; line-height: 1.6; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.article .article-meta { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.article .lead { font-size: 17px; line-height: 2; margin-bottom: 20px; }

.article .article-status { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 28px; padding: 14px 18px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 18px; line-height: 1.5; }
.article-status span { font-size: 12px; font-weight: 400; opacity: 0.85; }

.point-box { position: relative; margin: 34px 0 28px; padding: 26px 24px 16px; border: 2px solid var(--accent); border-radius: 14px; }
.article .point-title { position: absolute; top: -15px; left: 16px; margin: 0; padding: 2px 14px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 14px; line-height: 1.8; }
.point-box ul { margin: 0; padding-left: 1.3em; }
.point-box li { margin: 4px 0; }

.toc { border-radius: 14px; }
.toc-title { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.5em; }
.article .toc-inline { display: none; margin: 0 0 12px; padding: 18px 22px; background: var(--surface-2); }
.article .toc-inline li { line-height: 1.8; margin: 4px 0; }
.toc-side { font-size: 14px; }
.toc-side .toc-title { font-size: 14px; }
.toc-side li { margin: 7px 0; line-height: 1.6; }
.toc-side a { color: var(--text); }

.article h2 { margin: 56px 0 22px; padding: 13px 18px; border: 0; border-left: 6px solid var(--accent); border-radius: 4px 12px 12px 4px; background: var(--accent-weak); font-size: 23px; line-height: 1.5; scroll-margin-top: 16px; }
.article h3 { margin: 30px 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--line); font-size: 18px; line-height: 1.6; }

.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 16px; line-height: 1.7; }
.spec-table th, .spec-table td { padding: 13px 18px; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
.spec-table th { width: 15em; background: var(--surface-2); font-weight: 700; }
.tier-table th { width: 7em; white-space: nowrap; }
.article .article-source { margin-top: 10px; color: var(--muted); font-size: 13px; }

.steps { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { position: relative; counter-increment: step; padding: 18px 22px 8px 104px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.steps li::before { content: "STEP " counter(step); position: absolute; top: 20px; left: 20px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 1.8; letter-spacing: 0.04em; }
.article .steps h3 { margin: 0 0 6px; padding: 0; border: 0; font-size: 18px; }

.article-cta { margin: 26px 0 8px; text-align: center; }
.article-cta .btn { min-width: 280px; padding: 15px 28px; font-size: 17px; border-radius: 999px; }
.article .article-cta p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-cta .chip { margin-right: 6px; }

.note-box { margin: 20px 0 24px; padding: 16px 20px; border: 1px solid var(--warn-line); border-radius: 12px; background: var(--warn-bg); }
.article .note-title { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--warn-ink); font-weight: 700; }
.article .note-box p:last-child { margin-bottom: 0; }

.article .compact-list, .article .mini-list { margin: 14px 0 0; }
.article .mini-list { padding-left: 0; }

.faq { margin: 0; }
.faq dt, .faq dd { position: relative; margin: 0; padding-left: 44px; }
.faq dt { margin-top: 22px; font-size: 17px; font-weight: 700; line-height: 1.7; }
.faq dd { margin-top: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.faq dt::before, .faq dd::before { position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; line-height: 1; }
.faq dt::before { content: "Q"; background: var(--accent); color: var(--accent-ink); }
.faq dd::before { content: "A"; background: var(--accent-weak); color: var(--accent); }

.check-list { margin: 0 0 1.1em; padding: 18px 22px 18px 44px; border-radius: 14px; background: var(--surface-2); }
.check-list li { margin: 4px 0; }
.article .fine { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.7; }

.article-side { position: sticky; top: 16px; display: grid; gap: 14px; }
.side-status h2 { font-size: 15px; }
.side-status-label { margin: 0 0 12px; font-weight: 700; color: var(--accent); font-size: 15px; }
.side-cta { display: grid; gap: 8px; justify-items: start; margin: 0; }
.side-cta .btn { width: 100%; padding: 11px 12px; font-size: 14px; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-side { display: none; }
  .article .toc-inline { display: block; }
}
@media (max-width: 640px) {
  .article { padding: 24px 18px 22px; border-radius: 14px; }
  .article h1 { font-size: 23px; line-height: 1.5; }
  .article-sub { font-size: 16px; }
  .article .lead { font-size: 16px; line-height: 1.95; }
  .article .article-status { font-size: 16px; padding: 12px 14px; }
  .article h2 { margin-top: 44px; padding: 11px 14px; font-size: 19px; }
  .article h3 { font-size: 17px; }
  .spec-table th, .spec-table td { padding: 11px 12px; font-size: 15px; }
  .spec-table th { width: 8.5em; }
  .steps li { padding: 50px 16px 6px; }
  .steps li::before { top: 16px; left: 16px; }
  .article-cta .btn { min-width: 0; width: 100%; }
  .point-box { padding: 24px 16px 12px; }
}

/* 投稿フォームの文字確認 */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-img { width: 150px; height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.captcha-input { max-width: 180px; letter-spacing: 0.1em; text-transform: uppercase; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── category chips & toolbar ───────────── */
.cats { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.cats a:hover { text-decoration: none; color: var(--text); }
.cats a.on { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.board-head h1 { margin: 0; font-size: 18px; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; }
.seg a { padding: 5px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.on { background: var(--text); color: var(--bg); font-weight: 700; }
.toggle { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.toggle:hover { text-decoration: none; color: var(--text); }
.toggle .icon { opacity: 0.25; }
.toggle.on { color: var(--accent); border-color: var(--accent); background: var(--accent-weak); font-weight: 700; }
.toggle.on .icon { opacity: 1; }
.search { display: flex; gap: 6px; }
.search select, .search-box { height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.search select { padding: 0 8px; }
.search-box { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; color: var(--muted); }
.search-box input { border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; width: 140px; }

/* ── deal list ──────────────────────────── */
.deal-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.deal-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "score main price"; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.deal-row:first-child { border-top: 0; }
.deal-row:hover { background: var(--surface-2); }
.score { grid-area: score; display: flex; flex-direction: column; align-items: center; line-height: 1.1; color: var(--muted); font-size: 10px; }
.score b { font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.score.hot b { color: var(--hot); }
.score.neg b { color: var(--muted); }
.deal-main { grid-area: main; min-width: 0; }
.deal-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.deal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.deal-meta .soon { color: var(--hot); font-weight: 600; }
.deal-meta .basis { color: var(--text); }
.deal-meta .basis b { color: var(--price); }
.deal-meta .unit { color: var(--text); }
.price-col { grid-area: price; text-align: right; white-space: nowrap; }
.price { color: var(--price); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.ship { display: block; font-size: 11px; color: var(--muted); }
.deal-row.ended .deal-title, .deal-row.ended .price, .deal-row.ended .basis b { color: var(--ended); }
.deal-row.ended .price { text-decoration: line-through; }

.shop-tag { display: inline-block; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 5px; margin-right: 6px; vertical-align: middle; position: relative; top: -1px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); background: var(--surface); white-space: nowrap; }
.chip.yp { background: var(--accent); color: var(--accent-ink); border-color: transparent; text-decoration: none; }
.chip.pr { background: var(--pr-bg); color: var(--pr-ink); border-color: var(--pr-line); }
.chip.staff { background: var(--staff-weak); color: var(--staff); border-color: transparent; }
.chip.bot { background: var(--bot-weak); color: var(--bot); border-color: transparent; }
.chip.hot { background: var(--hot-weak); color: var(--hot); border-color: transparent; }
.chip.ended { background: var(--surface-2); color: var(--ended); }
.chip.lowest { background: var(--accent-weak); color: var(--accent); border-color: transparent; }
.chip.wakeari, .chip.related { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 16px; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* ── sidebar ────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); font-size: 13px; }
.card h2 { font-size: 14px; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.checks { list-style: none; margin: 0 0 8px; padding: 0; }
.checks li { padding: 3px 0; }
.checks .icon { color: var(--accent); }
.more { color: var(--accent); font-weight: 600; font-size: 13px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-list a { display: block; font-weight: 600; line-height: 1.4; }
.mini-meta { font-size: 12px; color: var(--muted); }
.mini-meta .price { font-size: 13px; }

/* ── detail ─────────────────────────────── */
.deal-detail { min-width: 0; }
.crumbs { display: flex; gap: 6px; font-size: 13px; color: var(--muted); margin: 14px 0 8px; }
.detail-title { font-size: 22px; margin-bottom: 8px; overflow-wrap: anywhere; }
.detail-title .shop-tag { font-size: 13px; line-height: 22px; top: -2px; }
.price-card { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.price-card.ended { border-style: dashed; }
.price-card.ended .price { color: var(--ended); text-decoration: line-through; }
.ended-note { display: flex; align-items: center; gap: 6px; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price.big { font-size: 32px; letter-spacing: -0.01em; }
.price.big.ask { font-size: 20px; color: var(--text); }
.price-line .ship { display: inline; font-size: 13px; }
.facts { margin: 12px 0 16px; display: grid; gap: 6px; }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; font-size: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts b { color: var(--price); }
.facts .soon { color: var(--hot); font-weight: 600; }
.cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-cta { padding: 12px 22px; font-size: 15px; }
.fine { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--radius); padding: 12px 14px; margin: 14px 0; font-size: 14px; border: 1px solid var(--line); background: var(--surface); }
.notice ul { margin: 6px 0; padding-left: 1.2em; }
.notice.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice.info { background: var(--accent-weak); border-color: transparent; }
.notice.info .icon { color: var(--accent); }
.notice.error { background: var(--hot-weak); color: var(--error); border-color: transparent; font-weight: 600; }
.flash { background: var(--accent-weak); color: var(--accent); font-weight: 700; border-radius: 10px; padding: 10px 14px; margin: 14px 0; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 14px; box-shadow: var(--shadow); }
.panel h2 { font-size: 15px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 8px; }
.history { margin-top: 10px; }
.spark-wrap { margin: 0 0 6px; max-width: 420px; color: var(--accent); }
.spark { width: 100%; height: auto; display: block; background: var(--surface-2); border-radius: 8px; }
.spark-dot { fill: var(--price); }
.spark-wrap figcaption { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }

.poster-line { color: var(--muted); font-size: 13px; margin: 16px 0 10px; }
.vote-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.vote { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.vote:hover { background: var(--surface-2); }
.vote b { font-variant-numeric: tabular-nums; }
.vote.up.on { border-color: var(--or); background: var(--or-weak); color: var(--or); }
.vote.down.on { border-color: var(--muted); background: var(--surface-2); }
.vote.end.on { border-color: #7aa7d6; background: color-mix(in srgb, #7aa7d6 14%, var(--surface)); color: color-mix(in srgb, #3f6f9f 80%, var(--text)); }
.vote-help { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.vote-help b { color: var(--text); }
.dmeta .yasushi { color: var(--or); }
.hotstrip { margin-bottom: 18px; padding: 12px; border: 1px solid color-mix(in srgb, var(--or) 35%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--or) 5%, var(--surface)); }
.hotstrip h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 16px; color: var(--or); }
.hotstrip h2 small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 4px; }

.comments { margin-top: 24px; }
.comment-list { list-style: none; margin: 0 0 14px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.comment-list li { padding: 12px 16px; border-top: 1px solid var(--line); }
.comment-list li:first-child { border-top: 0; }
.c-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; margin-bottom: 2px; }
.comment-form { display: grid; gap: 8px; }
.comment-form input { max-width: 240px; }
.comment-form button { justify-self: start; }

/* ── forms ──────────────────────────────── */
.narrow { max-width: 680px; margin: 18px auto 0; }
.narrow.wide { max-width: 860px; }
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.field { display: grid; gap: 4px; min-width: 0; border: 0; padding: 0; margin: 0; align-content: start; }
.field label, .field legend { font-weight: 700; font-size: 13px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
input, select, textarea { font: inherit; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea, .comment-form input, .comment-form textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text);
}
.form textarea, .comment-form textarea { resize: vertical; }
.form select { min-height: calc(1.75em + 20px); }
.hint { margin: 0; font-size: 12px; color: var(--muted); }
.hint .bad { color: var(--error); font-weight: 600; }
.hint .good { color: var(--accent); font-weight: 600; }
.error { margin: 0; font-size: 12px; color: var(--error); font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error) !important; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form > .btn { justify-self: start; }

/* ── prose pages ────────────────────────── */
.prose { max-width: 760px; margin: 18px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.prose h2 { margin-top: 1.6em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h2:first-of-type { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.lead { font-size: 16px; }
.example { background: var(--surface-2); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-size: 12px; font-weight: 700; }
.table-wrap { overflow-x: auto; }
.message { text-align: center; }
.status-code { font-size: 48px; font-weight: 800; color: var(--muted); margin: 0; }

/* ── admin ──────────────────────────────── */
.admin { margin-top: 18px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ok { color: var(--accent); font-weight: 600; }
.inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.code { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.plain { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.admin-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-table tr.ended td, .admin-table tr.removed td { color: var(--muted); }

/* ── footer & toast ─────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; padding: 22px 0 28px; }
.footer-inner p { margin: 0 0 6px; }
.footer-links { display: flex; gap: 14px; margin-top: 10px !important; }
.footer-links a { color: var(--text); }
.credits a { text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }

/* ── responsive ─────────────────────────── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .header-inner { gap: 8px; padding-top: 8px; }
  .tagline { display: none; }
  .btn-post { margin-left: auto; padding: 6px 12px; }
  .site-nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-header { position: static; }
  .board-head { align-items: stretch; }
  .toolbar { width: 100%; }
  .search { width: 100%; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .deal-row { grid-template-columns: 38px minmax(0, 1fr); grid-template-areas: "score main" "score price"; gap: 2px 10px; padding: 11px 12px; }
  .score { align-self: start; padding-top: 2px; }
  .price-col { text-align: left; display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
  .price-col .ship { display: inline; }
  .price { font-size: 16px; }
  .price.big { font-size: 28px; }
  .detail-title { font-size: 19px; }
  .price-card, .panel, .prose, .form { padding: 16px; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { top: auto; }
}

/* ===== D案: A配置 × B配色 × 丸み ===== */
body { font-family: "BIZ UDPGothic", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo UI", "Noto Sans JP", Meiryo, sans-serif; }
.site-header { position: static; border-bottom: 0; background: var(--surface); }
.util { display: flex; justify-content: flex-end; padding-top: 6px; }
.util-nav { display: flex; gap: 14px; font-size: 12px; }
.util-nav a { color: var(--muted); }
.util-nav a.on { color: var(--text); font-weight: 700; }
.head { display: flex; align-items: center; gap: 18px; padding-top: 6px; padding-bottom: 12px; }
.logo { gap: 10px; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--nv); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 21px; flex: none; }
.logo-text b { display: block; font-size: 26px; letter-spacing: .06em; color: var(--nv); line-height: 1.1; }
.logo-text small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.hsearch { flex: 1; display: flex; border: 2px solid var(--teal); border-radius: 10px; overflow: hidden; background: var(--surface); max-width: 620px; }
.hsearch input { flex: 1; min-width: 0; border: 0; padding: 9px 12px; font: inherit; background: transparent; color: var(--text); outline: 0; }
.hsearch button { background: var(--teal); color: #fff; border: 0; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer; }
.hpost { margin-left: auto; background: var(--teal); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 10px; white-space: nowrap; }
.hpost:hover, .hsearch button:hover { filter: brightness(1.08); text-decoration: none; }
.gnav { background: var(--nv); }
.gnav-inner { display: flex; padding-top: 6px; overflow-x: auto; scrollbar-width: none; }
.gnav-inner::-webkit-scrollbar { display: none; }
.gnav a { flex: none; white-space: nowrap; color: #fff; padding: 10px 18px 12px; font-size: 14px; font-weight: 700; border-radius: 12px 12px 0 0; border-right: 1px solid rgba(255,255,255,.18); }
.gnav a:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.gnav a.on { background: var(--bg); color: var(--nv); border-right-color: transparent; }
.band { background: var(--or-weak); color: var(--or); text-align: center; font-weight: 700; font-size: 13px; padding: 8px 12px; margin-top: 14px; border-radius: 999px; }
.band a { color: inherit; text-decoration: underline; margin-left: 4px; }
.crumbs { margin: 10px 0; }
@media (min-width: 901px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  .layout > .sidebar { order: -1; position: static; }
}
.side { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.side h2 { margin: 0; background: var(--nv); color: #fff; font-size: 14px; padding: 9px 14px; }
.side a { display: flex; justify-content: space-between; padding: 9px 14px; border-top: 1px solid var(--line); }
.side a:after { content: "+"; font-weight: 700; color: var(--nv); }
.side a.on { background: var(--accent-weak); font-weight: 700; }
.page-h { font-size: 22px; margin: 0 0 10px; }
.page-h small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 10px; }
.sortbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; padding: 4px 13px; border-radius: 999px; color: var(--nv); border: 1px solid transparent; }
.pill.on { background: var(--nv); color: #fff; font-weight: 700; }
.pill:hover { text-decoration: none; border-color: var(--line); }
.pill.toggle { border-color: var(--line); color: var(--muted); }
.pill.toggle.on { background: var(--accent-weak); color: var(--nv); border-color: var(--nv); }
.mallsel select { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 13px; background: var(--surface); color: var(--text); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--nv); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; }
.dcard.ended { border-top-color: var(--ended); opacity: .72; }
.dimg { position: relative; display: grid; place-items: center; height: 130px; background: var(--surface-2); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.dimg img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dimg-ph { --cat: #5c6370; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: color-mix(in srgb, var(--cat) 11%, var(--surface)); color: color-mix(in srgb, var(--cat) 75%, var(--text)); }
.dimg-ph .ph-icon { width: 44px; height: 44px; stroke-width: 1.6; }
.dimg-ph small { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.dimg-ph.cat-food { --cat: #d9480f; }
.dimg-ph.cat-daily { --cat: #0b7285; }
.dimg-ph.cat-appliance { --cat: #1c3f7a; }
.dimg-ph.cat-pc { --cat: #5f3dc4; }
.dimg-ph.cat-game { --cat: #c2255c; }
.dimg-ph.cat-fashion { --cat: #9c36b5; }
.dimg-ph.cat-cosme { --cat: #e64980; }
.dimg-ph.cat-coupon { --cat: #e67700; }
.dimg-ph.cat-expiring { --cat: #c92a2a; }
.dimg-ph.cat-entry { --cat: #2b8a3e; }
.dimg img { position: relative; }
.dimg .yp { position: absolute; left: 8px; top: 8px; background: var(--nv); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 11px; font-weight: 700; }
.dimg .endtag { position: absolute; right: 8px; top: 8px; background: var(--ended); color: #fff; border-radius: 999px; padding: 1px 10px; font-size: 11px; font-weight: 700; }
.dshop { font-size: 11px; color: var(--muted); }
.dtitle { font-size: 14px; font-weight: 700; line-height: 1.5; margin: 3px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dbasis { align-self: flex-start; white-space: nowrap; font-size: 12px; background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
.dbasis b { color: var(--price); }
.dprice { font-size: 20px; font-weight: 700; color: var(--price); margin-top: 6px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dcard.ended .dprice { color: var(--ended); text-decoration: line-through; }
.dprice.ask { font-size: 14px; color: var(--text); }
.dcard.ended .dprice.ask { text-decoration: none; }
.dsub { font-size: 11px; color: var(--muted); }
.dmeta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 11px; color: var(--muted); }
.dmeta .soon { color: var(--hot); font-weight: 700; }
.chip, .shop-tag, .btn, .vote, .notice, .flash, .price-card, .panel, .prose, .form, .card, .comment-list, .deal-list { border-radius: 12px; }
.chip { border-radius: 999px; }
.btn-primary { background: var(--nv); }
.btn-cta { background: var(--or); border-radius: 999px; }
@media (max-width: 900px) {
  .layout > .sidebar { order: 2; }
}
@media (max-width: 640px) {
  .head { flex-wrap: wrap; gap: 10px; }
  .hsearch { order: 3; flex-basis: 100%; max-width: none; }
  .logo-text small { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dimg { height: 100px; }
  .dprice { font-size: 17px; }
}

.market-row { display: flex; gap: 8px; }
.market-row input { flex: 1; }
[data-market-result] ul { margin: 4px 0 8px; }

/* 安かれ判定・他店の価格帯（Amazon：価格の代わり） */
.tier { margin-top: 6px; }
.tier-bar { display: flex; gap: 3px; }
.tier-bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.tier-bar span.on { background: var(--or); }
.tier-label { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--or); }
.tier-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.tier-labels .cur { color: var(--or); font-weight: 700; }
.tier-labels span:nth-child(2) { text-align: center; }
.tier-labels span:nth-child(3) { text-align: right; }
.mkt { margin: 10px 0 14px; }
.mkt-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; }
.mkt-h a { font-size: 11px; font-weight: 400; }
