:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe3ef;
  --accent: #0b6bcb;
  --accent-dark: #084f99;
  --accent-soft: #eff6ff;
  --accent-tint: #dbeafe;
  --navy: #0a2540;
  --warn: #92400e;
  --ok: #15803d;
  --shadow: 0 2px 10px rgba(10, 37, 64, 0.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.pr-banner, .pr-notice {
  background: #fef9e7;
  border-bottom: 1px solid #f0d78c;
  color: #5b4300;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  text-align: center;
}
.pr-notice {
  border: 1px solid #f0d78c;
  border-radius: 8px;
  margin: 1rem 0 0.6rem;
}

.site-header {
  background: #ffffff;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(10, 37, 64, 0.04);
}
.site-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy);
  text-decoration: none;
}
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b6bcb 0%, #0284c7 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.site-header nav a {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.site-header nav a:hover {
  background: var(--accent-soft);
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.15rem 1rem 2rem;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid #cfe0f5;
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.55rem;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

h1 {
  font-size: 1.48rem;
  line-height: 1.38;
  color: var(--navy);
  margin: 0.2rem 0 0.5rem;
}
h2 {
  font-size: 1.18rem;
  line-height: 1.4;
  color: var(--navy);
  margin: 1.4rem 0 0.7rem;
  padding-left: 0.65rem;
  border-left: 4px solid var(--accent);
}
.card > h2:first-child { margin-top: 0; }
.lead { color: var(--muted); margin: 0.2rem 0 0; }
.small { font-size: 0.85rem; color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  margin: 1rem 0;
  box-shadow: var(--shadow);
}
.result-card {
  border-color: #93c5fd;
  box-shadow: 0 6px 20px rgba(11, 107, 203, 0.1);
}

.fields { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field-group {
  border: 0;
  margin: 0;
  padding: 0;
}
.field-group + .field-group {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.field-group legend {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  padding: 0 0 0 0.55rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 0.65rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}
.field label { font-weight: 600; font-size: 0.95rem; }
.field .row { display: flex; align-items: center; gap: 0.5rem; }
.field input[type=number], .field select {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input[type=number]:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 107, 203, 0.16);
}
.field input[type=checkbox] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.field .unit { white-space: nowrap; color: var(--muted); font-size: 0.95rem; }
.field .help { font-size: 0.8rem; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.8rem; }
.btn {
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, transform 0.08s ease;
}
.btn:hover { background: var(--accent-soft); }
.btn.primary {
  background: linear-gradient(180deg, #1074d8 0%, #0b6bcb 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(11, 107, 203, 0.25);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #0b6bcb 0%, #084f99 100%);
}

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.metric {
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
  border-radius: 10px;
  padding: 0.8rem 0.85rem;
}
.metric:nth-child(-n+2) {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  border-color: #93c5fd;
}
.metric .v {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.metric .k { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.65rem 0;
}
table.compare th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid var(--line);
  padding: 0.55rem 0.5rem;
  text-align: left;
}
table.compare td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.5rem;
  text-align: left;
}
table.compare td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
table.compare tr.best {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
table.compare tr.best td:first-child {
  border-left: 4px solid var(--accent);
  font-weight: 700;
}
.bar {
  height: 10px;
  background: #dbeafe;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.3rem;
}
.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0b6bcb 0%, #0284c7 100%);
  border-radius: 999px;
}

.notes li, .warn li { margin: 0.35rem 0; }
.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.65rem 0.9rem 0.65rem 1.7rem;
  color: var(--warn);
}
.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 4px solid var(--accent-tint);
  padding-left: 0.8rem;
  margin: 1rem 0;
}

.cta-area .offer, .cta-area .guide {
  background: #f8fbff;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0.65rem 0;
}
.cta-area .offer a { color: var(--accent); font-weight: 700; }
.cta-area .guide h3 { margin: 0.1rem 0 0.35rem; color: var(--navy); }
.cta-area img.pixel {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.explanation strong, .page strong {
  color: var(--navy);
  font-weight: 700;
  background: linear-gradient(transparent 62%, #dbeafe 62%);
  padding: 0 0.15em;
  border-radius: 2px;
}

.explanation dl { margin: 0.6rem 0 0; }
.explanation dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.explanation dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.explanation dd { margin: 0.25rem 0 0; color: var(--muted); }

.article-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
.article-list li a {
  display: block;
  padding: 0.8rem 0.95rem;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.article-list li a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.page section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  margin: 0.9rem 0;
  box-shadow: var(--shadow);
}
.page section > h2:first-child { margin-top: 0; }
.page a { color: var(--accent); }

.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  margin-top: 2rem;
  padding: 1.5rem 1rem 2.2rem;
}
.site-footer-inner {
  max-width: 920px;
  margin: 0 auto;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 0.7rem;
}
.site-footer nav a {
  color: #93c5fd;
  font-size: 0.9rem;
  text-decoration: none;
}
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .small { color: #94a3b8; margin: 0; }

@media (min-width: 720px) {
  h1 { font-size: 1.65rem; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-group { grid-column: 1 / -1; }
  .field-group .group-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .article-list { grid-template-columns: 1fr 1fr; }
}
