
/* モーダル背景 */
.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(255, 255, 255, 0.8);
  animation: fadeout 800ms;
}

.modal.is-show {
  display: flex; /* 初期状態では非表示 */
  animation: fadein 800ms;
}


@keyframes fadein {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.modal-wrap{
height: 100%;
overflow: scroll;
}


/* モーダルコンテンツ */
.modal-content {
  position: relative;
  width: 92%;
  max-width: 900px;
  background: #000;
}

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

/* 閉じるボタン */
.close {
  position: absolute;
  content: '';
  width: 32px;
  height: 32px;
  top: -42px;
  right: 0;
  cursor: pointer;
  background: url("../images/close.svg") no-repeat;
  background-size: 100%;
}

@media (max-height: 600px) {
.modal-content {
  max-width: 700px;
}
.modal {
padding: 40px 0 0;
}
}