:root {
  color-scheme: dark;
  --bg: #0b0d1a;
  --bg-soft: #131730;
  --panel: rgba(28, 32, 64, 0.78);
  --panel-solid: #1c2040;
  --ink: #f4ecd8;
  --muted: #b7c0d6;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffd23f;
  --accent: #40c8ff;
  --red: #ff5c7a;
  --green: #6ee03c;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(64, 200, 255, 0.10), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(255, 210, 63, 0.08), transparent 26rem),
    linear-gradient(180deg, #0b0d1a 0%, #10132a 55%, #0a0b14 100%);
  color: var(--ink);
  line-height: 1.85;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* header */
.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(11, 13, 26, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.04em; }
.brand img { width: 28px; height: 28px; }
.site-nav { display: flex; gap: clamp(10px, 2vw, 22px); font-size: 0.92rem; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.site-nav a:hover { color: var(--ink); }
.lang { margin-left: 8px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; }

/* hero */
.hero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,26,0.0) 0%, rgba(11,13,26,0.1) 45%, rgba(11,13,26,0.97) 100%); }
.hero-content { position: relative; margin-top: 46vh; padding: 0 clamp(18px, 6vw, 96px) clamp(48px, 8vh, 96px); max-width: 860px; }
.kicker { margin: 0 0 8px; color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem; }
.hero h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.05; letter-spacing: 0.02em; color: var(--gold); text-shadow: 0 6px 30px rgba(0,0,0,0.6); }
.subtitle { margin: 6px 0 18px; font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 700; color: var(--gold); text-shadow: 0 4px 20px rgba(0,0,0,0.7); }
.hero-copy { max-width: 620px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.button { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; border: 1px solid var(--line); transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #1c2040; border-color: transparent; }
.button.secondary { background: rgba(255,255,255,0.06); }

/* sections */
.section { padding: clamp(56px, 9vw, 120px) clamp(18px, 5vw, 72px); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-label { margin: 0 0 6px; color: var(--accent); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; }
h2 { margin: 0 0 18px; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3; }
h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--gold); }
p { margin: 0 0 14px; }
.two-column { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature-figure { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.intro-band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.lead { font-size: 1.05rem; }
.quote { border-left: 3px solid var(--gold); padding-left: 16px; color: var(--ink); font-style: normal; margin: 18px 0; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px 22px 22px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* weapons */
.weapon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.weapon { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; text-align: center; }
.weapon img { width: 48px; height: 48px; margin: 0 auto 8px; }
.weapon b { display: block; color: var(--ink); font-size: 0.95rem; }
.weapon span { color: var(--muted); font-size: 0.82rem; line-height: 1.5; display: block; }
.weapon.magic { border-color: rgba(64,200,255,0.35); }

/* characters */
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.character-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.character-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.character-body { padding: 14px 18px 18px; }
.role { margin: 0; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.1em; }
.character-body p:last-child { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* world */
.world-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.world-card { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); min-height: 220px; display: grid; align-items: end; }
.world-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world-card .world-body { position: relative; padding: 18px; background: linear-gradient(180deg, transparent, rgba(11,13,26,0.92) 45%); }
.world-body small { color: var(--accent); letter-spacing: 0.12em; }
.world-body h3 { margin: 4px 0; }
.world-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* trailer */
.trailer { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
#trailer .note { margin: 12px 0 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery figcaption { padding: 8px 12px; font-size: 0.85rem; color: var(--muted); }

/* download */
.download-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--accent); font-weight: 600; width: 34%; }
.note { color: var(--muted); font-size: 0.88rem; }
code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

/* footer */
.site-footer { padding: 40px clamp(18px, 5vw, 72px) 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.site-footer .section-inner { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; }
.site-footer a { color: var(--ink); border-bottom: 1px dotted var(--line); }

@media (max-width: 820px) {
  .two-column, .intro-grid, .download-grid { grid-template-columns: 1fr; }
  .site-nav a { display: none; }
  .site-nav a.lang { display: inline-block; }
  .hero { min-height: auto; background: #10142a; padding-top: 60px; }
  .hero-image { top: 60px; object-fit: contain; object-position: center top; height: 75vw; }
  .hero-shade { top: 60px; background: linear-gradient(180deg, rgba(11,13,26,0) 0%, rgba(11,13,26,0) 50vw, rgba(16,20,42,1) 75vw); }
  .hero-content { margin-top: 62vw; }
}
