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

:root {
  --bg: #ffffff;
  --bg2: #f7f8fc;
  --bg3: #eef0f8;
  --border: rgba(0,0,0,0.08);
  --text: #111827;
  --text2: #6b7280;
  --accent: #4f46e5;
  --accent2: #7c3aed;
  --accent-light: rgba(79,70,229,0.08);
  --green: #059669;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.05), 0 16px 48px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.btn-nav:hover { background: var(--accent2); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(79,70,229,.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 85% 90%, rgba(124,58,237,.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-label {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid rgba(79,70,229,.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text);
}
.grad {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--text2);
  font-size: 16px;
  line-height: 1.85;
  max-width: 640px;
  margin-bottom: 40px;
}
.pc-only { display: inline; }
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,.35);
}
.btn-ghost {
  color: var(--text2);
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
  display: inline-block;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(0,0,0,0.2);
  background: var(--bg2);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.stat-unit { font-size: 18px; }
.stat-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.stat-divider { width: 1px; height: 44px; background: var(--border); }

/* ── Sections common ── */
.features, .how, .contact { padding: 100px 0; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--text);
}
.section-sub {
  color: var(--text2);
  font-size: 15px;
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.8;
}

/* ── Platforms ── */
.platforms {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.platforms-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-align: center;
}
.platforms-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow);
}
.platform-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.platform-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.platform-badge.available .platform-status {
  background: rgba(5,150,105,.1);
  color: var(--green);
}
.platform-badge.coming .platform-status {
  background: rgba(107,114,128,.1);
  color: var(--text2);
}
.platform-badge.coming {
  opacity: .7;
}

/* ── Features ── */
.features { background: var(--bg2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  font-size: 13px;
  color: var(--text2);
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── How ── */
.how { background: var(--bg); }
.how-modes {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how-mode {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 36px;
}
.how-mode-header {
  margin-bottom: 24px;
}
.how-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 24px;
}
.how-mode-badge.chat {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid rgba(79,70,229,.2);
}
.how-mode-badge.auto {
  background: rgba(5,150,105,.08);
  color: var(--green);
  border: 1px solid rgba(5,150,105,.2);
}
.how-mode-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
}
.how-mode-divider::before,
.how-mode-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.steps {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.step-num {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .2;
  margin-bottom: 12px;
}
.step-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.step-content p { color: var(--text2); font-size: 13px; line-height: 1.75; }
.step-arrow {
  font-size: 18px;
  color: var(--text2);
  align-self: center;
  flex-shrink: 0;
  opacity: .35;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  margin-bottom: 36px;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-banner .btn-primary:hover {
  background: #f0f0ff;
}

/* ── Contact ── */
.contact { background: var(--bg2); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.req { color: #dc2626; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
  background: var(--bg);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(79,70,229,.3);
}
.btn-submit:hover { background: var(--accent2); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ci-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}
.contact-info-item p { color: var(--text2); font-size: 13px; line-height: 1.65; }

/* ── Footer ── */
.footer {
  background: #1e1e2e;
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .logo {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { color: rgba(255,255,255,.35); font-size: 13px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  z-index: 200;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error { border-color: #dc2626; color: #dc2626; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .pc-only { display: none; }
  .hero { padding: 100px 0 64px; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
}
