:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-strong: #eaf1fc;
  --text: #162232;
  --muted: #4f6076;
  --line: #d9e2ec;
  --accent: #1f56b5;
  --accent-hover: #184491;
  --accent-text: #ffffff;
  --badge-bg: #e6f4ec;
  --badge-text: #16653c;
  --warn-bg: #fff6e8;
  --warn-border: #c98524;
  --warn-text: #744408;
  --shadow: 0 8px 24px rgba(22, 34, 50, 0.06);
  --radius: 10px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131922;
  --surface: #1b2432;
  --surface-strong: #23334c;
  --text: #eef3fc;
  --muted: #aebccf;
  --line: #324157;
  --accent: #7fb0ff;
  --accent-hover: #9bc2ff;
  --accent-text: #0e1a2b;
  --badge-bg: #173a2b;
  --badge-text: #8ce0b3;
  --warn-bg: #322718;
  --warn-border: #b8822d;
  --warn-text: #f3d29c;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Yu Gothic UI", "Meiryo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 2px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.theme-btn {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}

.theme-btn:hover {
  border-color: var(--accent);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.45;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

.lead {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section-lead {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 720px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.card ul,
.card ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.card li {
  margin: 6px 0;
}

.billing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.billing-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
}

.billing-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.billing-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-text);
}

.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--badge-bg);
  color: var(--badge-text);
}

.billing-toggle button[aria-pressed="true"] .badge {
  background: rgba(255, 255, 255, 0.22);
  color: var(--accent-text);
}

.pricing-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 30px;
  max-width: 680px;
  box-shadow: var(--shadow);
}

.pricing-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.price-line {
  margin: 14px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.price-unit {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}

.annual-total {
  margin: 0 0 10px;
  min-height: 22px;
  font-size: 13px;
  color: var(--muted);
}

.trial-note {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.pricing-list li::before {
  content: "・";
  color: var(--accent);
  font-weight: 700;
}

.pricing-footnote {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: flow;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  counter-increment: flow;
}

.step-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface-strong);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.step-card p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 16px 0 0;
}

.meta-line {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

code {
  background: var(--surface-strong);
  color: var(--text);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: Consolas, "Courier New", monospace;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.faq-list details p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.secondary-details {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.secondary-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

.secondary-details .details-body {
  margin-top: 14px;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 820px) {
  .card-grid,
  .card-grid-2,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .section {
    padding: 36px 0;
  }

  .pricing-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    padding: 10px 16px;
    flex-wrap: wrap;
  }

  .nav {
    gap: 12px;
  }

  main {
    padding: 0 16px 48px;
  }
}
