:root {
  --bg: #ffffff;
  --text: #1f2328;
  --muted: #5b6470;
  --line: #e3e6ea;
  --soft: #f5f7f9;
  --accent: #2f8f4e;
  --accent-dark: #23703c;
  --red: #d1242f;
  --mark: #fff3a3;
  --link: #0b63c5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --text: #e6e8eb;
    --muted: #9aa3ad;
    --line: #2c3238;
    --soft: #1c2025;
    --accent: #48b06b;
    --accent-dark: #5cc27e;
    --red: #ff6b6b;
    --mark: #5a4d00;
    --link: #6cb0ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}
a { color: var(--link); }
.inner { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.preview-bar { background: #b3261e; color: #fff; text-align: center; font-size: 13px; padding: 6px; }
.preview-note { display: inline-block; background: #b3261e; color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 4px; }

.site-header { border-bottom: 1px solid var(--line); padding: 14px 0 10px; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.logo::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.tagline { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

main { padding-top: 24px; padding-bottom: 48px; }

.eyecatch { display: block; width: 100%; height: auto; border-radius: 10px; margin: 0 0 24px; }
.card-img { display: block; width: 100%; height: auto; border-radius: 6px; margin-bottom: 10px; }

.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
h1 { font-size: 26px; line-height: 1.45; margin: 8px 0 8px; }
.dates { color: var(--muted); font-size: 13px; margin: 0 0 24px; }

.article h2 {
  font-size: 22px; line-height: 1.5; margin: 56px 0 16px;
  padding: 10px 14px; background: var(--soft); border-left: 5px solid var(--accent); border-radius: 2px;
}
.article h3 { font-size: 19px; line-height: 1.5; margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.article p { margin: 0 0 1.2em; }
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.article li { margin: 0.25em 0; }

mark { background: linear-gradient(transparent 45%, var(--mark) 45%); color: inherit; font-weight: 700; padding: 0 2px; }
strong.red { color: var(--red); }
strong.green { display: block; color: var(--accent-dark); margin: 1.2em 0 0.3em; }
strong.green + br { display: none; }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; min-width: 100%; font-size: 15px; line-height: 1.6; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: var(--soft); white-space: nowrap; }
tbody td:first-child { font-weight: 600; }

/* 機種を横に並べた比較表：1列目を固定し、列幅をそろえて、語の途中で折り返さない */
.table-wrap.compare { border: 1px solid var(--line); border-radius: 8px; }
.table-wrap.compare table { border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.55; word-break: auto-phrase; line-break: strict; }
.table-wrap.compare th, .table-wrap.compare td { border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; padding: 9px 10px; vertical-align: middle; }
.table-wrap.compare tr > :last-child { border-right: 0; }
.table-wrap.compare tbody tr:last-child td { border-bottom: 0; }
.table-wrap.compare thead th { background: var(--accent); color: #fff; text-align: center; }
.table-wrap.compare tbody td { text-align: center; }
.table-wrap.compare tbody tr:nth-child(even) td { background: var(--soft); }
.table-wrap.compare tr > :first-child {
  position: sticky; left: 0; z-index: 1;
  text-align: left; background: var(--soft); color: var(--text); font-weight: 700;
  box-shadow: 2px 0 0 var(--line);
}
.table-wrap.compare thead tr > :first-child { background: var(--accent-dark); color: #fff; }
/* 6列以上の表は、PC幅でも横にはみ出すので案内を出す */
.table-wrap.compare:has(th:nth-child(6)) .scroll-hint { display: block; }
.scroll-hint { display: none; margin: 0 !important; padding: 4px 10px; font-size: 12px; color: var(--muted); text-align: right; background: var(--soft); border-bottom: 1px solid var(--line); position: sticky; left: 0; }
@media (max-width: 600px) {
  .scroll-hint { display: block; }
  .table-wrap.compare table { font-size: 13px; }
  .table-wrap.compare th, .table-wrap.compare td { padding: 8px 10px; }
}

a.cta {
  display: block; max-width: 440px; margin: 8px auto 28px; padding: 14px 18px;
  background: var(--accent); color: #fff; text-align: center; font-weight: 700;
  text-decoration: none; border-radius: 8px; box-shadow: 0 2px 0 var(--accent-dark);
}
a.cta:hover { background: var(--accent-dark); }
a.cta::after { content: " ›"; }

.toc { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin: 32px 0; }
.toc-title { font-weight: 700; margin: 0 0 6px !important; }
.toc ol { margin: 0 !important; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.by { margin-top: 48px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.hero h1 { font-size: 28px; }
.hero p { color: var(--muted); }
section h2 { font-size: 20px; margin: 36px 0 12px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.card a { text-decoration: none; }
.card-title { font-weight: 700; font-size: 17px; }
.card p { margin: 6px 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.card time { font-size: 12px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--soft); padding: 24px 0 32px; font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-footer nav a { color: var(--text); }
.site-footer .note { line-height: 1.7; }
.site-footer .copy { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 22px; }
  .article h2 { font-size: 19px; }
  .article h3 { font-size: 17px; }
}
