/* ======================================
   クリニック個別ページ専用CSS v9.0
   Design System v9.0 準拠
   Deep Teal #0A3D3D | Sage Green #4A6B5B | Gold #C9A961
   ====================================== */

/* ==========================================================================
   1. ページ全体の基本設定
   ========================================================================== */

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #2D3748;
    line-height: 1.7;
    background: #ffffff;
}

.section {
    padding: 4rem 0;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.section-title p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #4A5568;
    line-height: 1.8;
}

/* ==========================================================================
   3. ヒーローセクション最適化レイアウト
   ========================================================================== */

.hero-optimized {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-main-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.lead-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #4A5568;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-main-image-optimized {
    position: relative;
    margin: 0;
}

.hero-main-image-optimized picture {
    display: block;
    width: 100%;
}

.hero-main-image-optimized img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(10, 61, 61, 0.15);
}

/* ==========================================================================
   4. 院長紹介セクション最適化
   ========================================================================== */

.director-section-optimized {
    background: #F7FAFC;
    padding: 4rem 0;
}

.director-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(10, 61, 61, 0.08);
}

.director-image-wrapper {
    position: relative;
}

.director-image-optimized {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10, 61, 61, 0.12);
}

.director-badge {
    margin-top: 1.5rem;
    text-align: center;
}

.director-badge h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 0.5rem;
}

.director-badge p {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

.director-message h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.director-message p {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.director-message p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   5. 経歴・資格セクション
   ========================================================================== */

.credentials-section {
    background: #ffffff;
    padding: 4rem 0;
}

.credentials-content {
    background: #F7FAFC;
    padding: 3rem;
    border-radius: 16px;
    border-left: 4px solid #0A3D3D;
}

.credentials-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
}

.credentials-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credentials-content li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
}

.credentials-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4A6B5B;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ==========================================================================
   6. 女性の健康サポートセクション (京都院専用)
   ========================================================================== */

.women-health-section {
    background: linear-gradient(135deg, rgba(10, 61, 61, 0.03) 0%, rgba(74, 107, 91, 0.03) 100%);
    padding: 4rem 0;
}

.women-health-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(10, 61, 61, 0.08);
}

.women-health-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    text-align: center;
}

.women-health-content p {
    font-size: 1rem;
    color: #4A5568;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

/* ==========================================================================
   7. 診療内容セクション
   ========================================================================== */

.bg-light {
    background: #F7FAFC;
}

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

.treatment-card,
.treatment-card-optimized {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(10, 61, 61, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #0A3D3D;
}

.treatment-card:hover,
.treatment-card-optimized:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(10, 61, 61, 0.15);
}

.treatment-card h3,
.treatment-card-optimized h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.treatment-card h3 i,
.treatment-card-optimized h3 i {
    font-size: 1.5rem;
    color: #4A6B5B;
}

.treatment-card h4,
.treatment-card-optimized h4,
.treatment-benefits h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A3D3D;
    margin: 1.5rem 0 0.75rem 0;
}

.treatment-card p,
.treatment-card-optimized p {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 0;
}

.treatment-card ul,
.treatment-card-optimized ul,
.treatment-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.treatment-card li,
.treatment-card-optimized li,
.treatment-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: #4A5568;
    font-size: 0.9rem;
    position: relative;
}

.treatment-card li::before,
.treatment-card-optimized li::before,
.treatment-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4A6B5B;
    font-weight: bold;
}

/* ==========================================================================
   8. アクセス・診療情報セクション
   ========================================================================== */

.access-clinic-info {
    background: #F7FAFC;
    padding: 4rem 0;
}

.access-grid,
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.access-info-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(10, 61, 61, 0.08);
}

.access-info-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.access-info-card h3 i {
    color: #4A6B5B;
    font-size: 1.3rem;
}

.info-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #E2E8F0;
}

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

.clinic-info-box {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(10, 61, 61, 0.08);
}

.clinic-info-box h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E2E8F0;
}

.info-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid #E2E8F0;
}

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

.info-label {
    font-weight: 600;
    color: #2D3748;
    min-width: 100px;
    flex-shrink: 0;
}

.info-value {
    color: #4A5568;
    line-height: 1.7;
}

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

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

/* ==========================================================================
   9. 診療カレンダー
   ========================================================================== */

.calendar-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(10, 61, 61, 0.08);
    margin-top: 2rem;
}

.calendar-wrapper h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1.5rem;
    text-align: center;
}

.schedule-calendar {
    margin-top: 1rem;
}

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

.schedule-day-card {
    background: #F7FAFC;
    padding: 1.5rem 0.75rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.schedule-day-card.available {
    background: #E6F4F1;
    border-color: #0A3D3D;
}

.schedule-day-card.closed {
    background: #FED7D7;
    border-color: #E53E3E;
}

.schedule-day-card.irregular {
    background: #FEF5E7;
    border-color: #D69E2E;
}

.schedule-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 61, 61, 0.15);
}

.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;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-header {
    background: linear-gradient(135deg, #0A3D3D 0%, #4A6B5B 100%);
    color: #ffffff;
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.calendar-day.open {
    background: #E6F4F1;
    color: #0A3D3D;
}

.calendar-day.closed {
    background: #FED7D7;
    color: #C53030;
}

.calendar-day.irregular {
    background: #FEF5E7;
    color: #975A16;
}

.calendar-day:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(10, 61, 61, 0.2);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.open {
    background: #E6F4F1;
}

.legend-color.closed {
    background: #FED7D7;
}

.legend-color.irregular {
    background: #FEF5E7;
}

/* ==========================================================================
   10. Googleマップ
   ========================================================================== */

.map-container,
.map-section {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 61, 61, 0.12);
}

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

/* ==========================================================================
   11. 院内設備セクション
   ========================================================================== */

.facilities-section {
    background: #ffffff;
    padding: 4rem 0;
}

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

.facility-card,
.facility-card-optimized {
    background: #F7FAFC;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.facility-card:hover,
.facility-card-optimized:hover {
    background: #ffffff;
    border-color: #0A3D3D;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 61, 61, 0.1);
}

.facility-card i,
.facility-card-optimized i {
    font-size: 2.5rem;
    color: #0A3D3D;
    margin-bottom: 1rem;
}

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

.facility-card p,
.facility-card-optimized p {
    font-size: 0.9rem;
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

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

.gallery-section {
    background: #F7FAFC;
    padding: 4rem 0;
}

.gallery-grid,
.gallery-grid-optimized {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item,
.gallery-item-optimized {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #ffffff;
}

.gallery-item:hover,
.gallery-item-optimized:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img,
.gallery-item-optimized img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img,
.gallery-item-optimized:hover img {
    opacity: 0.95;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    color: #2D3748;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   13. アクセス経路セクション
   ========================================================================== */

.access-routes {
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(10, 61, 61, 0.08);
}

.access-routes h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 2rem;
    text-align: center;
}

.route-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #E2E8F0;
}

.route-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.route-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.route-item h4 i {
    color: #4A6B5B;
}

.route-item ol {
    padding-left: 1.5rem;
    margin: 0;
}

.route-item li {
    padding: 0.5rem 0;
    color: #4A5568;
    line-height: 1.7;
}

.route-note {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    background: #F7FAFC;
    border-left: 4px solid #4A6B5B;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #4A5568;
}

.route-note i {
    color: #4A6B5B;
    margin-right: 0.5rem;
}

/* ==========================================================================
   14. 採用情報セクション
   ========================================================================== */

.recruitment-cta {
    background: linear-gradient(135deg, #F7FAFC 0%, #E6F4F1 100%);
    padding: 4rem 0;
    text-align: center;
}

.recruitment-cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #0A3D3D;
    margin-bottom: 1rem;
}

.recruitment-cta p {
    font-size: 1.1rem;
    color: #4A5568;
    margin-bottom: 2rem;
}

.btn-recruitment {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #C9A961 0%, #FBD38D 100%);
    color: #ffffff;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
    transition: all 0.3s ease;
}

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

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

@media (max-width: 968px) {
    .hero-optimized {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-main-image-optimized {
        order: -1;
    }
    
    .director-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
    
    .director-image-wrapper {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .info-grid,
    .access-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .schedule-week {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.5rem;
    }
    
    .schedule-day-card {
        padding: 1rem 0.5rem;
    }
    
    .day-name {
        font-size: 0.8rem;
    }
    
    .day-status {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .hero-optimized {
        gap: 1.5rem;
    }
    
    .director-container {
        padding: 1.5rem;
    }
    
    .director-message h3 {
        font-size: 1.3rem;
    }
    
    .credentials-content {
        padding: 2rem 1.5rem;
    }
    
    .women-health-content {
        padding: 2rem 1.5rem;
    }
    
    .treatment-grid,
    .treatments-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .clinic-info-box,
    .access-info-card {
        padding: 2rem 1.5rem;
    }
    
    .info-item,
    .info-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .info-label {
        min-width: auto;
        font-weight: 700;
    }
    
    .schedule-week {
        gap: 0.5rem;
    }
    
    .schedule-day-card {
        padding: 0.75rem 0.35rem;
    }
    
    .day-name {
        font-size: 0.75rem;
    }
    
    .day-status {
        font-size: 0.95rem;
    }
    
    .calendar-wrapper {
        padding: 1.5rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-header {
        padding: 0.75rem 0.25rem;
        font-size: 0.75rem;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
    
    .calendar-legend {
        gap: 1rem;
    }
    
    .map-container iframe,
    .map-section iframe {
        height: 350px;
    }
    
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid,
    .gallery-grid-optimized {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item img,
    .gallery-item-optimized img {
        height: 240px;
    }
    
    .access-routes {
        padding: 2rem 1.5rem;
    }
    
    .recruitment-cta {
        padding: 3rem 0;
    }
    
    .btn-recruitment {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   16. 予約ボタン (電話・LINE)
   ========================================================================== */

.btn-phone-modern,
.btn-line-modern {
    cursor: pointer;
    text-decoration: none;
    padding: 1.125rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-phone-modern {
    background: linear-gradient(135deg, #F6AD55 0%, #FBD38D 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
}

.btn-phone-modern:hover {
    background: linear-gradient(135deg, #ED8936 0%, #F6AD55 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 173, 85, 0.4);
}

.btn-line-modern {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
}

.btn-line-modern:hover {
    background: linear-gradient(135deg, #00B900 0%, #06C755 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.btn-phone-modern i,
.btn-line-modern i {
    font-size: 1.2rem;
}

/* レスポンシブ - モバイル */
@media (max-width: 768px) {
    .btn-phone-modern,
    .btn-line-modern {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .btn-phone-modern,
    .btn-line-modern {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .director-image-wrapper {
        max-width: 250px;
    }
    
    .schedule-week {
        gap: 0.35rem;
    }
    
    .schedule-day-card {
        padding: 0.6rem 0.25rem;
    }
    
    .day-name {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }
    
    .day-status {
        font-size: 0.9rem;
    }
    
    .calendar-header {
        font-size: 0.7rem;
        padding: 0.5rem 0.15rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}
