/* クリニック詳細ページ専用CSS */

.page-header {
    margin-top: 120px;
    background: linear-gradient(135deg, #1a4d7a, #2e6ba0);
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.95;
    letter-spacing: 0.1em;
}

/* クリニック概要 */
.clinic-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
    align-items: start;
}

.clinic-main-image {
    position: sticky;
    top: 140px;
}

.clinic-main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.clinic-details h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.clinic-lead {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* 院長挨拶 */
.director-greeting {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.director-info {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}

.director-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 3px solid var(--white);
}

.director-name h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.director-name p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.greeting-text {
    line-height: 1.9;
    color: var(--text-dark);
}

/* アクセス情報 */
.access-info {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.access-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    text-align: left;
    padding: 18px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
    width: 150px;
}

.info-table td {
    padding: 18px 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

.info-table td a {
    color: var(--primary-color);
    font-weight: 600;
}

.info-table td a:hover {
    text-decoration: underline;
}

/* Googleマップ */
.map-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* 特徴セクション */
.clinic-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-box i {
    font-size: 2.5rem;
    color: #1a4d7a;
    margin-bottom: 15px;
}

.feature-box h4 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.feature-box p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ギャラリー */
.clinic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

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

/* 東京院エントランス画像の位置調整 */
.gallery-item img.entrance-img {
    object-position: center 15%;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 20px 15px 15px;
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 968px) {
    .clinic-overview {
        grid-template-columns: 1fr;
    }
    
    .clinic-main-image {
        position: relative;
        top: 0;
    }
    
    .clinic-main-image img {
        height: 350px;
    }
    
    .page-header {
        margin-top: 70px;
    }
}

@media (max-width: 576px) {
    .clinic-main-image img {
        height: 280px;
    }
    
}

@media (max-width: 768px) {
    .page-header {
        margin-top: 70px;
        padding: 40px 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
        padding: 12px 15px;
    }
    
    .info-table th {
        padding-bottom: 8px;
    }
    
    .info-table td {
        padding-top: 0;
        padding-bottom: 20px;
    }
    
    .director-info {
        flex-direction: column;
        text-align: center;
    }
}
