/* =============================================
   SEKAILABO — style.css
   Dark / Minimal Music Label
   ============================================= */

:root {
  --bg:         #04070e;
  --bg-alt:     #070c16;
  --bg-card:    #0a1020;
  --text:       #dbe7f4;
  --text-sub:   #adc0d4;
  --text-muted: #2a3f56;
  --accent:     #00cc44;
  --accent-rgb: 0, 204, 68;
  --accent-dim: rgba(0, 204, 68, 0.3);
  --accent-glow: 0 0 18px rgba(0, 204, 68, 0.2);
  --border:     rgba(0, 204, 68, 0.1);
  --border-mid: rgba(0, 204, 68, 0.18);
  --header-h:   64px;
  --max-w:      1200px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --font-mono:  'Space Mono', monospace;
}

/* =============================================
   OPENING ANIMATION
   ============================================= */
#opening {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  pointer-events: all;
}

.op-strips {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.op-strip {
  position: absolute;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid rgba(0, 204, 68, 0.08);
  transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45);
  will-change: transform;
}

@keyframes op-rattle {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(4px); }
  40%  { transform: translateX(-4px); }
  60%  { transform: translateX(3px); }
  80%  { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

.op-strip.op-rattle { animation: op-rattle 0.28s ease-in-out; }
.op-strip.op-fly-r  { transform: translateX(110%); }
.op-strip.op-fly-l  { transform: translateX(-110%); }

.op-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.op-center.op-visible {
  opacity: 1;
  transform: translateY(0);
}

.op-logo {
  width: 68px;
  height: auto;
  display: block;
}

.op-wordmark {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
  margin: 0;
}

/* RGBグリッチ: 赤チャンネル */
.op-wordmark::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  color: #ff2244;
  animation: op-glitch-r 3.5s infinite;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

/* RGBグリッチ: シアンチャンネル */
.op-wordmark::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  color: #00ffee;
  animation: op-glitch-c 3.5s infinite 0.07s;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

@keyframes op-glitch-r {
  0%,  68%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  69%  { clip-path: inset(8%  0 72% 0); transform: translateX(-5px); }
  70%  { clip-path: inset(45% 0 38% 0); transform: translateX(5px);  }
  71%  { clip-path: inset(72% 0 12% 0); transform: translateX(-3px); }
  72%  { clip-path: inset(0 0 100% 0);  transform: translateX(0);    }
  80%  { clip-path: inset(30% 0 55% 0); transform: translateX(4px);  }
  81%  { clip-path: inset(60% 0 22% 0); transform: translateX(-4px); }
  82%  { clip-path: inset(0 0 100% 0);  transform: translateX(0);    }
}

@keyframes op-glitch-c {
  0%,  68%, 100% { clip-path: inset(0 0 100% 0); transform: translateX(0); }
  69%  { clip-path: inset(20% 0 58% 0); transform: translateX(5px);  }
  70%  { clip-path: inset(58% 0 25% 0); transform: translateX(-5px); }
  71%  { clip-path: inset(80% 0 5%  0); transform: translateX(3px);  }
  72%  { clip-path: inset(0 0 100% 0);  transform: translateX(0);    }
  80%  { clip-path: inset(10% 0 75% 0); transform: translateX(-4px); }
  81%  { clip-path: inset(50% 0 35% 0); transform: translateX(4px);  }
  82%  { clip-path: inset(0 0 100% 0);  transform: translateX(0);    }
}

.op-kana {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin: 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden; /* iOS Safari: html+bodyの両方に設定することでfixed要素の基点をviewportに固定 */
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  counter-reset: sec;
}

/* =============================================
   TERMINAL CROSSHAIR CURSOR
   ============================================= */
@media (pointer: fine) {
  * { cursor: none !important; }
  /* iframe/動画にフォーカスが移った時など、カスタムカーソルを追従できない場面では
     標準カーソルを復帰させ「カーソルが完全に消える」状態を防ぐ */
  html.native-cursor, html.native-cursor * { cursor: auto !important; }
}

#cursor-crosshair {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.2s;
}
#cursor-crosshair.ch-visible { opacity: 1; }

/* 4アームの共通スタイル */
#cursor-crosshair span {
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 204, 68, 0.6);
  transition: width 0.15s, height 0.15s;
}

/* 上下アーム */
.ch-top, .ch-bottom {
  width: 1px;
  height: 9px;
  left: 0;
  transform: translateX(-50%);
}
.ch-top    { bottom: 5px; }
.ch-bottom { top: 5px; }

/* 左右アーム */
.ch-left, .ch-right {
  height: 1px;
  width: 9px;
  top: 0;
  transform: translateY(-50%);
}
.ch-left  { right: 5px; }
.ch-right { left: 5px; }

/* 中心ドット — ホバー時のみ表示 */
.ch-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: 0 0 6px rgba(0, 204, 68, 0.9) !important;
}
#cursor-crosshair.ch-hover .ch-dot { opacity: 1; }

/* ホバー時にアームを少し伸ばす */
#cursor-crosshair.ch-hover .ch-top,
#cursor-crosshair.ch-hover .ch-bottom { height: 13px; }
#cursor-crosshair.ch-hover .ch-left,
#cursor-crosshair.ch-hover .ch-right  { width: 13px; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font-family: inherit; cursor: pointer; }

/* キーボード操作用のフォーカスリング（cursor:noneでも操作箇所が分かるように） */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.artist-link:focus-visible {
  outline-offset: -2px;
  box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(var(--accent-rgb), 0.4);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  /* 画面幅で滑らかにスケール（20px〜48px） */
  padding: 0 clamp(20px, 5vw, 48px);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header.scrolled {
  background: rgba(4, 7, 14, 0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header .container {
  max-width: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--text);
  transition: opacity 0.3s;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo:hover { opacity: 0.55; }

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--text);
}

/* Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(0,204,68,0.25);
  padding: 5px 11px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  transition: border-color 0.3s;
}
.lang-toggle:hover { border-color: rgba(0,204,68,0.6); }
.lang-toggle [data-lang] {
  color: var(--text-sub);
  transition: color 0.3s;
}
.lang-toggle [data-lang].is-active { color: var(--accent); }
.lang-toggle .lang-sep { color: var(--text-sub); opacity: 0.5; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh; /* iOS: アドレスバー収縮に追従 */
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Three.js canvas — ビューポート固定の背景レイヤー（Artistsセクションまで背後に表示） */
.hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: block;
  pointer-events: none;
  z-index: -1;
}

/* Dotted grid background */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 65% 45%, rgba(0,204,68,0.04) 0%, transparent 55%),
    radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 100% 100%, 36px 36px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(120px, 11vw, 228px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  animation: heroIn 1s 0.2s var(--ease) both;
}

.hero-sub {
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  animation: heroIn 1s 0.4s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tagline */
.hero-tagline {
  position: absolute;
  bottom: 120px;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.hero-tagline.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  text-align: right;
}

.hero-tagline-l1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 4.5vw, 108px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: rgba(219, 231, 244, 0.7);
}

.hero-tagline-l2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 5.2vw, 126px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: rgba(219, 231, 244, 0.7);
}

/* Ticker */
.hero-ticker {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  z-index: 1;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 32s linear infinite;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.hero-scroll span {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  position: relative;
  overflow: hidden;
  background: var(--text-muted);
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* =============================================
   SECTION BASE
   ============================================= */
.section {
  padding: clamp(64px, 10vw, 128px) 0;
  counter-increment: sec;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(0,204,68,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,204,68,0.016) 1px, transparent 1px);
  background-size: 64px 64px;
}
.section > .container { position: relative; z-index: 1; }

/* News→Release→Contact を「1画面ずつの章」に（吸着はJSの磁石スナップで実施） */
@media (min-width: 760px) and (prefers-reduced-motion: no-preference) {
  #news, #release, #contact {
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* 章がアクティブになった時に中身をスタッガー登場（snapで入るたび再生）
     ※デフォルトでは隠さない＝classが付かなくても内容は見えたまま(フェイルセーフ) */
  #news.chapter-active .news-item { animation: chapItemL 0.6s var(--ease) both; }
  #release.chapter-active .release-item { animation: chapItemR 0.6s var(--ease) both; }

  #news.chapter-active .news-item:nth-child(2),
  #release.chapter-active .release-item:nth-child(2) { animation-delay: 0.07s; }
  #news.chapter-active .news-item:nth-child(3),
  #release.chapter-active .release-item:nth-child(3) { animation-delay: 0.14s; }
  #news.chapter-active .news-item:nth-child(4),
  #release.chapter-active .release-item:nth-child(4) { animation-delay: 0.21s; }
  #news.chapter-active .news-item:nth-child(5),
  #release.chapter-active .release-item:nth-child(5) { animation-delay: 0.28s; }
  #news.chapter-active .news-item:nth-child(n+6),
  #release.chapter-active .release-item:nth-child(n+6) { animation-delay: 0.35s; }
}

@keyframes chapItemL {
  from { opacity: 0; transform: translateX(-46px); }
  to   { opacity: 1; transform: none; }
}
@keyframes chapItemR {
  from { opacity: 0; transform: translateX(46px); }
  to   { opacity: 1; transform: none; }
}

/* セクション見出しの縦アクセントライン（シンプルなサイバー意匠） */
.section-header {
  position: relative;
  padding-left: 22px;
}
.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 52px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.section-header::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 204, 68, 0.8);
}

.section--alt {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(rgba(0,204,68,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,204,68,0.014) 1px, transparent 1px);
  background-size: 64px 64px;
  /* 層の境界に上端ハイライト＋落ち影で奥行きを出す */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    inset 0 14px 30px -20px rgba(0,0,0,0.6);
}

.section-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 64px;
}

.section-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.3em;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-ja {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.12em;
  align-self: center;
}

.section-link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-sub);
  border: 1px solid var(--border-mid);
  padding: 8px 14px;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
  align-self: center;
}
.section-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  box-shadow: var(--accent-glow);
}

/* =============================================
   CARD OVERLAY (shared)
   ============================================= */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card-overlay span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 9px 18px;
  box-shadow: var(--accent-glow);
}

/* ワイヤーフレームコーナー */
.artist-img-wrap::before,
.artist-img-wrap::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.artist-img-wrap::before {
  top: 8px; left: 8px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}
.artist-img-wrap::after {
  bottom: 8px; right: 8px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.artist-link:hover .artist-img-wrap::before,
.artist-link:hover .artist-img-wrap::after {
  opacity: 1;
}

/* =============================================
   ARTISTS — ID Card
   ============================================= */
.artist-link {
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* JSがカーソル位置に応じて --rx / --ry / --lift を更新して3D傾斜させる。
   傾斜は内側リンク、影は親カード（overflow:hiddenで影がクリップされないように） */
.artist-card.tilt .artist-link {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--lift, 0px));
}
.artist-card.tilt {
  box-shadow: 0 34px 60px -22px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0,204,68,0.25);
  z-index: 5;
}

.artist-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-card);
}

.artist-link:hover .card-overlay { opacity: 1; }

.artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  perspective: 1200px;
}

/* Card shell */
.artist-card {
  background: linear-gradient(158deg, #0c1728 0%, #060b16 72%);
  border: 1px solid rgba(0,204,68,0.10);
  border-top-color: rgba(0,204,68,0.20);
  box-shadow:
    0 18px 40px -20px rgba(0,0,0,0.75),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.artist-card:hover {
  border-top-color: rgba(0,204,68,0.4);
  box-shadow:
    0 26px 55px -22px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Scan line on hover */
.artist-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}
.artist-card:hover::after { animation: idScan 0.65s ease-out forwards; }
@keyframes idScan {
  0%   { top: 0;    opacity: 0.85; }
  100% { top: 100%; opacity: 0;    }
}

/* Header bar */
.card-id-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: rgba(0, 204, 68, 0.03);
  border-bottom: 1px solid rgba(0, 204, 68, 0.1);
}
.card-issuer {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  opacity: 0.7;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
}
.card-agent {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--bg);
  background: var(--accent);
  padding: 1px 7px;
}

/* Image */
.artist-img {
  filter: contrast(1.08) saturate(0.68) brightness(0.92);
  transition: filter 0.45s ease;
}
.artist-card:hover .artist-img { filter: contrast(1) saturate(1) brightness(1); }

/* Info block */
.artist-info {
  padding: 14px 10px 10px;
  border-top: 1px solid rgba(0,204,68,0.08);
  text-align: center;
}
.artist-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.card-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.65;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Data fields */
.card-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.card-field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-field-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.12em;
  min-width: 40px;
  flex-shrink: 0;
}
.card-field-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(219,231,244,0.72);
  letter-spacing: 0.05em;
}

/* Barcode strip */
.card-barcode {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    rgba(219,231,244,0.45) 0,    rgba(219,231,244,0.45) 2px,
    transparent               2px, transparent               4px,
    rgba(219,231,244,0.45) 4px,  rgba(219,231,244,0.45) 5px,
    transparent               5px, transparent               9px,
    rgba(219,231,244,0.45) 9px,  rgba(219,231,244,0.45) 11px,
    transparent               11px,transparent               14px,
    rgba(219,231,244,0.45) 14px, rgba(219,231,244,0.45) 15px,
    transparent               15px,transparent               19px,
    rgba(219,231,244,0.45) 19px, rgba(219,231,244,0.45) 22px,
    transparent               22px,transparent               26px
  );
  opacity: 0.17;
  margin: 4px -10px 0;
}

/* =============================================
   NEWS
   ============================================= */
.news-list {
  border-top: 1px solid var(--border);
}

.news-item {
  border-bottom: 1px solid var(--border);
}

.news-link {
  display: grid;
  grid-template-columns: 110px 76px 1fr 24px;
  align-items: center;
  gap: 0 20px;
  padding: 26px 0;
  transition: padding 0.25s var(--ease);
}

.news-link:hover {
  padding-left: 10px;
  padding-right: 10px;
}

.news-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.news-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
  text-align: center;
}

.tag--release { color: var(--accent);   border-color: var(--accent-dim);          background: rgba(0,204,68,0.05); }
.tag--live    { color: #ff6eb4;         border-color: rgba(255,110,180,0.35);      background: rgba(255,110,180,0.05); }
.tag--info    { color: var(--text-sub); border-color: var(--border-mid);           background: rgba(255,255,255,0.02); }

.news-title {
  font-size: 17px;
  line-height: 1.5;
}

.news-arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.25s var(--ease), color 0.25s;
  text-align: right;
}

.news-link:hover .news-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* =============================================
   RELEASE
   ============================================= */
.release-list {
  border-top: 1px solid var(--border);
  list-style: none;
}

.release-item {
  border-bottom: 1px solid var(--border);
}

.release-link {
  display: grid;
  grid-template-columns: 110px 100px 1fr 24px;
  align-items: center;
  gap: 0 20px;
  padding: 26px 0;
  transition: padding 0.25s var(--ease);
}

.release-link:hover {
  padding-left: 10px;
  padding-right: 10px;
}

.release-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

.release-artist {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.release-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.release-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.release-arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 14px;
  transition: transform 0.25s var(--ease), color 0.25s;
  text-align: right;
}

.release-link:hover .release-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 100px;
  align-items: start;
}

.contact-desc {
  font-size: 17px;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  min-width: 48px;
  padding-top: 3px;
}

.detail-value {
  font-size: 17px;
  transition: color 0.25s;
}
.detail-value:hover { color: var(--accent); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sns-link {
  font-size: 16px;
  color: var(--text-sub);
  transition: color 0.25s;
}
.sns-link:hover { color: var(--accent); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.req { color: var(--accent); margin-left: 2px; }

.form-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Space Grotesk', sans-serif;
  font-size: 17px;
  padding: 14px 16px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--accent-dim);
  background: rgba(0, 204, 68, 0.03);
  box-shadow: 0 0 0 1px rgba(0, 204, 68, 0.12), var(--accent-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.form-radio-label:hover {
  border-color: var(--accent-dim);
  background: rgba(0,204,68,0.04);
}

.form-radio-label input[type="radio"] {
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.form-radio-label input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,204,68,0.15);
}

.form-radio-label:has(input:checked) {
  border-color: var(--accent-dim);
  background: rgba(0,204,68,0.05);
}

.form-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Noto Sans JP', 'Space Grotesk', sans-serif;
  font-size: 17px;
  padding: 14px 16px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--accent-dim);
  background-color: rgba(0,204,68,0.03);
  box-shadow: 0 0 0 1px rgba(0,204,68,0.12), var(--accent-glow);
}

.form-select option {
  background: #0a0f1a;
  color: var(--text);
}

.form-group--hidden {
  display: none;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 1px solid var(--accent-dim);
  padding: 17px 40px;
  align-self: flex-start;
  position: relative;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,0.7);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(0,0,0,0.8), var(--accent-glow);
}

.btn-submit:hover {
  background: var(--accent);
  color: #060606;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
}

.btn-submit.sent {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-dim);
  pointer-events: none;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--accent-dim);
  background-image:
    linear-gradient(rgba(0,204,68,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,204,68,0.014) 1px, transparent 1px);
  background-size: 64px 64px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--text); }

.footer-social {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-sns {
  color: var(--text-sub);
  transition: color 0.25s, transform 0.25s;
}
.footer-sns:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer-nav a {
  font-family: var(--font-mono);
}

/* =============================================
   REVEAL ANIMATION
   ============================================= */
.reveal {
  opacity: 0;
  transform: perspective(1100px) translateY(40px) translateZ(-90px) rotateX(9deg) scale(0.99);
  transform-origin: 50% 100%;
  filter: blur(5px);
  transition: opacity 0.7s var(--ease),
              transform 0.9s var(--ease),
              filter 0.7s var(--ease);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: perspective(1100px) translateY(0) translateZ(0) rotateX(0deg) scale(1);
  filter: blur(0);
}

/* 方向つきreveal（3Dドアスイング） */
.reveal--left  { transform: perspective(1100px) translateX(-46px) rotateY(14deg)  scale(0.99); transform-origin: left center; }
.reveal--right { transform: perspective(1100px) translateX(46px)  rotateY(-14deg) scale(0.99); transform-origin: right center; }
.reveal--left.visible,
.reveal--right.visible { transform: perspective(1100px) translateX(0) rotateY(0) scale(1); }

/* スクロール進捗バー */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(0,204,68,0.4), var(--accent));
  box-shadow: 0 0 10px rgba(0,204,68,0.6);
  z-index: 100000;
  pointer-events: none;
}

/* KV背景のフェード/ぼかし（JSがopacity/filterを直接更新） */
.hero-canvas { will-change: opacity, filter; }

/* セクション見出しのグリッチ・イン */
.reveal.visible .section-title {
  animation: titleGlitch 0.55s var(--ease) both;
}
@keyframes titleGlitch {
  0%   { opacity: 0; transform: translateX(-8px) skewX(7deg);
         text-shadow: 4px 0 rgba(0,204,68,0.9), -4px 0 rgba(0,255,200,0.7); }
  25%  { opacity: 1; transform: translateX(5px) skewX(-5deg);
         text-shadow: -4px 0 rgba(0,204,68,0.9), 4px 0 rgba(0,255,200,0.7); }
  45%  { transform: translateX(-2px);
         text-shadow: 2px 0 rgba(0,204,68,0.8), -2px 0 rgba(0,255,200,0.5); }
  70%  { transform: none; text-shadow: none; }
  100% { transform: none; text-shadow: none; }
}

/* カード出現時にスキャンラインを一閃 */
.artist-card.reveal.visible::after {
  animation: idScan 0.7s ease-out 0.15s forwards;
}

/* モーション控えめ設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  .reveal { filter: none; transform: none; transition: opacity 0.4s ease; }
  .reveal--left, .reveal--right { transform: none; }
  .reveal.visible .section-title { animation: none; }
  .artist-card.reveal.visible::after { animation: none; }
  #scroll-progress { display: none; }
  .hero-canvas { opacity: 1 !important; transform: none !important; }
}

/* Stagger children in grids */
.artists-grid .artist-card:nth-child(1) { transition-delay: 0s; }
.artists-grid .artist-card:nth-child(2) { transition-delay: 0.07s; }
.artists-grid .artist-card:nth-child(3) { transition-delay: 0.14s; }
.artists-grid .artist-card:nth-child(4) { transition-delay: 0.21s; }
.artists-grid .artist-card:nth-child(5) { transition-delay: 0.28s; }

.release-list .release-item:nth-child(1) { transition-delay: 0s; }
.release-list .release-item:nth-child(2) { transition-delay: 0.06s; }
.release-list .release-item:nth-child(3) { transition-delay: 0.12s; }
.release-list .release-item:nth-child(4) { transition-delay: 0.18s; }
.release-list .release-item:nth-child(5) { transition-delay: 0.24s; }

.news-list .news-item:nth-child(1) { transition-delay: 0s; }
.news-list .news-item:nth-child(2) { transition-delay: 0.06s; }
.news-list .news-item:nth-child(3) { transition-delay: 0.12s; }
.news-list .news-item:nth-child(4) { transition-delay: 0.18s; }
.news-list .news-item:nth-child(5) { transition-delay: 0.24s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .artists-grid  { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 900px) {
  /* Mobile nav — top:0 から始めて translateY(-100%) で完全退避 */
  .nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: var(--header-h) 24px 32px;
    background: rgba(4, 7, 14, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    z-index: 199;
  }
  .nav.open {
    transform: translateY(0);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav-link {
    display: block;
    font-size: 17px;
    letter-spacing: 0.12em;
    padding: 18px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-list li:last-child .nav-link { border-bottom: none; }

  .hamburger {
    display: flex;
    padding: 10px 8px;
    margin-right: -8px;
  }
  .lang-toggle { margin-left: auto; margin-right: 14px; }
}

@media (max-width: 768px) {
  .artists-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .release-link { grid-template-columns: 90px 90px 1fr 20px; gap: 0 12px; }

  .section-header { margin-bottom: 48px; }
  .section-title  { font-size: 28px; }

  .hero-title { line-height: 0.86; }

  /* Hero tagline: scale down for narrower screens */
  .hero-tagline   { bottom: 88px; }
  .hero-tagline-l1 { font-size: clamp(30px, 5vw, 54px); }
  .hero-tagline-l2 { font-size: clamp(33px, 5.8vw, 63px); }

  .news-link {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding: 20px 0;
  }
  .news-date  { grid-column: 1; grid-row: 1; }
  .news-tag   { grid-column: 2; grid-row: 1; }
  .news-title { grid-column: 1 / 3; grid-row: 2; }
  .news-arrow { display: none; }

  .form-row   { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; justify-content: center; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 20px; }

  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .artists-grid { grid-template-columns: 1fr; gap: 16px; }
  .release-link { grid-template-columns: 80px 1fr 20px; }
  .release-artist { display: none; }
  .hero-ticker  { bottom: 0; }

  /* Section header: stack vertically so VIEW ALL doesn't get squeezed */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 36px;
  }
  .section-title { font-size: 24px; }
  .section-link  { margin-left: 0; margin-top: 4px; }
  .section-ja    { align-self: flex-start; }

  /* Hero tagline: clear of ticker (ticker is at bottom:0 on this breakpoint) */
  .hero-tagline { bottom: 52px; }

  /* ヘッダーロゴ: 小画面で縮小してオーバーフロー防止 */
  .logo-img  { height: 26px; }
  .logo-name { font-size: 17px; letter-spacing: 0.12em; }

  /* Artist cards: 1カラムなので余白と文字サイズをゆったりに */
  .artist-info { padding: 12px 12px 8px; }
  .artist-name { font-size: 19px; }

  /* News */
  .news-title  { font-size: 16px; }
  .news-link   { padding: 16px 0; }

  /* Footer */
  .footer-nav { gap: 12px; }
  .footer-nav a { font-size: 12px; }
  .footer-copy { font-size: 13px; }
}

/* =============================================
   ARTIST MODAL
   ============================================= */

/* Full-screen overlay — scrollable */
/* ── Video background layer (behind all modals) ── */
.artist-video-bg {
  position: fixed;
  inset: 0;
  z-index: 399;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.artist-video-bg.visible { opacity: 1; }

/* iframe: vw/vh cover technique (object-fit doesn't apply to iframes) */
.artist-video-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;      /* 16:9 */
  min-height: 100vh;
  min-height: 100dvh;   /* dynamic: accounts for collapsible browser bar */
  min-width: 177.78vh;
  min-width: 177.78dvh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

/* video: same centering technique as iframe */
.artist-video-bg video {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 177.78vh;
  min-width: 177.78dvh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: none;
  pointer-events: none;
}

.artist-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.5);
}

/* 動画ロード中のターミナル風ローダー */
.artist-video-loader {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.artist-video-bg.loading .artist-video-loader { opacity: 1; }

.avl-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  animation: avlBlink 1.1s steps(1) infinite;
}
.avl-label::after {
  content: '';
  animation: avlDots 1.4s steps(1) infinite;
}
@keyframes avlDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}
@keyframes avlBlink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.55; }
}

.avl-bar {
  display: block;
  width: 180px;
  max-width: 40vw;
  height: 2px;
  background: rgba(0, 204, 68, 0.15);
  overflow: hidden;
}
.avl-bar > span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: avlScan 1.2s ease-in-out infinite;
}
@keyframes avlScan {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .avl-label, .avl-label::after, .avl-bar > span { animation: none; }
}


/* Modal variant that lets the video show through */
.artist-modal--video.open {
  background: rgba(4, 7, 14, 0.12) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.artist-modal--video .amodal-bar {
  background: transparent;
}

/* Text readability over video — outline effect */
.artist-modal--video .amodal-name,
.artist-modal--video .amodal-bio,
.artist-modal--video .amodal-eyebrow,
.artist-modal--video .amodal-chars-title,
.artist-modal--video .char-name,
.artist-modal--video .amodal-works-label {
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.9),
     1px -1px 0 rgba(0,0,0,0.9),
    -1px  1px 0 rgba(0,0,0,0.9),
     1px  1px 0 rgba(0,0,0,0.9),
     0 0 24px rgba(0,0,0,1),
     0 0 48px rgba(0,0,0,0.8);
}

.artist-modal--video .amodal-sns-link {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.artist-modal--video .amodal-sns-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(0,0,0,0.7);
}

.artist-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  visibility: hidden;
  background: transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              visibility 0s 0.4s;
}

.artist-modal.open {
  visibility: visible;
  background: rgba(4, 7, 14, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

/* Inner content panel */
.amodal-panel {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) clamp(56px, 10vw, 100px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s 0.12s var(--ease), transform 0.45s 0.12s var(--ease);
}

.artist-modal.open .amodal-panel {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky close bar */
.amodal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 28px 0 20px;
  /* subtle fade at top for scroll bleed */
  background: transparent;
}

/* Close button */
.amodal-close {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-mid);
  border-radius: 50%;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.amodal-close:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.amodal-close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 15px; height: 1px;
  background: var(--text);
}

.amodal-close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.amodal-close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }

/* ---- Profile section ---- */
.amodal-profile {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 96px;
}

.amodal-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-card);
}

.amodal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.amodal-info {
  padding-top: 8px;
}

.amodal-eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.amodal-agent-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 8px;
  margin-bottom: 14px;
}

.amodal-name {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: clamp(48px, 4vw, 78px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.amodal-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 28px;
}

.amodal-bio {
  font-size: 18px;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 40px;
  max-width: 520px;
}

.amodal-sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.amodal-sns-link {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--text-sub);
  border: 1px solid var(--border-mid);
  padding: 8px 18px;
  transition: color 0.25s, border-color 0.25s;
}

.amodal-sns-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
}

/* ---- Characters section (IP creators only) ---- */
.amodal-chars {
  border-top: 1px solid var(--border);
  padding-top: 80px;
}

.amodal-chars-hd {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
}

.amodal-chars-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.amodal-chars-ja {
  font-size: 16px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
}

/* Character list — alternating left/right layout */
.char-grid {
  display: flex;
  flex-direction: column;
}

/* シンプル版（ロゴなし・センタリング） */
.char-grid--simple .char-card {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}
.char-grid--simple .char-card:nth-child(even) .char-media-col,
.char-grid--simple .char-card:nth-child(even) .char-logo-col { order: unset; }
.char-grid--simple .char-img-wrap { width: min(440px, 88%); }

.char-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.char-card:first-child {
  border-top: 1px solid var(--border);
}

/* Even cards: swap columns */
.char-card:nth-child(even) .char-media-col { order: 2; }
.char-card:nth-child(even) .char-logo-col  { order: 1; text-align: right; align-items: flex-end; }

.char-media-col {
  display: flex;
  justify-content: center;
}

.char-img-wrap {
  width: min(320px, 100%);
  overflow: hidden;
  background: transparent;
}

.char-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.char-card:hover .char-img-wrap img { transform: scale(1.03); }

.char-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.char-logo-img {
  width: min(520px, 90%);
  height: auto;
  object-fit: contain;
}

.char-logo-img--sm {
  width: min(260px, 90%);
}

.char-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.char-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Character placeholder (画像未定) */
.char-img-wrap--placeholder {
  width: min(440px, 88%);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed var(--border-mid);
  background: var(--bg-card);
  margin-bottom: 20px;
  color: var(--text-muted);
}
.char-img-wrap--placeholder::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  opacity: 0.5;
}
.char-img-wrap--placeholder::after {
  content: '画像準備中';
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.5;
}

/* ---- News modal ---- */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(4,7,14,0.88);
  backdrop-filter: blur(6px);
  overflow-y: scroll;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.news-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.nmodal-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px) clamp(56px, 10vw, 100px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.4s 0.1s var(--ease), transform 0.4s 0.1s var(--ease);
}

.news-modal.open .nmodal-panel {
  opacity: 1;
  transform: none;
}

.nmodal-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 24px 0 20px;
  background: transparent;
}

.nmodal-close {
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nmodal-close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 1px;
  background: var(--text);
  display: block;
}

.nmodal-close span:first-child { transform: translate(-50%,-50%) rotate(45deg); }
.nmodal-close span:last-child  { transform: translate(-50%,-50%) rotate(-45deg); }

.nmodal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.nmodal-date {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
}

.nmodal-title {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.nmodal-body {
  font-size: 18px;
  line-height: 2;
  color: var(--text-sub);
}
.nmodal-body p { margin-bottom: 1.4em; }
.nmodal-body p:last-child { margin-bottom: 0; }

/* YouTube embed in release modal */
.rmodal-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 36px;
  background: #000;
}
.rmodal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Artist works (releases + news inside modal) ---- */
.amodal-works {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  margin-top: 64px;
}

.amodal-works-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 28px;
}

.works-release-list {
  list-style: none;
  margin-bottom: 40px;
}

.works-release-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.works-release-item:first-child { border-top: 1px solid var(--border); }
.works-release-item:hover { color: var(--accent); }

.works-release-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 2px 8px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.works-release-title-text { flex: 1; }

.works-release-arrow {
  color: var(--text-muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.works-release-item:hover .works-release-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.works-news-list {
  list-style: none;
}

.works-news-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.works-news-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.works-news-title { flex: 1; }

/* Responsive */
@media (max-width: 1024px) {
  .amodal-profile { grid-template-columns: 320px 1fr; gap: 48px; }
}

/* モバイルのビデオオーバーレイを少し濃くして視認性を上げる */
@media (max-width: 900px) {
  .artist-video-overlay { background: rgba(4, 7, 14, 0.65); }
  .amodal-profile { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .amodal-img     { max-width: 360px; }
}

@media (max-width: 768px) {
  .amodal-profile { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .amodal-img     { max-width: 320px; }
  .amodal-name    { font-size: 28px; }
  .char-card { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .char-media-col { order: 1; justify-content: center; }
  .char-logo-col  { order: 0; align-items: center; text-align: center; }
  .char-card:nth-child(even) .char-media-col { order: 1; }
  .char-card:nth-child(even) .char-logo-col  { order: 0; align-items: center; text-align: center; }
  .char-img-wrap  { width: min(380px, 92%); }
  .char-logo-img  { width: min(380px, 92%); }
  .amodal-chars   { padding-top: 56px; }
  .amodal-bar     { padding: 20px 0 16px; }
  .amodal-bio     { font-size: 16px; margin-bottom: 28px; }
}

@media (max-width: 480px) {
  .char-img-wrap   { width: 90%; }
  .char-logo-img   { width: 90%; }
  .amodal-name     { font-size: 22px; }
  .amodal-bio      { font-size: 16px; line-height: 1.85; }
  .amodal-sns      { gap: 8px; }
  .amodal-sns-link { font-size: 12px; padding: 6px 12px; }
  .amodal-chars    { padding-top: 40px; }
  .amodal-chars-hd { margin-bottom: 32px; }
  .amodal-chars-title { font-size: 22px; }
}
