/* ===== teaser-modal.css ===== */
.teaser-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease;
  pointer-events: none;
  display: flex; /* ← 最初から flex にしておく */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.teaser-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
  .teaser-modal-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
  }
  .teaser-modal-inner {
    position: relative;
    max-width: 960px;
    width: 90%;
    background: transparent;
    z-index: 1;
  
    /* ✅ フェード効果追加 */
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.5s ease, transform 1.5s ease;
  }
  
  /* モーダルが表示されたとき、innerも同時にフェードイン */
  .teaser-modal.show .teaser-modal-inner {
    opacity: 1;
    transform: scale(1);
  }
  .teaser-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    color: white;
    font-size: 30px;
    border: none;
    cursor: pointer;
    z-index: 2;
  }
  .teaser-video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
  }
  .teaser-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .teaser-video-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
  }
  .teaser-video-btn {
    flex: 1;
    padding: 12px;
    background: #1f1f1f;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
  }
  .teaser-video-btn:hover {
    background: #666;
    color: #fff;
  }

  .trailer-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 960px; /* ← 動画と同じ幅 */
  margin-top: 30px;
  gap: 2px; 
}

.trailer-buttons button {
  flex: 1;
  padding: 16px 0;
  background: #555555;
  color: #aaaaaa;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.1em;
}

.trailer-buttons button.active {
  background: #464646;
  color: #fff;
}

.trailer-buttons button:disabled {
  background: #222;
  color: #999;
  cursor: default;
}

/* ← イントロテキスト表示 */
.teaser-intro {
  position: fixed;
  inset: 0;
  background: #1F1F1F;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.5s ease;
  pointer-events: auto;
}

.teaser-intro.hide {
  opacity: 0;
  pointer-events: none;
}

.teaser-intro-img {
  width: 5%;
  max-width: 200px;
  height: auto;
  opacity: 0;
  transition: opacity 1s ease;
}


@keyframes teaserImageFade {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}


@media screen and (max-width: 768px) {
  .teaser-intro-img {
    width: 200px;
    max-width: 20%;
  }
}
  
  