:root {
  --ink: #0f172a;
  --muted: #475569;
  --soft: #e2e8f0;
  --paper: #ffffff;
  --wash: #f8fafc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-ghost: #eff6ff;
  --accent: #0f766e;
  --warning: #b45309;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}

a { color: inherit; }
img, svg { max-width: 100%; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: white;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav a {
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--brand-dark); }

.menu-button {
  display: none;
  border: 1px solid var(--soft);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.26);
}
.button-primary:hover { background: var(--brand-dark); }
.button-secondary {
  background: white;
  border-color: var(--soft);
  color: var(--ink);
}
.button-ghost {
  background: var(--brand-ghost);
  color: var(--brand-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.16), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(15, 118, 110, 0.15), transparent 30%),
    linear-gradient(180deg, #f8fafc, white 72%);
  padding: 88px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  background: var(--brand-ghost);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}
.hero p.lead {
  margin: 24px 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
}

.radar-card {
  position: relative;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.radar-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(37,99,235,0.55), rgba(15,118,110,0.35), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.metric {
  border: 1px solid var(--soft);
  border-radius: 18px;
  padding: 14px;
  background: white;
}
.metric span { display: block; color: #64748b; font-size: 12px; }
.metric strong { display: block; margin-top: 4px; font-size: 24px; letter-spacing: -0.04em; }
.invoice-list { margin-top: 16px; display: grid; gap: 10px; }
.invoice-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--soft);
  border-radius: 16px;
  padding: 12px;
  background: white;
  font-size: 13px;
}
.invoice-row b { display: block; }
.invoice-row small { color: #64748b; }
.tag-warn {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}
.tag-soon {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.section { padding: 76px 0; }
.section-soft { background: var(--wash); }
.section-title {
  margin: 0 auto 12px;
  max-width: 760px;
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.section-lead {
  margin: 0 auto;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.grid-2, .grid-3 {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: white;
  border: 1px solid var(--soft);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
}
.card h3 { margin: 0; font-size: 18px; }
.card p { color: var(--muted); margin: 10px 0 0; }
.icon-bubble {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--brand-ghost);
  color: var(--brand-dark);
  font-weight: 900;
  margin-bottom: 16px;
}

.problem-list {
  display: grid;
  gap: 12px;
  margin: 30px auto 0;
  max-width: 820px;
}
.problem-list li {
  list-style: none;
  background: white;
  border: 1px solid var(--soft);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--muted);
}
.problem-list li:before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 10px;
}

.pricing {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.price-card {
  padding: 30px;
  border-radius: 26px;
  border: 1px solid var(--soft);
  background: white;
}
.price-card.pro {
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}
.plan-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.plan-name { font-weight: 900; font-size: 20px; }
.recommend { font-size: 12px; font-weight: 900; color: var(--brand-dark); background: var(--brand-ghost); border-radius: 999px; padding: 5px 10px; }
.price { margin-top: 14px; font-size: 44px; line-height: 1; letter-spacing: -0.055em; font-weight: 900; }
.price small { font-size: 15px; color: #64748b; font-weight: 700; letter-spacing: 0; }
.feature-list { margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { list-style: none; color: var(--muted); }
.feature-list li:before { content:"•"; color: var(--brand); font-weight:900; margin-right: 10px; }

.notice-box {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 18px;
  font-size: 14px;
}

.faq { max-width: 820px; margin: 32px auto 0; display:grid; gap:12px; }
details {
  background: white;
  border: 1px solid var(--soft);
  border-radius: 18px;
  padding: 16px 18px;
}
summary { cursor: pointer; font-weight: 800; }
details p { color: var(--muted); margin-bottom: 0; }

.cta {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0f766e);
  color: white;
  border-radius: 32px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cta p { color: #dbeafe; margin: 10px 0 0; }
.cta .button-secondary { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--soft);
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-links a { text-decoration: none; color: #e2e8f0; }
.footer-small { font-size: 13px; color: #94a3b8; }

.legal-main {
  padding: 64px 0 84px;
  background: var(--wash);
}
.legal-card {
  max-width: 920px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--soft);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 12px 50px rgba(15,23,42,.06);
}
.legal-card h1 { margin-top: 0; letter-spacing: -0.04em; }
.legal-card h2 { margin-top: 34px; }
.legal-card table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 14px; }
.legal-card th, .legal-card td { border-bottom: 1px solid var(--soft); padding: 14px 12px; vertical-align: top; }
.legal-card th { width: 30%; background: #f8fafc; text-align: left; color: #334155; }
.legal-card p, .legal-card li, .legal-card td { color: var(--muted); }

@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid var(--soft);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .hero-grid, .grid-2, .grid-3, .pricing, .footer-grid, .cta {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 52px; }
  .cta { padding: 28px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 66px; }
  .hero h1 { font-size: 40px; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-actions .button, .cta .button { width: 100%; }
  .legal-card th, .legal-card td { display: block; width: 100%; }
  .legal-card th { border-bottom: 0; }
}

/* Single paid plan layout */
.pricing-single {
  grid-template-columns: minmax(280px, 560px);
  justify-content: center;
}
.pricing-single .price-card {
  width: 100%;
}
