:root {
  --text: #1f2933;
  --bg: #dfe4ea;
  --panel: #ffffff;
  --accent: #2a6f77;
  --accent-soft: #d3e6e8;
  --warn: #b3261e;
  --muted: #5f6b7a;
  --muted-on-dark: #c3cdd6;
  --border: #c7d0d8;
  --zebra: #f2f6f7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

header.site .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

header.site a.brand {
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-size: 16px;
}

.hero {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.hero h1 {
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.4;
  color: var(--text);
}

.hero p.lead {
  color: var(--text);
  margin: 0;
  max-width: 680px;
}

main {
  padding: 24px 0 40px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 20px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel > h2:first-child { margin-top: 0; }
h2 svg.icon { width: 20px; height: 20px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ブランドマーク（2026-09-22b追加） */
a.brand { display: inline-flex; align-items: center; gap: 6px; }
a.brand svg { width: 22px; height: 22px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* FAQをカード化して比較表と視覚的に区別する（2026-09-22b追加） */
.faq-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 0 0 12px;
  background: var(--zebra);
}
.faq-item:last-child { margin-bottom: 0; }
.faq-q { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; margin: 0 0 6px; }
.faq-q .badge {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.faq-a { margin: 0; padding-left: 38px; color: var(--text); }
.faq-a .source { margin-top: 6px; }

/* モバイルで表が横スクロールできることを示すヒント（2026-09-22b追加） */
@media (max-width: 640px) {
  .table-wrap::after {
    content: "";
    position: absolute; top: 0; right: 0; bottom: 0; width: 20px;
    background: linear-gradient(to left, rgba(31,41,51,0.14), transparent);
    pointer-events: none;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin: 12px 0;
}

.table-wrap {
  overflow-x: auto;
  position: relative;
}

th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--text);
  color: #fff;
}

tbody tr:nth-child(even) td {
  background: var(--zebra);
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

td.diff {
  color: var(--warn);
  font-weight: bold;
}

.note {
  font-size: 16px;
  color: var(--muted);
}

.source {
  font-size: 16px;
  color: var(--muted);
  margin-top: 8px;
}

.source a { color: var(--accent); }

.disclaimer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 16px;
  margin: 0 0 20px;
}

footer.site {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  font-size: 16px;
  color: var(--muted);
}

footer.site a { color: var(--accent); }

@media (max-width: 480px) {
  .hero h1 { font-size: 20px; }
  .panel { padding: 16px; }
}
