@charset "UTF-8";

/*----------------------------------------video loading popup----------------------------------------*/
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.video-overlay {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  background-color: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  cursor: pointer;
}

.video-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 12px;
  z-index: 100000;
}

.close-btn,
.sound-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  line-height: 1;
}

.close-btn:hover,
.sound-btn:hover {
  background: #a82126;
  /* border-color: white; */
  /* transform: scale(1.1); */
}

.close-btn:active,
.sound-btn:active {
  transform: scale(0.95);
}

.sound-btn span {
  display: inline-block;
}

/* タブレット対応 */
@media screen and (max-width: 1024px) {
  .video-overlay {
    width: 85%;
    max-height: 85vh;
  }

  .video-overlay video {
    max-height: 85vh;
  }
}

/* スマートフォン対応 */
@media screen and (max-width: 767px) {
  .loading {
    padding: 10px;
  }

  .video-overlay {
    width: 95%;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
  }

  .video-overlay video {
    max-height: 80vh;
  }

  .video-controls {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .close-btn,
  .sound-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-width: 1.5px;
  }
}

/* 小型スマートフォン対応 */
@media screen and (max-width: 480px) {
  .loading {
    padding: 5px;
  }

  .video-overlay {
    width: 98%;
    max-height: 75vh;
    border-radius: 6px;
  }

  .video-overlay video {
    max-height: 75vh;
  }

  .video-controls {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .close-btn,
  .sound-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* 横向き（ランドスケープ）対応 */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .video-overlay {
    max-height: 95vh;
  }

  .video-overlay video {
    max-height: 95vh;
  }

  .video-controls {
    top: 5px;
    right: 5px;
  }

  .close-btn,
  .sound-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
