/* ============================================================
   PassLog LP — Unified Stylesheet
   v4.0.0 / 2026-04-23
   LP本体 (index.html) と 法的ページ (terms.html / policy.html) 共通
   ============================================================ */

/* ----------------------------------------------------------
   1. Design Tokens (light & dark via prefers-color-scheme)
   ---------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #06b6d4;
  --accent-light: #22d3ee;

  /* State */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-dark: #e2e8f0;
  --text-on-dark-muted: rgba(255, 255, 255, 0.65);

  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --surface: #ffffff;

  /* Border */
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* Dark hero palette (brand) */
  --dark-1: #0a1628;
  --dark-2: #0f172a;
  --dark-3: #1e293b;

  /* Gradient */
  --gradient-hero: linear-gradient(135deg, #0a1628 0%, #1e293b 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.15);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 100px;

  /* Spacing (4px step) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --content-width: 1200px;
  --legal-width: 760px;

  /* Type */
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #0b1322;
    --surface: #111c31;
    --border: #334155;
    --border-light: #1e293b;
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
    --gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.10) 100%);
  }
}

/* ----------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ----------------------------------------------------------
   3. Typography
   ---------------------------------------------------------- */
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   4. Layout
   ---------------------------------------------------------- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto var(--space-16);
}

/* ----------------------------------------------------------
   5. Components
   ---------------------------------------------------------- */

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* Store badges */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.store-badge {
  display: inline-flex;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
}

/* ----------------------------------------------------------
   6. Site Chrome (Nav / Footer)
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 24px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 24px;
}

.site-nav {
  max-width: var(--content-width);
  margin: 0 auto;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
  background: var(--gradient-accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.site-footer {
  background: var(--dark-1);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-16) var(--space-6) var(--space-10);
}

.footer-content {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}

/* ----------------------------------------------------------
   7. LP Sections
   ---------------------------------------------------------- */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 24px 80px;
  background: var(--gradient-hero);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero::before {
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.25);
  top: -150px;
  right: -100px;
  animation: float 10s ease-in-out infinite;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: rgba(6, 182, 212, 0.18);
  bottom: -100px;
  left: -80px;
  animation: float 12s ease-in-out infinite reverse;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-title-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

.hero-actions {
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  max-width: 520px;
}

.hero-stat {
  padding: var(--space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
  filter: blur(40px);
}

.hero-phone-carousel {
  position: relative;
  width: 280px;
  height: 607px;
}

.hero-phone-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 607px;
  border-radius: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.8s ease;
  object-fit: cover;
}

.hero-phone-img.active {
  opacity: 1;
}

/* Pillars (新設) */
.pillars-section {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--bg-primary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.pillar-card {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0.9;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.pillar-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Scenes */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.scene-card {
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.scene-emoji {
  font-size: 44px;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-4);
}

.scene-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: var(--space-3);
}

.scene-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.scene-arrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  padding: 6px 14px;
  background: var(--gradient-soft);
  border-radius: var(--radius-full);
}

/* How it works */
.steps-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--space-4);
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.step-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  align-self: center;
  color: var(--primary);
  font-size: 28px;
  font-weight: 400;
}

/* Security */
.security-section {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--gradient-hero);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.security-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.security-header {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-16);
}

.security-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: var(--space-5);
  color: #fff;
}

.security-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.75);
}

.security-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.security-card {
  padding: var(--space-8) var(--space-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.security-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.security-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.security-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.security-note {
  position: relative;
  max-width: var(--content-width);
  margin: var(--space-12) auto 0;
  padding: 0 var(--space-6);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-card {
  padding: var(--space-8) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card.feature-new {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.05), var(--surface));
}

.feature-new-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--gradient-accent);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}

.feature-icon-wrap {
  font-size: 36px;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Comparison */
.comparison-section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.comparison-table-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead th {
  background: var(--bg-tertiary);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th:first-child {
  text-align: left;
}

.comparison-table thead th.highlight {
  background: var(--gradient-accent);
  color: #fff;
}

.comparison-table tbody td {
  padding: var(--space-4);
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td.highlight {
  background: rgba(37, 99, 235, 0.04);
  font-weight: 700;
  color: var(--primary);
}

.check-yes {
  display: inline-block;
  color: var(--success);
  font-size: 18px;
  font-weight: 700;
}

.check-no {
  display: inline-block;
  color: var(--text-muted);
  font-size: 18px;
}

.check-partial {
  display: inline-block;
  font-size: 12px;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 920px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  padding: var(--space-10) var(--space-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.plan-card.plan-premium {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient-accent) border-box;
  box-shadow: var(--shadow-glow);
}

.plan-badge {
  position: absolute;
  top: -14px;
  right: var(--space-6);
  padding: 6px 16px;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: var(--space-6);
}

.plan-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-price-highlight {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--gradient-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.plan-check {
  flex-shrink: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.65;
}

/* Graceful degradation notice (段階的制限) */
.plans-notice {
  max-width: 920px;
  margin: var(--space-10) auto 0;
  padding: var(--space-6) var(--space-8);
  background: var(--gradient-soft);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.plans-notice-icon {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}

.plans-notice-body {
  flex: 1;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.plans-notice-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  user-select: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-question-text {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

.faq-q-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.faq-chevron {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 800px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5) 52px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* CTA */
.cta-section {
  padding: clamp(72px, 10vw, 120px) var(--space-6);
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-5);
}

.cta-desc {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--space-10);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-10);
}

.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.cta-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.cta-feature-icon {
  font-size: 14px;
  line-height: 1;
}

/* ----------------------------------------------------------
   8. Legal pages (terms / policy)
   ---------------------------------------------------------- */
body.legal-page {
  background: var(--bg-secondary);
}

.legal-page main {
  padding: var(--space-10) var(--space-4) var(--space-16);
}

.legal-container {
  max-width: var(--legal-width);
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.legal-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: var(--space-5);
}

.legal-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.legal-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-10) clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-md);
}

.legal-section + .legal-section {
  margin-top: var(--space-10);
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border-light);
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: var(--space-3);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: var(--space-3) 0;
}

.legal-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: var(--space-2);
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--primary-dark);
}

.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.legal-section th,
.legal-section td {
  text-align: left;
  border: 1px solid var(--border);
  padding: var(--space-3);
  vertical-align: top;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-section th {
  background: var(--gradient-soft);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
}

.legal-footer {
  max-width: var(--legal-width);
  margin: var(--space-10) auto 0;
  padding: var(--space-6) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.legal-footer a {
  color: var(--primary);
}

/* ----------------------------------------------------------
   9. Animations
   ---------------------------------------------------------- */
.fade-in {
  animation: fadeInUp 0.8s ease both;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.visible:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll.visible:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll.visible:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll.visible:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll.visible:nth-child(6) { transition-delay: 0.40s; }
.animate-on-scroll.visible:nth-child(7) { transition-delay: 0.48s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

/* ----------------------------------------------------------
   10. Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    text-align: center;
  }

  .hero-subtitle,
  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge,
  .store-badges {
    justify-content: center;
  }

  .store-badges {
    display: inline-flex;
  }

  .pillars-grid,
  .features-grid,
  .scenes-grid,
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .step-connector {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-title {
    line-height: 1.2;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-phone-carousel,
  .hero-phone-img {
    width: 240px;
    height: 520px;
  }

  .hero-phone-glow {
    width: 300px;
    height: 300px;
  }

  .pillars-grid,
  .features-grid,
  .scenes-grid,
  .security-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plans-notice {
    flex-direction: column;
    text-align: left;
    padding: var(--space-5);
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: var(--space-3);
    font-size: 13px;
  }

  .legal-content {
    padding: var(--space-6);
  }
}

/* ----------------------------------------------------------
   11. Reduced Motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-phone-img {
    opacity: 1;
  }
}
