:root {
  --color-primary: #1e3a8a;
  --color-primary-dark: #1e40af;
  --color-accent: #f59e0b;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-card: #ffffff;
  --max-width: 1100px;
  --radius: 12px;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic", sans-serif;
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
.brand span { color: var(--color-accent); }
.nav-lang {
  display: flex; gap: 8px;
  font-size: 14px;
}
.nav-lang a {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--color-muted);
}
.nav-lang a.active { background: var(--color-primary); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, transparent 100%);
}
.hero .badge {
  display: inline-block;
  padding: 6px 16px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.hero .lead-en {
  font-family: var(--font-en);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.hero p.summary {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 640px;
  margin: 32px auto 40px;
}
.hero .cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background .2s ease;
}
.hero .cta:hover { background: var(--color-primary-dark); text-decoration: none; transform: translateY(-1px); }

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-title {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 56px;
  font-size: 16px;
}

/* ---------- Features (3 col) ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--color-bg-card);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.feature .icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}
.feature p { color: var(--color-muted); font-size: 15px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--color-muted); font-size: 14px; }

/* ---------- Pricing ---------- */
.pricing-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 32px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(30,58,138,0.08);
}
.price-card .ribbon {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.price-card .price {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.price-card .price-unit {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 16px;
}
.price-card .price-meta {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.price-note {
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  margin-top: 24px;
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.contact-card .email {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 32px;
  margin-top: 80px;
}
.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .brand { color: #fff; }
.site-footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14px; line-height: 1.8; }
.site-footer .footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}

/* ---------- Legal Pages (terms, privacy, etc) ---------- */
.page {
  padding: 56px 0 80px;
  background: #fff;
}
.page-content {
  max-width: 800px;
  margin: 0 auto;
}
.page-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-content .last-updated {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.page-content h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 6px;
}
.page-content h3 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
.page-content p, .page-content ul, .page-content ol {
  margin-bottom: 12px;
  font-size: 15px;
  color: #1f2937;
}
.page-content ul, .page-content ol { padding-left: 24px; }
.page-content li { margin-bottom: 4px; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.page-content th, .page-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.page-content th {
  background: var(--color-bg-soft);
  font-weight: 600;
  width: 28%;
}
.page-content .back-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 14px;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero { padding: 56px 0 72px; }
  .section { padding: 56px 0; }
}
