/* ========================================
   スクロールポップアップ
   ======================================== */

/* オーバーレイ */
.scroll-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ポップアップ本体 */
.scroll-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F8 100%);
    border-radius: 20px;
    padding: 35px 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 閉じるボタン */
.scroll-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
}

.scroll-popup-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

/* タイトル */
.scroll-popup-title {
    font-size: 22px;
    font-weight: 700;
    color: #5BA3F5;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #E8F4FF;
}

/* サブタイトル */
.scroll-popup-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
}

/* コンテンツリスト */
.scroll-popup-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.scroll-popup-list li {
    position: relative;
    padding: 12px 0 12px 35px;
    font-size: 16px;
    color: #444;
    border-bottom: 1px dashed rgba(91, 163, 245, 0.2);
}

.scroll-popup-list li:last-child {
    border-bottom: none;
}

.scroll-popup-list li::before {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #6EDFA6 0%, #7FE5B4 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* メッセージ */
.scroll-popup-message {
    background: none;
    color: #E91E63;
    text-align: center;
    padding: 15px 0;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* 注釈 */
.scroll-popup-note {
    font-size: 13px;
    color: #888;
    text-align: center;
    line-height: 1.6;
}

/* オレンジ色の注釈 */
.scroll-popup-note-orange {
    font-size: 13px;
    color: #e67e22;
    text-align: center;
    line-height: 1.6;
    margin-top: 10px;
    font-weight: 600;
}

/* ========================================
   料金内容ボタン（検査コースカード内）
   ======================================== */
.price-detail-btn-wrapper {
    text-align: center;
    padding: 10px 0 5px 0 !important;
    border-bottom: none !important;
}

.price-detail-btn-wrapper::before {
    display: none !important;
}

.price-detail-btn {
    background: linear-gradient(135deg, #FF9EBE 0%, #FFB6C1 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: priceButtonPulse 2s ease-in-out infinite;
}

.price-detail-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(255, 158, 190, 0.5);
    animation: none;
}

/* ボタンのパルスアニメーション */
@keyframes priceButtonPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 158, 190, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 158, 190, 0.6);
    }
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
    .scroll-popup {
        padding: 30px 25px;
        max-width: 380px;
        max-height: 85vh;
    }

    .scroll-popup-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .scroll-popup-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .scroll-popup-list li {
        font-size: 15px;
        padding: 10px 0 10px 32px;
    }

    .scroll-popup-list li::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .scroll-popup-message {
        font-size: 18px;
        padding: 12px 0;
    }

    .scroll-popup-note {
        font-size: 12px;
    }

    .scroll-popup-note-orange {
        font-size: 12px;
    }

    .price-detail-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .scroll-popup {
        padding: 25px 20px;
        max-height: 80vh;
    }

    .scroll-popup-title {
        font-size: 18px;
    }

    .scroll-popup-subtitle {
        font-size: 12px;
    }

    .scroll-popup-list li {
        font-size: 14px;
    }

    .scroll-popup-message {
        font-size: 16px;
    }

    .scroll-popup-note-orange {
        font-size: 11px;
    }

    .price-detail-btn {
        padding: 7px 12px;
        font-size: 11px;
    }
}