/* --- SVG Curtain Loader --- */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

#loading-screen svg {
  width: 100%;
  height: 100%;
}

.curtain-left-svg {
  animation: openCurtainLeft 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 1.5s;
}

.curtain-right-svg {
  animation: openCurtainRight 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: 1.5s;
}

.loading-text-svg {
  animation: fadeOut 0.5s ease-in forwards;
  animation-delay: 1.2s;
}

/* ブラウザ互換性を考慮し、100% ではなく viewBox座標(100)に基づく絶対値に変更 */
@keyframes openCurtainLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-55px); }
}
@keyframes openCurtainRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(55px); }
}
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ページロード時のスクロールロック用クラス */
.lock-scroll {
  overflow: hidden !important;
}

/* Smooth Scroll */
html { scroll-behavior: smooth; }

/* Glassmorphism Classes */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Text Gradients */
.text-gradient {
  background: linear-gradient(to right, #FF6B6B, #FCA311, #4D96FF, #9D4EDD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Hide scrollbar for neat horizontal scrolls */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}