:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-alt);
  font-size: 0.85rem;
  font-weight: 700;
}
.lang-switch a, .lang-switch span {
  padding: 5px 12px;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch .active {
  background: var(--ink);
  color: #ffffff;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 100%);
  color: #ffffff;
  padding: 40px 0 46px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 12px;
}
.breadcrumbs a { color: #cbd5e1; }
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
  color: #e2e8f0;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}
.pill-amber {
  background: var(--amber-soft);
  color: #92400e;
}
.pill-teal {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

main { padding: 30px 0 56px; }
section { margin-bottom: 34px; }
h2 {
  font-size: 1.4rem;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.verdict-box {
  border-left: 5px solid var(--teal);
  background: #f0fdfa;
}
.verdict-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  margin-bottom: 6px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.field select, .field input[type="range"] {
  width: 100%;
}
.field select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--ink);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.chip-btn.active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.calc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-alt);
  margin-bottom: 18px;
}
.calc-need {
  font-size: 1.05rem;
  font-weight: 800;
}
.calc-need strong { color: var(--teal-dark); font-size: 1.25rem; }

.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.reco-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
}
.reco-card.featured {
  border: 2px solid var(--teal);
  background: #f0fdfa;
}
.reco-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink);
}
.reco-sub { font-size: 0.86rem; color: var(--muted); }

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.cta-btn:hover {
  background: var(--teal-dark);
  text-decoration: none;
}
.cta-btn-sm {
  width: auto;
  padding: 8px 14px;
  font-size: 0.86rem;
  white-space: nowrap;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
  font-size: 0.92rem;
}
th, td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--surface-alt);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
tr:last-child td { border-bottom: none; }

.takeaways {
  margin: 0;
  padding-left: 20px;
}
.takeaways li { margin-bottom: 8px; }
.tip-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: #78350f;
  font-size: 0.92rem;
  font-weight: 600;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-list details:last-child { border-bottom: none; }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
}
.faq-list summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--teal-dark);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.link-card {
  display: block;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.94rem;
}
.link-card span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}
.link-card:hover {
  border-color: var(--teal);
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.86rem;
}
.disclosure {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-alt);
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .card { padding: 16px; }
  .hero { padding: 28px 0 34px; }
}
