@charset "utf-8";
/* CSS Document */

/* ========================================
  ローディング画面の制御
======================================== */

/* ローディング画面 */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
}

/* 読み込み完了後にフェードアウト */
#loading-screen.loaded {
  animation: overlayFadeOut 0.8s ease-in-out forwards;
}

/* ========================================
  背景 / ANIMATION
======================================== */

/* 背景アニメーション */

  #particles-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; 
    z-index: -1; 
    opacity: 0; 
    animation: backgroundFadeIn 1s ease forwards;
    animation-play-state: paused;
  }
  #particles-bg.start-animation {
  animation-play-state: running;
}
  #particles-bg canvas {
    display: block;
    width: 100%;
    height: 100%;
  }

/* メインビジュアル */
body.no-scroll {
  overflow: hidden;
  position: fixed; 
  width: 100%;
}
.main-visual {
  width: 100%;
  /* height: 100svh; */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ポスター */
.poster {
  display: block;
  width: auto;
  /* height: 100svh; */
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  animation: posterExpand 0.8s ease forwards;
  animation-play-state: paused;
}
.poster.start-animation {
  animation-play-state: running;
}
/* 背景 */
.animation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100svh;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeOut 0.8s ease-in-out 1.5s forwards;
}


#loading-screen.loaded .logo {
  animation: logoFadeOut 0.8s ease-in-out forwards;
}
/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
  Keyframes
======================================== */

@keyframes posterExpand {
  0% {
      opacity: 0;
      transform: scale(2);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
}

@keyframes overlayFadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes logoFadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes backgroundFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}



@media screen and (min-width: 641px) {
  /* PC用のスタイル記述 =========================================================================== */

/* ロゴ */
.logo {
  max-width: 400px;
  animation: none;
}
/* メインビジュアル */
.main-visual {
  height: 100svh;
}

/* ポスター */
.poster {
  height: 100svh;

}
/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
}

@media screen and (max-width: 640px) {
  /* スマートフォン用のスタイル記述 =========================================================================== */

/* ロゴ */
.logo {
  max-width: 300px;
  animation: none;
}

/* フェードイン */
.fade-in {
    opacity: 1;
    transform: none;
    transition: none;
    
  }
}