:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-elev: #ffffff;
  --text: #14161a;
  --text-muted: #5b626e;
  --border: #e6e8ec;
  --accent: #f5453d;
  --accent-strong: #d92d25;
  --accent-contrast: #ffffff;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px rgba(20, 22, 26, 0.06);
  --radius: 14px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --bg-soft: #14171c;
    --bg-elev: #171a20;
    --text: #f3f5f7;
    --text-muted: #9aa3b2;
    --border: #262b33;
    --accent: #ff5a52;
    --accent-strong: #ff716a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.85em;
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover {
  background: var(--accent-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-soft);
}
.btn-lg {
  padding: 0.8rem 1.5rem;
  font-size: 1.02rem;
}
.btn-block {
  width: 100%;
}

/* --- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  margin-right: 0.15rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.nav-links > a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.4rem 0.5rem;
}
.nav-links > a:not(.btn):hover {
  color: var(--text);
}

/* --- layout --- */
main {
  display: block;
}
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 0.4rem;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 40ch;
}

/* --- hero --- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
h1 {
  font-size: clamp(2rem, 5.2vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.accent {
  color: var(--accent);
}
.lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin: 0 0 1.6rem;
  max-width: 46ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* hero visual: phone + alert cards */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone {
  width: min(300px, 80%);
  padding: 1rem;
  border-radius: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.alert-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-muted);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}
.alert-card.critical {
  border-left-color: var(--accent);
}
.alert-head {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.dot.amber {
  background: #e8a33d;
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.22);
}
.alert-title {
  font-weight: 700;
  font-size: 1rem;
}
.alert-body {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.alert-ack {
  margin-top: 0.7rem;
  width: 100%;
  padding: 0.4rem;
  border-radius: 8px;
  border: none;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* --- features --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --- pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  align-items: start;
}
.plan {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.5rem;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.plan-name {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}
.plan-price {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.plan-price span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.2rem;
}
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.plan-features li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* --- final CTA --- */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

/* --- footer --- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}
.footer-brand {
  font-weight: 800;
  color: var(--text);
}
.footer-copy {
  margin: 0;
  font-size: 0.88rem;
}

/* --- responsive --- */
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    order: 1;
  }
  .hero-visual {
    order: 2;
  }
  .lead {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .nav-links > a:not(.btn) {
    display: none;
  }
}
