/*=========================================
NIPT検査コース専用CSS - 整理版
=========================================*/

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

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

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

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

.nipt-page-title {
    font-size: 3rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: white;
    line-height: 1.2;
}

.nipt-page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: white;
    margin: 0;
}

/* ========== 統合ナビゲーションセクション ========== */
.nipt-unified-nav {
    padding: 50px 0 70px;
    width: 100%;
}

.nav-section-wrapper {
    margin-bottom: 50px;
}

.nav-section-wrapper:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
    margin: 0 0 35px 0;
    position: relative;
    padding-bottom: 15px;
}

.nav-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ボタンに統一シャドウを追加 */
.nipt-nav-btn,
.nipt-nav-btn1 {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.nipt-nav-btn:hover,
.nipt-nav-btn1:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.nipt-nav-btn.active,
.nipt-nav-btn1.active {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 検査項目ボタン */
.nipt-nav-btn1 {
    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.5;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: white;
    border: 3px solid;
    box-sizing: border-box;
    height: auto;
    min-height: 70px;
}

/* ========== ナビゲーションセクション ========== */
.nipt-course-nav {
    padding: 35px 0;
    text-align: center;
    background: #fafafa;
    width: 100%;
}

/* PC画面: 横一列レイアウト */
.nipt-nav-buttons-custom {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: nowrap;
}

.nipt-nav-btn {
    padding: 22px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.5;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    min-height: 70px;
    white-space: nowrap;
    box-sizing: border-box;
}

.nipt-nav-btn.nipt-premium { 
    background: linear-gradient(135deg, #ff6b6b, #ff8e53); 
}

.nipt-nav-btn.nipt-high-grade { 
    background: linear-gradient(135deg, #ffa726, #ff9800); 
}

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

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

.nipt-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

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

/* ========== コースセクション ========== */
.nipt-course-section {
    margin-bottom: 70px;
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-width: 1500px;
}

.nipt-course-section.highlighted {
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
    50% { box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4); }
}

.nipt-course-header {
    text-align: center;
    margin-bottom: 50px;
}

.nipt-course-name {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 0 0 25px 0;
    padding: 25px 50px;
    border-radius: 50px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    line-height: 1.2;
}

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

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

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

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

.nipt-course-price {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

.nipt-course-description {
    font-size: 1.6rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========== テストカードグリッド ========== */
.nipt-test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.nipt-test-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 12px;
    border-left: 5px solid;
    transition: all 0.3s ease;
}

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

.nipt-premium .nipt-test-card { 
    border-color: #ff6b6b; 
}

.nipt-high-grade .nipt-test-card { 
    border-color: #ffa726; 
}

.nipt-select .nipt-test-card { 
    border-color: #42a5f5; 
}

.nipt-standard .nipt-test-card { 
    border-color: #66bb6a; 
}

.nipt-test-title {
    font-size: 1.35rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.4;
}

.nipt-test-detail {
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.8;
}

.nipt-chromosomes {
    background: #e3f2fd;
    padding: 14px;
    border-radius: 8px;
    font-weight: bold;
    color: #1976d2;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.05rem;
}

.nipt-condition-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nipt-condition-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.nipt-condition-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #4caf50;
    font-weight: bold;
    font-size: 1.2rem;
}

.nipt-highlight {
    background: linear-gradient(transparent 60%, #fff59d 60%);
    font-weight: bold;
}

/* ========== タブレット対応 ========== */
@media (max-width: 1200px) {
    .nipt-nav-btn {
        font-size: 1.1rem;
        padding: 20px 30px;
        min-width: 160px;
        min-height: 70px;
    }
}

@media (max-width: 1024px) {
    .nipt-container {
        padding: 50px;
    }
    
    .nipt-nav-btn {
        font-size: 1rem;
        padding: 18px 25px;
        min-width: 140px;
        min-height: 70px;
    }
    
    .nipt-test-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .nav-section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .nav-section-wrapper {
        margin-bottom: 45px;
    }

    .nipt-nav-btn1 {
        font-size: 1rem;
        padding: 16px 20px;
        min-width: 160px;
        max-width: 260px;
        min-height: 70px;
    }
}

/* ========== スマホ対応 ========== */
@media (max-width: 768px) {
    .nipt-container {
        padding: 30px;
    }
    
    .nipt-page-header {
        padding: 50px 0;
    }
    
    .nipt-page-title {
        font-size: 2rem;
    }
    
    .nipt-page-subtitle {
        font-size: 1rem;
    }

    .nipt-unified-nav {
        padding: 40px 0;
    }

    .nav-section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }

    .nav-section-title::after {
        width: 60px;
        height: 3px;
    }

    .nav-section-wrapper {
        margin-bottom: 40px;
    }
    
    .nipt-course-nav {
        padding: 35px 0;
    }
    
    /* スマホ: 2×2グリッドレイアウト */
    .nipt-nav-buttons-custom {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
        gap: 15px;
        max-width: 600px;
        width: 100%;
    }
    
    .nipt-nav-btn {
        font-size: 0.95rem;
        padding: 16px 12px;
        min-width: auto;
        max-width: none;
        width: 100%;
        min-height: 60px;
        display: block;
        box-sizing: border-box;
    }
    
    .nipt-course-section {
        padding: 30px 20px;
        margin: 40px auto;
    }
    
    .nipt-course-name {
        font-size: 1.6rem;
        padding: 15px 25px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nipt-course-price {
        font-size: 1.4rem;
    }
    
    .nipt-course-description {
        font-size: 1rem;
    }
    
    .nipt-test-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nipt-test-card {
        padding: 25px 20px;
    }

    .test-badges {
        width: 100%;
        justify-content: center;
    }

    .mobile-br {
        display: inline;
    }

    .nipt-nav-btn1 {
        font-size: 0.95rem;
        padding: 16px 12px;
        min-width: auto;
        max-width: none;
        width: 100%;
        min-height: 60px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .nipt-nav-btn {
        font-size: 0.85rem;
        padding: 14px 10px;
        min-height: 55px;
    }
    
    .nipt-page-title {
        font-size: 1.6rem;
    }
    
    .nipt-course-name {
        font-size: 1.4rem;
        padding: 12px 20px;
    }

    .nav-section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .nipt-nav-btn1 {
        font-size: 0.9rem;
        padding: 14px 10px;
        min-height: 58px;
        line-height: 1.35;
    }
}

@media (max-width: 360px) {
    .nipt-nav-btn {
        font-size: 0.8rem;
        padding: 12px 8px;
        min-height: 50px;
    }

    .nipt-nav-btn1 {
        font-size: 0.85rem;
        padding: 12px 8px;
        min-height: 55px;
        line-height: 1.3;
    }
}

/* ========== 区切りセクション（コースから検査項目へ） ========== */
.section-divider {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.3), transparent);
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.3), transparent);
}

.divider-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.divider-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.divider-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.divider-subtitle {
    font-size: 1.3rem;
    color: #388e3c;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.divider-description {
    font-size: 1.1rem;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .section-divider {
        padding: 60px 0;
    }

    .divider-icon {
        font-size: 3.5rem;
    }

    .divider-title {
        font-size: 2rem;
    }

    .divider-subtitle {
        font-size: 1.2rem;
    }

    .divider-description {
        font-size: 1rem;
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .section-divider {
        padding: 50px 0;
    }

    .divider-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .divider-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .divider-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .divider-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .section-divider {
        padding: 40px 0;
    }

    .divider-icon {
        font-size: 2.5rem;
    }

    .divider-title {
        font-size: 1.4rem;
    }

    .divider-subtitle {
        font-size: 1rem;
    }

    .divider-description {
        font-size: 0.9rem;
    }
}

/* ========== フッター2 ========== */
#footer2 {
    background-color: #e5e5e5;
    padding: 60px 0 40px;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

#footer2 .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#footer2 nav {
    margin-bottom: 50px;
}

#footer2 nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
}

#footer2 nav ul li {
    margin: 0;
    padding: 0;
    position: relative;
}

#footer2 nav ul li:not(:last-child)::after {
    content: '|';
    color: #666;
    margin: 0 20px;
    font-size: 14px;
}

#footer2 nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
    white-space: nowrap;
}

#footer2 nav ul li a:hover {
    color: #d4a645;
    text-decoration: none;
}

#footer2 nav ul:nth-of-type(2) {
    margin-top: 25px;
}

#footer2 .copyright {
    text-align: center;
    color: #333;
    font-size: 14px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid #ccc;
}

@media (max-width: 1024px) {
    #footer2 {
        padding: 50px 0 35px;
    }

    #footer2 nav ul li:not(:last-child)::after {
        margin: 0 15px;
    }

    #footer2 nav ul li a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    #footer2 {
        padding: 40px 0 30px;
    }

    #footer2 .wrap {
        padding: 0 15px;
    }

    #footer2 nav {
        margin-bottom: 35px;
    }

    #footer2 nav ul {
        flex-direction: column;
        gap: 15px;
    }

    #footer2 nav ul li:not(:last-child)::after {
        display: none;
    }

    #footer2 nav ul:nth-of-type(2) {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid #ccc;
    }

    #footer2 nav ul li a {
        font-size: 14px;
        display: block;
        padding: 5px 0;
    }

    #footer2 .copyright {
        font-size: 12px;
        padding-top: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    #footer2 {
        padding: 30px 0 25px;
    }

    #footer2 nav ul {
        gap: 12px;
    }

    #footer2 nav ul li a {
        font-size: 13px;
    }

    #footer2 .copyright {
        font-size: 11px;
    }
}

/* ========== 予約ボタン(各コース共通) ========== */

/* 予約ボタンコンテナ */
.reservation-button-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #e0e0e0;
}

/* 予約ボタン */
.reservation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #ff8fab 0%, #ffa8c5 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 143, 171, 0.3);
    cursor: pointer;
}

.reservation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 143, 171, 0.5);
    background: linear-gradient(135deg, #ff7a9a 0%, #ff99b5 100%);
    color: white;
}

.reservation-button:active {
    transform: translateY(-1px);
}

.reservation-button::before {
    content: "📅";
    font-size: 1.4rem;
}

/* ========== レスポンシブ対応(予約ボタン) ========== */

@media (max-width: 768px) {
    .reservation-button-container {
        margin-top: 30px;
        padding-top: 25px;
    }

    .reservation-button {
        font-size: 1.15rem;
        padding: 16px 35px;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .reservation-button-container {
        margin-top: 25px;
        padding-top: 20px;
    }

    .reservation-button {
        font-size: 1.1rem;
        padding: 14px 30px;
        max-width: 100%;
    }

    .reservation-button::before {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .reservation-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
}