/* ==============================================
   examinations.html プレミアムUI/UX強化
   Design System v9.0準拠
   ============================================== */

/* ==============================================
   1. ヒーローセクション - 強化されたアニメーション
   ============================================== */

/* 浮遊アイコンのアニメーション強化 */
.floating-icon {
    animation: float-advanced 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(201, 169, 97, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-icon:hover {
    animation-play-state: paused;
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 8px 24px rgba(201, 169, 97, 0.5));
}

.floating-icon:nth-child(1) {
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    animation-delay: 4s;
}

@keyframes float-advanced {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-30px) rotate(-5deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
        opacity: 0.9;
    }
}

/* ヒーローCTAボタンの脈動エフェクト */
.hero-cta a, .hero-cta button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta a::before, .hero-cta button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta a:hover::before, .hero-cta button:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta a:hover, .hero-cta button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(201, 169, 97, 0.4);
}

/* ==============================================
   2. 統計セクション - カウンターと3Dエフェクト
   ============================================== */

.stat-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stat-item:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 20px 60px rgba(201, 169, 97, 0.3);
}

.stat-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover .stat-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
}

.stat-number {
    background: linear-gradient(135deg, #C9A961 0%, #FBD38D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==============================================
   3. カテゴリーカード - 高度なホバーエフェクト
   ============================================== */

.exam-category-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.exam-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
    transition: left 0.6s ease;
}

.exam-category-card:hover::before {
    left: 100%;
}

.exam-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(10, 61, 61, 0.15);
    border-left-width: 8px;
}

.exam-category-card h3 {
    transition: all 0.3s ease;
}

.exam-category-card:hover h3 {
    transform: translateX(8px);
    letter-spacing: 0.5px;
}

.exam-category-card a {
    position: relative;
    transition: all 0.3s ease;
}

.exam-category-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exam-category-card:hover a::after {
    width: 100%;
}

/* ==============================================
   4. 検査詳細カード - リッチインタラクション
   ============================================== */

.exam-detail-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.exam-detail-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.02), rgba(74, 107, 91, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 8px;
}

.exam-detail-card:hover {
    transform: translateX(8px);
    box-shadow: -6px 0 24px rgba(10, 61, 61, 0.1);
}

.exam-detail-card:hover::after {
    opacity: 1;
}

/* ==============================================
   5. 実施可能院バッジ - ホバーアニメーション
   ============================================== */

.clinic-badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.clinic-badge.available:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.clinic-badge.available:nth-child(1):hover {
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4);
}

.clinic-badge.available:nth-child(2):hover {
    box-shadow: 0 8px 20px rgba(10, 61, 61, 0.4);
}

.clinic-badge.available:nth-child(3):hover {
    box-shadow: 0 8px 20px rgba(74, 107, 91, 0.4);
}

.clinic-badge i {
    transition: transform 0.3s ease;
}

.clinic-badge:hover i {
    transform: rotate(360deg) scale(1.2);
}

/* ==============================================
   6. CTAボタン - リップルエフェクト
   ============================================== */

.btn-modern, .btn-accent-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* リップルエフェクトはJavaScriptで実装（CSSの::afterは削除） */

.btn-modern:hover, .btn-accent-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.btn-modern i, .btn-accent-modern i {
    transition: transform 0.3s ease;
}

.btn-modern:hover i, .btn-accent-modern:hover i {
    transform: translateX(4px);
}

/* ==============================================
   7. アコーディオンテーブル - スムーズトランジション
   ============================================== */

.examination-table {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.examination-table.active {
    animation: accordion-open 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes accordion-open {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.examination-table tbody tr {
    transition: all 0.3s ease;
}

.examination-table tbody tr:hover {
    background: rgba(201, 169, 97, 0.12) !important;
    transform: translateX(4px);
}

/* ==============================================
   8. スクロールプログレスバー
   ============================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #C9A961 0%, #FBD38D 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.5);
}

/* ==============================================
   9. セクション間の視差効果
   ============================================== */

.parallax-section {
    transition: transform 0.3s ease-out;
}

/* ==============================================
   10. パルスアニメーション（統計アイコン）
   ============================================== */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(201, 169, 97, 0);
    }
}

.stat-icon {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ==============================================
   11. レスポンシブ調整
   ============================================== */

@media (max-width: 768px) {
    .stat-item:hover {
        transform: translateY(-8px);
    }
    
    .exam-category-card:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .btn-modern:hover, .btn-accent-modern:hover {
        transform: translateY(-2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .stat-item:hover,
    .exam-category-card:hover,
    .exam-detail-card:hover {
        transform: none;
    }
}

/* ==============================================
   12. フォーカスアクセシビリティ強化
   ============================================== */

.btn-modern:focus-visible,
.btn-accent-modern:focus-visible,
.exam-category-card:focus-visible,
.clinic-badge:focus-visible {
    outline: 3px solid #C9A961;
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.2);
}

/* ==============================================
   13. スムーズスクロール改善
   ============================================== */

html {
    scroll-behavior: smooth;
}

/* セクション間のスペーシング最適化 */
section + section {
    scroll-margin-top: 80px;
}
