/* 動画セクション */
.video-section {
  padding: 80px 0;
  background: var(--bg-light);
  text-align: center;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--box-shadow-lg);
  position: relative;
}

.video-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

/* 古いブラウザ対応のフォールバック */
@supports not (aspect-ratio: 16/9) {
  .video-wrapper {
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio */
  }
  
  .video-wrapper .video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--border-radius);
  background: #000;
  border: none;
}

.video-placeholder {
  width: 100%;
  height: 450px;
  background: var(--border-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-light);
  border: 2px dashed #ccc;
  text-align: center;
  line-height: 1.6;
}

/* 動画コントロール */
.video-player::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

.video-player::-webkit-media-controls-play-button,
.video-player::-webkit-media-controls-volume-slider {
  filter: invert(1);
}

/* ローディング状態 */
.video-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-wrapper.loading::before {
  opacity: 1;
}

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

/* プレイボタンオーバーレイ */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}

.video-wrapper:hover .video-overlay {
  opacity: 1;
  pointer-events: auto;
}

.video-play-btn {
  width: 80px;
  height: 80px;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-color);
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.video-play-btn:hover {
  transform: scale(1.1);
  background: var(--accent-color);
  color: var(--bg-white);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .video-section {
    padding: 60px 0;
  }
  
  .video-container {
    margin: 0 15px;
    padding: 15px;
  }
  
  .video-player,
  .video-placeholder {
    min-height: 300px;
    height: 300px;
  }
  
  .video-placeholder {
    font-size: 1rem;
  }
  
  .video-play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .video-container {
    margin: 0 10px;
    padding: 10px;
  }
  
  .video-player,
  .video-placeholder {
    min-height: 250px;
    height: 250px;
  }
  
  .video-placeholder {
    font-size: 0.9rem;
  }
}