/* ============================================
   絡繰～KARAKURI～ Official Website
   和モダン × インダストリアル × メカニカルギミック
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #e8e4de;
  --text-secondary: #8a8580;
  --text-muted: #5a5550;
  --accent-primary: #c4342d;
  --accent-secondary: #8b1a1a;
  --accent-gold: #b89b5e;
  --accent-gold-dim: #7a6840;
  --gear-color: rgba(180, 155, 94, 0.06);
  --gear-color-light: rgba(180, 155, 94, 0.12);
  --border-color: rgba(180, 155, 94, 0.15);
  --font-jp: 'Noto Serif JP', serif;
  --font-en: 'Orbitron', sans-serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;
  --section-padding: clamp(80px, 12vh, 160px);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold-dim) var(--bg-primary);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--bg-primary); }
html::-webkit-scrollbar-thumb { background: var(--accent-gold-dim); border-radius: 3px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

::selection {
  background: var(--accent-primary);
  color: var(--text-primary);
}

/* --- BGM Reactive System --- */
body {
  --audio-brightness: 0;
  --audio-bass: 0;
  --audio-peak: 0;
}

/* 1. 背景の呼吸 — BGM音量に連動して背景が明滅 */
.audio-breathing-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center,
    rgba(196, 52, 45, var(--audio-brightness)) 0%,
    transparent 70%);
  transition: opacity 0.15s ease;
}

/* 2. 赤のフラッシュ — ヒーロー上部のみに限定 */
.audio-flash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at 50% 20%,
    rgba(196, 52, 45, 0.25) 0%,
    transparent 55%);
  opacity: 0;
  transition: opacity 0.08s ease-out;
}

.audio-flash-overlay.flash {
  opacity: 0.8;
  transition: opacity 0.03s ease;
}

/* 3. グリッチ連動 — ピーク時にセクションタイトルが震える */
.audio-glitch-active .section-title-glitch {
  animation: audioGlitchShake 0.1s linear infinite !important;
}

.audio-glitch-active .section-title-glitch::before {
  animation: audioGlitchLayer1 0.1s linear infinite !important;
  opacity: 0.8 !important;
}

.audio-glitch-active .section-title-glitch::after {
  animation: audioGlitchLayer2 0.1s linear infinite !important;
  opacity: 0.7 !important;
}

@keyframes audioGlitchShake {
  0% { transform: translate(0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
  100% { transform: translate(1px, 1px); }
}

@keyframes audioGlitchLayer1 {
  0% { clip-path: inset(0 0 80% 0); transform: translateX(-6px) skewX(-4deg); opacity: 0.8; }
  50% { clip-path: inset(40% 0 30% 0); transform: translateX(4px) skewX(2deg); opacity: 0.6; }
  100% { clip-path: inset(70% 0 0 0); transform: translateX(-3px) skewX(-1deg); opacity: 0.9; }
}

@keyframes audioGlitchLayer2 {
  0% { clip-path: inset(60% 0 10% 0); transform: translateX(5px) skewX(3deg); opacity: 0.7; }
  50% { clip-path: inset(10% 0 60% 0); transform: translateX(-4px) skewX(-3deg); opacity: 0.5; }
  100% { clip-path: inset(30% 0 40% 0); transform: translateX(3px) skewX(1deg); opacity: 0.8; }
}

/* ヒーログリッチラインもピーク時に発火 */
.audio-glitch-active .hero-glitch-line {
  opacity: 0.8 !important;
  animation: none !important;
}

/* 4. 歯車パルス — 低音ビートに応じて拡大縮小 */
.bg-gear {
  transition: transform 0.1s ease;
}

/* スキャンライン — 常時CRT風 */
.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9991;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.5;
}

/* --- Loader --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-gears {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 30px;
}

.loader-gear {
  width: 80px;
  height: 80px;
  color: var(--accent-gold);
}

.loader-gear--left {
  animation: gearSpinCW 2s linear infinite;
  margin-right: -8px;
}

.loader-gear--right {
  animation: gearSpinCCW 2s linear infinite;
  margin-left: -8px;
}

@keyframes gearSpinCW { to { transform: rotate(360deg); } }
@keyframes gearSpinCCW { to { transform: rotate(-360deg); } }

.loader-text {
  font-family: var(--font-jp);
  color: var(--text-secondary);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--bg-tertiary);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
  animation: loaderFill 2s ease-in-out forwards;
}

@keyframes loaderFill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* --- Background Gears --- */
#bg-gears {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-gear {
  position: absolute;
  color: var(--accent-gold);
  opacity: 0.04;
  animation: bgGearSpin 60s linear infinite;
}

.bg-gear--3 { width: 160px; bottom: 12%; right: 4%; animation-duration: 45s; }
.bg-gear--5 { width: 180px; bottom: -30px; left: 18%; animation-duration: 70s; }

@keyframes bgGearSpin { to { transform: rotate(360deg); } }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border-color);
}

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-logo-kanji {
  font-family: var(--font-jp);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
}

.nav-logo-en {
  font-family: var(--font-en);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.3em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px;
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a span {
  font-family: var(--font-en);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color 0.3s ease;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a:hover span,
.nav-links a.active span {
  color: var(--accent-gold-dim);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
  left: 20%;
}

/* ナビ グリッチエフェクト */
.nav-glitch {
  position: relative;
  display: inline-block;
}

.nav-glitch::before,
.nav-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.nav-glitch::before {
  color: var(--accent-primary);
  animation: navGlitch1 7s infinite;
  clip-path: inset(0 0 50% 0);
}

.nav-glitch::after {
  color: var(--accent-gold);
  animation: navGlitch2 7s infinite;
  clip-path: inset(50% 0 0 0);
}

@keyframes navGlitch1 {
  0%, 90%, 100% { opacity: 0; transform: none; }
  91% { opacity: 0.9; transform: translateX(-4px) skewX(-3deg); }
  92% { opacity: 0; }
  93% { opacity: 0.6; transform: translateX(3px); }
  94% { opacity: 0; }
}

@keyframes navGlitch2 {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: 0.8; transform: translateX(4px) skewX(2deg); }
  94% { opacity: 0; }
  95% { opacity: 0.5; transform: translateX(-2px); }
  96% { opacity: 0; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(196, 52, 45, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(184, 155, 94, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.4) 100%);
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-kanji-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

/* --- Hero Logo Image --- */
.hero-logo {
  position: relative;
  display: inline-block;
  width: clamp(360px, 55vw, 750px);
  opacity: 0;
  animation: heroLogoReveal 1.2s ease 0.3s forwards;
}

.hero-logo-img {
  width: 100%;
  height: auto;
  filter: url(#logo-filter);
  mix-blend-mode: screen;
  position: relative;
  z-index: 1;
}

/* グリッチ用の重ね画像 */
.hero-logo-glitch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  filter: url(#logo-filter);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.hero-logo-glitch--red {
  animation: logoGlitch1 4s infinite;
  clip-path: inset(0 0 60% 0);
}

.hero-logo-glitch--gold {
  animation: logoGlitch2 4s infinite;
  clip-path: inset(55% 0 0 0);
}

@keyframes heroLogoReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: brightness(0);
  }
  50% {
    filter: brightness(1.5) drop-shadow(0 0 40px rgba(196, 52, 45, 0.6));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: brightness(1) drop-shadow(0 0 15px rgba(196, 52, 45, 0.15));
  }
}

@keyframes logoGlitch1 {
  0%, 92%, 100% { opacity: 0; transform: none; }
  93% { opacity: 0.7;
    transform: translateX(-6px) skewX(-3deg);
    filter: url(#logo-filter) brightness(2) hue-rotate(-20deg);
  }
  94% { opacity: 0; }
  95% { opacity: 0.5;
    transform: translateX(4px) skewX(2deg);
    filter: url(#logo-filter) brightness(1.5);
  }
  96% { opacity: 0; }
}

@keyframes logoGlitch2 {
  0%, 94%, 100% { opacity: 0; transform: none; }
  95% { opacity: 0.6;
    transform: translateX(5px) skewX(3deg);
    filter: url(#logo-filter) brightness(2) hue-rotate(20deg);
  }
  96% { opacity: 0; }
  97% { opacity: 0.4;
    transform: translateX(-3px) skewX(-2deg);
    filter: url(#logo-filter) brightness(1.5);
  }
  98% { opacity: 0; }
}

/* BGM連動グリッチ時のロゴ */
.audio-glitch-active .hero-logo-glitch--red {
  animation: audioLogoGlitch1 0.1s linear infinite !important;
  opacity: 0.8 !important;
}

.audio-glitch-active .hero-logo-glitch--gold {
  animation: audioLogoGlitch2 0.1s linear infinite !important;
  opacity: 0.7 !important;
}

@keyframes audioLogoGlitch1 {
  0% { clip-path: inset(0 0 80% 0); transform: translateX(-8px) skewX(-5deg); opacity: 0.8; }
  50% { clip-path: inset(30% 0 40% 0); transform: translateX(5px) skewX(3deg); opacity: 0.6; }
  100% { clip-path: inset(60% 0 10% 0); transform: translateX(-4px) skewX(-2deg); opacity: 0.9; }
}

@keyframes audioLogoGlitch2 {
  0% { clip-path: inset(50% 0 20% 0); transform: translateX(6px) skewX(4deg); opacity: 0.7; }
  50% { clip-path: inset(10% 0 70% 0); transform: translateX(-5px) skewX(-3deg); opacity: 0.5; }
  100% { clip-path: inset(40% 0 30% 0); transform: translateX(3px) skewX(2deg); opacity: 0.8; }
}

.hero-glitch-line {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 2px;
  background: var(--accent-primary);
  opacity: 0;
  animation: glitchLine 5s infinite;
}

@keyframes glitchLine {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: 0.6; top: 30%; }
  92% { opacity: 0; }
  93% { opacity: 0.4; top: 60%; }
  94% { opacity: 0; }
}

.hero-subtitle {
  font-family: var(--font-en);
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  color: var(--accent-gold);
  letter-spacing: 0.5em;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-tagline {
  font-family: var(--font-jp);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  min-height: 2em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.typewriter-cursor {
  animation: blink 0.8s infinite;
  color: var(--accent-primary);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-genre {
  font-family: var(--font-en);
  font-size: clamp(0.55rem, 1vw, 0.7rem);
  color: var(--text-muted);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  display: inline-block;
  padding: 8px 24px;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}

.hero-scroll-indicator {
  position: relative;
  z-index: 2;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.hero-scroll-gear {
  color: var(--accent-gold-dim);
}

.scroll-gear-svg {
  width: 30px;
  height: 30px;
  animation: gearSpinCW 4s linear infinite;
}

.hero-scroll-text {
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-gold-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Common --- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-gear-deco {
  margin-bottom: 15px;
}

.section-gear-icon {
  width: 30px;
  height: 30px;
  color: var(--accent-gold-dim);
  animation: gearSpinCW 10s linear infinite;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.section-title-ja {
  font-family: var(--font-jp);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

/* セクションタイトル グリッチエフェクト */
.section-title-glitch {
  position: relative;
}

.section-title-glitch::before,
.section-title-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.section-title-glitch::before {
  color: var(--accent-primary);
  animation: sectionGlitch1 6s infinite;
  clip-path: inset(0 0 60% 0);
}

.section-title-glitch::after {
  color: var(--accent-gold);
  animation: sectionGlitch2 6s infinite;
  clip-path: inset(55% 0 0 0);
}

@keyframes sectionGlitch1 {
  0%, 88%, 100% { opacity: 0; transform: none; }
  89% { opacity: 0.75; transform: translateX(-6px) skewX(-3deg); }
  90% { opacity: 0; }
  91% { opacity: 0.5; transform: translateX(4px) skewX(2deg); }
  92% { opacity: 0; }
}

@keyframes sectionGlitch2 {
  0%, 91%, 100% { opacity: 0; transform: none; }
  92% { opacity: 0.65; transform: translateX(5px) skewX(3deg); }
  93% { opacity: 0; }
  94% { opacity: 0.4; transform: translateX(-3px) skewX(-2deg); }
  95% { opacity: 0; }
}

.section-title-en {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
}

.section-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: 20px auto 0;
}

/* --- Reveal Animation --- */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Concept Section --- */
.concept {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.concept-main {
  text-align: center;
  margin-bottom: 50px;
}

.concept-quote {
  font-family: var(--font-jp);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 2.2;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  border: none;
  padding: 30px 0;
}

.concept-quote em {
  color: var(--accent-primary);
  font-style: normal;
  position: relative;
}

.concept-quote em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-primary);
  opacity: 0.5;
}

.concept-quote-mark {
  font-size: 2em;
  color: var(--accent-gold);
  opacity: 0.3;
  vertical-align: top;
  line-height: 1;
}

.concept-quote-mark--end {
  vertical-align: bottom;
}

.concept-description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.concept-text-block {
  padding: 30px;
  border-left: 1px solid var(--border-color);
}

.concept-text-block p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 2;
}

.concept-text-block p:last-child {
  margin-bottom: 0;
}

.concept-text-block strong {
  color: var(--accent-gold);
  font-weight: 400;
}

/* コンセプト歯車メカニズム */
.concept-mechanism {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mechanism-gears {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mechanism-gear {
  position: absolute;
  color: var(--gear-color-light);
  transition: transform 0.1s linear;
}

.mechanism-gear--1 { width: 150px; left: 15%; animation: gearSpinCW 15s linear infinite; }
.mechanism-gear--2 { width: 120px; left: 45%; animation: gearSpinCCW 12s linear infinite; }
.mechanism-gear--3 { width: 100px; right: 15%; animation: gearSpinCW 10s linear infinite; }

.mechanism-keywords {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.mechanism-keyword {
  font-family: var(--font-jp);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
  text-shadow: 0 0 20px rgba(196, 52, 45, 0.3);
}

.mechanism-keyword.visible {
  opacity: 1;
  transform: scale(1);
}

/* --- Members Section --- */
.members {
  background: var(--bg-primary);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.member-card {
  perspective: 1000px;
  height: 420px;
  cursor: pointer;
}

.member-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.member-card:hover .member-card-inner {
  transform: rotateY(180deg);
}

.member-card-front,
.member-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.member-card-front {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.member-card-back {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.member-visual {
  position: relative;
  width: 180px;
  height: 220px;
  margin-bottom: 20px;
}

.member-silhouette {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-silhouette-svg {
  width: 140px;
  height: auto;
}

.member-gear-frame {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  color: var(--gear-color-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.member-card:hover .member-gear-frame {
  opacity: 1;
}

.member-frame-gear {
  width: 100%;
  height: 100%;
  animation: gearSpinCW 8s linear infinite;
}

.member-info {
  text-align: center;
}

.member-role {
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--accent-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.member-name {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.member-hover-hint {
  position: absolute;
  bottom: 15px;
  right: 15px;
  color: var(--text-muted);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.member-card:hover .member-hover-hint { opacity: 0; }

.member-name-back {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.member-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.member-skills {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold-dim);
  line-height: 1.8;
}

.member-back-gear {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  color: var(--gear-color);
  animation: gearSpinCCW 20s linear infinite;
}

/* --- Discography Section --- */
.discography {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.disco-coming {
  text-align: center;
  padding: 60px 0;
}

.disco-gears-animation {
  position: relative;
  width: 200px;
  height: 100px;
  margin: 0 auto 40px;
}

.disco-gear {
  position: absolute;
  color: var(--gear-color-light);
}

.disco-gear--1 {
  width: 100px;
  left: 10px;
  top: 0;
  animation: gearSpinCW 6s linear infinite;
}

.disco-gear--2 {
  width: 80px;
  right: 20px;
  top: 15px;
  animation: gearSpinCCW 4.8s linear infinite;
}

.disco-coming-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.disco-coming-ja {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
}

.disco-coming-en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.4em;
}

.disco-coming-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  height: 40px;
}

.disco-bar {
  width: 3px;
  background: var(--accent-gold-dim);
  animation: barPulse 1.2s ease-in-out infinite;
}

.disco-bar:nth-child(1) { height: 15px; animation-delay: 0s; }
.disco-bar:nth-child(2) { height: 25px; animation-delay: 0.1s; }
.disco-bar:nth-child(3) { height: 35px; animation-delay: 0.2s; }
.disco-bar:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.disco-bar:nth-child(5) { height: 30px; animation-delay: 0.4s; }
.disco-bar:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.disco-bar:nth-child(7) { height: 28px; animation-delay: 0.6s; }
.disco-bar:nth-child(8) { height: 12px; animation-delay: 0.7s; }

@keyframes barPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* --- Live Section --- */
.live {
  background: var(--bg-primary);
}

.live-coming {
  text-align: center;
  padding: 40px 0;
}

.live-mechanism {
  height: 120px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 30px;
}

.live-pendulum {
  position: relative;
  transform-origin: top center;
  animation: pendulumSwing 3s ease-in-out infinite;
}

.live-pendulum-arm {
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, var(--accent-gold-dim), var(--accent-gold));
  margin: 0 auto;
}

.live-pendulum-weight {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--accent-gold), var(--accent-gold-dim));
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(184, 155, 94, 0.3);
}

@keyframes pendulumSwing {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(20deg); }
}

.live-coming-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.live-coming-ja {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
}

.live-coming-en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.4em;
}

/* --- Contact Section --- */
.contact {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contact-lead {
  text-align: center;
  font-family: var(--font-jp);
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 25px;
  border: 1px solid var(--border-color);
  transition: all 0.4s ease;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.contact-link:hover::before {
  opacity: 0.15;
}

.contact-link:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-link-icon {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.contact-link:hover .contact-link-icon {
  color: var(--accent-gold);
}

.contact-link span {
  position: relative;
  z-index: 1;
  font-family: var(--font-en);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.contact-link:hover span {
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.footer-gears {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-gear {
  position: absolute;
  color: var(--gear-color);
}

.footer-gear--1 { width: 150px; left: -30px; top: -40px; animation: gearSpinCW 30s linear infinite; }
.footer-gear--2 { width: 120px; right: -20px; bottom: -30px; animation: gearSpinCCW 25s linear infinite; }

.footer-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.footer-logo-kanji {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--accent-gold-dim);
}

.footer-logo-en {
  font-family: var(--font-en);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* --- Utility Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav { padding: 0 20px; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-color);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: flex-start;
  }

  .concept-description {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .members-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .member-card { height: 380px; }

  .contact-links { gap: 15px; }
  .contact-link { min-width: 100px; padding: 15px 20px; }

  .section-inner { padding: 0 20px; }
}

@media (max-width: 600px) {
  :root { --section-padding: 60px; }

  .hero-logo { width: clamp(280px, 80vw, 450px); }

  .mechanism-keywords { gap: 15px; }

  .mechanism-keyword {
    font-size: 1.2rem;
  }

  .contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* --- Note Section --- */
.note-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  isolation: isolate;
}

.note-section-lead {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-top: 8px;
}

/* 埋め込みエリア */
.note-embeds {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.note-embed-wrap {
  width: 100%;
  max-width: 540px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  padding: 16px;
  transition: border-color 0.3s ease;
}

.note-embed-wrap:hover {
  border-color: var(--accent-gold-dim);
}

.note-embed-wrap iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}

/* もっと見るボタン */
.note-more {
  text-align: center;
  margin-top: 10px;
}

.note-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border: 1px solid var(--border-color);
  font-family: var(--font-jp);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  transition: all 0.4s ease;
  overflow: hidden;
}

.note-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(184,155,94,0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.note-more-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.note-more-btn:hover::before {
  opacity: 1;
}

.note-more-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-gold-dim);
  animation: gearSpinCW 6s linear infinite;
}

@media (max-width: 900px) {
  .note-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .note-grid { grid-template-columns: 1fr; }
}

/* --- Gear Section (操出機構) --- */
.gear-section {
  background: var(--bg-primary);
}

.gear-section-lead {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3em;
  margin-top: 8px;
}

/* カテゴリヘッダー */
.gear-category {
  margin-bottom: 60px;
}

.gear-cat-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.gear-cat-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.gear-cat-label {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.gear-cat-label small {
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-left: 8px;
}

/* カードグリッド */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gear-grid--system {
  grid-template-columns: repeat(3, 1fr);
}

.gear-grid--system2 {
  grid-template-columns: repeat(2, 1fr);
}

/* カード */
.gear-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.gear-card:hover {
  border-color: var(--accent-gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* カード画像エリア */
.gear-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.gear-card-img--system {
  aspect-ratio: 4 / 3;
}

/* プレースホルダー */
.gear-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
}

.gear-placeholder-icon {
  width: 72px;
  height: 72px;
  color: var(--accent-gold-dim);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gear-card:hover .gear-placeholder-icon {
  opacity: 0.8;
  transform: scale(1.05);
}

/* 実写真の場合 */
.gear-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.gear-card:hover .gear-card-img img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.03);
}

/* COMING SOON オーバーレイ */
.gear-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gear-card:hover .gear-card-overlay {
  opacity: 1;
}

.gear-card-overlay span {
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  line-height: 1.6;
}

/* カードボディ */
.gear-card-body {
  padding: 18px 20px 20px;
}

.gear-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.gear-card-owner {
  font-family: var(--font-en);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold-dim);
}

.gear-card-tag {
  font-family: var(--font-en);
  font-size: 0.52rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
}

.gear-card-name {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  line-height: 1.5;
}

.gear-card-desc {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* 画像フォールバック */
.gear-img-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #1c1c1c 50%, #0d0d0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-img-fallback-name {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  opacity: 0.4;
}

/* ORIGINALバッジ */
.gear-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-en);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-dim);
  padding: 3px 8px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
}

/* スペックリスト */
.gear-card-specs {
  list-style: none;
  margin-top: 14px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gear-card-specs li {
  font-family: var(--font-jp);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.6;
}

.gear-card-specs li span {
  font-family: var(--font-en);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--accent-gold-dim);
  border: 1px solid var(--border-color);
  padding: 1px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 追記メモ */
.gear-note {
  text-align: center;
  font-family: var(--font-jp);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: -20px;
  opacity: 0.6;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .gear-grid--system {
    grid-template-columns: repeat(2, 1fr);
  }
  .gear-grid--system2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .gear-grid,
  .gear-grid--system,
  .gear-grid--system2 {
    grid-template-columns: 1fr;
  }

  .gear-cat-label {
    font-size: 0.8rem;
  }
}

/* --- Music Player --- */
.music-player {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  padding: 10px 16px 10px 12px;
  min-width: 220px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease;
  pointer-events: none;
}

.music-player.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.music-player:hover {
  border-color: var(--accent-gold-dim);
}

.music-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--accent-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.music-btn:hover {
  background: rgba(184, 155, 94, 0.1);
  border-color: var(--accent-gold);
}

.music-icon {
  width: 16px;
  height: 16px;
}

.music-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.music-title {
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-title small {
  color: var(--text-muted);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
}

.music-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* イコライザーバー（再生中のみアニメ） */
.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex-shrink: 0;
}

.mbar {
  width: 2px;
  background: var(--accent-gold-dim);
  border-radius: 1px;
  animation: eqBar 0.8s ease-in-out infinite;
  animation-play-state: paused;
  height: 4px;
}

.music-player.playing .mbar {
  animation-play-state: running;
}

.mbar:nth-child(1) { animation-delay: 0s;    animation-duration: 0.7s; }
.mbar:nth-child(2) { animation-delay: 0.15s; animation-duration: 0.9s; }
.mbar:nth-child(3) { animation-delay: 0.05s; animation-duration: 0.6s; }
.mbar:nth-child(4) { animation-delay: 0.25s; animation-duration: 0.8s; }
.mbar:nth-child(5) { animation-delay: 0.1s;  animation-duration: 1.0s; }

@keyframes eqBar {
  0%, 100% { height: 3px;  opacity: 0.5; }
  50%       { height: 12px; opacity: 1; }
}

/* 再生プログレスバー */
.music-progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.music-progress-bg {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}

.music-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-gold));
  border-radius: 1px;
  transition: width 0.5s linear;
}

.music-time {
  font-family: var(--font-en);
  font-size: 0.5rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.music-volume-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.3s ease;
}

.music-volume-btn:hover {
  color: var(--accent-gold);
}

/* 自動再生ブロック時の通知バナー */
.autoplay-notice {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 901;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid var(--accent-gold-dim);
  padding: 10px 16px;
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.autoplay-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .music-player {
    right: 12px;
    bottom: 12px;
    min-width: 180px;
    padding: 8px 12px 8px 10px;
  }
  .autoplay-notice {
    right: 12px;
    bottom: 72px;
    font-size: 0.7rem;
  }
}

/* --- Noise texture overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
