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

/* === Design tokens === */
:root {
  --bg:        #F4EEE0;
  --surface:   #EBE4CF;
  --ink:       #1A1715;
  --ink-muted: #7A6A60;
  --accent:    #C8453A;
  --gold:      #B08344;
  --line:      #D5CDB9;
  --radius:    12px;
  --max:       680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #1A1715;
    --surface:   #221E1B;
    --ink:       #F4EEE0;
    --ink-muted: #9C8C80;
    --accent:    #D96B60;
    --line:      #2E2926;
  }
}

/* === Base === */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.3px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Header === */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.site-header nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Lora', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.3px;
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--accent); }

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

.nav-links a {
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* === Main layout === */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 24px;
  color: var(--ink-muted);
  font-size: 0.8rem;
}
footer a { color: var(--ink-muted); }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 56px 0 72px;
}

.app-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero p {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.8; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-muted); opacity: 1; }

/* === Badge row === */
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* === Feature grid === */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card .kana {
  font-family: 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* === Privacy page === */
.page-header { margin-bottom: 48px; }

.page-header .label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.page-header .meta {
  color: var(--ink-muted);
  font-size: 0.875rem;
  margin-top: 8px;
}

.highlight-box {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 40px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.highlight-box strong { color: var(--ink); }

.policy-section { margin-bottom: 40px; }

.policy-section h2 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.policy-section p {
  color: var(--ink-muted);
  margin-bottom: 10px;
  line-height: 1.72;
  font-size: 0.95rem;
}

.policy-section ul {
  list-style: none;
  margin: 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-section ul li {
  color: var(--ink-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
  font-size: 0.95rem;
}

.policy-section ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--ink-muted);
}

.policy-section a { color: var(--accent); }
.policy-section strong { color: var(--ink); font-weight: 600; }

/* === Responsive === */
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .btn-ghost { display: none; }
  .hero h1 { font-size: 2rem; }
  main { padding: 48px 20px 72px; }
}
