/* ===============================
   ページ全体リセット
=============================== */
/* html, body {
  margin: 0;
  padding: 0;
  background-color: #000;
} */

/* ===============================
   背景全体ラッパー
   → アスペクト比ベースで高さを決定
=============================== */
.bg-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

/* ===============================
   ムービーエリア（PC）
   上揃え・横幅100%・縦比率維持
=============================== */
.movie-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 954;  /* ← PCのLottie比率 */
  background-image: url("images/background_black.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ===============================
   Lottieアニメーション領域
   背景上に完全フィット
=============================== */
#lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===============================
   ボタン配置（右下揃え）
=============================== */
#skipButton,
#replayButton {
  position: absolute;
  right: 2%;
  bottom: 3%;
  width: 10%;
  aspect-ratio: 74 / 27;
  max-width: 74px;
  height: auto;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  z-index: 1;
}

#skipButton:hover,
#replayButton:hover {
  opacity: 1;
}

/* ===============================
   スマホ（幅600px以下）
   → 縦長比率 (750×1000) に切替
=============================== */
@media screen and (max-width: 600px) {
  .movie-area {
    aspect-ratio: 750 / 1000; /* ← SP用アスペクト比 */
    background-size: cover;
    background-position: top center;
  }

  #lottie {
    aspect-ratio: 750 / 1000;
  }

  #skipButton,
  #replayButton {
    width: 20%;
    max-width: 80px;
    bottom: 4%;
    right: 4%;
  }
}
