body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

/* 動画コンテナ */
.video-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
}

/* 中央の PLAY MOVIE ボタン */
.play-movie-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid #fff;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.play-movie-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -50%) scale(1.05);
}

/* 右下の 再生/停止 トグルボタン (アイコン版) */
.toggle-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 50px;  /* 正方形に近くする */
  height: 50px;
  padding: 0;   /* 余白をリセット */
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 40px;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px; /* アイコンを大きく */
  line-height: 1;  /* 行間をリセット */
}

.toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.toggle-btn img {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

/* モーダル全体のスタイル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  color: #fff;
  border: none;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* YouTube動画の16:9比率を維持するコンテナ */
.iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
