/** 　公開後の更新など追加CSS用として使用　 */

/* ビデオモーダル：2025/11 */

.top .news__flg--link button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #333;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: inline;
  font-size: 1vw;
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .top .news__flg--link button {
    font-size: 5vw;
  }
}

.top .news__flg--link button:hover {
  text-decoration: none;
  opacity: 1;
}

.top .news__flg--link p {
  font-size: 1vw;
  color: #333;
}

@media screen and (max-width: 767px) {
  .top .news__flg--link p {
    font-size: 5vw
  }
}

.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.2s ease;
}

.video-modal.show {
  background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 75%;
  max-width: 1200px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-modal.show .video-modal-content {
  opacity: 1;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.video-modal-close:hover,
.video-modal-close:focus {
  color: #ccc;
}

#modalVideo {
  width: 100%;
  height: auto;
  display: block;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .video-modal-content {
    width: 95%;
  }

  .video-modal-close {
    top: -35px;
    font-size: 30px;
  }
}