/* NIPT診断システム - CSS */

.container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
}


@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}


.backcolor{
    background: #ecf5b8;
    font-family: "Zen Maru Gothic", serif;
    padding: 20px 0;
}

.header {
    background: linear-gradient(135deg, #74b9ff 0%, #a8d8ff 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    color: white;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.3;
}

.header p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.progress-container {
    padding: 30px 30px 15px 30px;
    background: white;
    border-radius: 15px 15px 0 0;
    display: none; /* 追加：初期状態で非表示 */
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fillrec {
    height: 100%;
    background: linear-gradient(90deg, #74b9ff, #a8d8ff);
    border-radius: 6px;
    transition: width 0.6s ease;
    width: 11.11%;
}

.progress-textrec {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.question-container {
    padding: 30px;
    background: white;
    display: none; /* 追加：初期状態で非表示 */
}

.questionrec {
    display: none !important;
    animation: fadeIn 0.5s ease;
}

.questionrec.active {
    display: block !important;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateX(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.questionrec h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
}

.options {
    display: grid;
    gap: 15px;
}

.optionrec {
    padding: 20px 25px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    text-align: center;
}

.optionrec:hover {
    border-color: #74b9ff;
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.15);
}

.optionrec.selected {
    border-color: #74b9ff;
    background: linear-gradient(135deg, #74b9ff, #a8d8ff);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(116, 185, 255, 0.3);
}

.optionrec.selected::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    padding: 0 30px 30px 30px;
    background: white;
    border-radius: 0 0 15px 15px;
    gap: 20px;
    display: none; /* 追加：初期状態で非表示 */
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary2 {
    background: white;
    color: #74b9ff;
    border: 3px solid #74b9ff;
    font-weight: 700;
}

.btn-primary2:hover:not(:disabled) {
    background: #293AB2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.4);
}


.btn-primary3 {
    background: #88CE78;
    color: white;
    border: 3px solid #33AA30;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary3:hover:not(:disabled) {
    background: #fff;
    color: #88CE78;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.4);
}


.btn-secondary {
    background: #F09062;
    color: white;
    border: 3px solid #F25F25;
    padding: 20px 50px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}


.btn-secondary:hover:not(:disabled) {
    background: #fff;
    color: #F09062;
    transform: translateY(-2px);
}



.btn-nextprimary {
    background: white;
    color: #74b9ff;
    border: 3px solid #74b9ff;
    font-weight: 700;
}

.btn-nextprimary:hover:not(:disabled) {
    background: #293AB2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.4);
}

.btn-beforesecondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e8ed;
}

.btn-beforesecondary:hover:not(:disabled) {
    background: #e9ecef;
    transform: translateY(-2px);
}







.resultrec {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.resultrec h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
}

.recommended-course {
    text-align: left;
}

.recommended-course h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #55c57a;
    text-align: center;
    font-weight: 600;
}

.course-card {
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

/* プレミアムコース - オレンジ */
.course-card.premium {
    background: linear-gradient(135deg, #fff8f1 0%, #ffede0 100%);
    border: 2px solid #ff8c42;
}

.course-card.premium .course-title {
    color: #ff8c42;
}

.course-card.premium .course-price {
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ハイグレードコース - 黄色 */
.course-card.highgrade {
    background: linear-gradient(135deg, #fffdf0 0%, #fff8e1 100%);
    border: 2px solid #ffc107;
}

.course-card.highgrade .course-title {
    color: #ffc107;
}

.course-card.highgrade .course-price {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* セレクトコース - 青 */
.course-card.select {
    background: linear-gradient(135deg, #f3f8ff 0%, #e6f3ff 100%);
    border: 2px solid #2196F3;
}

.course-card.select .course-title {
    color: #2196F3;
}

.course-card.select .course-price {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* スタンダードコース - 緑 */
.course-card.standard {
    background: linear-gradient(135deg, #f8fff9 0%, #f0fdf0 100%);
    border: 2px solid #4CAF50;
}

.course-card.standard .course-title {
    color: #4CAF50;
}

.course-card.standard .course-price {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.course-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.course-price {
    font-size: 32px;
    font-weight: 900;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.course-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.course-features {
    margin: 25px 0;
}

.course-features h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #333;
}

.course-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 10px;
    padding: 20px;
}

.course-features li {
    padding: 12px 0;
    position: relative;
    padding-left: 30px;
    color: #555;
    line-height: 1.5;
    border-bottom: 1px solid #f0f2f5;
}

.course-features li:last-child {
    border-bottom: none;
}

.course-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 16px;
    width: 20px;
    height: 20px;
    background: #f8f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-suitable {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.course-suitable strong {
    color: #667eea;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.course-suitable p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.course-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn-large {
    padding: 18px 35px;
    margin: 20px 0 10px 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}






.restart-btn {
    margin-top: 30px;
    background: #6c757d;
    color: white;
    border: 3px solid #e1e8ed;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}


.restart-btn:hover:not(:disabled) {
    background: #5a6268;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
}








/* レスポンシブデザイン */
@media (max-width: 768px) {
 
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .progress-container,
    .question-container,
    .navigation,
    .resultrec {
        padding: 20px;
    }
    
    .questionrec h2 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .optionrec {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .navigation {
        padding: 0 20px 20px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .course-price {
        font-size: 28px;
    }
    
    .course-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
    
    .questionrec h2 {
        font-size: 18px;
    }
    
    .optionrec {
        padding: 15px 18px;
        font-size: 14px;
    }
    
    .course-price {
        font-size: 24px;
    }
}

/* 初期表示の制御 */
.progress-container,
.question-container,
.navigation {
    display: none;
}