/* ===========================
   Chroma – Shared Stylesheet
   =========================== */

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

:root {
  --bg:       #0d0d0d;
  --surface:  #1a1a1a;
  --surface2: #242424;
  --border:   #2e2e2e;
  --accent:   #F75F2A;
  --accent2:  #d94e1f;
  --text:     #f0f0f0;
  --muted:    #888;
  --radius:   12px;
  --max-w:    860px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin-right: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* language toggle */
.lang-toggle {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn.active {
  background: var(--accent);
  color: #000;
}

/* ── Page Layout ── */
.page-hero {
  text-align: center;
  padding: 80px 24px 60px;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

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

/* ── Sections ── */
section { margin-bottom: 64px; }

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; }
p  { margin-bottom: 12px; color: #ccc; }
ul, ol { padding-left: 20px; color: #ccc; }
li { margin-bottom: 6px; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-top: 0; }

/* ── Hero (index) ── */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
}
.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(247,95,42,.25);
}
.hero-from {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 20px;
}
.hero-from-logo {
  height: 18px;
  width: auto;
  vertical-align: middle;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 36px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn-primary:hover { background: var(--accent2); transform: scale(1.03); text-decoration: none; }
.btn-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 99px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn-secondary:hover { background: var(--surface2); transform: scale(1.03); text-decoration: none; }
.store-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.store-badge { display: inline-block; transition: transform .15s; }
.store-badge:hover { transform: scale(1.05); }
.store-badge img { display: block; height: 50px; width: auto; }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .85rem;
  padding: 6px 16px;
  border-radius: 99px;
}

/* ── FAQ ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .arrow {
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-q.open .arrow { transform: rotate(45deg); }
.faq-a {
  display: none;
  background: var(--surface2);
  padding: 0 20px;
  color: #ccc;
  font-size: .9rem;
}
.faq-a.open { display: block; padding: 16px 20px; }

/* ── Legal pages ── */
.legal-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 60px 16px 50px; }
}

/* lang helpers */
body:not(.ja) .lang-ja { display: none; }
body.ja .lang-en { display: none; }
