:root {
  --bg: #0d1220;
  --bg2: #141b2e;
  --card: #1a2238;
  --line: #2a3454;
  --text: #e8e0d0;
  --muted: #a09880;
  --gold: #ffd36e;
  --gold2: #e7b54a;
  --teal: #5fd0c0;
  --red: #d8504a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  line-height: 1.8; font-size: 16px;
}
html[data-lang="ja"] [data-l="en"], html[data-lang="en"] [data-l="ja"] { display: none !important; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.pixel { font-family: "DotGothic16", "Noto Sans JP", sans-serif; letter-spacing: .04em; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(13,18,32,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--gold); text-decoration: none; font-weight: 700; }
.brand svg { width: 26px; height: 26px; }
nav.menu { display: flex; gap: 18px; margin-left: auto; }
nav.menu a { color: var(--text); text-decoration: none; font-size: 14px; }
nav.menu a:hover { color: var(--gold); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.lang button.on { background: var(--gold2); color: #1a1408; font-weight: 700; }
@media (max-width: 720px) { nav.menu { display: none; } .lang { margin-left: auto; } }

/* hero */
.hero { position: relative; padding: 48px 0 40px; background: radial-gradient(ellipse at 50% 0%, #22304f 0%, var(--bg) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 0; font-size: clamp(32px, 6vw, 52px); color: var(--gold); line-height: 1.25; font-weight: 400; }
.hero .sub { color: var(--muted); margin: 4px 0 18px; }
.hero p.lead { margin: 0 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); background: var(--bg2); border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.hero .shot { border-radius: var(--radius); border: 1px solid var(--line); image-rendering: pixelated; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn.main { background: var(--gold2); color: #1a1408; }
.btn.main:hover { background: var(--gold); }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.off { background: var(--card); color: var(--muted); border-color: var(--line); pointer-events: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { margin: 0 0 24px; font-size: 26px; color: var(--gold); font-weight: 400; }
section h3 { margin: 0 0 6px; font-size: 17px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery img { border-radius: 6px; border: 1px solid var(--line); image-rendering: pixelated; cursor: zoom-in; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card p { margin: 0; color: #cfc6b4; font-size: 15px; }
.story { max-width: 720px; }
.story p { margin: 0 0 12px; }

table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec th, table.spec td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { color: var(--muted); font-weight: 500; white-space: nowrap; width: 30%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.note { font-size: 14px; color: var(--muted); }

/* support */
.support .card { display: flex; flex-direction: column; gap: 10px; }
.support .card h3 { color: var(--gold); }
.support .card .btn { align-self: flex-start; margin-top: auto; }
.support .soon { color: var(--muted); font-size: 14px; margin-top: auto; }

ul.terms { padding-left: 1.2em; margin: 0; }
ul.terms li { margin-bottom: 6px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 92vh; image-rendering: pixelated; border-radius: 6px; }

/* site-wide additions */
.crumb { color: var(--muted); text-decoration: none; font-size: 14px; border-left: 1px solid var(--line); padding-left: 14px; }
.crumb:hover { color: var(--gold); }
footer a { color: var(--muted); }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.work:hover { border-color: var(--gold2); transform: translateY(-2px); }
.work img { image-rendering: pixelated; border-bottom: 1px solid var(--line); }
.work .body { padding: 14px 16px 18px; }
.work h3 { margin: 0 0 4px; color: var(--gold); font-weight: 700; }
.work p { margin: 0; font-size: 14px; color: #cfc6b4; }
.work .meta { font-size: 12px; color: var(--muted); margin-top: 8px; }
.work.empty { align-items: center; justify-content: center; min-height: 180px; color: var(--muted); border-style: dashed; }
.intro { max-width: 720px; }
.intro p { margin: 0 0 12px; }
