/* モーダル背景 */
.audio-modal {
  display: flex;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #000; /* 完全な黒 */
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in;
  pointer-events: auto !important;
}

.audio-modal.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* モーダルコンテンツ */
.audio-modal-content {
  background: transparent; /* 背景透明 */
  padding: 80px;
  text-align: center;
  max-width: 85%;
  animation: slideUp 0.4s ease-out;
  pointer-events: auto !important;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* モーダルGIF */
.modal-gif {
  width: 500px; /* 400px → 500pxに拡大 */
  height: auto;
  max-width: 90%;
  margin: 0 0 30px 0;
  position: relative;
  display: inline-block;
}

.modal-text {
  color: #000000;
  margin: 0 0 60px 0;
  font-size: 32px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
}

/* スピーカーアイコンは削除（GIFに含まれている） */

/* スタートボタン */
.start-btn {
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
  color: #000000;
  border: none;
  padding: 30px 80px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 30px rgba(255, 255, 255, 0.6),
    0 0 50px rgba(255, 255, 255, 0.4),
    0 0 70px rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 2px 10px rgba(100, 100, 100, 0.3),
    inset 0 -2px 10px rgba(150, 150, 150, 0.2);
  pointer-events: auto !important;
  position: relative;
  overflow: hidden;
  z-index: 999999;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.5s;
}

.start-btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 50%, #e8e8e8 100%);
  box-shadow: 
    0 0 40px rgba(255, 255, 255, 0.8),
    0 0 60px rgba(255, 255, 255, 0.5),
    0 0 90px rgba(255, 255, 255, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.4),
    inset 0 3px 12px rgba(80, 80, 80, 0.4),
    inset 0 -3px 12px rgba(130, 130, 130, 0.3);
}

.start-btn:hover::before {
  left: 100%;
}

.start-btn:active {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #e0e0e0 0%, #d5d5d5 50%, #c8c8c8 100%);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.5),
    0 0 40px rgba(255, 255, 255, 0.3),
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 3px 10px rgba(60, 60, 60, 0.5),
    inset 0 -2px 8px rgba(120, 120, 120, 0.3);
}

/* 横向き（ランドスケープ）対応 */
@media (orientation: landscape) {
  .audio-modal-content {
    padding: 20px 40px;
    max-width: 50%;
    max-height: 70vh;
  }
  
  .modal-gif {
    width: 300px; /* 250px → 300pxに拡大 */
    margin: 0 0 15px 0;
  }
  
  .modal-text {
    font-size: 18px;
    margin: 0 0 20px 0;
    gap: 8px;
  }
  
  .start-btn {
    padding: 12px 30px;
    font-size: 18px;
    letter-spacing: 1px;
  }
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .audio-modal-content {
    padding: 60px 40px;
  }
  
  .modal-gif {
    width: 380px; /* 320px → 380pxに拡大 */
    margin: 0 0 20px 0;
  }
  
  .modal-text {
    font-size: 28px;
    gap: 12px;
  }
  
  .start-btn {
    padding: 24px 60px;
    font-size: 32px;
    letter-spacing: 1.5px;
  }
}

/* ===== 動画体験モーダル ===== */
.video-experience-modal {
  display: flex;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in;
}

.video-experience-modal.hidden {
  display: none;
}

.video-experience-content {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

#experience-video {
  width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

/* 「体験を開始」ボタン（紫系グラデーション） */
.start-btn.video-btn {
  background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 20px 50px;
  font-size: 24px;
  box-shadow:
    0 0 30px rgba(102, 126, 234, 0.6),
    0 0 50px rgba(102, 126, 234, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3);
}

.start-btn.video-btn:hover {
  background: linear-gradient(145deg, #7a8fed 0%, #8a5db5 100%);
  box-shadow:
    0 0 40px rgba(102, 126, 234, 0.8),
    0 0 60px rgba(102, 126, 234, 0.5),
    0 12px 30px rgba(0, 0, 0, 0.4);
}

.start-btn.video-btn:active {
  background: linear-gradient(145deg, #5a6fd8 0%, #6a4992 100%);
}

/* 動画完了後の結果ボタン */
.video-result-btn-wrapper {
  margin-top: 30px;
  animation: fadeInUp 0.5s ease-out;
}

.video-result-btn-wrapper.hidden {
  display: none;
}

/* AR体験と同じ結果ボタンスタイル */
.ar-result-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ar-result-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.ar-result-btn:active {
  transform: scale(0.98);
}

/* 動画モーダルのレスポンシブ対応 */
@media (orientation: landscape) {
  .video-experience-content {
    max-width: 70%;
    padding: 10px;
  }

  #experience-video {
    max-height: 60vh;
  }

  .start-btn.video-btn {
    padding: 12px 30px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .video-experience-content {
    padding: 15px;
  }

  .start-btn.video-btn {
    padding: 18px 40px;
    font-size: 20px;
  }

  .ar-result-btn {
    padding: 14px 28px;
    font-size: 16px;
  }
}

