/* base.css — shared mobile-first responsive base for site-factory (engine-plan.md §2).
   Mobile-first (Google deindexes no-mobile sites from 2026-07) + dark/light aware
   via prefers-color-scheme. No external fonts/CDN — self-contained static root. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5b6470;
  --card: #f6f7f9;
  --border: #e3e6ea;
  --accent: #1a6fe0;
  --accent-fg: #ffffff;
  --pr-bg: #fff7e6;
  --pr-fg: #6b4e00;
  --pr-border: #f0d48a;
  --maxw: 960px;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --fg: #e8ebef;
    --muted: #9aa4b0;
    --card: #1d222a;
    --border: #2b323c;
    --accent: #4f9bff;
    --accent-fg: #0b0e12;
    --pr-bg: #2a2410;
    --pr-fg: #f0d48a;
    --pr-border: #574a1f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* PR/広告 disclosure banner — ステマ規制: visible label, not hidden footer. */
.pr-banner {
  background: var(--pr-bg);
  color: var(--pr-fg);
  border-bottom: 1px solid var(--pr-border);
  font-size: 13px;
  padding: 8px 16px;
  text-align: center;
}
.pr-banner strong { font-weight: 700; }

header.site { padding: 24px 0 8px; }
header.site h1 { font-size: 1.5rem; margin: 0 0 4px; line-height: 1.3; }
header.site p.lede { color: var(--muted); margin: 0; }

main { padding: 16px 0 48px; }

h2 { font-size: 1.2rem; margin: 28px 0 12px; }

/* Comparison grid — a real table that scrolls horizontally inside its own
   container on narrow viewports (the body itself must never scroll sideways). */
.cmp {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cmp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmp table { width: 100%; min-width: 720px; border-collapse: collapse; }
.cmp th, .cmp td {
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cmp thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.cmp tbody th { font-weight: 700; white-space: nowrap; }
/* Secondary line inside a cell (app-store price, revision date …). */
.sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* 「無料トライアルなし」等の否定表示 — 決して CTA に見せない。 */
.none { color: var(--muted); font-weight: 600; }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 700;
  font-size: 14px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin: 12px 0;
}

footer.site {
  border-top: 1px solid var(--border); color: var(--muted);
  font-size: 13px; padding: 20px 0 40px;
}
footer.site a { color: var(--muted); }

/* Prominent 最終確認日 line — accuracy/freshness is the site's positioning. */
.updated {
  display: inline-block; background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--accent); border-radius: 8px;
  padding: 8px 14px; margin: 4px 0 16px; font-size: 14px;
}
.updated strong { color: var(--fg); }

/* Small-print / caveat lines under tables and cards. */
.note { color: var(--muted); font-size: 13px; margin: 10px 0; }

/* 選び方 / 出典 lists. */
.choose { margin: 0; padding-left: 1.2em; }
.choose li { margin: 6px 0; }
.sources { margin: 4px 0 0; padding-left: 1.2em; }
.sources li { margin: 6px 0; }
