/* ==============================================
   examinations.html UI/UX & SEO/LLMO 最適化
   v1.0.0 - 2026-09-08
   ============================================== */

/* ==============================================
   1. 検査カテゴリーカード強化
   ============================================== */

/* カテゴリーカードのホバーエフェクト強化 */
.exam-category-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.exam-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 122, 123, 0.05) 0%, rgba(79, 209, 197, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.exam-category-card:hover::before {
    opacity: 1;
}

.exam-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

.exam-category-card:hover a {
    transform: translateX(5px);
}

.exam-category-card:hover h3 i {
    transform: rotate(360deg);
    transition: transform 0.6s ease;
}

/* カテゴリー別ホバーカラー */
.exam-category-teal:hover {
    border-color: #2C7A7B;
}

.exam-category-orange:hover {
    border-color: #C05621;
}

.exam-category-purple:hover {
    border-color: #6D28D9;
}

.exam-category-green:hover {
    border-color: #047857;
}

.exam-category-red:hover {
    border-color: #B91C1C;
}

.exam-category-pink:hover {
    border-color: #BE123C;
}

/* ==============================================
   2. 検査カテゴリーセクション 見出し強化
   ============================================== */

.examination-category-section {
    margin: 80px 0;
    scroll-margin-top: 120px; /* スティッキーナビ考慮 */
}

.category-header {
    background: linear-gradient(135deg, #F7FAFC 0%, #FFFFFF 100%);
    border-left: 6px solid #2C7A7B;
    padding: 30px 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2C7A7B;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-header h2 i {
    font-size: 1.8rem;
    color: #4FD1C5;
}

.category-description {
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.8;
    margin: 0;
}

/* カテゴリー別色分け */
.category-header.nutrition { border-left-color: #2C7A7B; }
.category-header.nutrition h2 { color: #2C7A7B; }

.category-header.allergy { border-left-color: #C05621; }
.category-header.allergy h2 { color: #C05621; }

.category-header.hormone { border-left-color: #6D28D9; }
.category-header.hormone h2 { color: #6D28D9; }

.category-header.mineral { border-left-color: #047857; }
.category-header.mineral h2 { color: #047857; }

.category-header.cancer { border-left-color: #B91C1C; }
.category-header.cancer h2 { color: #B91C1C; }

.category-header.aging { border-left-color: #BE123C; }
.category-header.aging h2 { color: #BE123C; }

/* ==============================================
   3. 検査カード UI改善
   ============================================== */

.examination-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.examination-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.examination-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(44, 122, 123, 0.15);
    border-color: #4FD1C5;
}

.examination-card-header {
    background: linear-gradient(135deg, #2C7A7B 0%, #4FD1C5 100%);
    color: white;
    padding: 25px 30px;
    position: relative;
}

.examination-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.examination-card-header .examination-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.examination-card-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

.examination-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.examination-description {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 特徴リスト */
.examination-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.examination-features li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: #2D3748;
    line-height: 1.6;
}

.examination-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #10B981;
    font-size: 0.9rem;
}

/* 価格表示 */
.examination-price {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: auto;
    text-align: center;
    border: 2px solid #FED7AA;
}

.examination-price-label {
    font-size: 0.85rem;
    color: #92400E;
    font-weight: 600;
    margin-bottom: 8px;
}

.examination-price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #C2410C;
    margin: 0;
}

.examination-price-tax {
    font-size: 0.8rem;
    color: #92400E;
    margin-top: 5px;
}

/* ==============================================
   4. クイックアクションボタン
   ============================================== */

.examination-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-examination-detail,
.btn-examination-reserve {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-examination-detail {
    background: white;
    color: #2C7A7B;
    border: 2px solid #2C7A7B;
}

.btn-examination-detail:hover {
    background: #2C7A7B;
    color: white;
}

.btn-examination-reserve {
    background: linear-gradient(135deg, #F6AD55 0%, #FBD38D 100%);
    color: white;
}

.btn-examination-reserve:hover {
    background: linear-gradient(135deg, #ED8936 0%, #F6AD55 100%);
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.4);
}

/* ==============================================
   5. よくある質問セクション
   ============================================== */

.examination-faq-section {
    background: linear-gradient(to bottom, #F7FAFC, #EDF2F7);
    padding: 60px 20px;
    margin: 80px 0;
    border-radius: 16px;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C7A7B;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-question::before {
    content: 'Q';
    background: linear-gradient(135deg, #2C7A7B 0%, #4FD1C5 100%);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.8;
    padding-left: 38px;
}

/* ==============================================
   6. 検査比較テーブル強化
   ============================================== */

.examination-comparison-section {
    margin: 80px 0;
    padding: 60px 20px;
    background: linear-gradient(to bottom, #FFFFFF, #F7FAFC);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, #2C7A7B 0%, #4FD1C5 100%);
}

.comparison-table thead th {
    color: white;
    font-weight: 700;
    padding: 20px 15px;
    text-align: left;
    font-size: 1rem;
}

.comparison-table tbody tr {
    background: white;
    transition: background-color 0.2s ease;
}

.comparison-table tbody tr:hover {
    background-color: #F0FDF4;
}

.comparison-table tbody td {
    padding: 18px 15px;
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.95rem;
    color: #2D3748;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* 推奨バッジ */
.recommended-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-left: 8px;
}

/* ==============================================
   7. モバイル専用CTA（PC版では非表示）
   ============================================== */

/* PC版では非表示 */
.mobile-cta {
    display: none;
}

/* モバイル版のみ表示 */
@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }
}

/* ==============================================
   8. レスポンシブ対応
   ============================================== */

@media (max-width: 768px) {
    .exam-category-card {
        margin-bottom: 20px;
    }
    
    .exam-category-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .examination-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .examination-card-header {
        padding: 20px;
    }
    
    .examination-card-header h3 {
        font-size: 1.3rem;
    }
    
    .examination-card-body {
        padding: 20px;
    }
    
    .examination-actions {
        flex-direction: column;
    }
    

    
    .category-header {
        padding: 20px;
    }
    
    .category-header h2 {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .exam-category-card h3 {
        font-size: 1.2rem;
    }
    
    .exam-category-card p {
        font-size: 0.95rem;
    }
    
    .examination-price-amount {
        font-size: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 10px;
    }
}

/* ==============================================
   9. アニメーション & インタラクション
   ============================================== */

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

.fade-in-up {
    animation: slideInUp 0.6s ease-out;
}

.examination-card,
.faq-item,
.category-header {
    opacity: 0;
    animation: slideInUp 0.6s ease-out forwards;
}

.examination-card:nth-child(1) { animation-delay: 0.1s; }
.examination-card:nth-child(2) { animation-delay: 0.2s; }
.examination-card:nth-child(3) { animation-delay: 0.3s; }
.examination-card:nth-child(4) { animation-delay: 0.4s; }

/* ==============================================
   10. アクセシビリティ強化
   ============================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* フォーカス表示強化 */
a:focus,
button:focus,
.category-nav-item:focus {
    outline: 3px solid #4FD1C5;
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .examination-card {
        border: 3px solid #2C7A7B;
    }
    
    .category-nav-item {
        border: 3px solid #2C7A7B;
    }
}
