@charset "UTF-8";
/* ==========================================================================
   Instagram Reel Section - 固定動画セクション
   ========================================================================== */

/* セクション全体 */
.insta_reel_section {
  width: 100%;
  padding-top: 0;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.insta_reel_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.insta_reel_container .video_title{
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    color: white;
    z-index: 10;
}

/* 動画コンテンツ */
.insta_reel_content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reel_video_container {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.reel_video_wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9/16; /* 縦型動画のアスペクト比 */
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 動画要素 */
.reel_video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  background: #000;
}

/* 動画コントロール */
.reel_video_controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 30px;
  padding: 10px 15px;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reel_video_wrapper:hover .reel_video_controls {
  opacity: 1;
}

/* コントロールボタン */
.video_play_btn,
.video_mute_btn,
.quality_btn {
  background: transparent;
  border: none;
  color: white;
  fill: white;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  width: 40px;
  height: 40px;
}

.video_play_btn:hover,
.video_mute_btn:hover,
.quality_btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video_play_btn svg,
.video_mute_btn svg {
  width: 20px;
  height: 20px;
}

/* 品質選択 */
.video_quality_selector {
  position: relative;
}

.quality_btn {
  width: auto;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.quality_btn svg {
  width: 12px;
  height: 12px;
}

.quality_menu {
  position: absolute;
  bottom: 50px;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 10px;
  padding: 5px 0;
  min-width: 80px;
  display: none;
  backdrop-filter: blur(10px);
}

.quality_option {
  padding: 8px 15px;
  color: white;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.quality_option:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 進捗バー */
.reel_progress_container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

.reel_progress_bar {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.reel_progress_fill {
  height: 100%;
  background: red;
  width: 0;
  transition: width 0.1s ease;
}

/* ローディング */
.reel_loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 20px;
}

.loading_spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reel_loading p {
  font-size: 14px;
  margin: 0;
  text-align: center;
}

@media screen and (max-width: 768px) {
    .reel_video_controls {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3);
    }
}


/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .reel_video_wrapper {
    transition: none;
  }
  
  .reel_video_wrapper:hover {
    transform: none;
  }
  
  .reel_video_controls {
    transition: none;
  }
  
  .loading_spinner {
    animation: none;
  }
  
  .reel_progress_fill {
    transition: none;
  }
}

/* フォーカス対応（キーボードナビゲーション） */
.video_play_btn:focus,
.video_mute_btn:focus,
.quality_btn:focus,
.quality_option:focus {
  outline: 2px solid #4ecdc4;
  outline-offset: 2px;
}

/* 印刷対応 */
@media print {
  .insta_reel_section {
    background: white;
    color: black;
  }
  
  .reel_video_wrapper {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .reel_video_controls {
    display: none;
  }
}

/* ネットワークインジケーター */
.network_indicator {
    display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

.network_indicator.good { color: #4caf50; }
.network_indicator.medium { color: #ff9800; }
.network_indicator.poor { color: #f44336; }

/* バッファリング表示 */
.reel_progress_buffered {
  position: absolute;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transition: width 0.3s ease;
}