/* ── Design tokens ──────────────────────────────────────────────────────── */

:root {
  --bg-base:        #0f1117;
  --bg-surface:     #1a1f2e;
  --bg-elevated:    #242938;
  --accent:         #00c2cc;
  --accent-hover:   #00e5f0;
  --accent-dim:     rgba(0, 194, 204, 0.2);
  --text-primary:   #f0f4ff;
  --text-secondary: #8892a4;
  --text-disabled:  #3d4455;
  --border:         #2a3040;
  --font-display:   'Syne', sans-serif;
  --font-mono:      'DM Mono', monospace;
  --font-body:      'Noto Sans JP', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ── Layout primitives ──────────────────────────────────────────────────── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.section { padding: 80px 20px; }

.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 48px;
}

/* ── Sticky Header ──────────────────────────────────────────────────────── */

.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(26, 31, 46, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.lp-header.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.lp-header-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.5px;
  user-select: none;
}

.btn-cta-sm {
  display: inline-block;
  background: var(--accent);
  color: #0f1117;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.15s, transform 0.15s;
  white-space: nowrap;
}

.btn-cta-sm:hover  { background: var(--accent-hover); }
.btn-cta-sm:active { transform: scale(0.97); }

/* ── CTA button ─────────────────────────────────────────────────────────── */

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #0f1117;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  user-select: none;
}

.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 194, 204, 0.35);
}

.btn-cta:active {
  transform: scale(0.97);
  box-shadow: none;
}

/* ── Scroll animations ──────────────────────────────────────────────────── */

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

@keyframes scrollFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim         { opacity: 0; }
.anim-label   { opacity: 0; }

.anim.is-visible {
  animation: scrollFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-label.is-visible {
  animation: scrollFadeIn 0.5s ease forwards;
}

/* Stagger delays — applied when .is-visible is set */
.anim-d1.is-visible,
.anim-label.anim-d1.is-visible { animation-delay: 0.08s; }
.anim-d2.is-visible            { animation-delay: 0.16s; }
.anim-d3.is-visible            { animation-delay: 0.24s; }
.anim-d4.is-visible            { animation-delay: 0.32s; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 55% at 50% 40%, rgba(0, 194, 204, 0.07) 0%, transparent 65%),
    var(--bg-base);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

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

.hero-inner > * {
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.30s; }

.hero-catch {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
}

/* ── How it works ───────────────────────────────────────────────────────── */

.hiw { background: var(--bg-surface); }

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.hiw-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
  border-top: 2px solid var(--border);
}

.hiw-step {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  padding-top: 16px;
}

.hiw-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.hiw-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Features ───────────────────────────────────────────────────────────── */

.features { background: var(--bg-base); }

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

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

/* hover が scroll animation と transform を共有しないよう animation 完了後のみ適用 */
.feature-card.is-visible:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 194, 204, 0.08);
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

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

/* ── CTA section ────────────────────────────────────────────────────────── */

.cta-section { background: var(--bg-surface); }

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--text-primary);
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.lp-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 28px 20px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-disabled);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

.footer-link--support { color: var(--accent); }
.footer-link--support:hover { color: var(--accent-hover); }

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .anim, .anim-label { opacity: 1; }
  .anim.is-visible, .anim-label.is-visible { animation: none; }
  .lp-header { transition: none; }
  .hero-inner > * { animation: none; opacity: 1; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .section        { padding: 64px 20px; }
  .hero-catch     { font-size: 32px; }
  .hero-sub       { font-size: 16px; }
  .section-heading { font-size: 22px; margin-bottom: 36px; }
  .hiw-grid       { grid-template-columns: 1fr; gap: 28px; }
  .features-grid  { grid-template-columns: 1fr; }
  .cta-heading    { font-size: 24px; }
  .footer-inner   { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links   { flex-wrap: wrap; gap: 16px; }
}

/* ── Privacy page ───────────────────────────────────────────────────────── */

.privacy-header {
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
}

.privacy-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.privacy-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.5px;
  text-decoration: none;
}

.privacy-main {
  padding: 64px 20px 100px;
}

.privacy-container {
  max-width: 760px;
}

.privacy-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.privacy-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* Prose content */
.prose h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 500;
}

.prose ul, .prose ol {
  margin: 0 0 16px 1.5em;
}

.prose li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}

.prose th {
  text-align: left;
  padding: 10px 16px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 500;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.prose td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  line-height: 1.6;
}

.prose td code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .privacy-title { font-size: 28px; }
  .privacy-main  { padding: 48px 20px 80px; }
  .prose table   { font-size: 13px; }
  .prose th,
  .prose td      { padding: 8px 12px; }
}
