:root {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f5;
  --text: #1a2332;
  --muted: #5b6b7f;
  --border: #d8e0e8;
  --accent: #0b6bcb;
  --accent-dark: #084e96;
  --accent-soft: #e8f2fc;
  --warn-bg: #fff7e6;
  --warn-border: #e8c97a;
  --ok-bg: #ecf7ee;
  --ok-border: #9fd3a8;
  --radius: 12px;
  --maxw: 920px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181f;
    --surface: #1a222c;
    --surface-2: #222d39;
    --text: #e8eef4;
    --muted: #a3b2c2;
    --border: #33424f;
    --accent: #4da3e8;
    --accent-dark: #8fc3f2;
    --accent-soft: #1c3049;
    --warn-bg: #33290f;
    --warn-border: #8a6d2f;
    --ok-bg: #16301c;
    --ok-border: #3f7a4c;
  }
}
* { 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 Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.site-name { font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.site-nav { display: flex; gap: 16px; margin-left: auto; font-size: 0.95rem; }
.site-nav a { text-decoration: none; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); padding-top: 10px; padding-bottom: 2px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin: 0 4px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
main { padding-bottom: 48px; }
h1 { font-size: 1.65rem; line-height: 1.4; margin: 18px 0 12px; }
h2 { font-size: 1.25rem; line-height: 1.45; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
h3 { font-size: 1.05rem; margin: 24px 0 8px; }
p { margin: 10px 0; }
ul, ol { margin: 10px 0; padding-left: 1.4em; }
li { margin: 4px 0; }
.lead { font-size: 1.02rem; }
.conclusion {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0;
}
.conclusion h2 { border-bottom: none; margin-top: 0; font-size: 1.15rem; }
.cta-row { margin: 14px 0 4px; display: flex; flex-wrap: wrap; gap: 10px; }
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1rem;
}
.cta:hover { background: var(--accent-dark); color: #fff; }
.cta-sub { font-size: 0.88rem; color: var(--muted); margin-top: 6px; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; }
caption { text-align: left; font-weight: 700; padding: 6px 0; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.okbox { background: var(--ok-bg); border: 1px solid var(--ok-border); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; }
.source-line { font-size: 0.88rem; color: var(--muted); }
.faq dt { font-weight: 700; margin-top: 16px; }
.faq dd { margin: 4px 0 0 0; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { position: relative; padding-left: 44px; margin: 12px 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 14px 0; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.card h3 { margin-top: 0; }
.card a.card-link { font-weight: 700; font-size: 1.02rem; }
.related { border-top: 2px solid var(--border); margin-top: 36px; padding-top: 8px; }
.related ul { list-style: none; padding-left: 0; }
.related li { margin: 8px 0; }
.ad-slot {
  min-height: 250px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  margin: 28px 0;
  padding: 12px;
  text-align: center;
}
.tool-area { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 18px 0; background: var(--surface); }
.tool-area h2 { border-bottom: none; margin-top: 0; }
.preset-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.preset-chips a {
  border: 1px solid var(--accent); border-radius: 999px; padding: 6px 14px;
  text-decoration: none; font-size: 0.92rem; background: var(--bg);
}
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 24px 0 32px; margin-top: 24px; font-size: 0.92rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.footer-meta, .footer-note { color: var(--muted); }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.small { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 640px) {
  h1 { font-size: 1.4rem; }
  .cta { width: 100%; text-align: center; }
  .ad-slot { min-height: 200px; }
}
