@charset "UTF-8";

/* 元の半透明オーバーレイ */
#cboxOverlay {
  opacity: 0.7;
  background-color: black;
  transition: opacity 0.3s ease;
  display: block;
}

/* 動画モーダル用：透明化 */
#cboxOverlay.overlayHidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.videoThumb{
	cursor: pointer;
}

.videoThumb:hover{
	opacity: 0.5;
}



.modalContent {
  background-color: #fefefe;
  padding: 0;
  border: 1px solid #888;
  animation: fadeIn 0.7s ease 0s 1 normal;
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 96%;
  aspect-ratio: 16/9;
  max-width: 896px;
}
@media screen and (max-width: 999px) {
  .modalContent {
    margin: auto;
  }
}

.modalContent iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

button.closeBtn {
  display: inline-block;
  vertical-align: middle;
  color: #FFF;
  line-height: 1;
  width: 3rem;
  height: 0.2rem;
  background: currentColor;
  border-radius: 0.1rem;
  position: absolute;
  transform: rotate(45deg);
  border: none;
  right: 8px;
  top: -24px;
  opacity: 0.6;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

button.closeBtn:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  transform: rotate(90deg);
}

button.closeBtn:hover {
  opacity: 1;
}

body.fixed {
  height: 100%;
  overflow: hidden;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
