@charset "UTF-8";
/*
  video-modal.css
  YouTube などの動画 iframe を全画面オーバーレイで再生するモーダルの汎用スタイル。
  HTML側のクラス: .c-videoModal / __backdrop / __dialog / __close / __title / __player
*/

.c-videoModal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.c-videoModal[hidden] {
  display: none !important;
}
.c-videoModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}
.c-videoModal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}
.c-videoModal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.c-videoModal__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
}
.c-videoModal__player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.c-videoModal__player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 767px) {
  .c-videoModal {
    padding: 12px;
  }
  .c-videoModal__close {
    top: -10px;
    right: -6px;
  }
}
