/* ============================================================
   夢の取引所《BAKU EXCHANGE》— 作品概要サイト
   Dream Dock 本体 (styles.css) と同じ 90s CRT × VHS の設計言語。
   黒背景 / DotGothic16 + VT323 + Press Start 2P / 直角UI / ピンク・紫
   ============================================================ */

/* VT323(英数)の隣に並ぶ和文用: DotGothic16 を 78% に縮めて x-height を揃える */
@font-face {
  font-family: "DotGothic16Mono";
  src: url("fonts/DotGothic16-Regular.ttf") format("truetype");
  size-adjust: 78%;
  font-display: swap;
}
@font-face {
  font-family: "PixelMplus10";
  src: url("fonts/PixelMplus10-Bold.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #000000;
  --panel: #08185A;
  --bg-2: #060d38;
  --primary: #6500D8;
  --magenta: #F000A8;
  --link: #173CFF;
  --cyan: #00E5FF;
  --hover: #9A00FF;
  --fg: #EAF2FF;
  --lime: #B7FF00;
  --glitch: #FF1FDC;
  --yellow: #FFE000;
  --g1: #a9b4e6;
  --g2: #7280c2;
  --g3: #454e8a;
  --line: rgba(101, 0, 216, 0.38);
  --line-2: rgba(154, 0, 255, 0.55);
  --sans: "DotGothic16", "PixelMplus10", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", monospace, sans-serif;
  --mono: "VT323", "DotGothic16Mono", "DotGothic16", monospace;
  --pixel: "Press Start 2P", "PixelMplus10", "DotGothic16", monospace;
  --pixel-jp: "PixelMplus10", "DotGothic16", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body {
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: none;
  letter-spacing: 0.01em;
  line-height: 1.9;
  overflow-x: hidden;
}
/* ピクセルカーソル (Dream Dock と同じ) */
html, body, a, button, summary, img, video, .lb { cursor: url("img/cursor.png") 6 6, default !important; }

/* ---- CRT scanlines + micro flicker ---- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9990; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0px, transparent 2px, rgba(234, 242, 255, 0.9) 2px, rgba(234, 242, 255, 0.9) 4px);
  opacity: 0.035;
  animation: crtFlicker 3.6s steps(24) infinite;
}
#vignette {
  position: fixed; inset: 0; z-index: 9989; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
@keyframes crtFlicker {
  0%, 100% { opacity: 0.035; } 8% { opacity: 0.030; } 22% { opacity: 0.040; }
  36% { opacity: 0.032; } 54% { opacity: 0.038; } 71% { opacity: 0.029; } 88% { opacity: 0.036; }
}
@keyframes crtTextFlicker {
  0%, 28%, 100% { opacity: 1; filter: none; }
  29% { opacity: 0.72; filter: brightness(1.5); } 30% { opacity: 1; filter: none; }
  30.6% { opacity: 0.85; } 31.4% { opacity: 1; } 63% { opacity: 1; }
  63.7% { opacity: 0.66; filter: brightness(1.7); } 64.4% { opacity: 1; filter: none; }
}
@keyframes crtTitleTremble {
  0%, 41%, 100% { transform: none; opacity: 1;
    text-shadow: 0.04em 0 0 rgba(240, 0, 168, 0.5), -0.04em 0 0 rgba(0, 229, 255, 0.5), 0 0 18px rgba(101, 0, 216, 0.6); }
  42% { transform: translate(-2px, 0.5px); opacity: 0.86;
    text-shadow: 0.16em 0 0 rgba(240, 0, 168, 0.85), -0.14em 0 0 rgba(0, 229, 255, 0.85), 0 0 26px rgba(101, 0, 216, 0.8); }
  43.5% { transform: translate(2px, -1px); opacity: 1;
    text-shadow: -0.12em 0 0 rgba(240, 0, 168, 0.8), 0.12em 0 0 rgba(0, 229, 255, 0.8), 0 0 20px rgba(101, 0, 216, 0.7); }
  45% { transform: translate(-1px, 0); opacity: 0.92;
    text-shadow: 0.06em 0 0 rgba(240, 0, 168, 0.6), -0.06em 0 0 rgba(0, 229, 255, 0.6), 0 0 18px rgba(101, 0, 216, 0.6); }
  46.5%, 77% { transform: none; opacity: 1;
    text-shadow: 0.04em 0 0 rgba(240, 0, 168, 0.5), -0.04em 0 0 rgba(0, 229, 255, 0.5), 0 0 18px rgba(101, 0, 216, 0.6); }
  78% { transform: translate(1px, 0.5px); opacity: 0.78;
    text-shadow: 0.2em 0 0 rgba(240, 0, 168, 0.9), -0.18em 0 0 rgba(0, 229, 255, 0.9), 0 0 30px rgba(101, 0, 216, 0.9); }
  79% { transform: translate(-1.5px, 0); opacity: 1;
    text-shadow: 0.04em 0 0 rgba(240, 0, 168, 0.5), -0.04em 0 0 rgba(0, 229, 255, 0.5), 0 0 18px rgba(101, 0, 216, 0.6); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes svBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- 言語切替: html[data-lang] で .jp / .en を出し分け ---- */
html[data-lang="en"] .jp { display: none !important; }
html[data-lang="jp"] .en { display: none !important; }
.jp, .en { display: revert; }

/* ---- 共通 ---- */
a { color: var(--fg); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 9vw, 120px); border-top: 1px solid var(--line); }
.sec-label {
  font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--g2); margin-bottom: 18px; display: flex; gap: 14px; align-items: baseline;
}
.sec-label .no { color: var(--magenta); }
.sec-label::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }
h2 {
  font-family: var(--pixel); font-weight: 400; font-size: clamp(1.1rem, 2.6vw, 1.7rem); line-height: 1.6;
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px;
  text-shadow: 0.05em 0 0 rgba(240, 0, 168, 0.5), -0.05em 0 0 rgba(0, 229, 255, 0.5), 0 0 16px rgba(101, 0, 216, 0.5);
}
h2 .sub, .h-sub {
  display: block; font-family: var(--pixel-jp); font-size: clamp(1rem, 2.2vw, 1.35rem); text-transform: none;
  letter-spacing: 0.08em; color: var(--g1); margin-top: 10px; text-shadow: none;
}
h3 { font-family: var(--mono); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg); margin: 26px 0 8px; }
p { font-size: clamp(0.92rem, 1.4vw, 1rem); color: var(--g1); margin: 12px 0; }
p.lead { color: var(--fg); font-size: clamp(1rem, 1.7vw, 1.15rem); }
html[data-lang="en"] p { line-height: 1.75; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ボタン (Dream Dock の .tc-enter / .navbtn 系) */
.btn {
  display: inline-block; padding: 11px 22px; background: transparent; color: var(--fg);
  border: 1px solid var(--line-2); border-radius: 0; text-decoration: none;
  font-family: var(--mono); font-size: 1.3rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 0 0 10px rgba(154, 0, 255, 0.25), inset 0 0 8px rgba(101, 0, 216, 0.15);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--hover); color: #fff; box-shadow: 0 0 22px rgba(154, 0, 255, 0.6); text-shadow: 0.05em 0 0 rgba(240, 0, 168, 0.8), -0.05em 0 0 rgba(0, 229, 255, 0.8); }
.btn.primary { border-color: var(--magenta); box-shadow: 0 0 14px rgba(240, 0, 168, 0.4), inset 0 0 10px rgba(240, 0, 168, 0.15); }
.btn.primary:hover { background: var(--magenta); }
.btn.sm { padding: 7px 14px; font-size: 1.15rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---- トップバー ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 52px; flex-wrap: nowrap; padding-block: 6px; }
.brand { font-family: var(--pixel); font-size: 0.62rem; letter-spacing: 0.08em; text-decoration: none; white-space: nowrap; line-height: 1;
  text-shadow: 0.06em 0 0 rgba(240, 0, 168, 0.55), -0.06em 0 0 rgba(0, 229, 255, 0.55); }
.brand small { display: block; font-family: var(--pixel-jp); font-size: 0.62rem; color: var(--g2); text-shadow: none; letter-spacing: 0.14em; margin-top: 5px; }
.nav { display: flex; gap: 4px 12px; flex-wrap: nowrap; margin-left: auto; overflow: hidden; }
.nav a { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--g1); text-decoration: none; white-space: nowrap; }
.topbar .btn.sm { white-space: nowrap; padding: 6px 12px; font-size: 1.1rem; }
.lang button { padding: 4px 10px; font-size: 1.15rem; }
@media (max-width: 1000px) { .nav { display: none; } }
.nav a:hover { color: var(--fg); text-shadow: 0.05em 0 0 rgba(240, 0, 168, 0.8), -0.05em 0 0 rgba(0, 229, 255, 0.8); }
.lang { display: inline-flex; border: 1px solid var(--line-2); }
.lang button {
  background: transparent; border: 0; color: var(--g2); font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.14em;
  padding: 6px 12px; line-height: 1;
}
.lang button.on { background: var(--primary); color: #fff; }
.lang button + button { border-left: 1px solid var(--line-2); }

/* ---- ヒーロー ---- */
.hero { border-top: 0; padding-block: clamp(40px, 7vw, 90px) clamp(48px, 7vw, 90px); text-align: center; position: relative; overflow: hidden; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

/* 円形LCDのフレーム (鳥・ホームビデオ・字幕端末で共用) */
.lcd {
  --size: clamp(220px, 40vw, 360px);
  position: relative; width: var(--size); height: var(--size); max-width: 100%; border-radius: 50%; overflow: hidden;
  background: #000; flex-shrink: 0;
  box-shadow: 0 0 0 3px #0b0b12, 0 0 0 5px #2a2a36, 0 0 40px rgba(101, 0, 216, 0.55), 0 0 90px rgba(240, 0, 168, 0.18), inset 0 0 40px rgba(0, 0, 0, 0.7);
}
.lcd video, .lcd img { width: 100%; height: 100%; object-fit: cover; }
.lcd::after {
  /* 画素格子 + ガラス反射 */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.16), transparent 34%),
    repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.85);
}
.lcd-caption { font-family: var(--mono); font-size: 1.25rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--g2); margin-top: 18px; }
.lcd-caption .cur { color: var(--lime); text-shadow: 0 0 7px rgba(183, 255, 0, 0.6); animation: svBlink 1.1s steps(2) infinite; }

.hero .lcd { animation: fadeUp 1.6s ease both; }
.eyebrow { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--g2); margin-top: 40px; animation: fadeUp 2s ease 0.3s both; }
h1 { font-weight: 400; margin-top: 14px; line-height: 1.15; animation: fadeUp 2.4s ease 0.4s both, crtTitleTremble 5.5s steps(1) 2.4s infinite; }
h1 .jp-title { display: block; font-family: var(--pixel-jp); font-size: clamp(2rem, 7vw, 4.4rem); letter-spacing: 0.12em; }
h1 .en-title { display: block; font-family: var(--pixel); font-size: clamp(1.15rem, 4.4vw, 2.7rem); letter-spacing: 0.06em; margin-top: 18px; text-transform: uppercase; }
h1 .brk { font-family: var(--pixel-jp); color: var(--g2); }
.hero .lead { max-width: 720px; margin-top: 26px; animation: fadeUp 2.4s ease 0.7s both; }
.hero .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 22px; font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.14em; color: var(--g2); text-transform: uppercase; animation: fadeUp 2.4s ease 0.9s both; }
.hero .meta b { color: var(--fg); font-weight: 400; }
.hero .btn-row { justify-content: center; animation: fadeUp 2.4s ease 1.1s both; }

/* ---- ステートメント ---- */
.statement .cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 60px; max-width: 800px; }
.statement p { line-height: 2.15; }

/* ---- 3作品 一覧 ---- */
.works-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 10px; }
.wi {
  position: relative; display: block; text-decoration: none; border: 1px solid var(--line); background: var(--bg-2);
  padding: 16px; transition: border-color 0.25s, box-shadow 0.25s;
}
.wi:hover { border-color: var(--hover); box-shadow: 0 0 18px rgba(154, 0, 255, 0.35); }
.wi .th { aspect-ratio: 4 / 3; overflow: hidden; background: #000; border: 1px solid var(--line); }
.wi .th img, .wi .th video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.wi .no { font-family: var(--mono); color: var(--magenta); letter-spacing: 0.2em; font-size: 1.2rem; margin-top: 14px; }
.wi .t { font-family: var(--pixel); font-size: 0.78rem; line-height: 1.7; text-transform: uppercase; margin-top: 6px; }
.wi .m { font-family: var(--mono); font-size: 0.98rem; color: var(--g2); letter-spacing: 0.08em; margin-top: 6px; }

/* ---- 作品セクション ---- */
.work .head { display: block; }
.caption {
  font-family: var(--mono); font-size: 1.08rem; letter-spacing: 0.1em; color: var(--g1); line-height: 1.7;
  border-left: 2px solid var(--magenta); padding-left: 16px;
}
.caption b { color: var(--fg); font-weight: 400; }
.work .body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px 48px; margin-top: 34px; align-items: start; }
.work .body .text { max-width: 640px; }
.spec { list-style: none; margin-top: 10px; }
.spec li { position: relative; padding-left: 22px; margin: 8px 0; color: var(--g1); font-size: clamp(0.9rem, 1.35vw, 0.98rem); }
.spec li::before { content: "▸"; position: absolute; left: 0; color: var(--magenta); font-family: var(--mono); }
.spec b { color: var(--fg); font-weight: 400; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.shots figure, .gallery figure { margin: 0; border: 1px solid var(--line); background: #000; overflow: hidden; }
.shots figure.wide { grid-column: 1 / -1; }
.shots img, .gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: filter 0.3s, transform 0.3s; }
.gallery img { aspect-ratio: 3 / 2; }
.shots figure:hover img, .gallery figure:hover img { filter: brightness(1.1) saturate(1.1); }
figcaption { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.1em; color: var(--g2); padding: 8px 10px; border-top: 1px solid var(--line); }

/* Dream Dock CTA パネル */
.cta-panel {
  margin-top: 34px; border: 1px solid var(--line-2); padding: 26px 28px; background: var(--bg-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px;
  box-shadow: 0 0 24px rgba(101, 0, 216, 0.25), inset 0 0 30px rgba(8, 24, 90, 0.5);
}
.cta-panel .txt { flex: 1 1 320px; }
.cta-panel .txt p { margin: 4px 0; }
.cta-panel .links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Just Buy Nightmare! プレーヤー ---- */
.terminal {
  margin-top: 34px; border: 1px solid var(--line-2); background: #000; padding: clamp(20px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; justify-items: center;
  box-shadow: 0 0 30px rgba(101, 0, 216, 0.25);
}
.term-screens { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: center; align-items: center; }
.lcd.cap { --size: clamp(240px, 42vw, 340px); background: #070709; }
.lcd.cap .grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(15, 11, 17, 1) 1px, transparent 1px); background-size: 6px 6px; }
.lcd.cap .txt {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 14%; font-family: var(--pixel); font-size: clamp(0.62rem, 1.5vw, 0.86rem); line-height: 1.9; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--fg); text-shadow: 0 0 6px currentColor, 0 0 14px currentColor; word-break: break-word;
}
.lcd.cap .txt.jp-cap { font-family: var(--pixel-jp); font-size: clamp(0.95rem, 2.3vw, 1.25rem); text-transform: none; line-height: 1.75; }
.lcd.cap .txt.c-cyan { color: var(--cyan); } .lcd.cap .txt.c-mag { color: var(--glitch); } .lcd.cap .txt.c-yel { color: var(--lime); }

.term-ctl { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center; width: 100%; }
.term-ctl .time { font-family: var(--mono); font-size: 1.3rem; letter-spacing: 0.12em; color: var(--g1); min-width: 9ch; text-align: center; }
.term-ctl .bar { flex: 1 1 200px; height: 6px; background: var(--bg-2); border: 1px solid var(--line); position: relative; }
.term-ctl .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--magenta); box-shadow: 0 0 8px var(--magenta); }
.term-note { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.1em; color: var(--g2); text-align: center; }
.transcript { width: 100%; margin-top: 6px; }
.transcript summary { font-family: var(--mono); font-size: 1.25rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g1); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::before { content: "▸ "; color: var(--magenta); }
.transcript[open] summary::before { content: "▾ "; }
.transcript ol { list-style: none; columns: 2; column-gap: 40px; padding: 18px 0; }
.transcript li { break-inside: avoid; font-size: 0.92rem; color: var(--g1); padding: 3px 0; border-bottom: 1px dotted rgba(101, 0, 216, 0.3); }
.transcript li .t { font-family: var(--mono); color: var(--g3); margin-right: 10px; font-size: 1.1rem; }
.transcript li.now { color: var(--fg); text-shadow: 0 0 8px rgba(240, 0, 168, 0.6); }
.transcript li.now .t { color: var(--magenta); }

/* ---- Dream Contagion ---- */
.contagion-stage { display: flex; flex-wrap: wrap; gap: 30px 48px; align-items: center; justify-content: center; margin-top: 30px; }
.lcd.home { --size: clamp(240px, 42vw, 380px); }
.lcd.home .osd {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16%;
  font-family: var(--pixel); font-size: clamp(0.62rem, 1.4vw, 0.8rem); line-height: 2; color: #fff; text-transform: uppercase;
  text-shadow: 2px 0 0 #000, -2px 0 0 #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 2px 0 #000, -2px -2px 0 #000; opacity: 0; pointer-events: none;
}
.lcd.home.glitch video { animation: vhsGlitch 1.3s steps(8) both; }
.lcd.home.glitch .osd { opacity: 1; animation: osdJit 0.12s steps(2) infinite; }
@keyframes vhsGlitch {
  0% { filter: none; transform: none; clip-path: none; }
  12% { filter: hue-rotate(40deg) saturate(2) contrast(1.4); transform: translateX(-8px) scaleY(1.02); }
  25% { filter: none; transform: translateX(6px); clip-path: polygon(0 0, 100% 0, 100% 38%, 0 42%, 0 60%, 100% 58%, 100% 100%, 0 100%); }
  40% { filter: hue-rotate(-60deg) brightness(1.3); transform: translate(-3px, 6px) skewX(4deg); }
  55% { filter: none; transform: translateX(10px); clip-path: polygon(0 0, 100% 0, 100% 70%, 0 66%, 0 100%, 100% 100%); }
  70% { filter: saturate(0) contrast(1.6); transform: translate(2px, -4px); }
  85% { filter: hue-rotate(90deg); transform: translateX(-5px); }
  100% { filter: none; transform: none; clip-path: none; }
}
@keyframes osdJit { 0% { transform: translate(0, 0); } 100% { transform: translate(1px, -1px); } }
.tap-hint { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g2); margin-top: 16px; text-align: center; }

/* ---- 展示風景 ---- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall img { aspect-ratio: 2 / 3; }

/* ライトボックス */
.lb { position: fixed; inset: 0; z-index: 9995; background: rgba(0, 0, 0, 0.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 48px); width: auto; height: auto; object-fit: contain; box-shadow: 0 0 60px rgba(101, 0, 216, 0.5); }
.lb .close { position: absolute; top: 14px; right: 18px; }

/* ---- クレジット / フッター ---- */
.credits .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px 48px; }
.credits dt { font-family: var(--mono); font-size: 1.2rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--g2); }
.credits dd { font-size: 1rem; color: var(--fg); margin: 6px 0 14px; line-height: 1.8; }
.credits dd a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.credits dd a:hover { color: var(--glitch); border-color: var(--glitch); }
footer { border-top: 1px solid var(--line); padding: 26px 0 70px; display: flex; flex-wrap: wrap; gap: 10px 30px; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.12em; color: var(--g2); text-transform: uppercase; }
#sysvoice { position: fixed; bottom: 10px; left: 16px; z-index: 20; font-family: var(--mono); font-size: 1rem; letter-spacing: 0.12em; color: var(--g2); text-transform: uppercase; pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; }
#sysvoice .sv-cursor { color: var(--lime); text-shadow: 0 0 7px rgba(183, 255, 0, 0.6); animation: svBlink 1.1s steps(2) infinite; margin-left: 2px; }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .work .head, .work .body { grid-template-columns: minmax(0, 1fr); }
  .works-index { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure.wide { grid-column: span 2; }
  .transcript ol { columns: 1; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .shots { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figure.wide { grid-column: auto; }
  .lcd { --size: min(78vw, 300px); }
  .lcd.cap { --size: min(78vw, 300px); }
  .lcd.home { --size: min(78vw, 300px); }
  #sysvoice { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  h1, .hero *, body::after { animation: none !important; }
}
