:root {
  --bg: #111111;
  --bg-2: #1a1a1a;
  --line: #2c2c2c;
  --fg: #ffffff;
  --muted: #a8a8a8;
  --red: #E0245E;
  --display: 'Dela Gothic One', 'Hiragino Kaku Gothic StdN', 'Yu Gothic', sans-serif;
  --body: 'M PLUS 1p', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', system-ui, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* language switching: show only the active language */
html[data-lang="en"] [lang="ja"],
html[data-lang="ja"] [lang="en"] { display: none !important; }

/* ---------- age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px 16px;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(14px);
}
body:not(.gated) .gate { display: none; }
body.gated { overflow: hidden; }
body.gated > header, body.gated > main, body.gated > footer { filter: blur(24px); pointer-events: none; user-select: none; }
.gate-box {
  width: 100%; max-width: 460px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 36px 28px 28px;
}
.gate-box .snout { width: 120px; height: auto; margin: 0 auto 12px; display: block; }
.gate-box h1 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 8px; letter-spacing: 1px; }
.gate-box p { color: var(--muted); margin: 0 0 24px; }
.gate-actions { display: flex; flex-direction: column; gap: 10px; }
.gate .lang-toggle { margin-top: 18px; }
.small { font-size: 14px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px;
  border: 2px solid var(--fg); border-radius: 999px;
  background: transparent; color: var(--fg);
  font: 700 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--red); border-color: var(--red); color: var(--fg); }
.lang-toggle {
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 6px 14px; font: 14px var(--body); cursor: pointer;
}
.lang-toggle:hover { color: var(--fg); border-color: var(--fg); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(17, 17, 17, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .snout { width: 64px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); font-size: 17px; line-height: 1.1; letter-spacing: 1px; }
.brand-jp { font-size: 13px; letter-spacing: 3px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 700; }

/* ---------- hero ---------- */
.hero {
  min-height: 78vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 16px 48px; text-align: center;
}
.logo-stacked { display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3vw, 30px); }
.logo-name { font-family: var(--display); font-size: clamp(36px, 7vw, 72px); line-height: 1; letter-spacing: 3px; }
.logo-stacked .snout { width: clamp(220px, 40vw, 420px); height: auto; }
.logo-jp { font-family: var(--display); font-size: clamp(30px, 5.6vw, 58px); line-height: 1; letter-spacing: .15em; padding-left: .15em; transform: scaleY(1.18); }
.tagline { color: var(--muted); margin: 40px 0 0; font-size: 18px; max-width: 34em; }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 16px; border-top: 1px solid var(--line); }
.section h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 44px); margin: 0 0 28px; letter-spacing: 1px; }
.section h3.sub { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 40px 0 14px; }
.lead { color: var(--muted); max-width: 40em; margin: 0 0 24px; }

.game {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
}
.game-art img { border-radius: 12px; width: 100%; }
.game h3 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 4px 0 6px; }
.status {
  display: inline-block; margin: 0; padding: 2px 12px; border-radius: 999px;
  background: var(--red); color: var(--fg); font-weight: 700; font-size: 14px;
}
.game-meta { color: var(--muted); font-size: 15px; margin: 0 0 14px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.links:empty { display: none; }
.links-big .btn { min-height: 56px; font-size: 18px; padding: 12px 28px; }

.email { font-family: var(--display); font-size: clamp(22px, 4.4vw, 36px); text-decoration: none; word-break: break-all; }

.site-footer {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
  text-align: center; padding: 32px 16px 40px;
}
.site-footer p { margin: 4px 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px 16px; text-align: center; }
.notfound .snout { width: 200px; height: auto; }
.notfound h1 { font-family: var(--display); font-weight: 400; font-size: 64px; margin: 0; line-height: 1; }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .site-header { padding: 10px 16px; }
  .brand .snout { width: 52px; }
  .brand-text { font-size: 14px; }
  .nav { gap: 14px; }
  .nav a { display: none; }
  .game { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .section { padding: 56px 16px; }
  .links .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
