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

.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    color: #ffffff;
    text-align: center;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

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

.page-header .container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.clinic-main-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    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;
}

/* 院長挨拶 - doctor.htmlと統一 */
.director-greeting {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid rgba(44,122,123,0.15);
}

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

.director-photo {
    width: 200px;
    height: 267px;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
    border-radius: 15px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: none;
    background: linear-gradient(135deg, rgba(44,122,123,0.05), rgba(79,209,197,0.05));
}

.director-name {
    flex: 1;
}

.director-name h3 {
    color: #2D3748;
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.director-name p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.greeting-text {
    line-height: 1.8;
    color: #333;
    margin-top: 0;
}

.greeting-text p {
    margin-bottom: 15px;
}

.greeting-text p:last-child {
    margin-bottom: 0;
}

/* アクセス情報 */
.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: #2C7A7B;
    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-slider {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
}

.gallery-track-container {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item {
    position: relative;
    flex: 0 0 calc(100% / 3);
    padding: 0 10px;
    box-sizing: border-box;
}

.gallery-item-inner {
    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;
}

/* スライダーコントロール */
.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.gallery-prev,
.gallery-next {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.gallery-prev:hover:not(:disabled),
.gallery-next:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.gallery-prev:disabled,
.gallery-next:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ドットインジケーター */
.gallery-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot.active {
    background: var(--secondary-color);
    width: 30px;
    border-radius: 6px;
}

.gallery-dot:hover {
    background: var(--primary-color);
}

/* 旧グリッドギャラリー（スライダー未使用時） */
.clinic-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 50%;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100%;
    }
    
    .gallery-controls {
        gap: 15px;
        margin-top: 20px;
    }
}

@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: 86px;
    }
}

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

@media (max-width: 768px) {
    .page-header {
        margin-top: 90px;
        height: 200px;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .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;
        align-items: center;
    }
    
    .director-photo {
        width: 180px;
        height: 240px;
    }
    
    .director-greeting {
        padding: 30px 25px;
    }
}

/* Instagramセクション */
.instagram-section {
    max-width: 1000px;
    margin: 0 auto;
}

.instagram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(188, 24, 136, 0.3);
}

.instagram-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-link i {
    font-size: 2rem;
}

.instagram-link:hover {
    transform: scale(1.05);
    color: #ffffff;
}

.btn-instagram {
    background: #ffffff;
    color: #bc1888;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.btn-instagram:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Instagramアカウント紹介 */
.instagram-intro {
    max-width: 700px;
    margin: 0 auto;
}

.instagram-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.instagram-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.instagram-card-header {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 50px 30px;
    text-align: center;
    color: #ffffff;
}

.instagram-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.instagram-icon-large i {
    font-size: 3.5rem;
    color: #ffffff;
}

.instagram-card-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.instagram-handle {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.instagram-card-body {
    padding: 40px 30px;
}

.instagram-description {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555555;
    text-align: center;
    margin-bottom: 35px;
}

.instagram-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.instagram-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.instagram-feature-item:hover {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    border-color: #e6683c;
    transform: translateX(5px);
}

.instagram-feature-item i {
    font-size: 1.4rem;
    color: #e6683c;
}

.instagram-feature-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333333;
}

.instagram-card-footer {
    padding: 30px;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.btn-instagram-follow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #f09433, #bc1888);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(188, 24, 136, 0.3);
}

.btn-instagram-follow:hover {
    background: linear-gradient(135deg, #bc1888, #f09433);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(188, 24, 136, 0.4);
}

.btn-instagram-follow i {
    font-size: 1.4rem;
}

.instagram-note {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #bc1888;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 30px;
}

.instagram-note i {
    color: #bc1888;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .instagram-card-header {
        padding: 40px 25px;
    }
    
    .instagram-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .instagram-icon-large i {
        font-size: 2.8rem;
    }
    
    .instagram-card-header h3 {
        font-size: 1.4rem;
    }
    
    .instagram-handle {
        font-size: 1.1rem;
    }
    
    .instagram-card-body {
        padding: 30px 20px;
    }
    
    .instagram-description {
        font-size: 1rem;
    }
    
    .instagram-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn-instagram-follow {
        padding: 16px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .instagram-card-header {
        padding: 35px 20px;
    }
    
    .instagram-icon-large {
        width: 70px;
        height: 70px;
    }
    
    .instagram-icon-large i {
        font-size: 2.5rem;
    }
    
    .instagram-card-header h3 {
        font-size: 1.2rem;
    }
    
    .instagram-handle {
        font-size: 1rem;
    }
    
    .instagram-description {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    
    .instagram-feature-item {
        padding: 12px 15px;
    }
    
    .instagram-feature-item i {
        font-size: 1.2rem;
    }
    
    .instagram-feature-item span {
        font-size: 0.9rem;
    }
    
    .btn-instagram-follow {
        width: 100%;
        padding: 15px 30px;
        font-size: 0.95rem;
    }
}
