/* ======================================
   診療内容セクション専用CSS
   clinic-pages-v9.cssの補完
   ====================================== */

/* ==========================================================================
   診療内容セクション - タブフィルター
   ========================================================================== */

.treatments-premium-section {
    background: #F7FAFC;
}

.treatments-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.treatment-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #ffffff;
    border: 2px solid #E2E8F0;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4A5568;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.treatment-tab:hover {
    border-color: #0A3D3D;
    color: #0A3D3D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10,61,61,0.15);
}

.treatment-tab.active {
    background: linear-gradient(135deg, #0A3D3D 0%, #4A6B5B 100%);
    border-color: #0A3D3D;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(10,61,61,0.25);
}

.treatment-tab i {
    font-size: 1.1em;
}

/* ==========================================================================
   診療内容カードグリッド
   ========================================================================== */

.treatments-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.treatment-premium-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    border: 1px solid #E2E8F0;
}

.treatment-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: #C9A961;
}

/* フィルター非表示時 */
.treatment-premium-card[style*="display: none"] {
    display: none !important;
}

/* ==========================================================================
   カードヘッダー（カテゴリー別カラー）
   ========================================================================== */

.treatment-card-header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.treatment-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    z-index: 1;
}

.treatment-card-icon {
    font-size: 2.5rem;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

/* カテゴリー別背景色 - ブランドカラーで統一 */
.category-infusion {
    background: linear-gradient(135deg, #0A3D3D 0%, #1a5a5a 100%);
}

.category-examination {
    background: linear-gradient(135deg, #4A6B5B 0%, #5a7b6b 100%);
}

.category-regenerative {
    background: linear-gradient(135deg, #C9A961 0%, #d9b971 100%);
}

.category-beauty {
    background: linear-gradient(135deg, #5D7E6D 0%, #6d8e7d 100%);
}

/* ==========================================================================
   カード本体
   ========================================================================== */

.treatment-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.treatment-card-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(10, 61, 61, 0.1);
    color: #0A3D3D;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.treatment-card-category-badge i {
    font-size: 0.9em;
}

.treatment-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 2.8em; /* タイトルの高さを統一(2行分) */
}

.treatment-card-description {
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    height: 10em; /* 説明文の高さを固定してリストの上端を完全に揃える */
    overflow: visible; /* テキストがはみ出ても表示 */
}

/* ==========================================================================
   期待できる効果・こんな方におすすめ
   ========================================================================== */

.treatment-benefits-premium {
    background: #F7FAFC;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #C9A961;
    align-self: start;
}

.treatment-benefits-premium h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0A3D3D;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.treatment-benefits-premium h4 i {
    color: #C9A961;
    font-size: 1.1em;
}

.treatment-benefits-premium ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.treatment-benefits-premium li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: #2D3748;
    line-height: 1.7;
    font-size: 0.95rem;
}

.treatment-benefits-premium li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4A6B5B;
    font-weight: 700;
}

.treatment-benefits-premium li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   カードフッター（詳しく見るリンク）
   ========================================================================== */

.treatment-card-footer {
    padding: 0 2rem 2rem 2rem;
    margin-top: auto;
}

.treatment-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0A3D3D;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #E6F4F1 0%, #D4E8E3 100%);
}

.treatment-detail-link:hover {
    background: linear-gradient(135deg, #0A3D3D 0%, #4A6B5B 100%);
    color: #ffffff;
    transform: translateX(5px);
}

.treatment-detail-link i {
    transition: transform 0.3s ease;
}

.treatment-detail-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   初診時のご案内
   ========================================================================== */

.treatments-note {
    background: #FFF9E6;
    border: 2px solid #F6E05E;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.treatments-note i {
    color: #D69E2E;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.treatments-note strong {
    color: #744210;
    display: block;
    margin-bottom: 0.5rem;
}

.treatments-note p {
    color: #744210;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   院内設備・医療機器セクション
   ========================================================================== */

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.facility-card-optimized {
    background: #ffffff;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.facility-card-optimized:hover {
    border-color: #C9A961;
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.facility-card-optimized i {
    font-size: 3rem;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    display: block;
}

.facility-card-optimized h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1rem;
}

.facility-card-optimized p {
    color: #4A5568;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==========================================================================
   院内ギャラリー
   ========================================================================== */

.gallery-stylish {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-stylish-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-stylish-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-stylish-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-stylish-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-stylish-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.gallery-stylish-item:hover .gallery-stylish-overlay {
    background: linear-gradient(to top, rgba(10,61,61,0.9), rgba(10,61,61,0.3));
}

.gallery-stylish-caption {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.gallery-stylish-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-stylish-item:hover .gallery-stylish-icon {
    opacity: 1;
}

.gallery-stylish-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* ==========================================================================
   アクセスルート
   ========================================================================== */

.access-routes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.route-card {
    background: #ffffff;
    border: 2px solid #E2E8F0;
    border-left: 6px solid #C9A961;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.route-card:hover {
    border-left-color: #0A3D3D;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateX(5px);
}

.route-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.route-card h3 i {
    font-size: 1.5rem;
}

.route-card p {
    color: #4A5568;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.route-card ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    color: #2D3748;
}

.route-card li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    padding-left: 0.5rem;
}

.route-note {
    background: #E6F4F1;
    border-left: 4px solid #4A6B5B;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.route-note i {
    color: #4A6B5B;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.route-note p {
    margin: 0;
    color: #2D3748;
}

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

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.access-info-card {
    background: #ffffff;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.access-info-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.access-info-card h3 i {
    color: #C9A961;
    font-size: 1.4rem;
}

.info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #E2E8F0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #4A5568;
    font-size: 0.95rem;
}

.info-value {
    color: #2D3748;
    line-height: 1.8;
}

.info-value a {
    color: #0A3D3D;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: #C9A961;
    text-decoration: underline;
}

/* 診療カレンダー */
.schedule-calendar {
    margin-top: 1rem;
}

.schedule-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.schedule-day-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 1rem 0.5rem;
    transition: all 0.3s ease;
    min-height: 0;
    width: 100%;
}

.schedule-day-card.available {
    background: linear-gradient(135deg, #E6F4F1 0%, #D4E8E3 100%);
    border: 2px solid #4A6B5B;
}

.schedule-day-card.closed {
    background: #FED7D7;
    border: 2px solid #E53E3E;
}

.day-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.day-status {
    font-size: 1.2rem;
    font-weight: 700;
}

.schedule-day-card.available .day-status {
    color: #0A3D3D;
}

.schedule-day-card.closed .day-status {
    color: #E53E3E;
}

/* Googleマップ */
.map-section {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

/* ==========================================================================
   予約CTAセクション
   ========================================================================== */

.btn-phone-modern,
.btn-line-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-phone-modern {
    background: linear-gradient(135deg, #C9A961 0%, #D9B971 100%);
    color: #ffffff;
}

.btn-phone-modern:hover {
    background: linear-gradient(135deg, #B89751 0%, #C9A961 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201,169,97,0.4);
}

.btn-line-modern {
    background: #06C755;
    color: #ffffff;
}

.btn-line-modern:hover {
    background: #05B14D;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6,199,85,0.4);
}

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

@media (max-width: 768px) {
    .treatments-tabs {
        gap: 0.5rem;
    }
    
    .treatment-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .treatments-premium-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .treatment-card-body {
        padding: 1.5rem;
    }
    
    .treatment-card-footer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .treatment-card-title {
        font-size: 1.2rem;
    }
    
    .treatments-note {
        flex-direction: column;
        padding: 1rem;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-stylish {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .schedule-week {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.3rem;
    }
    
    .schedule-day-card {
        padding: 0.5rem 0.25rem;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }
    
    .day-name {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .day-status {
        font-size: 1rem;
    }
    
    .map-section iframe {
        height: 350px;
    }
    
    .route-card {
        padding: 1.5rem;
    }
    
    .btn-phone-modern,
    .btn-line-modern {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
