@charset "UTF-8";

/* モーダル背景 */
.modal {
  display: none; /* 初期状態では非表示 */
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

/* モーダルコンテンツ */
.modal-content {
  position: relative;
  width: 90%;
  max-width: 960px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  background: #000;
}

/* 動画の埋め込みをレスポンシブ対応させる */
.video-container {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-container iframe {
  width: 100%;
  height: 100%;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: -4rem;
  right: 0;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}