/* スクロール後に表示する固定CTA（ファーストビュー通過後） */
.fixed-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 28%, #ffffff 100%);
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fixed-cta-bar.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.fixed-cta-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 14px;
    border: 1px solid #b8d4f6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 114, 255, 0.14);
}

.fixed-cta-bar__lead {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #1a2b4a;
}

.fixed-cta-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5eb8f5 0%, #0072ff 50%, #745aad 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fixed-cta-bar__btn:hover,
.fixed-cta-bar__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 114, 255, 0.28);
    outline: none;
}

.fixed-cta-bar__btn-arrow {
    font-size: 18px;
    line-height: 1;
}

body.has-fixed-cta-bar {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 901px) {
    .fixed-cta-bar__inner {
        padding: 12px 18px;
    }

    .fixed-cta-bar__lead {
        font-size: 14px;
    }

    .fixed-cta-bar__btn {
        min-height: 48px;
        padding: 12px 22px;
        font-size: 15px;
    }

    body.has-fixed-cta-bar {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .fixed-cta-bar__inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .fixed-cta-bar__btn {
        width: 100%;
    }
}
