:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --text: #18181b;
  --text-muted: #71717a;
  --text-subtle: #a1a1aa;
  --accent: #9a7348;
  --accent-soft: rgba(154, 115, 72, 0.12);
  --border: #e4e4e7;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --max: 1120px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max);
  margin: 0 auto;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo:hover { opacity: 0.7; }

.logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 40px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 96px;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-copy .lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: #d4d4d8;
}

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

.hero-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.phone-frame {
  position: relative;
  width: min(100%, 300px);
  padding: 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.phone-frame img {
  display: block;
  width: 100%;
  border-radius: calc(var(--radius-xl) - 10px);
}

/* Features — bento */
.features {
  margin-bottom: 96px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bento-card:hover {
  border-color: #d4d4d8;
  box-shadow: var(--shadow-sm);
}

.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-8 { grid-column: span 8; }

.bento-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
}

.bento-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Platforms */
.platforms {
  margin-bottom: 96px;
}

.device-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.device-chip svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Support */
.support {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.support h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.support-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.support-links {
  list-style: none;
}

.support-links li {
  border-bottom: 1px solid var(--border);
}

.support-links li:last-child { border-bottom: none; }

.support-links a,
.support-links span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.15s;
}

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

.support-links a::after {
  content: "→";
  color: var(--text-subtle);
  font-size: 0.875rem;
  transition: transform 0.15s;
}

.support-links a:hover::after {
  transform: translateX(3px);
  color: var(--accent);
}

.privacy-note {
  margin-top: 24px;
  padding: 16px 18px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
}

/* Legal pages */
.legal-page {
  padding-top: 48px;
  max-width: 680px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 0.8125rem;
  color: var(--text-subtle);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}

.legal-page p,
.legal-page li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0 0 12px 1.25rem;
}

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

.legal-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-footer a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 0 64px;
    text-align: center;
  }

  .hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions { justify-content: center; }

  .bento-card.span-6,
  .bento-card.span-4,
  .bento-card.span-8 {
    grid-column: span 12;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .nav a:not(:last-child) { display: none; }

  .support { padding: 28px 20px; }
}
