/* Extracted from the main <style> tag in the original index.html */
/* This file contains styles shared across all pages. */

/* 基本スタイルとアニメーション */
:root {
    --header-height: 64px; /* ヘッダーの高さを定義 */
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: #0a1014;
    color: #e6e6e6;
    overflow-x: hidden;
}
.animated-gradient-bg {
    background: linear-gradient(-45deg, #0a1014, #1c242c, #0a1014, #2a3a4a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.nav-link.active {
    color: #FFC107;
    font-weight: 700;
    position: relative;
}
.nav-link.active::after, .nav-link:not(.active):hover::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background-color: #FFC107;
    transition: width 0.3s ease;
}
.nav-link:not(.active):hover::after { width: 60%; }
.nav-link:not(.active)::after { width: 0; }

/* お知らせスライダーのスタイル */
.news-slider .swiper-slide {
    height: auto;
    display: flex;
}
.news-slider .swiper-slide > a {
    width: 100%;
}
.news-slider .swiper-button-next,
.news-slider .swiper-button-prev {
    color: #FFC107;
}
.news-slider .swiper-pagination-bullet {
    background: #FFC107;
}

/* トップへ戻るボタンのスタイル */
#scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
}
#scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 3Dホバーエフェクト */
.card-3d-hover {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}
.card-3d-hover:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ボタンホバーエフェクト */
.btn { transition: all 0.3s ease; }
.btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 10px 15px -3px rgba(255, 193, 7, 0.3), 0 4px 6px -2px rgba(255, 193, 7, 0.2);
}
.btn:disabled {
    cursor: not-allowed;
    background-color: #555;
    color: #999;
}

/* ガラスエフェクト */
.glass-effect {
    background: rgba(28, 36, 44, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* スクロールアニメーション */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* モーダルスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #1c242c;
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 90%;
    width: 800px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
@media (min-width: 768px) {
    .modal-content {
        padding: 2.5rem;
    }
}
.modal-overlay.visible .modal-content {
    transform: scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 110;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 9999px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* YouTubeフォールバックスタイル */
.video-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    background-color: #0a1014; /* dark-bg */
    color: #9ca3af; /* gray-400 */
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    z-index: 10;
}

/* アクセシビリティ対応: アニメーションを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .animated-card, #hero-background, .animated-gradient-bg, .animated-title .char, .hero-title, #restart-title {
    animation: none !important;
  }
  /* アニメーション無効時のスタイルを調整 */
  .animated-title .char, #restart-title .char {
      opacity: 1;
      transform: none;
      color: inherit;
  }
}