.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  padding-top: 283px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.86);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 9999;
}

.modal-content {
  display: flex;
  width: 100%;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  flex-direction: column;
  align-items: center;
}

.modal-close {
  position: fixed;
  top: 60px;
  right: 60px;
  width: 51px;
  height: 51px;
  padding: 0;
  background: url("../images/modal-close.svg") center / contain no-repeat;
  border: none;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
}

.video-container {
  position: relative;
  display: grid;
  width: min(720px, calc(100vw - 48px));
  aspect-ratio: 16 / 9;
  margin: 0;
  padding-top: 0;
  place-items: center;
  background: #a5a5a5;
}

.video-container::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  color: #fff;
  content: "動画を読み込み中…";
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
  place-items: center;
  pointer-events: none;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-option {
  margin-top: 32px;
  text-align: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.modal-option label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.modal-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  appearance: none;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
}

.modal-option input:checked {
  background: #fff;
  box-shadow: inset 0 0 0 3px #000;
}

@media (max-width: 840px) {
  .modal-overlay {
    padding-top: 278px;
  }

  .modal-close {
    top: 40px;
    right: 39px;
    width: 51px;
    height: 51px;
  }

  .video-container {
    width: 100vw;
  }

  .video-container::before {
    font-size: 27px;
  }

  .modal-option {
    margin-top: 132px;
  }
}
