/* ============================================================
   PIXEL PROMO — Brand Top Page
   "JAPANESE HORROR, TO THE WORLD."
   ------------------------------------------------------------
   設計方針:
   - 黒基調だが「怖いサイト」ではなく、映画スタジオ級の上質さ
   - 余白を大きく取り、赤は要所のみ（面積比 1% 未満を目安）
   - アニメーションは fade / parallax / zoom / count-up のみ
   - prefers-reduced-motion では全アニメーションを無効化
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #050505;
  --bg-elev: #0b0b0b;
  --bg-elev-2: #121212;
  --text: #f5f5f5;
  --sub: #9a9a9a;
  --line: rgba(245, 245, 245, 0.1);
  --line-strong: rgba(245, 245, 245, 0.22);
  --accent: #8b0000;
  --accent-bright: #b00020;

  --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(96px, 14vh, 200px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p,
figure,
ul {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------- Typography utilities ---------- */
.en {
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.eyebrow {
  font-family: var(--font-en);
  font-size: clamp(10px, 1.1vw, 12px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: clamp(24px, 4vw, 48px);
  height: 1px;
  background: var(--accent-bright);
  flex: none;
}
.section-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
/* 英語見出しに添える日本語表記。
   英語をブランドの主表記としつつ、日本語で意味が伝わるようにする。 */
.title-jp {
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.55vw, 18px);
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-top: clamp(12px, 1.4vw, 18px);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.title-jp::before {
  content: '';
  width: clamp(18px, 2.4vw, 30px);
  height: 1px;
  background: var(--line-strong);
  flex: none;
  transform: translateY(-0.45em);
}
.section-lead {
  color: var(--sub);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 2;
  max-width: 46em;
}
.jp-body {
  font-size: clamp(14px, 1.45vw, 16px);
  line-height: 2.15;
  color: var(--sub);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--hairline {
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
  margin-bottom: clamp(48px, 7vw, 96px);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 clamp(22px, 3vw, 38px);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--btn-fg);
  border: 1px solid var(--line-strong);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn:hover {
  color: #050505;
  border-color: var(--text);
}
.btn:hover::after {
  transform: translateY(0);
}
.btn--solid {
  background: var(--text);
  color: #050505;
  border-color: var(--text);
}
.btn--solid::after {
  background: var(--accent-bright);
}
.btn--solid:hover {
  color: #fff;
  border-color: var(--accent-bright);
}
.btn--accent {
  border-color: rgba(176, 0, 32, 0.55);
  color: var(--text);
}
.btn--accent::after {
  background: var(--accent-bright);
}
.btn--accent:hover {
  color: #fff;
  border-color: var(--accent-bright);
}
.btn--ghost {
  border-color: transparent;
  padding-inline: 0;
  min-height: 40px;
}
.btn--ghost::after {
  display: none;
}
.btn--ghost .btn-line {
  width: 34px;
  height: 1px;
  background: currentColor;
  transition: width 0.45s var(--ease);
}
.btn--ghost:hover {
  color: var(--text);
  border-color: transparent;
}
.btn--ghost:hover .btn-line {
  width: 56px;
}
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay='1'] {
  transition-delay: 0.1s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.2s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.3s;
}
.reveal[data-delay='4'] {
  transition-delay: 0.4s;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.6s var(--ease), backdrop-filter 0.6s var(--ease),
    border-color 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: clamp(64px, 8vh, 88px);
}
.brand-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 0.3em;
  white-space: nowrap;
}
.brand-logo span {
  color: var(--accent-bright);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav a {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sub);
  position: relative;
  padding-block: 6px;
  transition: color 0.35s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: width 0.4s var(--ease);
}
.nav a:hover {
  color: var(--text);
}
.nav a:hover::after {
  width: 100%;
}
.header-cta {
  min-height: 42px;
  font-size: 11px;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav-toggle i {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open i:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-toggle.is-open i:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open i:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* mobile drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 5, 5, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-drawer a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer .drawer-en {
  font-family: var(--font-en);
  font-size: clamp(19px, 5.6vw, 28px);
  font-weight: 600;
  letter-spacing: 0.12em;
}
/* ドロワーの日本語ラベル */
.nav-drawer .drawer-ja {
  font-family: var(--font-jp);
  font-size: clamp(11.5px, 3.2vw, 14px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--sub);
  white-space: nowrap;
}
.nav-drawer .drawer-foot {
  margin-top: 36px;
  display: flex;
  gap: 22px;
  color: var(--sub);
  font-size: 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: -6% -4%;
  z-index: -2;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.72) contrast(1.06) brightness(0.72);
  animation: heroZoom 34s ease-out forwards;
}
@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.13);
  }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to top,
      rgba(5, 5, 5, 0.98) 0%,
      rgba(5, 5, 5, 0.72) 34%,
      rgba(5, 5, 5, 0.3) 68%,
      rgba(5, 5, 5, 0.62) 100%
    ),
    radial-gradient(120% 90% at 18% 30%, rgba(5, 5, 5, 0.72), transparent 62%);
}
/* ゆっくり流れる霧 */
.fog {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background: radial-gradient(45% 34% at 22% 42%, rgba(150, 150, 160, 0.09), transparent 70%),
    radial-gradient(38% 30% at 74% 62%, rgba(130, 130, 145, 0.07), transparent 72%);
  animation: fogDrift 46s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  from {
    transform: translate3d(-3%, 1%, 0) scale(1);
  }
  to {
    transform: translate3d(4%, -2%, 0) scale(1.14);
  }
}
/* ============================================================
   キービジュアル型ヒーロー
   スタジオ名が焼き込まれた横長画像を、原画比のまま上部に置く。
   全画面 cover にすると画像内の "PIXEL PROMO" が切れるため、
   背景敷き込みではなくレターボックス表示にしている。
   ============================================================ */
.hero--key {
  min-height: auto;
  display: block;
  padding-top: clamp(84px, 11vh, 132px);
}
.hero-key {
  position: relative;
  isolation: isolate;
}
.hero-key-img {
  display: block;
  width: 100%;
  height: auto;
  /* 原画比を保持して切り抜きを発生させない */
  aspect-ratio: 2400 / 823;
  object-fit: contain;
  filter: saturate(0.86) contrast(1.04) brightness(0.94);
  opacity: 0;
  animation: keyFade 1.6s var(--ease) 0.1s forwards;
}
@keyframes keyFade {
  from {
    opacity: 0;
    transform: scale(1.012);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 画像下端を背景へ溶かし、切り抜き線が出ないようにする */
.hero-key-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg) 4%, rgba(5, 5, 5, 0.55) 46%, transparent 100%);
}
.hero--key .hero-inner {
  padding-block: clamp(34px, 5.5vh, 62px) clamp(56px, 9vh, 104px);
}
/* 全画面ヒーロー前提の縦書きスクロール指示は、
   高さが可変のキービジュアル型では位置が定まらないため出さない */
.hero--key .hero-scroll {
  display: none;
}
/* スマートフォンでは左右ガターぶん画像が縮み、焼き込まれた
   "PIXEL PROMO" が読み取りづらくなるため全幅で見せる */
@media (max-width: 720px) {
  .hero--key {
    padding-top: clamp(68px, 9vh, 92px);
  }
  .hero-key {
    padding-inline: 0;
    max-width: none;
  }
  .hero-key-fade {
    height: 34%;
  }
}

.hero-inner {
  width: 100%;
  padding-block: clamp(96px, 16vh, 180px) clamp(56px, 9vh, 104px);
}
.hero-eyebrow {
  margin-bottom: clamp(22px, 3vw, 34px);
}
.hero-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(31px, 7.4vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  transform: translateY(102%);
  animation: lineUp 1.25s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span {
  animation-delay: 0.14s;
}
.hero-title .line:nth-child(3) > span {
  animation-delay: 0.28s;
}
@keyframes lineUp {
  to {
    transform: translateY(0);
  }
}
.hero-title em {
  font-style: normal;
  color: var(--accent-bright);
}
/* ヒーローの日本語キャッチ（英語タイトルの対訳）。
   本文より一段大きく明るくして、英語と日本語が対になって読めるようにする。 */
.hero-title-jp {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-family: var(--font-jp);
  font-size: clamp(15px, 2.15vw, 26px);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.1em;
  color: var(--text);
  max-width: 26em;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.42s forwards;
}
.hero-sub {
  margin-top: clamp(16px, 2.2vw, 26px);
  color: var(--sub);
  font-size: clamp(13px, 1.55vw, 16px);
  line-height: 2.05;
  max-width: 34em;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.6s forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-actions {
  margin-top: clamp(34px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.75s forwards;
}
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--sub);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 1s forwards;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--sub), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ============================================================
   GAMES
   ============================================================ */
.games-list {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 11vw, 160px);
}
/* 大判1作品ずつ。画像とテキストの比率を左右で反転させず一定に保つことで、
   偶数カードの画像が小さく見える問題を避ける。
   キービジュアルは縦長ポスターのため、画像列はテキスト列より狭く取り、
   カードの高さが出すぎないようにする。 */
.game {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(28px, 4.5vw, 76px);
  align-items: center;
}
.game:nth-child(even) {
  grid-template-columns: 1fr 0.78fr;
}
.game:nth-child(even) .game-media {
  order: 2;
}
/* ポスター原画（765×1024）と同じ比率にし、切り抜きを発生させない */
.game-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
  aspect-ratio: 765 / 1024;
}
.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.86);
  transform: scale(1.005);
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
}
.game:hover .game-media img {
  transform: scale(1.06);
  filter: saturate(0.9) brightness(0.96);
}
.game-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.5), transparent 55%);
  pointer-events: none;
}
.game-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 8px 16px;
  background: var(--accent-bright);
  color: #fff;
}
.game-index {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.game-index::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}
.game-title {
  font-family: var(--font-en);
  font-size: clamp(21px, 2.9vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow-wrap: break-word;
}
/* 英語タイトルの直下に日本語タイトルを併記する */
.game-title-ja {
  margin-top: 10px;
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.65vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.09em;
  color: var(--text);
}
.game-subtitle {
  font-family: var(--font-en);
  font-size: clamp(10px, 1.2vw, 12px);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent-bright);
  margin-top: 14px;
  text-transform: uppercase;
}
.game-desc {
  margin-top: clamp(18px, 2.4vw, 26px);
  color: var(--sub);
  font-size: clamp(13.5px, 1.4vw, 15.5px);
  line-height: 2.1;
}
.game-meta {
  margin-top: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sub);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.game-meta b {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.2em;
}
.game-actions {
  margin-top: clamp(26px, 3.4vw, 36px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.games-more {
  margin-top: clamp(64px, 9vw, 112px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.games-more p {
  color: var(--sub);
  font-size: 14px;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: linear-gradient(180deg, #050505, #090909 50%, #050505);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: clamp(32px, 5vw, 64px) clamp(20px, 3vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-value {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(38px, 6.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: clamp(10px, 1.1vw, 11.5px);
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--text);
  text-transform: uppercase;
}
/* 数値ラベルの日本語併記 */
.stat-label-ja {
  margin-top: 8px;
  font-family: var(--font-jp);
  font-size: clamp(11.5px, 1.15vw, 13px);
  letter-spacing: 0.06em;
  color: var(--sub);
}
.stats-note {
  margin-top: clamp(26px, 3vw, 36px);
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--sub);
}

/* ============================================================
   HORROR UNIVERSE
   ============================================================ */
.universe {
  position: relative;
  overflow: hidden;
}
.universe-lead {
  font-size: clamp(17px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.02em;
}
.universe-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.universe-diagram {
  position: relative;
  border: 1px solid var(--line);
  background: radial-gradient(80% 100% at 50% 40%, #0d0d0d, #050505 78%);
  padding: clamp(14px, 2.2vw, 26px);
}
.universe-diagram svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.u-link {
  stroke: rgba(245, 245, 245, 0.16);
  stroke-width: 0.28;
  fill: none;
}
.u-link--pulse {
  stroke: rgba(176, 0, 32, 0.5);
  stroke-dasharray: 1.6 2.4;
  animation: dashFlow 12s linear infinite;
}
@keyframes dashFlow {
  to {
    stroke-dashoffset: -40;
  }
}
.u-node circle {
  fill: #050505;
  stroke: rgba(245, 245, 245, 0.4);
  stroke-width: 0.32;
  transition: stroke 0.45s var(--ease), fill 0.45s var(--ease);
}
.u-node--upcoming circle {
  stroke: rgba(245, 245, 245, 0.18);
  stroke-dasharray: 0.9 1.2;
}
.u-node:hover circle {
  stroke: var(--accent-bright);
  fill: #14040a;
}
.u-node text {
  font-family: var(--font-jp);
  font-size: 2.5px;
  fill: var(--text);
  text-anchor: middle;
  letter-spacing: 0.05em;
}
.u-node .u-kind {
  font-family: var(--font-en);
  font-size: 1.7px;
  fill: var(--sub);
  letter-spacing: 0.22em;
}
.u-node--upcoming text {
  fill: var(--sub);
}
.universe-legend {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sub);
}
.universe-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.universe-legend i {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
  display: block;
}
.universe-legend i.dashed {
  background: repeating-linear-gradient(
    to right,
    rgba(176, 0, 32, 0.7) 0 4px,
    transparent 4px 7px
  );
}
.universe-text p + p {
  margin-top: 1.1em;
}

/* ============================================================
   KAI
   ============================================================ */
.kai {
  background: #030303;
  position: relative;
  overflow: hidden;
}
.kai-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
}
.kai-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.kai-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.16) saturate(0.6);
  transform: scale(1.02);
  transition: transform 2.2s var(--ease), filter 2.2s var(--ease);
}
.kai-visual:hover img {
  transform: scale(1.07);
  filter: brightness(0.95) contrast(1.1) saturate(0.7);
}
.kai-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 50% 42%, transparent 12%, rgba(3, 3, 3, 0.9) 82%);
  pointer-events: none;
}
.kai-no {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  padding: 10px 16px;
  background: rgba(5, 5, 5, 0.86);
  border-top: 1px solid var(--accent);
  color: var(--text);
}
.kai-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(44px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.kai-tagline {
  margin-top: clamp(20px, 2.6vw, 30px);
  font-family: var(--font-en);
  font-size: clamp(11px, 1.5vw, 15px);
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.8;
  color: var(--text);
  text-transform: uppercase;
}
.kai-note {
  margin-top: clamp(18px, 2.2vw, 26px);
  color: var(--sub);
  font-size: clamp(13.5px, 1.4vw, 15px);
  line-height: 2.1;
  max-width: 34em;
}
.kai-specs {
  margin-top: clamp(28px, 3.6vw, 42px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.kai-spec {
  background: #050505;
  padding: clamp(16px, 2.2vw, 24px);
}
/* 項目数が奇数（現在5件）のとき最終セルが空欄になるため、
   最後の項目を2カラムまたいで配置し、余白セルを発生させない。 */
.kai-spec:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.kai-spec dt {
  font-family: var(--font-en);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  color: var(--sub);
  text-transform: uppercase;
}
.kai-spec dd {
  margin: 10px 0 0;
  font-family: var(--font-en);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.kai-actions {
  margin-top: clamp(28px, 3.6vw, 40px);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-statement {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(26px, 5.6vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  max-width: 20em;
}
.about-statement em {
  font-style: normal;
  color: var(--accent-bright);
}
.about-cols {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
}
.about-flow {
  margin-top: clamp(44px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.about-flow span {
  font-family: var(--font-en);
  font-size: clamp(12px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.16em;
}
.about-flow i {
  color: var(--accent-bright);
  font-size: 11px;
  font-style: normal;
}

/* ============================================================
   BUSINESS（意図的に控えめ）
   ============================================================ */
.business {
  border-top: 1px solid var(--line);
  background: #070707;
}
.business-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.business-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 40px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.business-lead {
  margin-top: 14px;
  color: var(--sub);
  font-size: clamp(13.5px, 1.4vw, 15.5px);
  line-height: 2.05;
  max-width: 34em;
}
.service-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-list li {
  background: #070707;
  padding: clamp(16px, 2.2vw, 22px) 4px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-en);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.service-list li:hover {
  color: #fff;
  padding-left: 12px;
}
.service-list li b {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--sub);
  font-weight: 600;
  flex: none;
}
/* サービス名の日本語併記。英語名の右側に控えめに添える */
.service-name {
  flex: none;
}
.service-name-ja {
  margin-left: auto;
  font-family: var(--font-jp);
  font-size: clamp(11.5px, 1.15vw, 13px);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--sub);
  text-align: right;
}
.business-actions {
  margin-top: clamp(26px, 3.4vw, 36px);
}

/* ============================================================
   RECRUIT
   ============================================================ */
.recruit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.recruit-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.recruit-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.36) contrast(1.08);
}
.recruit-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.95) 8%, rgba(5, 5, 5, 0.6) 72%),
    linear-gradient(to top, rgba(5, 5, 5, 0.9), transparent 60%);
}
.recruit-title {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(28px, 6.2vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.recruit-title em {
  font-style: normal;
  color: var(--accent-bright);
}
.recruit-lead {
  margin-top: clamp(20px, 2.6vw, 30px);
  color: var(--sub);
  font-size: clamp(13.5px, 1.5vw, 16px);
  line-height: 2.1;
  max-width: 36em;
}
.position-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.position-grid li {
  background: rgba(5, 5, 5, 0.66);
  padding: clamp(18px, 2.4vw, 26px) clamp(14px, 1.8vw, 20px);
  font-family: var(--font-en);
  font-size: clamp(11.5px, 1.3vw, 13.5px);
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
.position-grid li:hover {
  background: rgba(139, 0, 0, 0.22);
  color: #fff;
}
/* 職種名の日本語併記。英語名の下に1行で添える */
.position-name {
  display: block;
}
.position-name-ja {
  display: block;
  margin-top: 7px;
  font-family: var(--font-jp);
  font-size: clamp(11px, 1.1vw, 12.5px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--sub);
}
.recruit-actions {
  margin-top: clamp(32px, 4.4vw, 48px);
}

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease),
    transform 0.6s var(--ease);
}
.news-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev-2);
  transform: translateY(-4px);
}
.news-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.news-cat {
  font-family: var(--font-en);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 5px 10px;
  border: 1px solid rgba(176, 0, 32, 0.5);
  color: var(--accent-bright);
}
.news-date {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sub);
}
.news-title {
  font-size: clamp(14.5px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 1.75;
}
.news-more {
  margin-top: auto;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--sub);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.news-card:hover .news-more {
  color: var(--text);
}
.news-foot {
  margin-top: clamp(40px, 5vw, 64px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 104px) clamp(28px, 4vw, 44px);
  background: #030303;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 30px);
  letter-spacing: 0.26em;
}
.footer-logo span {
  color: var(--accent-bright);
}
.footer-tagline {
  margin-top: 16px;
  color: var(--sub);
  font-size: 13px;
  line-height: 2;
  max-width: 28em;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}
.footer-nav a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--sub);
  transition: color 0.35s var(--ease);
}
.footer-nav a:hover {
  color: var(--text);
}
.footer-nav .footer-en {
  font-family: var(--font-en);
  font-size: 11.5px;
  letter-spacing: 0.2em;
}
/* フッターメニューの日本語併記 */
.footer-nav .footer-ja {
  font-family: var(--font-jp);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.72;
}
.footer-bottom {
  padding-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--sub);
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.footer-social a:hover {
  color: #fff;
  border-color: var(--accent-bright);
  background: rgba(139, 0, 0, 0.2);
}
.copyright {
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--sub);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .game,
  .game:nth-child(even),
  .universe-body,
  .kai-grid,
  .about-cols,
  .business-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .game:nth-child(even) .game-media {
    order: 0;
  }
  /* 1カラムでは縦長ポスターが全幅だと高くなりすぎるため、幅を絞って中央に置く */
  .game-media {
    max-width: 340px;
    margin-inline: auto;
    width: 100%;
  }
  .position-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .kai-visual {
    aspect-ratio: 4 / 3;
    max-height: 62vh;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.85;
  }
  .hero {
    min-height: 92svh;
    align-items: flex-end;
  }
  .hero-title {
    font-size: clamp(28px, 10.4vw, 46px);
    line-height: 1.08;
  }
  .hero-title-jp {
    font-size: clamp(14px, 4.4vw, 18px);
    letter-spacing: 0.04em;
    line-height: 1.7;
  }
  .hero-sub {
    font-size: 12.5px;
    line-height: 1.95;
  }
  /* 日本語併記の頭のハイフンはモバイルでは省き、行を詰める */
  .title-jp {
    gap: 0;
    font-size: 13.5px;
    letter-spacing: 0.03em;
  }
  .title-jp::before {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-scroll {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 26px 18px;
  }
  .stat-value {
    font-size: clamp(34px, 12vw, 52px);
  }
  .position-grid {
    grid-template-columns: 1fr;
  }
  .kai-specs {
    grid-template-columns: 1fr;
  }
  .game-actions .btn,
  .business-actions .btn,
  .recruit-actions .btn,
  .kai-actions .btn {
    width: 100%;
  }
  .footer-nav {
    grid-template-columns: 1fr;
  }
  .u-node text {
    font-size: 3.1px;
  }
  .u-node .u-kind {
    font-size: 2.1px;
  }
}

/* ============================================================
   REDUCED MOTION — 全アニメーション停止
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-title .line > span,
  .hero-sub,
  .hero-actions,
  .hero-scroll {
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-media img,
  .hero-media video {
    transform: none !important;
  }
  .fog {
    display: none;
  }
}

/* ============================================================
   下層ページ共通（/company など）
   トップと同じトークンを使い、ヘッダーは常時ソリッド表示にする。
   トップのヘッダーはヒーロー上で透過するが、下層ページには
   ヒーローが無いため、透過のままだと本文と重なって読めなくなる。
   ============================================================ */
.site-header.is-solid {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* ---------- ページ見出し ---------- */
.page-head {
  padding-top: clamp(120px, 17vh, 190px);
  padding-bottom: clamp(40px, 6vh, 72px);
  border-bottom: 1px solid var(--line);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(24px, 4vh, 40px);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sub);
}
.crumbs a {
  color: var(--sub);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs span[aria-current] {
  color: var(--text);
}
.page-title {
  margin: 10px 0 0;
  font-family: var(--font-jp);
  font-size: clamp(30px, 5.2vw, 54px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.page-title-en {
  margin: 14px 0 0;
  font-family: var(--font-en);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sub);
}

/* ---------- イントロ 2カラム ---------- */
.co-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}

/* ---------- 会社概要テーブル ---------- */
.co-table {
  margin: 0;
  border-top: 1px solid var(--line);
}
.co-row {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(20px, 3vh, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.co-row dt {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.co-label-ja {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}
.co-label-en {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sub);
}
.co-row dd {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.9;
  color: #d8d8d8;
}

/* ---------- 回遊カード ---------- */
.co-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.co-link {
  position: relative;
  display: block;
  padding: clamp(26px, 4vw, 40px);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.45s var(--ease);
}
.co-link:hover {
  background: var(--bg-elev);
}
.co-link-en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.co-link-ja {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--sub);
}
.co-link-desc {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.85;
  color: #c2c2c2;
}
.co-link-arrow {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--accent-bright);
  transition: transform 0.45s var(--ease);
}
.co-link:hover .co-link-arrow {
  transform: translateX(8px);
}

/* ---------- お問い合わせ ---------- */
.co-contact .jp-body {
  max-width: 62ch;
}
.co-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(28px, 4vh, 44px);
}

@media (max-width: 860px) {
  .co-intro {
    grid-template-columns: 1fr;
  }
  .co-links {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .co-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .co-row dt {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
}
