/* WebGL背景スタイル */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* コンテンツの背後に配置 */
  pointer-events: none; /* マウスイベントを無視 */
}

#webgl-container canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#webgl-loading {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: opacity 0.5s ease-out;
}

#webgl-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 280px;
}

.loading-logo {
  max-width: 100%;
  height: auto;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: #f1f1f1;
  border-radius: 3px;
  overflow: hidden;
  max-width: 212px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #ffff00; /* パーティクルと同じ黄色 */
  transition: width 0.3s ease-out;
}

/* フェードインアニメーション用オーバーレイ */
#fade-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  opacity: 1;
  z-index: 900;
  pointer-events: none;
  transition: opacity 2.5s cubic-bezier(0.165, 0.84, 0.44, 1); /* easeOutQuart */
}

#fade-overlay.fade-out {
  opacity: 0;
}
