/*=========================================
NIPT検査項目詳細セクション CSS - 整理版
=========================================*/

/* 検査項目詳細セクション全体 */
.nipt-detail-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin-bottom: 50px;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ========== ヘッダーセクション ========== */
.detail-header {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    margin: 0;
    width: 100%;
}

.nipt-container1 {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
}

.nipt-course-page1 * {
    box-sizing: border-box;
}

.nipt-course-page1 {
    font-family: 'Zen Maru Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.detail-main-title {
    font-size: 2.8rem;
    font-weight: bold;
    color: #3d2817;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.detail-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #e65100;
    border-radius: 2px;
}

.detail-subtitle {
    font-size: 1.3rem;
    color: #3d2817;
    margin-top: 30px;
    line-height: 1.8;
}

.detail-subtitle strong {
    color: #e65100;
    font-size: 1.6rem;
}

/* 検査の詳細ボタン */
.nipt-nav-btn1 {
    padding: 22px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    white-space: nowrap;
    background: white;
    border: 3px solid;
}

.nipt-course-nav1,
.nipt-course-nav2 {
    text-align: center;
    background: #fafafa;
    padding: 35px 0;
    width: 100%;
}

.nipt-nav-btn1.active {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 各カテゴリーのボタンスタイル */
.nipt-nav-btn1.micro-category { 
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.nipt-nav-btn1.micro-category:hover {
    background: #fff5f5;
}

.nipt-nav-btn1.sex-category { 
    border-color: #ff9800;
    color: #ff9800;
}

.nipt-nav-btn1.sex-category:hover {
    background: #fff8f0;
}

.nipt-nav-btn1.all-category { 
    border-color: #1e88e5;
    color: #1e88e5;
}

.nipt-nav-btn1.all-category:hover {
    background: #f0f7ff;
}

.nipt-nav-btn1.three-category { 
    border-color: #4caf50;
    color: #4caf50;
}

.nipt-nav-btn1.three-category:hover {
    background: #f1f8f4;
}

.mobile-br {
    display: none;
}

/* カテゴリーセクション */
.category-section {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 6px solid #667eea;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.category-description {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 40px;
    padding-left: 26px;
    line-height: 1.9;
}

/* コースバッジ */
.course-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 30px;
}

.course-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}

.course-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.course-badge.premium {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.course-badge.high-grade {
    background: linear-gradient(135deg, #ffa726, #ff9800);
}

.course-badge.select {
    background: linear-gradient(135deg, #42a5f5, #1e88e5);
}

.course-badge.standard {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
}

/* 検査項目バッジ */
.test-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 30px;
}

.test-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    cursor: pointer;
    background: white;
    border: 2.5px solid;
}

.test-badge:hover {
    transform: translateY(-2px);
}

.test-badge.three-test {
    border-color: #4caf50;
    color: #4caf50;
}

.test-badge.three-test:hover {
    background: #f1f8f4;
}

.test-badge.all-test {
    border-color: #1e88e5;
    color: #1e88e5;
}

.test-badge.all-test:hover {
    background: #f0f7ff;
}

.test-badge.sex-test {
    border-color: #ff9800;
    color: #ff9800;
}

.test-badge.sex-test:hover {
    background: #fff8f0;
}

.test-badge.micro-test {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.test-badge.micro-test:hover {
    background: #fff5f5;
}

/* 検査項目カードグリッド */
.test-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* 検査項目カード */
.test-item-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 5px solid #667eea;
}

.test-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* 3つの染色体検査セクション内のカード */
#three-category .test-item-card {
    background: #f9fdf9;
    border-top: 5px solid #4caf50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
}

#three-category .test-item-card:hover {
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.25);
}

#three-category .category-title {
    border-left-color: #4caf50;
    color: #2d5016;
}

#three-category .chromosome-badge {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
}

#three-category .symptoms-list {
    background: #f1f8f4;
}

#three-category .symptoms-list li::before {
    color: #4caf50;
}

/* 全染色体検査セクション内のカード */
#all-category .sex-chromosome-section2 {
    background: #f0f9ff;
}

#all-category .category-title {
    border-left-color: #1e88e5;
    color: #0d3c61;
}

#all-category .sex-disease-card {
    background: #f9fcff;
    border-left: 4px solid #1e88e5;
    box-shadow: 0 2px 10px rgba(30, 136, 229, 0.1);
}

#all-category .expert-note {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(30, 136, 229, 0.12));
    border-left: 5px solid #1e88e5;
}

#all-category .expert-note-title {
    color: #1e88e5;
}

/* 性染色体検査セクション内のカード */
#sex-category .category-title {
    border-left-color: #ff9800;
    color: #663c00;
}

#sex-category .sex-disease-card {
    background: #fffbf5;
    border-left: 4px solid #ff9800;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.1);
}

#sex-category .sex-chromosome-section .chromosome-badge,
#sex-category .chromosome-badge {
    background: linear-gradient(135deg, #ffa726, #ff9800);
}

#sex-category .symptoms-list {
    background: #fff8f0;
}

#sex-category .symptoms-list li::before {
    color: #ff9800;
}

#sex-category .frequency-badge {
    background: #fff3e0;
    color: #e65100;
}

#sex-category .expert-note {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08), rgba(255, 152, 0, 0.12));
    border-left: 5px solid #ff9800;
}

#sex-category .expert-note-title {
    color: #ff9800;
}

/* 微小欠失症候群セクション内のカード */
#micro-category .category-title {
    border-left-color: #ff6b6b;
    color: #5c1a1a;
}

#micro-category .microdeletion-card {
    background: #fffafa;
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.1);
}

#micro-category .microdeletion-card:hover {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

#micro-category .symptoms-list,
.microdeletion-section .symptoms-list {
    background: #fff5f5;
}

#micro-category .symptoms-list li::before,
.microdeletion-section .symptoms-list li::before {
    color: #ff6b6b;
}

#micro-category .frequency-badge {
    background: #ffe6e6;
    color: #c0392b;
}

#micro-category .expert-note {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(255, 107, 107, 0.12));
    border-left: 5px solid #ff6b6b;
}

#micro-category .expert-note-title {
    color: #ff6b6b;
}

/* カード内の共通要素 */
.chromosome-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.disease-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 12px;
}

.disease-name-en {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.info-section {
    margin-bottom: 20px;
}

.info-label {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.info-content {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}

.frequency-badge {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.symptoms-list {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 10px;
    margin-top: 15px;
}

.symptoms-list ul {
    list-style: none;
    padding: 0;
}

.symptoms-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 1.05rem;
    color: #555;
}

.symptoms-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 1rem;
}

/* 性染色体セクション */
.sex-chromosome-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 70px;
}

#three-category.sex-chromosome-section {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
}

#all-category.sex-chromosome-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f7ff 100%);
    box-shadow: 0 4px 20px rgba(30, 136, 229, 0.15);
}

#sex-category .sex-chromosome-section {
    background: linear-gradient(135deg, #ffe0b2 0%, #fff8f0 100%);
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.15);
}

.sex-chromosome-section2 {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.sex-diseases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.sex-disease-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #42a5f5;
}

.sex-disease-card h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.sex-disease-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

/* 微小欠失症候群セクション */
.microdeletion-section {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.15);
}

.microdeletion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.microdeletion-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
}

.microdeletion-card h5 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #2c3e50;
}

.microdeletion-card h5 span {
    font-size: 1rem;
    color: #7f8c8d;
}

.microdeletion-card p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin: 15px 0;
}

.microdeletion-card .frequency-badge {
    background: #ffe6e6;
    color: #c0392b;
}

/* 専門家の見解ボックス */
.expert-note,
.expert-note2 {
    background: linear-gradient(135deg, #667eea15, #764ba215);
    border-left: 5px solid #667eea;
    padding: 25px 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.expert-note-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.expert-note-title::before {
    content: "💡";
    margin-right: 10px;
    font-size: 1.5rem;
}

.expert-note-content {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
}

.expert-note.summary {
    background: linear-gradient(135deg, #667eea25, #764ba225);
    border-left: 6px solid #667eea;
    margin: 30px;
}

.expert-note.summary .expert-note-title {
    font-size: 1.5rem;
}

.expert-note.summary .expert-note-content {
    font-size: 1.1rem;
}

/* ========== レスポンシブ対応 ========== */
@media (max-width: 1024px) {
    .test-items-grid,
    .sex-diseases-grid,
    .microdeletion-grid {
        grid-template-columns: 1fr;
    }

    .detail-main-title {
        font-size: 2.2rem;
    }

    .category-title {
        font-size: 1.8rem;
    }

    .nipt-container1 {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .nipt-page-header1 {
        padding: 50px 0;
    }

    .nipt-detail-section {
        padding: 50px 0;
    }

    .detail-main-title {
        font-size: 1.8rem;
    }

    .detail-subtitle {
        font-size: 1.1rem;
        margin: 30px 30px 0 30px;
    }

    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .course-badges,
    .test-badges {
        margin-left: 0;
        margin-top: 10px;
    }

    .course-badge,
    .test-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .test-item-card,
    .sex-chromosome-section,
    .microdeletion-section {
        padding: 25px 20px;
        margin: 40px 0;
    }

    .disease-name {
        font-size: 1.5rem;
    }

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

    .nipt-course-nav1,
    .nipt-course-nav2 {
        padding: 35px 0;
    }

    .nipt-container1 {
        padding: 0 20px;
    }

    .mobile-br {
        display: block;
    }

    .nipt-nav-btn1 {
        font-size: 0.95rem;
        padding: 16px 12px;
        min-width: auto;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .detail-main-title {
        font-size: 1.6rem;
    }

    .category-title {
        font-size: 1.3rem;
        padding-left: 15px;
    }

    .category-description {
        padding-left: 21px;
        font-size: 1rem;
    }

    .test-item-card,
    .sex-chromosome-section,
    .microdeletion-section {
        padding: 20px 15px;
    }

    .expert-note {
        padding: 20px;
    }

    .expert-note-title {
        font-size: 1.1rem;
    }

    .expert-note-content {
        font-size: 0.95rem;
    }

    .nipt-nav-btn1 {
        font-size: 0.85rem;
        padding: 14px 10px;
    }
}