/* tunnel.css — 3Dスクロール水流トンネル潜行
 * 全セレクタを #tunnel-stage 配下にスコープし、base.css/sections.css/effects.css/drum.css と衝突させない。
 * z-index: 90000（drum の 100000 より下・hero canvas より上）
 * 配色: homepage シアン基調（hue 188 系 cyan/teal）。虎の巻ネオン（#a78bfa/#f472b6）不使用。
 */

/* ===== ステージ本体 ===== */
#tunnel-stage {
  display: none; /* JS が start() 時に block にする */
}

/* WebGL 描画 canvas */
#tunnel-stage .tunnel-webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 90000;
  pointer-events: none;
}

/* ===== UI オーバーレイ（テキスト系） ===== */
#tunnel-stage .tunnel-ui-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 90010; /* .tunnel-webgl より上 */
  pointer-events: none;
}

/* scene-ui 各セクション */
#tunnel-stage .scene-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

/* コンテンツブロック */
#tunnel-stage .tunnel-content {
  max-width: 800px;
  text-align: center;
  pointer-events: none;
}

#tunnel-stage .tunnel-content.left-align {
  text-align: left;
  margin-right: auto;
  margin-left: 10%;
  max-width: 500px;
  background: rgba(2, 6, 8, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

#tunnel-stage .tunnel-content.right-align {
  text-align: right;
  margin-left: auto;
  margin-right: 10%;
  max-width: 500px;
  background: rgba(2, 6, 8, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

/* ===== タイポグラフィ（シアン基調） ===== */
#tunnel-stage .tunnel-glow-text {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.1;
  text-transform: uppercase;
  background: linear-gradient(180deg, #e0f7fa 0%, #22d3ee 60%, #0ea5b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none; /* text-fill-color と共存不可のため除去 */
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 24px rgba(34, 211, 238, 0.3));
}

#tunnel-stage .tunnel-glow-text-sub {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #38e0d8 0%, #22d3ee 50%, #0ea5b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.25));
}

#tunnel-stage .tunnel-sub-text {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: #94c7d0;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

/* ===== スクロールスペーサー ===== */
#tunnel-scroll-spacer {
  width: 100%;
  height: 600vh;
  pointer-events: none;
}

/* ===== レスポンシブ（モバイルはスキップのため表示制御不要だが念のため） ===== */
@media (max-width: 767px) {
  #tunnel-stage {
    display: none !important;
  }
  #tunnel-scroll-spacer {
    display: none !important;
  }
}
