/* home_hero.css で設定されているトップページ末尾の余白を、最終CTA導入後は不要にする。 */
.home-page {
    padding-bottom: 0;
}

.home-final-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 112px 24px 104px;
    color: #fff;
    background-color: #03346b;
    background-image: url("https://images.pexels.com/photos/32162544/pexels-photo-32162544.jpeg?auto=compress&cs=tinysrgb&w=2200");
    background-position: center 46%;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(2, 35, 76, .97) 0%, rgba(3, 52, 107, .91) 38%, rgba(3, 52, 107, .72) 66%, rgba(3, 52, 107, .54) 100%),
        linear-gradient(180deg, rgba(0, 22, 48, .26) 0%, rgba(0, 22, 48, .12) 48%, rgba(0, 22, 48, .48) 100%);
}

.home-final-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 54%, rgba(3, 52, 107, .26), transparent 36%),
        linear-gradient(90deg, rgba(0, 18, 41, .14), transparent 72%);
}

.home-final-cta__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.home-final-cta__content {
    max-width: 760px;
}

.home-final-cta__eyebrow {
    margin: 0 0 18px;
    color: #e4bf6e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-shadow: 0 2px 12px rgba(0, 20, 45, .34);
}

.home-final-cta__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.45rem, 4.25vw, 4rem);
    line-height: 1.18;
    letter-spacing: -.04em;
    font-weight: 800;
    text-shadow: 0 7px 24px rgba(0, 21, 48, .38);
}

.home-final-cta__title > span {
    display: block;
}

.home-final-cta__title > span + span {
    margin-top: .08em;
}

.home-final-cta__title-accent {
    color: #e5c576;
}

.home-final-cta__lead {
    max-width: 650px;
    margin: 26px 0 0;
    color: rgba(255,255,255,.92);
    font-size: 1rem;
    line-height: 1.9;
    text-shadow: 0 2px 16px rgba(0, 22, 48, .34);
}

.home-final-cta__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.home-final-cta__primary,
.home-final-cta__secondary {
    min-height: 58px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 750;
    transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, border-color .28s ease;
}

.home-final-cta__primary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 260px;
    padding: 0 14px 0 24px;
    background: #fff;
    color: #03346b;
    box-shadow: 0 16px 36px rgba(0,0,0,.16);
}

.home-final-cta__arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c9a45d;
    color: #fff;
    font-size: 1.05rem;
    transition: transform .28s ease;
}

.home-final-cta__primary:hover {
    transform: translateY(-3px);
    color: #03346b;
    box-shadow: 0 20px 42px rgba(0,0,0,.2);
}

.home-final-cta__primary:hover .home-final-cta__arrow {
    transform: translateX(3px);
}

.home-final-cta__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid rgba(255,255,255,.42);
    color: #fff;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
}

.home-final-cta__secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(201,164,93,.9);
    background: rgba(255,255,255,.11);
    color: #fff;
}

.home-final-cta__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 30px;
    color: rgba(255,255,255,.82);
    font-size: .86rem;
    text-shadow: 0 2px 12px rgba(0, 22, 48, .3);
}

.home-final-cta__trust span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.home-final-cta__trust i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c9a45d;
    box-shadow: 0 0 0 5px rgba(201,164,93,.14);
}

@media (max-width: 980px) {
    .home-final-cta {
        padding: 92px 24px 86px;
        background-position: 58% center;
    }

    .home-final-cta::before {
        background:
            linear-gradient(90deg, rgba(2, 35, 76, .97) 0%, rgba(3, 52, 107, .91) 52%, rgba(3, 52, 107, .68) 100%),
            linear-gradient(180deg, rgba(0, 22, 48, .30) 0%, rgba(0, 22, 48, .16) 48%, rgba(0, 22, 48, .48) 100%);
    }
}

@media (max-width: 640px) {
    .home-final-cta {
        padding: 76px 16px 70px;
        background-position: 62% center;
    }

    .home-final-cta::before {
        background:
            linear-gradient(90deg, rgba(2, 35, 76, .97) 0%, rgba(3, 52, 107, .93) 58%, rgba(3, 52, 107, .78) 100%),
            linear-gradient(180deg, rgba(0, 22, 48, .34) 0%, rgba(0, 22, 48, .16) 48%, rgba(0, 22, 48, .52) 100%);
    }

    .home-final-cta__title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .home-final-cta__title > span {
        display: inline;
    }

    .home-final-cta__title > span + span::before {
        content: " ";
    }

    .home-final-cta__lead {
        font-size: .94rem;
        line-height: 1.82;
    }

    .home-final-cta__pc-break {
        display: none;
    }

    .home-final-cta__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-final-cta__primary,
    .home-final-cta__secondary {
        width: 100%;
    }

    .home-final-cta__trust {
        display: grid;
        gap: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-final-cta__primary,
    .home-final-cta__secondary,
    .home-final-cta__arrow {
        transition: none !important;
    }
}


/* =========================================================
   AtlasRoute HOME / action button gradient unification
   home_final_cta.css is loaded after the other home section CSS,
   so these rules intentionally act as the final visual override.
   ========================================================= */

.home-hero__submit-button,
.comparison-flow-cta,
.home-final-cta__primary,
.home-final-cta__secondary,
.home-recommend__search-link,
.home-data-guide__cta:not(.is-disabled),
.home-device-checker__cta:not(.is-disabled) {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .12);
    background:
        linear-gradient(135deg, #022a59 0%, #03447f 46%, #0b63b7 100%);
    color: #fff;
    box-shadow:
        0 13px 28px rgba(3, 52, 107, .22),
        inset 0 1px 0 rgba(255, 255, 255, .18);
    transition:
        transform .22s ease,
        box-shadow .22s ease,
        filter .22s ease,
        background .22s ease;
}

.home-hero__submit-button::before,
.comparison-flow-cta::before,
.home-final-cta__primary::before,
.home-final-cta__secondary::before,
.home-recommend__search-link::before,
.home-data-guide__cta:not(.is-disabled)::before,
.home-device-checker__cta:not(.is-disabled)::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            115deg,
            transparent 0%,
            transparent 38%,
            rgba(255, 255, 255, .16) 49%,
            transparent 61%,
            transparent 100%
        );
    transform: translateX(-115%);
    pointer-events: none;
    transition: transform .52s ease;
}

.home-hero__submit-button:hover,
.comparison-flow-cta:hover,
.home-final-cta__primary:hover,
.home-final-cta__secondary:hover,
.home-recommend__search-link:hover,
.home-data-guide__cta:not(.is-disabled):hover,
.home-device-checker__cta:not(.is-disabled):hover {
    background:
        linear-gradient(135deg, #03346b 0%, #07559d 48%, #1280d3 100%);
    color: #fff;
    transform: translateY(-2px);
    filter: saturate(1.04);
    box-shadow:
        0 17px 34px rgba(3, 52, 107, .28),
        inset 0 1px 0 rgba(255, 255, 255, .20);
}

.home-hero__submit-button:hover::before,
.comparison-flow-cta:hover::before,
.home-final-cta__primary:hover::before,
.home-final-cta__secondary:hover::before,
.home-recommend__search-link:hover::before,
.home-data-guide__cta:not(.is-disabled):hover::before,
.home-device-checker__cta:not(.is-disabled):hover::before {
    transform: translateX(115%);
}

/* Keep button text above the subtle shine layer. */
.home-hero__submit-button > *,
.comparison-flow-cta > *,
.home-final-cta__primary > *,
.home-final-cta__secondary > *,
.home-recommend__search-link > *,
.home-data-guide__cta > *,
.home-device-checker__cta > * {
    position: relative;
    z-index: 1;
}

/* Preserve AtlasRoute's gold accent inside blue gradient buttons. */
.home-hero__submit-arrow,
.home-data-guide__cta-icon {
    background: #c9a45d;
    color: #fff;
}

.comparison-flow-cta span,
.home-recommend__search-link span {
    color: #e7ca8f;
}

/* The secondary final CTA is still visually differentiated, but remains blue-based. */
.home-final-cta__secondary {
    background:
        linear-gradient(135deg, rgba(7, 67, 127, .96) 0%, rgba(10, 92, 161, .96) 58%, rgba(18, 113, 190, .96) 100%);
    border-color: rgba(255, 255, 255, .20);
}

/* Disabled diagnostic CTAs keep their existing disabled / no-result treatment. */
.home-data-guide__cta.is-disabled,
.home-device-checker__cta.is-disabled {
    box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__submit-button,
    .comparison-flow-cta,
    .home-final-cta__primary,
    .home-final-cta__secondary,
    .home-recommend__search-link,
    .home-data-guide__cta,
    .home-device-checker__cta,
    .home-hero__submit-button::before,
    .comparison-flow-cta::before,
    .home-final-cta__primary::before,
    .home-final-cta__secondary::before,
    .home-recommend__search-link::before,
    .home-data-guide__cta::before,
    .home-device-checker__cta::before {
        transition: none !important;
    }
}
