/* clinic pages UI Enhancements */
/* Version 1.0.0 - クリニック紹介ページ専用UIエンハンスメント */

/* ========================================
   1. クリニック画像ギャラリー強化
   ======================================== */

.clinic-gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.clinic-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 122, 123, 0.7), rgba(79, 209, 197, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.clinic-gallery-item:hover::before {
    opacity: 1;
}

.clinic-gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.clinic-gallery-item img {
    transition: transform 0.6s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-gallery-item:hover img {
    transform: scale(1.15);
}

/* ギャラリーキャプション */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 2;
}

.clinic-gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* ========================================
   2. 施設紹介カード
   ======================================== */

.facility-card-clinic {
    transition: all 0.3s ease;
    background: white;
    border-radius: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.facility-card-clinic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2C7A7B, #4FD1C5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.facility-card-clinic:hover::after {
    transform: scaleX(1);
}

.facility-card-clinic:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.facility-icon-clinic {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(44, 122, 123, 0.3);
    transition: all 0.3s ease;
}

.facility-card-clinic:hover .facility-icon-clinic {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(44, 122, 123, 0.4);
}

/* ========================================
   3. アクセス情報カード
   ======================================== */

.access-card-clinic {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 6px solid #2C7A7B;
}

.access-card-clinic:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-left-width: 8px;
}

.access-icon-clinic {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4FD1C5, #81E6D9);
    color: white;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.access-card-clinic:hover .access-icon-clinic {
    transform: scale(1.15) rotate(5deg);
}

/* ========================================
   4. スタッフ紹介カード
   ======================================== */

.staff-card-clinic {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
}

.staff-card-clinic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.staff-card-clinic:hover::before {
    left: 100%;
}

.staff-card-clinic:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.staff-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.staff-image-wrapper img {
    transition: transform 0.5s ease;
}

.staff-card-clinic:hover .staff-image-wrapper img {
    transform: scale(1.1);
}

/* ========================================
   5. 診療時間テーブル
   ======================================== */

.schedule-table-clinic {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.schedule-table-clinic tr {
    transition: all 0.3s ease;
}

.schedule-table-clinic tr:hover {
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    transform: scale(1.02);
}

.schedule-table-clinic th {
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: white;
    padding: 1.2rem;
    font-weight: 600;
}

.schedule-table-clinic td {
    padding: 1rem;
    border-bottom: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.schedule-table-clinic tr:hover td {
    color: #2C7A7B;
    font-weight: 600;
}

/* ========================================
   6. 地図コンテナ強化
   ======================================== */

.map-container-clinic {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
}

.map-container-clinic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #4FD1C5;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.map-container-clinic:hover::before {
    opacity: 1;
}

.map-container-clinic:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    transform: scale(1.02);
}

/* ========================================
   7. 特徴バッジ
   ======================================== */

.feature-badge-clinic {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    color: #2C7A7B;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #4FD1C5;
    transition: all 0.3s ease;
}

.feature-badge-clinic:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 122, 123, 0.2);
    background: linear-gradient(135deg, #4FD1C5, #81E6D9);
    color: white;
}

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

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

/* ========================================
   8. CTAセクション
   ======================================== */

.cta-clinic {
    background: linear-gradient(135deg, #2C7A7B, #1a5f61);
    position: relative;
    overflow: hidden;
}

.cta-clinic::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.2) 0%, transparent 70%);
    animation: cta-float-clinic 20s infinite ease-in-out;
}

@keyframes cta-float-clinic {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, -30px) scale(1.1);
    }
}

.btn-cta-clinic {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #F6AD55, #FBD38D);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.4);
}

.btn-cta-clinic::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;
}

.btn-cta-clinic:hover::before {
    width: 350px;
    height: 350px;
}

.btn-cta-clinic:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(246, 173, 85, 0.5);
}

/* ========================================
   9. スクロールアニメーション
   ======================================== */

.fade-in-up-clinic {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up-clinic.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-clinic {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in-clinic.visible {
    opacity: 1;
}

.slide-in-left-clinic {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-in-left-clinic.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right-clinic {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-in-right-clinic.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-up-clinic {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-up-clinic.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   10. セクションタイトル
   ======================================== */

.section-title-clinic {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 45px;
    text-align: center;
}

.section-title-clinic::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 5px;
    background: linear-gradient(90deg, #2C7A7B, #4FD1C5);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(44, 122, 123, 0.3);
}

.section-title-clinic h2 {
    font-size: 2.3rem;
    color: #2C7A7B;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title-clinic p {
    font-size: 1.05rem;
    color: #4A5568;
    line-height: 1.8;
}

/* ========================================
   11. 情報リストアイテム
   ======================================== */

.info-list-item-clinic {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-list-item-clinic:hover {
    background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
    transform: translateX(10px);
}

.info-list-item-clinic i {
    color: #4FD1C5;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.info-list-item-clinic:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #2C7A7B;
}

/* ========================================
   12. グリッドレイアウト
   ======================================== */

.facilities-grid-clinic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-grid-clinic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.staff-grid-clinic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

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

@media screen and (max-width: 768px) {
    .clinic-gallery-item:hover {
        transform: translateY(-4px) scale(1.01);
    }
    
    .section-title-clinic h2 {
        font-size: 1.9rem;
    }
    
    .section-title-clinic::after {
        width: 70px;
        height: 4px;
    }
    
    .facility-icon-clinic {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .btn-cta-clinic {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
    
    .facilities-grid-clinic,
    .gallery-grid-clinic,
    .staff-grid-clinic {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .fade-in-up-clinic,
    .slide-in-left-clinic,
    .slide-in-right-clinic,
    .scale-up-clinic {
        /* モバイルではアニメーション無効化 */
        opacity: 1 !important;
        transform: none !important;
    }
    
    .section-title-clinic h2 {
        font-size: 1.6rem;
    }
    
    .facility-icon-clinic {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .access-card-clinic {
        padding: 1.5rem;
    }
}

/* ========================================
   14. アクセシビリティ改善
   ======================================== */

.facility-card-clinic:focus,
.access-card-clinic:focus,
.staff-card-clinic:focus,
.btn-cta-clinic:focus {
    outline: 3px solid #4FD1C5;
    outline-offset: 3px;
}

/* ========================================
   15. プリント対応
   ======================================== */

@media print {
    .clinic-gallery-item,
    .facility-card-clinic,
    .access-card-clinic,
    .staff-card-clinic {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .fade-in-up-clinic,
    .slide-in-left-clinic,
    .slide-in-right-clinic,
    .scale-up-clinic {
        opacity: 1 !important;
        transform: none !important;
    }
}
