:root {
  --bg: #f7f4ee;
  --paper: #fffdf9;
  --ink: #1f2733;
  --sub: #5d6673;
  --line: #e4ddd1;
  --accent: #0f6b66;
  --accent-ink: #ffffff;
  --accent-soft: #e3f0ee;
  --gold: #b8892b;
  --gold-soft: #f6ecd6;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15191f;
    --paper: #1c222a;
    --ink: #e9e6e0;
    --sub: #a3aab4;
    --line: #2e3640;
    --accent: #4fb3a9;
    --accent-ink: #0d1a19;
    --accent-soft: #1d3331;
    --gold: #d9ad55;
    --gold-soft: #33291a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

/* 帯 */
.pr { background: var(--ink); color: var(--bg); font-size: 12px; text-align: center; padding: 4px 16px; }
.sample { background: var(--gold-soft); color: var(--ink); font-size: 13px; text-align: center; padding: 6px 16px; border-bottom: 1px solid var(--line); }

/* ヘッダー */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 16px; }
.gnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.gnav::-webkit-scrollbar { display: none; }
.gnav a { color: var(--sub); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.gnav a:hover, .gnav a[aria-current] { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 640px) {
  .head-in { padding: 8px 0; }
  .gnav { width: 100%; padding-bottom: 4px; }
}

.crumbs { font-size: 12px; color: var(--sub); margin: 16px 0 0; }
.crumbs a { color: var(--sub); }

/* 記事 */
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 36px; margin: 16px 0 40px; }
@media (max-width: 640px) { .article { padding: 20px 16px 28px; border-radius: 10px; } }
.art-head { border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 20px; }
.kicker { display: inline-block; margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: .12em; }
h1 { font-size: clamp(22px, 4.2vw, 30px); line-height: 1.45; margin: 0; letter-spacing: .03em; }
.byline { margin: 10px 0 0; font-size: 13px; color: var(--sub); }
h2 { font-size: 22px; line-height: 1.5; margin: 44px 0 14px; padding-left: 12px; border-left: 5px solid var(--accent); }
h3 { font-size: 18px; margin: 28px 0 8px; }
.lead { font-size: 16px; }
.small, .note { font-size: 13px; color: var(--sub); }
section { scroll-margin-top: 90px; }

.answer { background: var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; margin: 22px 0; }
.answer-h, .criteria-h, .toc-h, .policy-h, .cta-h { font-weight: 700; margin: 0 0 6px; }
.answer p:last-child { margin-bottom: 0; }
.criteria { border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.criteria ul { margin: 6px 0; padding-left: 1.2em; }

.toc { background: var(--bg); border-radius: var(--radius); padding: 14px 20px; margin: 24px 0; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* 比較表 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.cmp th { background: var(--bg); text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tr:last-child td { border-bottom: 0; }
.t-rank { font-weight: 700; color: var(--gold); width: 3em; }
.t-name { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.t-name:hover { color: var(--accent); }
.t-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-tags { color: var(--sub); }

/* アバター */
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; }
.av-sm { width: 28px; height: 28px; font-size: 13px; }
.av-md { width: 44px; height: 44px; font-size: 18px; }
.av-lg { width: 56px; height: 56px; font-size: 22px; }
.av-xl { width: 84px; height: 84px; font-size: 34px; }

/* カード */
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 18px 0; background: var(--paper); }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head h3 { margin: 0 0 4px; font-size: 19px; }
.rank-badge { position: absolute; top: -11px; left: 16px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 10px; border-radius: 999px; letter-spacing: .06em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; color: var(--sub); }
.card-point { margin: 14px 0; font-weight: 600; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 14px; }
.spec > div { background: var(--paper); padding: 10px 12px; }
.spec dt { font-size: 12px; color: var(--sub); }
.spec dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }
.spec-wide { grid-template-columns: 1fr; }
.spec-wide > div { display: grid; grid-template-columns: 8em 1fr; align-items: baseline; }
@media (max-width: 640px) { .spec { grid-template-columns: 1fr; } }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 999px; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15, 107, 102, .25); }
.link { font-size: 14px; font-weight: 600; }

.cta { border: 2px solid var(--accent); border-radius: var(--radius); padding: 22px; margin: 36px 0; text-align: center; }
.cta-h { font-size: 18px; }
.cta .btn { margin: 6px 0; }

/* ミニカード */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 12px 0; }
.mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: var(--paper); transition: border-color .15s ease; }
.mini:hover { border-color: var(--accent); }
.mini[hidden] { display: none; }
.mini-body { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.mini-rank { font-size: 11px; font-weight: 700; color: var(--gold); }
.mini-sub { font-size: 12px; color: var(--sub); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ステップ・チェック */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.steps strong, .steps span { display: block; }
.steps span { color: var(--sub); font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 4px; top: 10px; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: var(--paper); }
.faq summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; }
.faq summary::before { content: "Q"; color: var(--accent); margin-right: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 16px 14px 40px; color: var(--sub); }

.related ul { padding-left: 1.2em; }
.policy { background: var(--bg); border-radius: var(--radius); padding: 16px 20px; margin-top: 36px; font-size: 14px; }

/* プロフィール */
.profile { display: flex; align-items: center; gap: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 8px; }

/* フッター */
.site-foot { background: var(--paper); border-top: 1px solid var(--line); padding: 32px 0 24px; font-size: 14px; color: var(--sub); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid a { display: block; color: var(--sub); text-decoration: none; padding: 2px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-name { font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.foot-h { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.foot-legal { font-size: 12px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.copy { font-size: 12px; margin: 8px 0 0; }
.av-img { object-fit: cover; background: var(--line); }
