/* ========================================
   診療内容ページ専用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 .container {
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    margin: 0;
}

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

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

/* 診療カテゴリー一覧 */
.treatment-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

.badge-main {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #F6AD55 0%, #FBD38D 100%);
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(246, 173, 85, 0.4);
}

.treatment-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F6AD55 0%, #FBD38D 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
}

.supplement-info {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
}

.supplement-item {
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 20px;
}

.supplement-item:last-child {
    margin-bottom: 0;
}

.supplement-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.supplement-price {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin: 10px 0 15px 0;
}

.supplement-item p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.aga-treatment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.treatment-method {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.method-content h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.method-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

.price-note-top {
    text-align: center;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.category-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 診療詳細セクション */
.treatment-detail {
    scroll-margin-top: 120px;
}

.treatment-detail.bg-light {
    background: var(--bg-light);
}

.treatment-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

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

.treatment-header h2 i {
    margin-right: 10px;
}

.treatment-header .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.treatment-header-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* コンテンツセクション */
.treatment-content {
    max-width: 1000px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 50px;
}

.content-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.content-section h3 i {
    margin-right: 10px;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* チェックリスト */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 12px 0 12px 35px;
    position: relative;
    color: var(--text-dark);
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* 効果グリッド */
.effect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.effect-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.effect-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.effect-item h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.effect-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* 成分グリッド */
.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.ingredient-item {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.ingredient-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ingredient-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* 料金セクション */
.price-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    margin-top: 50px;
}

.price-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.price-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.price-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
}

.price-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.price-item.featured {
    border: 3px solid var(--accent-color);
    transform: scale(1.05);
}

.price-item .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-item h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.price-item .price {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 15px 0;
}

.price-item .price-desc {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.price-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 20px;
}

/* FAQ セクション */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-question h4 {
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 30px 25px 70px;
    color: var(--text-gray);
    line-height: 1.8;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    display: block;
    max-height: 1000px;
    padding: 20px 30px 25px 70px;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #F6AD55;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer p {
    margin: 0;
}

/* 検査一覧セクション */
.examinations-section {
    background: var(--white);
}

.examination-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.examination-item {
    background: #f8f6f3;
    padding: 30px 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.examination-item:hover {
    background: #ffffff;
    border-color: #2C7A7B;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.exam-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2C7A7B, #4FD1C5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exam-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.exam-content h4 {
    color: #2C7A7B;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.exam-content p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.examination-note {
    background: linear-gradient(135deg, rgba(26, 77, 122, 0.05), rgba(46, 107, 160, 0.05));
    padding: 20px 30px;
    border-radius: 10px;
    border-left: 4px solid #2C7A7B;
}

.examination-note p {
    margin: 0;
    color: #2c2c2c;
    font-size: 0.95rem;
    line-height: 1.7;
}

.examination-note i {
    color: #2C7A7B;
    margin-right: 10px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .page-header {
        margin-top: 86px;
        height: 220px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    /* ページヘッダーのボタンサイズ調整 */
    .page-header button[style*="font-size: 1.2rem"],
    .page-header .btn-modern[style*="font-size: 1.2rem"] {
        font-size: 1.05rem !important;
        padding: 1rem 2.5rem !important;
    }

    .treatment-categories {
        grid-template-columns: 1fr;
    }

    .treatment-header {
        grid-template-columns: 1fr;
    }

    .effect-grid,
    .ingredient-grid,
    .price-table {
        grid-template-columns: 1fr;
    }

    .price-item.featured {
        transform: scale(1);
    }

    .faq-answer {
        padding: 0 20px 20px 20px;
    }
    
    .examination-list {
        grid-template-columns: 1fr;
    }
    
    .examination-item {
        padding: 25px 20px;
    }
    
    .examination-note {
        padding: 15px 20px;
    }
    
    .aga-treatment-methods {
        grid-template-columns: 1fr;
    }
    
    .treatment-method {
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon {
        margin: 0 auto;
    }
    
    /* ========================================
       カテゴリーカードのアイコン responsive fixes
       ======================================== */
    /* 80px x 80px のカテゴリーアイコン */
    .category-card div[style*="width: 80px"][style*="height: 80px"] {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
    }
    
    .category-card div[style*="width: 80px"][style*="height: 80px"] i {
        font-size: 1.6rem !important;
    }
    
    /* ========================================
       点滴カードのアイコン responsive fixes
       ======================================== */
    /* 60px x 60px の点滴アイコン */
    .infusion-card div[style*="width: 60px"][style*="height: 60px"] {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        flex-shrink: 0 !important;
    }
    
    .infusion-card div[style*="width: 60px"][style*="height: 60px"] i {
        font-size: 1.5rem !important;
    }
    
    /* 治療体系セクションのアイコン */
    section[style*="display: flex"][style*="gap: 1.5rem"] > div[style*="width: 60px"][style*="height: 60px"] {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        min-height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
        flex-shrink: 0 !important;
    }
    
    section[style*="display: flex"][style*="gap: 1.5rem"] > div[style*="width: 60px"][style*="height: 60px"] i {
        font-size: 1.5rem !important;
    }
    
    /* ========================================
       グリッドレイアウト responsive fixes
       ======================================== */
    /* 治療カテゴリーのグリッド */
    div[style*="display: grid"][style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* 点滴治療カードのグリッド */
    div[style*="display: grid"][style*="grid-template-columns: repeat(auto-fit, minmax(340px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* NAD+療法の2カラムグリッド */
    div[style*="display: grid"][style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* 栄養療法の3カラムグリッド */
    div[style*="display: grid"][style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    /* ========================================
       見出しとテキストサイズ調整（768px以下）
       ======================================== */
    /* セクション見出し（h2） */
    section h2[style*="font-size: 2.5rem"],
    section h2[style*="font-size: 2.8rem"],
    div h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
    
    section h3[style*="font-size: 1.5rem"],
    div h3[style*="font-size: 1.5rem"],
    div h3[style*="font-size: 1.4rem"] {
        font-size: 1.3rem !important;
    }
    
    /* リード文のサイズ調整 */
    section p[style*="font-size: 1.15rem"],
    section p[style*="font-size: 1.2rem"] {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 200px;
        padding: 15px 10px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header p {
        font-size: 0.9rem;
    }
    
    /* ========================================
       カテゴリーカード 480px以下
       ======================================== */
    .category-card div[style*="width: 80px"][style*="height: 80px"] {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }
    
    .category-card div[style*="width: 80px"][style*="height: 80px"] i {
        font-size: 1.4rem !important;
    }
    
    /* ========================================
       点滴カードアイコン 480px以下
       ======================================== */
    .infusion-card div[style*="width: 60px"][style*="height: 60px"] {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
    
    .infusion-card div[style*="width: 60px"][style*="height: 60px"] i {
        font-size: 1.3rem !important;
    }
    
    /* 治療体系セクションのアイコン 480px以下 */
    section[style*="display: flex"][style*="gap: 1.5rem"] > div[style*="width: 60px"][style*="height: 60px"] {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
    
    section[style*="display: flex"][style*="gap: 1.5rem"] > div[style*="width: 60px"][style*="height: 60px"] i {
        font-size: 1.3rem !important;
    }
    
    /* ========================================
       ボタン responsive
       ======================================== */
    /* ページヘッダーのCTAボタン */
    div[style*="display: flex"][style*="gap: 1.5rem"] button,
    div[style*="display: flex"][style*="gap: 1.5rem"] a.btn-modern {
        font-size: 0.95rem !important;
        padding: 0.9rem 1.8rem !important;
    }
    
    /* CTAセクションの見出しとボタン */
    section.cta-section h2[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    section.cta-section p[style*="font-size: 1.2rem"] {
        font-size: 0.95rem !important;
    }
    
    section.cta-section a.btn-cta,
    section.cta-section a.btn-cta-outline {
        font-size: 0.95rem !important;
        padding: 0.9rem 2rem !important;
    }
    
    /* ========================================
       パディング調整
       ======================================== */
    .infusion-card {
        padding: 1.5rem !important;
    }
    
    /* ========================================
       見出しとテキストサイズ調整（480px以下）
       ======================================== */
    /* セクション見出し（h2） */
    section h2,
    .section-title h2 {
        font-size: 1.6rem !important;
    }
    
    /* カテゴリーカード見出し */
    .category-card h3 {
        font-size: 1.15rem !important;
    }
    
    /* 点滴カード見出し */
    .infusion-card h3 {
        font-size: 1.2rem !important;
    }
    
    /* 点滴カードのテキスト */
    .infusion-card p {
        font-size: 0.9rem !important;
    }
    
    /* インラインスタイルの大きな見出しを調整 */
    section h2[style*="font-size: 2.5rem"],
    section h2[style*="font-size: 2.8rem"],
    div h2[style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
    }
    
    section h3[style*="font-size: 1.5rem"],
    div h3[style*="font-size: 1.5rem"],
    div h3[style*="font-size: 1.4rem"] {
        font-size: 1.2rem !important;
    }
    
    section h4[style*="font-size: 1.2rem"],
    div h4[style*="font-size: 1.2rem"],
    div h4[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }
    
    /* リード文のサイズ調整 */
    section p[style*="font-size: 1.15rem"],
    section p[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
    }
    
    section p[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
    }
    
    section p[style*="font-size: 1.05rem"] {
        font-size: 0.92rem !important;
    }
}
