:root {
  --bg: #f6f8fb;
  --paper: #ffffff;
  --text: #172033;
  --muted: #5c687c;
  --line: #dfe5ee;
  --brand: #164a8b;
  --brand-dark: #0b2f5f;
  --accent: #f4b63f;
  --soft: #eaf2fb;
  --danger-soft: #fff4e8;
  --ok-soft: #edf8f0;
  --shadow: 0 16px 40px rgba(22, 74, 139, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.header-inner,.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; }
.logo { font-weight: 800; color: var(--brand-dark); letter-spacing: .02em; }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.hero { background: linear-gradient(135deg, #0b2f5f 0%, #164a8b 58%, #2e74bd 100%); color: #fff; padding: 64px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 32px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; font-size: 13px; }
h1, h2, h3 { line-height: 1.35; }
h1 { font-size: clamp(32px, 5vw, 54px); margin: 18px 0 16px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 54px 0 18px; }
h3 { font-size: 20px; margin: 30px 0 10px; }
.article h1 + p { font-size: 18px; font-weight: 600; color: var(--brand-dark); border-left: 4px solid var(--accent); padding-left: 14px; }
.article h2 { border-left: 5px solid var(--brand); padding: 4px 0 4px 14px; }
.article h3 { color: var(--brand-dark); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.article p { margin: 0 0 16px; }
.article strong { color: var(--brand-dark); }
.article ul,.article ol { padding-left: 1.35em; }
.article li { margin: 7px 0; }
.article li::marker { color: var(--brand); font-weight: 800; }
.hero p { font-size: 17px; opacity: .94; }
.hero-card { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
.hero-card ul { padding-left: 20px; margin: 12px 0 0; }
.main { padding: 42px 0 72px; }
.notice,.card,.article-card,.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.notice { padding: 18px 20px; margin: 0 0 28px; }
.notice strong { color: var(--brand-dark); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { padding: 22px; }
.article-card .label { display: inline-block; color: var(--brand-dark); background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.article-card h3 { margin-top: 14px; }
.article-card p { color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.article { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 46px); box-shadow: var(--shadow); }
.article-meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.toc { padding: 18px; position: sticky; top: 84px; }
.toc h2 { font-size: 17px; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.cta-box { background: linear-gradient(135deg, #fff9ed, #ffffff); border: 1px solid #f1d79b; border-left: 5px solid var(--accent); border-radius: 18px; padding: 22px; margin: 34px 0; }
.check-box,.info-box { border-radius: 14px; padding: 16px 18px; margin: 20px 0; border-left: 4px solid var(--brand); }
.check-box { background: var(--ok-soft); }
.info-box { background: var(--soft); }
.warning { background: var(--danger-soft); }
.key-points { background: #fbfdff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: 16px 18px; margin: 20px 0 12px; }
.key-points > strong { display: block; margin-bottom: 8px; font-size: 15px; }
.key-points ul { margin: 0; }
.key-points li { margin: 5px 0; }
.decision-note { color: var(--muted); background: transparent; padding: 0 0 0 14px; margin: 12px 0 30px; border-left: 3px solid var(--accent); }
.decision-note strong { display: inline-block; margin-right: 4px; }
.decision-note a { font-weight: 800; }
.cost-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.cost-summary section { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fbfdff; }
.cost-summary section:first-child { background: var(--ok-soft); }
.cost-summary h3 { margin: 0 0 10px; font-size: 17px; border: 0; padding: 0; }
.cost-summary ul { margin: 0; }
.html-diagram { border: 1px solid var(--line); border-radius: 16px; background: #fbfdff; padding: 18px; margin: 24px 0; }
.html-diagram > strong { display: block; margin-bottom: 12px; color: var(--brand-dark); }
.html-diagram p { color: var(--muted); margin: 12px 0 0; }
.chip-list,.option-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip-list li,.option-list li { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; }
.option-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option-list span { display: block; font-weight: 800; color: var(--brand-dark); }
.voice-list { display: grid; gap: 12px; margin: 24px 0 30px; }
.voice-card { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; margin: 0; background: linear-gradient(135deg, #ffffff, #fbfdff); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.voice-card::before { content: "\201C"; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--soft); color: var(--brand-dark); font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.voice-card::after { content: ""; position: absolute; left: 34px; bottom: -7px; width: 14px; height: 14px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.voice-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; margin: 0 0 3px; }
.voice-card p { grid-column: 2; margin: 0; color: var(--text); font-weight: 650; line-height: 1.7; }
.review-chip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.review-chip-list li { text-align: center; font-weight: 800; color: var(--brand-dark); background: #fff; }
.caution-text { color: #b33a2e; }
.article-readable h2 { border-left: 0; border-bottom: 2px solid var(--soft); padding: 0 0 8px; margin-top: 46px; }
.article-readable h3 { border-bottom: 0; padding-bottom: 0; margin-top: 26px; }
.article-readable .beginner-note ul { margin: 10px 0 0; padding-left: 1.2em; }
.article-readable .voice-list { gap: 10px; margin: 18px 0 30px; }
.article-readable .voice-card { border-radius: 14px; background: #fff; }
.article-readable .voice-card::after { display: none; }
.review-fix-list { display: grid; gap: 14px; margin: 20px 0 30px; }
.review-fix-list section { border-left: 4px solid var(--accent); background: #fbfdff; padding: 16px 18px; border-radius: 12px; }
.review-fix-list h3 { margin-top: 0; }
.review-fix-list p { margin-bottom: 10px; }
.table-wrap { overflow-x: auto; margin: 22px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 12px; vertical-align: top; }
th { background: var(--soft); text-align: left; }
tbody tr:nth-child(even) { background: #fbfdff; }
.article-figure { margin: 28px 0; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.article-figure img { display: block; width: 100%; border-radius: 16px; }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #1f2430; font-weight: 800; border-radius: 999px; padding: 12px 18px; margin-top: 8px; }
.btn:hover { text-decoration: none; filter: brightness(.98); }
.footer { border-top: 1px solid var(--line); background: #fff; padding: 32px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .hero-grid,.article-layout,.cost-summary,.chip-list,.option-list { grid-template-columns: 1fr; } .grid { grid-template-columns: 1fr; } .toc { position: static; } .nav { display: none; } .review-chip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .voice-card { grid-template-columns: 34px minmax(0, 1fr); padding: 14px; } .voice-card::before { width: 34px; height: 34px; font-size: 27px; } }
