@charset "UTF-8";

.teaser {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.teaser__header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.teaser__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  container-type: size;
}

/* 16:9 の動画を画面全体を覆うサイズで中央配置（object-fit: cover 相当） */
.teaser__player {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 100cqh * 16 / 9);
  height: max(100cqh, 100cqw * 9 / 16);
  border: 0;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.8s ease;
}

.teaser__player--visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .teaser__player {
    transition: none;
  }
}
