/* カラーレスラボ サークル HP（2026-10-25）
   白黒の研究所に、遊びで色が付いていく見た目。色は作品の絵と、触れたときの光だけに使う。 */

[hidden] { display: none !important; }

:root {
  --bg: #09090c;
  --bg-2: #0d0e12;
  --surface: #121318;
  --surface-2: #181a21;
  --surface-3: #1e2129;
  --line: #24272f;
  --line-2: #343844;
  --text: #e6e6ea;
  --text-strong: #fafaf6;
  --muted: #a3a7b2;
  --dim: #8a8fa0;
  --c1: #ff5f6d;
  --c2: #ffb347;
  --c3: #f4ef62;
  --c4: #6dff8f;
  --c5: #36d6ff;
  --c6: #6f7bff;
  --c7: #c36bff;
  --spectrum: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7));
  --spectrum-v: linear-gradient(180deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c7), var(--c1));
  --f-display: "Space Grotesk", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --f-pixel: "DotGothic16", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --notch: 10px;
  color-scheme: dark;
}
html[lang="en"] { --f-body: "Space Grotesk", "Zen Kaku Gothic New", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-feature-settings: normal; line-height: 1.7; }
/* 日本語の改行：語の途中で切らない・1文字だけの行を作らない */
html[lang="ja"] body { word-break: auto-phrase; line-break: strict; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, .sec-lead, .hero-copy, .about-lead, .feature-tagline, .card-tagline, .card-name, .party-role, .member-role, .stage-note { text-wrap: balance; }
html.has-modal { overflow: hidden; }
/* 狭い枠の中の短い文は、入りきらないときだけ途中で折る（語のまとまりを優先した改行で枠からはみ出さないように） */
.chip, .card-name, .work-name, .work-genre, .party-name, .party-role, .ls-name, .asset-name { overflow-wrap: anywhere; }
.cards > li, .works > li, .party > li, .asset-grid > li, .feature > * { min-width: 0; }
.feature-body .chip { white-space: normal; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .3) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .3) 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.25; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
::selection { background: var(--c5); color: #000; }
:focus-visible { outline: 2px solid var(--c5); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.br-sp { display: none; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; background: var(--text-strong); color: #000; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- 小さな部品 ---------- */
.hud-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-pixel); font-size: 13px; letter-spacing: .14em; color: var(--muted);
  text-transform: uppercase;
}
.hud-dot { width: 8px; height: 8px; background: var(--spectrum); box-shadow: 0 0 12px rgba(54, 214, 255, .6); animation: dotPulse 2.4s steps(2) infinite; }
@keyframes dotPulse { 50% { opacity: .35; } }

.hud-frame {
  --fc: rgba(255, 255, 255, .5);
  --fl: 14px;
  background-image:
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc));
  background-size: var(--fl) 1px, 1px var(--fl), var(--fl) 1px, 1px var(--fl), var(--fl) 1px, 1px var(--fl), var(--fl) 1px, 1px var(--fl);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}

.kari {
  display: inline-block; vertical-align: .2em; margin-left: .5em; padding: 1px 6px 0;
  font-family: var(--f-pixel); font-size: 11px; line-height: 1.5; letter-spacing: .08em;
  color: #1a1206; background: var(--c2); font-weight: 400;
}

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 10px 2px;
  font-family: var(--f-pixel); font-size: 12px; line-height: 1.6; letter-spacing: .12em;
  color: var(--muted); border: 1px solid var(--line-2); background: rgba(9, 9, 12, .6);
  text-transform: uppercase; white-space: nowrap; max-width: 100%;
}
.work-body .chip, .card-body .chip { white-space: normal; }
.chip-live, .chip-coming { color: var(--text-strong); border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--spectrum) border-box; }
.chip-dot { width: 7px; height: 7px; background: var(--c4); box-shadow: 0 0 10px var(--c4); animation: dotPulse 1.6s steps(2) infinite; }
.chip-sep { color: var(--dim); }
.chip-dev { color: #cfd2da; }
.chip-planned { color: #a9c4ff; border-color: rgba(91, 140, 255, .55); text-transform: none; }
.chip-soon { color: var(--c2); border-color: rgba(255, 179, 71, .45); }

.btn {
  --bc: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--f-display); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  line-height: 1.2;
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
  transition: color .25s, background .25s, transform .25s var(--ease);
  white-space: nowrap;
  max-width: 100%;
}
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }
.btn small { font-family: var(--f-pixel); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: none; opacity: .75; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon, .btn:focus-visible .icon { transform: translateX(3px); }
.btn-primary { background: var(--text-strong); color: #08080a; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--spectrum); background-size: 200% 100%;
  opacity: 0; transition: opacity .3s;
}
.btn-primary { isolation: isolate; }
.btn-primary:hover, .btn-primary:focus-visible { background: transparent; color: #08080a; }
.btn-primary:hover::before, .btn-primary:focus-visible::before { opacity: 1; animation: spectrumSlide 3s linear infinite; }
@keyframes spectrumSlide { to { background-position: 200% 0; } }
.btn-ghost {
  color: var(--text-strong);
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(var(--bc), var(--bc)) border-box;
  border: 1px solid transparent;
}
.btn-ghost:hover, .btn-ghost:focus-visible { --bc: transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--spectrum) border-box; }
.btn-lg { min-height: 60px; padding: 16px 28px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover::before { opacity: 0; }
.btn-blink { animation: blinkSoft 1.2s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes blinkSoft { 50% { opacity: .55; } }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; letter-spacing: .08em; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .25s, gap .25s; }
.text-link:hover, .text-link:focus-visible { border-color: var(--c5); gap: 12px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .js:not([data-page="index"]) .site-header {
  background: rgba(9, 9, 12, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -32px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 9, 12, .9) 0%, rgba(9, 9, 12, .62) 55%, rgba(9, 9, 12, 0) 100%);
  transition: opacity .35s;
}
.site-header.is-scrolled::before, .js:not([data-page="index"]) .site-header::before { opacity: 0; }
.site-header-inner {
  height: var(--header-h); max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 26px; height: 26px; transition: transform .5s var(--ease-out); image-rendering: pixelated; }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: var(--text-strong); }
.brand-word span { color: var(--muted); }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 6px; }
.gnav a {
  position: relative; display: grid; justify-items: start; padding: 8px 14px 8px 22px;
  line-height: 1.2;
}
.gnav a::before {
  content: "▶"; position: absolute; left: 6px; top: 9px; font-size: 9px; color: var(--c5);
  opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s;
}
.gnav a:hover::before, .gnav a:focus-visible::before, .gnav a[aria-current]::before { opacity: 1; transform: none; }
.gnav-en { font-family: var(--f-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; color: var(--text-strong); }
.gnav-sub { font-family: var(--f-pixel); font-size: 11px; letter-spacing: .06em; color: var(--dim); transition: color .2s; }
.gnav a:hover .gnav-sub, .gnav a:focus-visible .gnav-sub { color: var(--muted); }
.hud-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); }
.lang-switch a { padding: 5px 9px 4px; font-family: var(--f-pixel); font-size: 12px; letter-spacing: .1em; color: var(--dim); transition: color .2s, background .2s; }
.lang-switch a[aria-current] { color: #08080a; background: var(--text-strong); }
.lang-switch a:not([aria-current]):hover { color: var(--text-strong); }
.sfx-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 4px; border: 1px solid var(--line-2); font-family: var(--f-pixel); font-size: 12px; letter-spacing: .1em; color: var(--dim); transition: color .2s, border-color .2s; }
.sfx-toggle:hover { color: var(--text-strong); }
.sfx-toggle .icon { width: 15px; height: 15px; }
.sfx-toggle .sfx-on { display: none; }
.sfx-toggle[aria-pressed="true"] { color: var(--text-strong); border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--spectrum) border-box; }
.sfx-toggle[aria-pressed="true"] .sfx-on { display: block; }
.sfx-toggle[aria-pressed="true"] .sfx-off { display: none; }
.menu-btn { display: none; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); font-family: var(--f-pixel); font-size: 12px; letter-spacing: .12em; }

/* ---------- 読み込みの画面 ---------- */
.boot {
  position: fixed; inset: 0; z-index: 150; display: none;
  align-items: center; justify-content: center;
  background: #050507;
  transition: opacity .45s, visibility 0s .45s;
}
.is-boot .boot { display: flex; animation: bootSafety .4s 3.4s forwards; }
.boot.is-out { opacity: 0; visibility: hidden; }
@keyframes bootSafety { to { opacity: 0; visibility: hidden; } }
.boot-inner { width: min(420px, calc(100vw - 48px)); display: grid; justify-items: center; gap: 18px; text-align: center; }
.boot-mark { display: grid; grid-template-columns: repeat(3, 18px); gap: 7px; }
.boot-mark span { width: 18px; height: 18px; background: #8f94a0; transform: scale(0); animation: pop .32s var(--ease-out) forwards; animation-delay: calc(var(--i) * 55ms); }
.boot-mark span:nth-child(1) { background: #f2f1ec; } .boot-mark span:nth-child(3) { background: #3b404b; }
.boot-mark span:nth-child(4) { background: #5f6472; } .boot-mark span:nth-child(6) { background: #c9ccd4; }
.boot-mark span:nth-child(7) { background: #2b2f38; } .boot-mark span:nth-child(8) { background: #aeb2bc; }
.boot-mark span:nth-child(9) { background: #e3e4e8; }
.boot-mark span:nth-child(5) { background: var(--spectrum); background-size: 400% 100%; animation: pop .32s var(--ease-out) forwards, spectrumSlide 1.2s linear infinite; animation-delay: calc(var(--i) * 55ms), 0s; }
@keyframes pop { to { transform: scale(1); } }
.boot-word { font-family: var(--f-display); font-weight: 700; letter-spacing: .32em; font-size: 15px; color: var(--text-strong); margin-right: -.32em; }
.boot-bar { width: 100%; height: 6px; background: var(--surface-2); overflow: hidden; }
.boot-bar i { display: block; height: 100%; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(0); }
.boot-row { width: 100%; display: flex; justify-content: space-between; font-family: var(--f-pixel); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.boot-row b { font-weight: 400; color: var(--text-strong); }
.boot-dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.boot-tip { min-height: 1.8em; font-family: var(--f-pixel); font-size: 13px; letter-spacing: .06em; color: var(--text); }
.boot-skip { font-family: var(--f-pixel); font-size: 11px; color: var(--dim); letter-spacing: .1em; }

/* ---------- 最初の画面 ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 120px;
  overflow: hidden; isolation: isolate;
}
.pixel-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; touch-action: pan-y; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 30% 55%, rgba(9, 9, 12, .78), rgba(9, 9, 12, .2) 60%, rgba(9, 9, 12, 0) 75%),
    linear-gradient(180deg, rgba(9, 9, 12, .5) 0%, rgba(9, 9, 12, 0) 25%, rgba(9, 9, 12, 0) 70%, var(--bg) 100%);
}
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-label { margin-bottom: 26px; color: var(--text); }
.hero-title { margin: 0 0 30px; }
.wm {
  display: block;
  font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(54px, min(12.6vw, 17.5vh), 182px);
  line-height: .84; letter-spacing: -.04em; text-transform: uppercase;
  --fill: 0;
}
.wm-line { position: relative; display: block; width: max-content; max-width: 100%; }
.wm-outline {
  display: block; color: rgba(242, 241, 236, .06);
  -webkit-text-stroke: 1.5px rgba(242, 241, 236, .92);
  animation: glitch 7s steps(1) infinite;
}
.wm-line + .wm-line .wm-outline { animation-delay: 3.4s; }
.wm-fill {
  position: absolute; inset: 0; display: block;
  color: transparent;
  background: var(--spectrum-v); background-size: 100% 300%;
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(calc((1 - var(--fill)) * 100%) 0 0 0);
  transition: clip-path .5s var(--ease-out);
  animation: spectrumRise 6s linear infinite;
}
@keyframes spectrumRise { to { background-position: 0 300%; } }
@keyframes glitch {
  0%, 94%, 100% { text-shadow: none; transform: none; }
  95% { text-shadow: -4px 0 rgba(255, 95, 109, .75), 4px 0 rgba(54, 214, 255, .75); transform: translateX(3px); }
  96% { text-shadow: 3px 0 rgba(255, 95, 109, .75), -3px 0 rgba(54, 214, 255, .75); transform: translateX(-2px) skewX(-6deg); }
  97% { text-shadow: none; transform: none; }
}
.hero-copy { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; color: var(--text-strong); line-height: 1.5; letter-spacing: .02em; margin-bottom: 10px; }
html[lang="en"] .hero-copy { font-family: var(--f-display); letter-spacing: -.01em; }
.hero-sub { color: var(--muted); font-size: clamp(14px, 1.5vw, 17px); margin-bottom: 40px; }
.hero-cta .btn-start { gap: 14px; }
.lab-status {
  --fc: rgba(255, 255, 255, .7);
  position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); bottom: 92px; z-index: 2;
  width: 330px;
  padding: 18px 18px 14px;
  background-color: rgba(11, 12, 16, .74);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--f-pixel); font-size: 12px; letter-spacing: .08em;
}
.lab-status-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); color: var(--text-strong); letter-spacing: .18em; }
.lab-status-live { display: inline-flex; align-items: center; gap: 7px; color: var(--c4); }
.lab-status-live i { width: 7px; height: 7px; background: var(--c4); box-shadow: 0 0 10px var(--c4); animation: dotPulse 1.6s steps(2) infinite; }
.lab-status li a, .lab-status-foot a { position: relative; display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; padding: 9px 6px; color: var(--text); transition: background .2s, color .2s; }
.lab-status li + li a { border-top: 1px dashed var(--line); }
.lab-status li a:hover, .lab-status li a:focus-visible, .lab-status-foot a:hover { background: rgba(255, 255, 255, .05); color: var(--text-strong); }
.lab-status li a::before { content: "▶"; position: absolute; left: -12px; font-size: 9px; color: var(--accent); opacity: 0; transition: opacity .2s; }
.lab-status li a:hover::before, .lab-status li a:focus-visible::before { opacity: 1; }
.ls-dot { width: 8px; height: 8px; background: var(--dim); }
.ls-coming { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: dotPulse 1.6s steps(2) infinite; }
.ls-dev { background: #8d919c; }
.ls-planned { background: transparent; border: 1px solid #8fb0ff; }
.ls-name { font-family: var(--f-body); font-size: 13px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="en"] .ls-name { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.ls-state { color: var(--dim); font-size: 11px; }
.lab-status li a:hover .ls-state { color: var(--accent); }
.lab-status-foot { margin-top: 6px; border-top: 1px solid var(--line-2); padding-top: 4px; }
.lab-status-foot a { grid-template-columns: 1fr auto; color: var(--muted); letter-spacing: .14em; }
.lab-status-foot .ls-state { color: var(--c2); }
@media (max-width: 1180px) { .lab-status { display: none; } }
@media (min-width: 1181px) and (max-width: 1520px) { .hero .scroll-cue { display: none; } }
@media (max-height: 780px) and (min-width: 641px) {
  .hero { padding-top: calc(var(--header-h) + 18px); padding-bottom: 84px; }
  .hero-label { margin-bottom: 16px; }
  .hero-title { margin-bottom: 18px; }
  .hero-sub { margin-bottom: 24px; }
  .lab-status { bottom: 70px; }
  .hero-hud { bottom: 20px; }
}
.hero-hud {
  position: absolute; left: 0; right: 0; bottom: 28px;
  max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
  font-family: var(--f-pixel); font-size: 12px; letter-spacing: .12em; color: var(--muted);
  pointer-events: none;
}
.hud-coords { white-space: nowrap; }
.hud-meter { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
/* 最初の画面が見えている間だけ動かす（見えていないときは止める） */
.hero.is-off .wm-fill, .hero.is-off .wm-outline, .hero.is-off .btn-blink, .hero.is-off .hud-dot,
.hero.is-off .lab-status-live i, .hero.is-off .ls-coming, .hero.is-off .scroll-cue i::after { animation-play-state: paused; }
.hud-meter b { font-weight: 400; color: var(--text-strong); min-width: 3ch; text-align: right; }
.meter-bar { width: 120px; height: 6px; background: var(--surface-3); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 100%; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s; }
.hud-hint { margin-left: auto; }
.hint-touch { display: none; }
@media (hover: none) { .hint-pointer { display: none; } .hint-touch { display: inline; } .hud-coords { display: none; } }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 72px;
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--f-pixel); font-size: 11px; letter-spacing: .3em; color: var(--muted);
  writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 64px; background: linear-gradient(var(--muted), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -30%; width: 1px; height: 30%; background: var(--text-strong); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- 節 ---------- */
.sec { padding: clamp(64px, 8vw, 112px) var(--gutter); position: relative; }
.sec + .sec { border-top: 1px solid rgba(255, 255, 255, .04); }
.sec-inner { max-width: var(--max); margin: 0 auto; }
.sec-narrow { max-width: 820px; }
.sec-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sec-split--rev > :first-child { order: 2; }
.sec-split .sec-head { margin-bottom: 26px; }
.sec-split .sec-title-en { font-size: clamp(42px, 5.8vw, 88px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.sec-index { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-family: var(--f-pixel); font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.sec-index-bar { position: relative; width: 120px; height: 2px; background: var(--line-2); overflow: hidden; }
.sec-index-bar::after { content: ""; position: absolute; inset: 0; background: var(--spectrum); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.1s var(--ease-out) .2s; }
.sec-head.is-in .sec-index-bar::after, .no-js .sec-index-bar::after { transform: scaleX(1); }
.sec-title { display: grid; gap: 6px; }
.sec-title-en { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 7.4vw, 104px); line-height: .9; letter-spacing: -.035em; color: var(--text-strong); }
.sec-title-sub { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.sec-lead { margin-top: 22px; font-size: clamp(15px, 1.4vw, 17px); color: var(--text); max-width: 640px; }

[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(26px); }

/* ---------- GAMES ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; margin-bottom: clamp(56px, 8vw, 104px);
}
.feature-art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.feature-pic, .feature-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-pic img { object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out); }
.feature-art:hover .feature-pic img { transform: scale(1.09); }
.feature-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 12, 0) 45%, rgba(9, 9, 12, .82) 100%);
  pointer-events: none;
}
.feature-sheen {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .22) 48%, transparent 60%);
  transform: translateX(-100%);
}
.feature-art:hover .feature-sheen { animation: sheen 1.1s var(--ease) forwards; }
@keyframes sheen { to { transform: translateX(100%); } }
.frame-corners {
  position: absolute; inset: 14px; z-index: 2; pointer-events: none;
  --fc: rgba(255, 255, 255, .8); --fl: 22px;
  background-image:
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc));
  background-size: var(--fl) 2px, 2px var(--fl), var(--fl) 2px, 2px var(--fl), var(--fl) 2px, 2px var(--fl), var(--fl) 2px, 2px var(--fl);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  transition: inset .4s var(--ease-out);
}
.feature-art:hover .frame-corners { inset: 8px; }
.feature-logo { position: absolute; left: 6%; bottom: 7%; z-index: 2; width: min(46%, 340px); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.feature-logo img { width: 100%; }
.feature-body { display: grid; justify-items: start; gap: 14px; }
.feature-name { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: .04em; color: var(--text-strong); margin-top: 6px; }
html[lang="en"] .feature-name { font-family: var(--f-display); letter-spacing: -.01em; text-transform: uppercase; }
.feature-genre { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .1em; color: var(--accent); }
.feature-tagline { font-size: clamp(18px, 1.9vw, 22px); font-weight: 700; color: var(--text-strong); line-height: 1.6; }
.feature-desc { color: var(--text); font-size: 15px; }
.meta-list { display: grid; gap: 0; width: 100%; border-top: 1px solid var(--line); }
.meta-list div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta-list dt { font-family: var(--f-pixel); font-size: 12px; letter-spacing: .1em; color: var(--dim); padding-top: 2px; }
.feature-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.stage-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.stage-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.stage-title-en { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: .06em; color: var(--text-strong); }
.stage-title-sub { font-size: 14px; color: var(--muted); font-weight: 500; }
.stage-note { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.gray-swatch { width: 26px; height: 12px; background: linear-gradient(90deg, #3b3f4a, #9a9ea8 50%, var(--c5) 50%, var(--c1)); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { position: relative; }
.card-btn { display: grid; width: 100%; text-align: left; gap: 0; }
.card-art {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .45s var(--ease-out);
}
.card-pic, .card-pic img, .card-blueprint { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-pic img, .card-blueprint { object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.72); transform: scale(1.03); transition: transform 1s var(--ease-out), filter .6s; }
.card-color {
  position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat;
  clip-path: inset(0 100% 0 0); transition: clip-path .75s var(--ease-out);
  transform: scale(1.03);
}
.card-color--svg { background-position: center; }
.card-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  opacity: .6; transition: opacity .5s;
}
.card-scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .16), transparent);
  opacity: 0;
}
.card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .24), transparent 46%);
}
.card-logo { position: absolute; left: 5%; bottom: 7%; width: 56%; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .7)) grayscale(1); transition: filter .6s; }
.card-logo img { width: 100%; }
.card-cursor {
  position: absolute; left: 14px; top: 12px; z-index: 2;
  font-size: 14px; color: var(--accent); text-shadow: 0 0 10px var(--accent);
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.card-body { display: grid; justify-items: start; gap: 6px; padding: 18px 4px 6px; }
.card-name { font-size: 20px; font-weight: 700; color: var(--text-strong); letter-spacing: .04em; margin-top: 6px; }
html[lang="en"] .card-name { font-family: var(--f-display); letter-spacing: .02em; text-transform: uppercase; }
.card-genre { font-family: var(--f-pixel); font-size: 12px; letter-spacing: .08em; color: var(--muted); transition: color .3s; }
.card-tagline { font-size: 15px; color: var(--text); }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-family: var(--f-pixel); font-size: 12px; letter-spacing: .08em; color: var(--dim); transition: color .3s, gap .3s; }
.card-btn:hover .card-color, .card-btn:focus-visible .card-color, .card.is-current .card-color { clip-path: inset(0 0 0 0); }
.card-btn:hover .card-pic img, .card-btn:focus-visible .card-pic img, .card.is-current .card-pic img { transform: scale(1.08); }
.card-btn:hover .card-color, .card-btn:focus-visible .card-color, .card.is-current .card-color { transform: scale(1.08); transition: clip-path .75s var(--ease-out), transform 1s var(--ease-out); }
.card-btn:hover .card-scan, .card-btn:focus-visible .card-scan, .card.is-current .card-scan { opacity: .25; }
.card-btn:hover .card-scan::after, .card.is-current .card-scan::after { animation: scanline 1.6s linear infinite; }
@keyframes scanline { 0% { top: -20%; opacity: 1; } 100% { top: 110%; opacity: 1; } }
.card-btn:hover .card-art::after { opacity: 1; }
.card-btn:hover .card-logo, .card-btn:focus-visible .card-logo, .card.is-current .card-logo { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .7)); }
.card.is-current .card-cursor { opacity: 1; transform: none; animation: blink 1s steps(2, start) infinite; }
.card-btn:hover .card-genre, .card-btn:focus-visible .card-genre, .card.is-current .card-genre { color: var(--accent); }
.card-btn:hover .card-more, .card-btn:focus-visible .card-more, .card.is-current .card-more { color: var(--text-strong); gap: 10px; }
.card-btn:focus-visible { outline: none; }
.card-art::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; box-shadow: inset 0 0 0 3px var(--accent); opacity: 0; transition: opacity .2s; }
.card-btn:focus-visible .card-art::before { opacity: 1; }
.card-btn:focus-visible .card-name { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* ---------- アセット（TOP の節） ---------- */
.asset-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.asset-tile { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.asset-tile--main { grid-column: 1 / -1; }
.asset-tile img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: grayscale(1) brightness(.8); transition: filter .6s; }
.asset-tile:hover img, .is-rainbow .asset-tile img { filter: none; }
.asset-tile-tag { position: absolute; left: 8px; top: 8px; padding: 1px 6px; font-family: var(--f-pixel); font-size: 11px; background: rgba(9, 9, 12, .8); color: var(--muted); }
.asset-tile--mystery { display: grid; place-items: center; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 12px 12px; }
.asset-tile--mystery span { font-family: var(--f-pixel); font-size: 40px; color: var(--dim); animation: float 3s ease-in-out infinite; }
.asset-tile--mystery:nth-child(3) span { animation-delay: -1.5s; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- ABOUT（TOP の節） ---------- */
.about-lead { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: var(--text-strong); line-height: 1.5; }
html[lang="en"] .about-lead { font-family: var(--f-display); letter-spacing: -.01em; }
.party--mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.party-member {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 34px 16px 26px;
  background: var(--surface); border: 1px solid var(--line); text-align: center;
  transition: border-color .3s, transform .4s var(--ease-out);
}
.party-member:hover { border-color: var(--line-2); transform: translateY(-4px); }
.party-player { position: absolute; left: 0; top: 0; padding: 3px 10px 2px; font-family: var(--f-pixel); font-size: 12px; letter-spacing: .12em; color: #08080a; background: var(--text-strong); }
.party-member:nth-child(2) .party-player, .member:nth-child(2) .party-player { background: var(--c5); }
.party-member:nth-child(1) .party-player, .member:nth-child(1) .party-player { background: var(--c2); }
.party-avatar { width: 88px; height: 88px; image-rendering: pixelated; animation: bob 2.2s steps(2) infinite; animation-delay: calc(var(--i) * -1.1s); }
@keyframes bob { 50% { transform: translateY(-4px); } }
.party-name { font-size: 20px; font-weight: 700; color: var(--text-strong); }
.party-role { font-family: var(--f-pixel); font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ---------- CONTACT（TOP の節・ページ） ---------- */
.mail-card { --fc: rgba(255, 255, 255, .55); background-color: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.mail-label { font-family: var(--f-pixel); font-size: 12px; letter-spacing: .2em; color: var(--dim); }
.mail-addr { font-family: var(--f-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: .01em; color: var(--text-strong); word-break: break-all; line-height: 1.3; }
.mail-addr noscript { font-size: 16px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.mail-card--compact .mail-addr { font-size: clamp(18px, 2.2vw, 28px); }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); background: rgba(9, 9, 12, .7); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 36px; height: 36px; image-rendering: pixelated; }
.footer-word { font-family: var(--f-display); font-weight: 700; letter-spacing: .2em; color: var(--text-strong); font-size: 15px; }
.footer-tag { font-size: 13px; color: var(--muted); }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; }
.footer-nav a { font-family: var(--f-display); font-size: 13px; letter-spacing: .14em; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--text-strong); }
.footer-hud { display: grid; justify-items: end; gap: 12px; }
.ach-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 5px; border: 1px solid var(--line-2); font-family: var(--f-pixel); font-size: 12px; letter-spacing: .1em; color: var(--muted); transition: color .2s, border-color .2s; }
.ach-btn b { font-weight: 400; color: var(--text-strong); }
.ach-btn:hover { color: var(--text-strong); border-color: var(--muted); }
.footer-bottom { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.copyright { font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; color: var(--dim); }
.staging-badge { font-family: var(--f-pixel); font-size: 11px; letter-spacing: .08em; color: var(--c2); }
.staging-badge b { font-weight: 400; color: #1a1206; background: var(--c2); padding: 1px 6px; margin-right: 6px; }

/* ---------- 下のページの頭 ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) var(--gutter) clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(9, 9, 12, .92) 0%, rgba(9, 9, 12, .55) 55%, rgba(9, 9, 12, .2) 100%), linear-gradient(180deg, rgba(9, 9, 12, 0) 60%, var(--bg)); pointer-events: none; }
.page-hero-inner { max-width: var(--max); margin: 0 auto; pointer-events: none; }
.page-hero-inner a { pointer-events: auto; }
.crumbs { gap: 10px; margin-bottom: 24px; }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--text-strong); }
.page-title { display: grid; gap: 10px; margin-bottom: 24px; }
.page-title-en { font-family: var(--f-display); font-size: clamp(48px, 9vw, 128px); line-height: .88; letter-spacing: -.04em; color: var(--text-strong); }
.page-title-sub { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: .1em; }
.page-lead { max-width: 720px; font-size: clamp(15px, 1.5vw, 18px); color: var(--text); }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* ---------- 無料アセットのページ ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { padding: 6px 14px 5px; border: 1px solid var(--line-2); font-family: var(--f-pixel); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.filter.is-on { background: var(--text-strong); color: #08080a; border-color: var(--text-strong); }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.asset-card { background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease-out); }
.asset-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.asset-btn { display: grid; width: 100%; text-align: left; }
.asset-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0c10; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: grayscale(1) brightness(.78); transition: filter .6s, transform 1s var(--ease-out); }
.asset-btn:hover .asset-thumb img, .asset-btn:focus-visible .asset-thumb img, .asset-card.is-current .asset-thumb img { filter: none; transform: scale(1.04); }
.asset-card.is-current .card-cursor { opacity: 1; transform: none; }
.asset-btn:focus-visible { outline: none; }
.asset-btn:focus-visible .asset-thumb { box-shadow: inset 0 0 0 3px var(--c2); }
.asset-btn .card-cursor { --accent: var(--c2); }
.asset-thumb--mystery { display: grid; place-items: center; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 14px 14px; }
.asset-thumb--mystery span { font-family: var(--f-pixel); font-size: 56px; color: var(--dim); animation: float 3s ease-in-out infinite; }
.asset-body { display: grid; justify-items: start; gap: 6px; padding: 18px 20px 22px; }
.asset-name { font-size: 18px; font-weight: 700; color: var(--text-strong); margin-top: 4px; }
.asset-cat { font-family: var(--f-pixel); font-size: 12px; color: var(--c2); letter-spacing: .08em; }
.asset-desc { font-size: 14px; color: var(--muted); }
.asset-card--mystery { border-style: dashed; }
.sec-terms .sec-title-en { font-size: clamp(32px, 4.2vw, 60px); }
.sec-terms .sec-head { margin-bottom: 28px; }
.terms-box { --fc: rgba(255, 255, 255, .45); display: flex; gap: 18px; align-items: flex-start; max-width: 820px; padding: 28px; background-color: var(--surface); color: var(--text); }
.terms-box .icon { width: 28px; height: 28px; color: var(--c2); flex: none; margin-top: 2px; }

/* ---------- ABOUT のページ ---------- */
.about-intro { font-size: clamp(16px, 1.7vw, 20px); line-height: 2; }
.party--full { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.member { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: clamp(24px, 3vw, 40px); background-color: var(--surface); }
.member:focus-visible { outline: 2px solid var(--c5); outline-offset: 2px; }
.member-avatar { position: relative; padding-top: 18px; }
.member-avatar img { width: 128px; height: 128px; image-rendering: pixelated; animation: bob 2.2s steps(2) infinite; animation-delay: calc(var(--i) * -1.1s); }
.member .party-player { left: -1px; top: -1px; z-index: 3; }
.member-bubble {
  position: absolute; left: 50%; bottom: calc(100% - 6px); z-index: 2; width: max-content; max-width: 240px;
  padding: 8px 12px; background: var(--text-strong); color: #08080a; font-size: 13px; font-weight: 700; line-height: 1.5;
  transform: translate(-50%, 6px); opacity: 0; transition: opacity .2s, transform .25s var(--ease-out); pointer-events: none;
}
.member-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; border: 7px solid transparent; border-top-color: var(--text-strong); transform: translateX(-50%); }
.member:hover .member-bubble, .member:focus-visible .member-bubble { opacity: 1; transform: translate(-50%, 0); }
.member-name { font-size: clamp(24px, 2.4vw, 32px); color: var(--text-strong); margin-bottom: 8px; }
.member-role { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 14px; color: var(--text); margin-bottom: 14px; }
.member-role span { font-family: var(--f-pixel); font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.member-bio { color: var(--muted); font-size: 15px; }
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.work-link { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease-out); height: 100%; }
.work-link:hover, .work-link:focus-visible { border-color: var(--accent); transform: translateY(-4px); }
.work-art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.work-art img, .work-art picture { width: 100%; height: 100%; object-fit: cover; }
.work--dev .work-art img { filter: grayscale(1) brightness(.75); transition: filter .6s; }
.work--dev .work-link:hover .work-art img, .work--dev .work-link:focus-visible .work-art img { filter: none; }
.work-body { display: grid; justify-items: start; gap: 6px; padding: 14px 16px 18px; }
.work-name { font-weight: 700; color: var(--text-strong); }
.work-genre { font-family: var(--f-pixel); font-size: 12px; color: var(--muted); }

/* ---------- お問い合わせのページ ---------- */
.contact-info { display: grid; gap: 40px; }
.info-title { font-size: 16px; color: var(--text-strong); margin-bottom: 14px; letter-spacing: .06em; }
.topics { display: grid; gap: 10px; }
.topics li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.topic-num { font-family: var(--f-pixel); font-size: 12px; color: var(--c5); }
.tips { display: grid; gap: 10px; }
.tips li { position: relative; padding-left: 22px; color: var(--muted); font-size: 15px; }
.tips li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 8px; background: var(--line-2); }

/* ---------- 404 ---------- */
.notfound { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; overflow: hidden; isolation: isolate; text-align: center; }
.notfound::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(9, 9, 12, .9), rgba(9, 9, 12, .4) 70%); pointer-events: none; }
.notfound-inner { display: grid; justify-items: center; gap: 22px; }
.notfound-title { font-family: var(--f-pixel); font-weight: 400; font-size: clamp(56px, 13vw, 160px); line-height: 1; color: var(--text-strong); letter-spacing: .04em; animation: glitch 4s steps(1) infinite; }
.notfound-text { color: var(--muted); }
.notfound-continue { font-family: var(--f-pixel); font-size: 22px; letter-spacing: .2em; color: var(--c2); }
.notfound-continue b { font-weight: 400; display: inline-block; min-width: 1.2em; }
.notfound-continue.is-coin { animation: blink 1s steps(2, start) infinite; }
.notfound-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.menu-cursor { font-size: .8em; }

/* ---------- ダイアログ ---------- */
dialog.dlg { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: none; overflow: visible; }
dialog.dlg::backdrop { background: rgba(4, 5, 8, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.dlg[open] .dlg-panel, dialog.dlg[open] .dlg-video-inner { animation: dlgIn .4s var(--ease-out); }
@keyframes dlgIn {
  0% { opacity: 0; clip-path: inset(48% 0 48% 0); }
  60% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0 0 0 0); }
}
.dlg-panel {
  --fc: rgba(255, 255, 255, .6);
  position: relative; width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 32px; background-color: var(--surface); border: 1px solid var(--line);
}
.dlg-panel--wide { width: min(1080px, calc(100vw - 32px)); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 0; }
.dlg-x { position: absolute; right: 10px; top: 10px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; background: rgba(9, 9, 12, .7); border: 1px solid var(--line-2); transition: border-color .2s, transform .2s; }
.dlg-x:hover { border-color: var(--text-strong); transform: rotate(90deg); }
.dlg-x--inline { position: static; }
.dlg-title { font-size: clamp(24px, 2.6vw, 34px); color: var(--text-strong); margin: 8px 0 12px; }
.td-art { position: relative; min-height: 280px; background: #000; overflow: hidden; }
.td-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.td-art img.is-contain { object-fit: contain; background: #0a1630; }
.td-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); pointer-events: none; }
.td-body { display: grid; align-content: start; justify-items: start; gap: 12px; padding: 40px 36px 36px; }
.td-name { margin: 2px 0 0; }
html[lang="en"] .td-name { font-family: var(--f-display); text-transform: uppercase; }
.td-tagline { font-size: 18px; font-weight: 700; color: var(--text-strong); line-height: 1.6; }
.td-desc { color: var(--text); font-size: 15px; }
.td-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.td-soon { font-family: var(--f-pixel); font-size: 13px; color: var(--muted); letter-spacing: .06em; padding: 10px 0; }
.dlg-video-inner { width: min(1200px, calc(100vw - 32px)); background: #000; border: 1px solid var(--line-2); }
.dlg-video-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line-2); }
.dlg-video-title { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .1em; color: var(--text); }
.dlg-video-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; max-height: calc(100dvh - 120px); }
.dlg-menu { margin: 0; width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; }
.dlg-menu::backdrop { background: rgba(4, 5, 8, .94); }
.dlg-menu-inner { position: relative; height: 100%; display: grid; align-content: center; gap: 28px; padding: 80px var(--gutter) 48px; }
.menu-list { display: grid; gap: 4px; }
.menu-list a { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 9vw, 48px); letter-spacing: -.01em; color: var(--text-strong); }
.menu-list a small { font-family: var(--f-pixel); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .08em; }
.menu-list .menu-cursor { font-size: 18px; color: var(--c5); opacity: 0; }
.menu-list a:hover .menu-cursor, .menu-list a:focus-visible .menu-cursor { opacity: 1; animation: blink 1s steps(2, start) infinite; }
.lang-switch--menu a, .lang-switch--footer a { padding: 7px 14px 6px; font-size: 13px; }
.ach-list { display: grid; gap: 10px; margin: 8px 0 16px; }
.ach-item { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); }
.ach-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface-3); color: var(--dim); flex: none; }
.ach-icon .icon { width: 22px; height: 22px; }
.ach-text { display: grid; }
.ach-text b { font-size: 15px; color: var(--muted); }
.ach-text small { font-size: 12px; color: var(--dim); }
.ach-item.is-got { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--spectrum) border-box; }
.ach-item.is-got .ach-icon { color: #08080a; background: var(--spectrum); }
.ach-item.is-got b { color: var(--text-strong); }
.ach-item.is-got small { color: var(--muted); }
.ach-hint { font-size: 13px; color: var(--dim); }
.dlg-asset .dlg-panel { width: min(620px, calc(100vw - 32px)); display: grid; gap: 12px; justify-items: start; }
.ad-thumb { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #0b0c10; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.ad-desc { color: var(--text); }
.ad-sub { font-family: var(--f-pixel); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--dim); margin-top: 8px; }
.ad-files { display: grid; gap: 6px; width: 100%; }
.ad-files li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg-2); font-size: 14px; }
.ad-soon { color: var(--muted); font-size: 14px; }
.ad-cta { margin-top: 8px; }

/* ---------- 通知 ---------- */
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 160; display: grid; gap: 10px; justify-items: end; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 14px; max-width: min(380px, calc(100vw - 32px));
  padding: 12px 16px 12px 12px; background: rgba(18, 19, 24, .96); border: 1px solid var(--line-2);
  font-size: 14px; color: var(--text-strong);
  transform: translateX(24px); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.toast.is-in { transform: none; opacity: 1; }
.toast-ach { border-color: transparent; background: linear-gradient(rgba(18, 19, 24, .97), rgba(18, 19, 24, .97)) padding-box, var(--spectrum) border-box; }
.toast-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--spectrum); color: #08080a; flex: none; }
.toast-icon .icon { width: 22px; height: 22px; }
.toast-text { display: grid; line-height: 1.45; }
.toast-text small { font-family: var(--f-pixel); font-size: 11px; letter-spacing: .14em; color: var(--c4); }

/* ---------- ページの切り替え・カーソル ---------- */
.wipe { position: fixed; inset: 0; z-index: 140; pointer-events: none; display: grid; grid-template-columns: repeat(var(--cols, 12), 1fr); grid-auto-rows: 1fr; }
.wipe i { background: #050507; transform: scale(0); transition: transform .3s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.wipe.is-in i, .is-entering .wipe i { transform: scale(1.02); }
.is-entering .wipe i { transition: none; }
.is-entering .wipe:not(.is-built) { background: #050507; }
.is-entering .wipe { animation: wipeSafety .3s 2.4s forwards; }
@keyframes wipeSafety { to { opacity: 0; visibility: hidden; } }
.cursor-reticle {
  --fc: rgba(255, 255, 255, .85); --fl: 7px;
  position: fixed; left: 0; top: 0; z-index: 170; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  pointer-events: none; opacity: 0;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), opacity .2s;
  background-image:
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc)),
    linear-gradient(var(--fc), var(--fc)), linear-gradient(var(--fc), var(--fc));
  background-size: var(--fl) 2px, 2px var(--fl), var(--fl) 2px, 2px var(--fl), var(--fl) 2px, 2px var(--fl), var(--fl) 2px, 2px var(--fl);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  mix-blend-mode: difference;
}
.cursor-reticle.is-on.is-hot, .cursor-reticle.is-on.is-play { opacity: 1; }
.cursor-reticle.is-hot { width: 52px; height: 52px; margin: -26px 0 0 -26px; --fl: 11px; }
.cursor-reticle.is-down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* ---------- 隠しコマンド ---------- */
.is-rainbow .card-pic img, .is-rainbow .card-blueprint, .is-rainbow .asset-thumb img, .is-rainbow .work--dev .work-art img { filter: none; }
.is-rainbow .card-logo { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .7)); }
.is-rainbow .wm-outline { -webkit-text-stroke-color: transparent; }
.is-rainbow .brand-mark, .is-rainbow .footer-brand img { animation: hue 3s linear infinite; }
.is-rainbow body::before { background-image: linear-gradient(rgba(54, 214, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 95, 109, .07) 1px, transparent 1px); }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- 画面の幅 ---------- */
@media (max-width: 1080px) {
  .gnav-sub { display: none; }
  .gnav a { padding: 8px 10px 8px 18px; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header-h: 60px; }
  .gnav, .site-header .lang-switch { display: none; }
  .menu-btn { display: inline-flex; }
  .hud-tools { margin-left: auto; }
  .feature { grid-template-columns: 1fr; }
  .cards, .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cards > li:last-child:nth-child(odd) .card-art { aspect-ratio: 21 / 9; }
  .hero-hud { flex-wrap: wrap; gap: 8px 22px; }
  .hud-hint { margin-left: 0; width: 100%; }
  .asset-strip { max-width: 620px; }
  .sec-split { grid-template-columns: 1fr; }
  .sec-split--rev > :first-child { order: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-hud { justify-items: start; }
  .dlg-panel--wide { grid-template-columns: 1fr; }
  .td-art { min-height: 0; aspect-ratio: 16 / 9; }
  .td-body { padding: 24px 22px 28px; }
  .party--full { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .br-sp { display: inline; }
  .brand-word { font-size: 13px; letter-spacing: .14em; }
  .sfx-label { display: none; }
  .cards, .asset-grid { grid-template-columns: 1fr; }
  .cards > li:last-child:nth-child(odd) .card-art { aspect-ratio: 16 / 10; }
  .hero { padding-bottom: 140px; align-items: flex-end; }
  .hero-hud { gap: 10px 18px; bottom: 22px; }
  .member-bubble { left: 0; transform: translateY(6px); }
  .member:hover .member-bubble, .member:focus-visible .member-bubble { transform: none; }
  .member-bubble::after { left: 40px; }
  .scroll-cue { display: none; }
  .meter-bar { width: 80px; }
  .member { grid-template-columns: 1fr; justify-items: start; }
  .member-avatar img { width: 104px; height: 104px; }
  .feature-cta .btn { flex: 1 1 auto; }
  .footer-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toast { font-size: 13px; }
}

@media (max-width: 400px) {
  .btn-start small { display: none; }
}
@media (max-width: 350px) {
  .brand-word span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .card-art, .feature-art { transform: none !important; }
}
