/* CAMERA DEEP。仕様表のような、数字が読みやすい紙面を目指す */
:root {
  --bg: #f6f5f2;
  --paper: #ffffff;
  --ink: #1d1f22;
  --ink-2: #555a61;
  --ink-3: #8a9097;
  --line: #e2e0da;
  --line-2: #cfccc4;
  --accent: #d2491f;      /* 録画ランプの赤橙 */
  --accent-ink: #ffffff;
  --accent-soft: #fbe9e2;
  --hl: #fff6d6;          /* 絞り込んだ列 */
  --diff: #fff3e8;
  --best: #e5f3e8;
  --best-ink: #1c6b35;
  --na: #a0a5ab;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a; --paper: #1d2024; --ink: #eceae6; --ink-2: #b4b8bd; --ink-3: #868b91;
    --line: #2d3136; --line-2: #3a3f45; --accent: #ff6a3d; --accent-ink: #15171a; --accent-soft: #3a241c;
    --hl: #2f2b1a; --diff: #33271d; --best: #1b3324; --best-ink: #8fd6a4; --na: #6f747a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
h1 { font-size: 1.6rem; line-height: 1.35; margin: .3em 0 .6em; letter-spacing: .01em; }
h2 { font-size: 1.1rem; margin: 1.6em 0 .6em; }
.small { font-size: .82rem; color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ヘッダー・フッター */
.site-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding: .7rem max(16px, calc((100vw - 1320px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; text-decoration: none; font-size: 1rem; letter-spacing: .14em; }
.logo-mark { width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 9px var(--accent); }
.site-head nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; font-size: .9rem; }
.site-head nav a { text-decoration: none; color: var(--ink-2); }
.site-head nav a:hover { color: var(--accent); }
main { max-width: 1320px; margin: 0 auto; padding: 1rem 16px 3rem; }
.site-foot { border-top: 1px solid var(--line); background: var(--paper); padding: 1.5rem max(16px, calc((100vw - 1320px) / 2)); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.foot-cols h2 { font-size: .9rem; margin: 0 0 .4rem; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; columns: 2; font-size: .85rem; }
.foot-cols li { break-inside: avoid; }
@media (max-width: 720px) { .foot-cols { grid-template-columns: 1fr; } .foot-cols ul { columns: 1; } }

/* ボタン */
.btn, .btn-ghost, button.link { font: inherit; cursor: pointer; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: .45rem 1rem; font-size: .9rem; font-weight: 600; text-decoration: none; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.06); }
.btn.disabled { background: var(--line-2); color: var(--ink-2); pointer-events: none; }
.btn-ghost { display: inline-block; background: transparent; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; text-decoration: none; }
.btn-ghost:hover { border-color: var(--accent); }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; }

/* トップ */
.lead { max-width: 52rem; }
.lead p { color: var(--ink-2); margin-top: 0; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .18em; color: var(--accent) !important; margin: .6rem 0 .1rem; }
.lead h1 { font-size: 2rem; letter-spacing: -.01em; margin: 0 0 .5rem; }
h1 .alias { font-weight: 500; color: var(--ink-3); font-size: .8em; }
.search { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: .5rem; }
.search > * { min-width: 0; }
@media (max-width: 900px) { .search { grid-template-columns: minmax(0, 1fr); } }
.filters { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .9rem .9rem; position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; }
@media (max-width: 900px) { .filters { position: static; max-height: none; } }
.filters-title { font-size: .95rem; margin: .5rem 0; }
.fg { border-top: 1px solid var(--line); padding: .35rem 0; }
.fg summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .3rem 0; list-style: none; display: flex; align-items: center; gap: .4rem; }
.fg summary::-webkit-details-marker { display: none; }
.fg summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; margin-right: .2rem; }
.fg[open] summary::before { transform: rotate(45deg); }
.badge { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .72rem; padding: 0 .45rem; line-height: 1.5; }
.f { padding: .45rem 0 .55rem; }
.f-label { font-size: .84rem; color: var(--ink-2); margin-bottom: .25rem; }
.range { display: flex; align-items: center; gap: .3rem; }
.range label { display: flex; align-items: center; gap: .15rem; flex: 1; min-width: 0; }
.range input { width: 100%; min-width: 0; font: inherit; font-size: .88rem; padding: .3rem .4rem; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
.range input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.range input:disabled { opacity: .45; }
.pre, .unit { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
.tilde { color: var(--ink-3); }
.hint { font-size: .74rem; color: var(--ink-3); margin-top: .15rem; }
.chk { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--ink-2); margin-top: .25rem; cursor: pointer; }
.choices { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: .12rem .6rem; font-size: .8rem; background: var(--bg); }
.chip small { color: var(--ink-3); font-size: .72rem; }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; font-size: .8rem; padding: .25rem .2rem; border-left: 1px solid var(--line); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.help { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: .66rem; cursor: help; vertical-align: 1px; }

.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; }
.results-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.count { margin: 0; font-size: .95rem; }
.count strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; margin-right: .1rem; }
.missing { margin: .3rem 0 .6rem; font-size: .85rem; color: var(--ink-2); background: var(--paper); border: 1px dashed var(--line-2); border-radius: 6px; padding: .4rem .7rem; }
.missing[hidden] { display: none; }

/* 表 */
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-top: .5rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.cams th, .cams td { padding: .45rem .7rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-size: .87rem; }
.cams thead th { position: sticky; top: 0; background: var(--paper); font-size: .76rem; color: var(--ink-2); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.cams tbody th { font-weight: 600; position: sticky; left: 0; background: var(--paper); }
.cams tbody th a { text-decoration: none; }
.cams tbody tr:hover td, .cams tbody tr:hover th { background: var(--bg); }
.cams td.hl { background: var(--hl); }
.cams thead th.hl { color: var(--ink); }
.cams tr.miss td, .cams tr.miss th { opacity: .62; }
.cams sup { color: var(--ink-3); font-size: .7em; margin-left: .1em; }
th.sort { cursor: pointer; user-select: none; }
th.sort::after { content: "↕"; margin-left: .3em; color: var(--line-2); font-size: .9em; }
th.sort.on.asc::after { content: "↑"; color: var(--accent); }
th.sort.on.desc::after { content: "↓"; color: var(--accent); }
.pick-col { width: 2rem; text-align: center !important; }
.pick { width: 16px; height: 16px; accent-color: var(--accent); }
td.empty { text-align: center; color: var(--ink-2); padding: 2rem; white-space: normal; }
.na { color: var(--na); }
td.na { color: var(--na); font-size: .8rem; }
.none { color: var(--ink-3); }

/* 機種ページ */
.crumbs { font-size: .82rem; color: var(--ink-3); margin-top: .3rem; }
.crumbs a { color: var(--ink-2); }
h1 .maker { display: block; font-size: .85rem; color: var(--ink-2); font-weight: 600; letter-spacing: .05em; }
.actions { margin: 0 0 1rem; }
.general-note { background: var(--paper); border-left: 3px solid var(--accent); padding: .5rem .8rem; font-size: .88rem; color: var(--ink-2); }
.spec-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1rem; }
@media (max-width: 480px) { .spec-groups { grid-template-columns: 1fr; } }
.spec-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .2rem 1rem .6rem; }
.spec-group h2 { font-size: .95rem; margin: .7rem 0 .3rem; color: var(--accent); }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: .42rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec th { width: 46%; font-weight: 500; color: var(--ink-2); padding-right: .8rem; }
table.spec td { font-weight: 600; }
.note { font-size: .76rem; color: var(--ink-3); font-weight: 400; line-height: 1.5; margin-top: .15rem; }
.sources ul { font-size: .8rem; padding-left: 1.2rem; word-break: break-all; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips a { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: .15rem .7rem; font-size: .85rem; text-decoration: none; background: var(--paper); }

/* 条件別・メーカー別 */
.intro { max-width: 50rem; color: var(--ink-2); }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.cards a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; height: 100%; }
.cards a:hover { border-color: var(--accent); }
.cards span { color: var(--ink-3); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 比較 */
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.compare-bar select { font: inherit; padding: .35rem .5rem; border-radius: 6px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); max-width: 100%; }
table.compare th, table.compare td { padding: .45rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .87rem; }
table.compare thead th { position: sticky; top: 0; background: var(--paper); min-width: 150px; border-bottom: 2px solid var(--line-2); }
table.compare thead th a { text-decoration: none; font-weight: 700; display: block; }
table.compare thead .maker { display: block; font-size: .74rem; color: var(--ink-2); font-weight: 600; }
table.compare thead .code { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 400; }
table.compare tbody th { font-weight: 500; color: var(--ink-2); width: 12rem; position: sticky; left: 0; background: var(--paper); }
table.compare tr.group th { background: var(--bg); color: var(--accent); font-weight: 700; font-size: .85rem; }
table.compare tr.diff td { background: var(--diff); }
table.compare td.best { background: var(--best); color: var(--best-ink); font-weight: 700; }
.rm { float: right; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 1rem; line-height: 1; margin: -.1rem -.2rem 0 .4rem; }
.rm:hover { color: var(--accent); }

/* このサイトについて */
.prose { max-width: 46rem; }
.prose li { margin: .3rem 0; }
