:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #162033;
  --muted: #657086;
  --line: #dde3ed;
  --accent: #3157d5;
  --accent-soft: #eef2ff;
  --good: #087f5b;
  --good-soft: #e8f8f1;
  --warn: #a85b00;
  --warn-soft: #fff3df;
  --shadow: 0 18px 50px rgba(26, 43, 78, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
button, select, input { font: inherit; }
.wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  padding: 64px 0 46px;
  background: linear-gradient(135deg, #152f7d, #4668db 68%, #7892ed);
  color: white;
}
.eyebrow { margin: 0 0 8px; font-weight: 800; letter-spacing: .08em; font-size: .82rem; opacity: .86; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.035em; }
.lead { max-width: 760px; margin: 14px 0 0; font-size: 1.08rem; opacity: .94; }
.notice { margin-top: 24px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 14px; background: rgba(255,255,255,.1); }
.layout { display: grid; gap: 20px; padding: 28px 0 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.section-head h2, .source-card h2 { margin: 0; font-size: 1.35rem; }
.section-head p { margin: 3px 0 0; color: var(--muted); }
.step { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; font-weight: 700; }
select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; background: white; color: var(--text); }
.range-row { display: grid; grid-template-columns: 1fr 72px; gap: 14px; align-items: center; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
output { justify-self: stretch; text-align: center; padding: 7px 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.checks { display: grid; gap: 10px; margin: 18px 0; padding: 16px; border-radius: 14px; background: #f8f9fc; }
.check-label { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.check-label input { width: 18px; height: 18px; accent-color: var(--accent); }
button { border: 0; border-radius: 13px; padding: 13px 18px; cursor: pointer; font-weight: 800; }
.primary { width: 100%; color: white; background: var(--accent); }
.primary:hover { filter: brightness(.96); }
.hero-result { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 20px; }
.hero-result > div { padding: 20px; border-radius: 18px; background: var(--accent-soft); }
.label { display: block; color: var(--muted); font-size: .88rem; font-weight: 700; }
.capacity { display: block; margin-top: 3px; font-size: clamp(2rem, 5vw, 3rem); color: var(--accent); letter-spacing: -.04em; }
.band { display: block; margin-top: 8px; font-size: 1.6rem; }
.result-block { padding: 18px 0; border-top: 1px solid var(--line); }
.result-block h3 { margin: 0 0 9px; font-size: 1.05rem; }
.result-block p { margin: 10px 0 0; }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: #eef0f4; color: #4d596e; font-size: .88rem; font-weight: 800; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
ul { padding-left: 1.25rem; }
.small-list { color: var(--muted); font-size: .9rem; }
.disclaimer { padding: 14px 16px; border-left: 4px solid var(--warn); border-radius: 8px; background: var(--warn-soft); font-size: .92rem; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.secondary { border: 1px solid var(--accent); color: var(--accent); background: white; }
.affiliate-note { color: var(--muted); font-size: .85rem; }
.source-card { color: var(--muted); }
.source-card h2 { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(520px, calc(100% - 30px)); padding: 13px 16px; border-radius: 12px; color: white; background: #172033; box-shadow: var(--shadow); text-align: center; font-weight: 700; }
@media (max-width: 720px) {
  .hero { padding-top: 46px; }
  .card { padding: 20px; border-radius: 18px; }
  .grid.two, .cta-grid, .hero-result { grid-template-columns: 1fr; }
  .range-row { grid-template-columns: 1fr 64px; }
}

.affiliate-disclosure-top { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: rgba(255,255,255,.12); font-size: .86rem; }
.affiliate-link { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding-block: 22px; color: var(--muted); font-size: .88rem; }
.footer-inner p { margin: 0; font-weight: 800; color: var(--text); }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
a { color: var(--accent); }
@media (max-width: 700px) { .footer-inner { align-items: flex-start; flex-direction: column; } }
