:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #8a8983;
  --line: #e7e6e1;
  --accent: #2a78d6;
  --accent-soft: #e8f1fc;
  --accent-ink: #1c5cab;
  --warm: #eb6834;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1a1a19;
    --ink: #f5f5f2;
    --ink-2: #c3c2b7;
    --ink-3: #8f8e86;
    --line: #2c2c2a;
    --accent: #3987e5;
    --accent-soft: #16263a;
    --accent-ink: #86b6ef;
    --warm: #d95926;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { 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: 16px; line-height: 1.85; letter-spacing: .02em;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 700; }
.nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--ink-2); }

/* ヒーロー */
.hero { padding: 56px 0 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.3; margin: 16px 0 12px; letter-spacing: 0; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--ink-2); max-width: 640px; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 640px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 26px; font-family: var(--mono); line-height: 1.2; }
.stat span { font-size: 12px; color: var(--ink-3); }

/* セクション */
.section { padding: 28px 0 48px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-head h2 { font-size: 22px; margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }

/* 記事カード */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease; color: var(--ink); }
.card:hover { transform: translateY(-3px); text-decoration: none; }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--accent-soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 16px; line-height: 1.55; margin: 0; }
.card p { font-size: 13px; color: var(--ink-2); margin: 0; line-height: 1.7; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); }
.chip.warm { background: color-mix(in srgb, var(--warm) 14%, transparent); color: var(--warm); }

/* 表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--ink-3); font-weight: 700; background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); }
td.num { font-family: var(--mono); text-align: right; }
th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
.bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--accent); vertical-align: middle; margin-right: 8px; }
.bar.cpu { background: var(--warm); }

/* 記事ページ */
.article { padding: 32px 0 56px; }
.article h1 { font-size: clamp(24px, 4vw, 34px); line-height: 1.45; margin: 12px 0 10px; letter-spacing: 0; }
.article .lead { font-size: 17px; color: var(--ink-2); }
.article h2 { font-size: 21px; margin: 40px 0 12px; padding-left: 12px; border-left: 5px solid var(--accent); line-height: 1.5; }
.article ul { padding-left: 1.3em; }
.article li { margin: 4px 0; }
.article figure { margin: 24px 0; }
.article figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.article figcaption { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.point { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.point b { color: var(--accent-ink); }
.point ul { margin: 6px 0 0; }
.source { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; word-break: break-all; }
.notice { font-size: 12px; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line);
  border-radius: 12px; padding: 10px 14px; margin: 16px 0; }
.cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 18px 20px; margin-top: 36px; }
.cta p { margin: 0; font-weight: 700; }
.cta a { background: var(--bg); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 16px; }

/* ヒーロー右側：最新の実測（ターミナル風） */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: center; }
.term { background: #0f1115; color: #e6e6e6; border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--mono); font-size: 13px; overflow: hidden; border: 1px solid #23262d; }
.term-bar { display: flex; gap: 6px; padding: 10px 12px; background: #171a20; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f48; display: block; }
.term-body { padding: 14px 16px 18px; line-height: 1.9; }
.term-body .cmd { color: #86b6ef; }
.term-body .out { display: flex; justify-content: space-between; gap: 12px; }
.term-body .out b { color: #fff; }
.term-body .dim { color: #8f8e86; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .term { display: none; } }

body { overflow-x: hidden; }
@media (max-width: 600px) {
  .nav { gap: 12px; font-size: 13px; }
  .nav .hide-sm { display: none; }
  .logo { font-size: 16px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat b { font-size: 20px; }
}

/* ---- 記事を読みやすくする部品 ---- */
.hint { font-size: 13px; color: var(--ink-3); margin: 8px 0; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.meta span + span::before { content: "・"; margin-right: 6px; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin: 20px 0; }
.toc ol { margin: 6px 0 0; padding-left: 1.4em; }
.toc li { margin: 2px 0; font-size: 15px; }

.whom { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 28px 0; }
.whom > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.whom ul { margin: 6px 0 0; }

.glossary { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--warm);
  border-radius: var(--radius); padding: 14px 20px; margin: 28px 0; }
.glossary dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .glossary dl { grid-template-columns: 1fr; } .glossary dd { margin-bottom: 8px; } }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }

.share { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--accent); }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.grid.small .card p { display: none; }
.card[hidden] { display: none; }

/* 体感の目印 */
.feel { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; white-space: nowrap; }
.feel.fast { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.feel.good { background: color-mix(in srgb, #1baf7a 16%, transparent); color: #128a5f; }
.feel.ok { background: color-mix(in srgb, #eda100 18%, transparent); color: #9a6a00; }
.feel.slow { background: color-mix(in srgb, var(--warm) 16%, transparent); color: var(--warm); }
@media (prefers-color-scheme: dark) { .feel.good { color: #4fd6a3; } .feel.ok { color: #f2c04d; } }

/* グラフ（SVG） */
.chart { margin: 20px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .lbl { font-size: 14px; fill: var(--ink); font-family: var(--font); }
.chart .sub { font-size: 11px; fill: var(--ink-3); font-family: var(--font); }
.chart .val { font-size: 12px; fill: var(--ink-2); font-family: var(--mono); }
.chart .g { fill: var(--accent); }
.chart .c { fill: var(--warm); }
.chart figcaption { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

/* PCチェッカー */
.checker { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.checker h2 { margin: 0 0 4px; border: 0; padding: 0; font-size: 20px; }
.checker-form { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 12px 0; }
.checker-form label { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; gap: 4px; }
.checker-form select { font: inherit; font-size: 15px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); min-width: 160px; }
.checker-result { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checker-result li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.checker-result li b { min-width: 150px; font-family: var(--mono); }
.checker-result li span { color: var(--ink-2); }
.checker-result li.no { opacity: .55; }

/* 絞り込み */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters input { font: inherit; flex: 1 1 260px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.filter-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 実測のやり方 */
.steps { list-style: none; counter-reset: s; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px 12px 56px; position: relative; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--mono); }
.steps span { color: var(--ink-2); font-size: 14px; }
pre.sample { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 13px; line-height: 1.8; color: var(--ink-2); max-height: 280px; overflow: auto; }

/* 調整 */
td { white-space: normal; }
td.num, th { white-space: nowrap; }
.article figure.thumbnail { max-width: 380px; margin: 20px auto; }

/* 連載 */
.series-badge { display: inline-block; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--warm)); padding: 3px 12px; border-radius: 999px; }
.series-nav { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent);
  border-radius: var(--radius); padding: 16px 20px; margin: 32px 0; }
.series-nav ol { list-style: none; padding: 0; margin: 8px 0 0; }
.series-nav li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.series-nav li:last-child { border-bottom: 0; }
.series-nav li.soon { color: var(--ink-3); }
.series-nav li.now b { color: var(--accent-ink); }
.article figure.shot img { border-radius: var(--radius); }
