:root {
  --bg: #efece6;
  --ink: #191b1f;
  --ink-soft: #4a4d55;
  --ink-muted: #6b6e76;
  --accent: #c2411d;
  --card-bg: rgba(239, 236, 230, 0.94);
  --line: rgba(25, 27, 31, 0.16);
  --font-base: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
}

/* Hero text uses the rounded gothic; footer and policy keep the base font. */
.hero,
.store-button,
.specs { font-family: var(--font-round); }

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

/* --- Language switch: show only the active language --- */
body[data-lang="ja"] .lang-en,
body[data-lang="en"] .lang-ja { display: none; }

/* --- Page (blurs while the policy modal is open) --- */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: filter 220ms ease;
}
body.modal-open .page { filter: blur(7px); }

/* --- Hero --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 72px 28px 32px;
  text-align: center;
}
.hero__icon { width: 80px; height: 80px; image-rendering: pixelated; }
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 620px;
}
.hero__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* --- Store button --- */
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 160ms ease, transform 160ms ease;
}
.store-button:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}
.store-button svg { display: block; }

/* --- Spec list --- */
.specs {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 10px 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-align: left;
}
.specs dt { font-weight: 500; color: var(--ink); }
.specs dd { margin: 0; }

/* --- Footer --- */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px 28px 34px;
  font-size: 13px;
  color: var(--ink-muted);
}
.site-footer__sep { opacity: 0.4; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }

.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--ink-muted);
  cursor: pointer;
}
.lang-switch button:hover { color: var(--accent); }
.lang-switch button[aria-current="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  cursor: default;
}

/* --- Privacy policy modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(25, 27, 31, 0.28);
  animation: gsFade 200ms ease both;
}
.modal[hidden] { display: none; }
.modal__card {
  width: min(680px, 100%);
  max-height: 82vh;
  overflow: auto;
  background: var(--card-bg);
  border: 1px solid rgba(25, 27, 31, 0.1);
  border-radius: 3px;
  box-shadow: 0 24px 70px rgba(25, 27, 31, 0.22);
  padding: 36px 38px 34px;
  animation: gsRise 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.modal__title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.modal__meta { margin: 0; font-size: 12.5px; color: var(--ink-muted); }
.modal__close {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  cursor: pointer;
  transition: background 140ms ease;
}
.modal__close:hover { background: rgba(25, 27, 31, 0.07); }

/* --- Policy body (rendered from privacy-policy.js) --- */
.policy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: #33363d;
}
.policy section { display: flex; flex-direction: column; gap: 8px; }
.policy h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.policy p { margin: 0; }
.policy ul {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy strong { font-weight: 700; }
.policy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes gsFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes gsRise {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
