#opening-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

/* ===== 動画パート ===== */
/* 動画と文字を重ねる全画面の入れ物。1回だけフェードイン */
#opening-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: opening-fadein 2s ease-out both;
}

/* JSが付与: 動画パートを1回フェードアウト */
#opening-stage.fade-out {
  animation: opening-fadeout 2.4s ease-in-out forwards;
  pointer-events: none;
}

/* 動画全体が見えるように、画面中央に収める */
#opening-video {
  position: absolute;
  inset: 0;
  width: 50%;
  height: 50%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

@keyframes opening-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes opening-fadeout {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* タップでスキップのヒント（控えめ） */
#opening-hint {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom, 0px) + 28px, 36px);
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.32);
  letter-spacing: 0.1em;
  animation: hint-blink 1.8s ease-in-out infinite;
}

@keyframes hint-blink {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}
