@charset "utf-8";

/* TOPファーストビュー：拡張帯＋CTA光沢 */
#topimg.top-hero-mock {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

#topimg.top-hero-mock::before {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

#topimg.top-hero-mock .zs-slide {
    filter: brightness(1.03) saturate(1.04);
}

#topimg.top-hero-mock .top-hero-mock__inner {
    position: relative;
    z-index: 5;
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}

#topimg .top-hero-mock__card {
    box-sizing: border-box;
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 25px 36px 31px;
    border-top: 1px solid rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(23, 61, 106, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: #173d6a;
    text-align: center;
    box-shadow: 0 4px 13px rgba(18, 51, 82, 0.16);
}

#topimg .top-hero-mock__card h1 {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #173d6a;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: 0.035em;
    text-shadow: none;
    box-shadow: none;
}

#topimg .top-hero-mock__card h1 span,
#topimg .top-hero-mock__card h1 strong {
    display: block;
    font-size: inherit;
    line-height: inherit;
}

#topimg .top-hero-mock__card h1 strong {
    color: #0878bd;
    font-weight: 800;
}

#topimg .top-hero-mock__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(650px, 100%);
    margin: 22px auto 0;
}

#topimg .top-hero-mock__button {
    --top-cta-edge: #0a6f39;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    min-height: 72px;
    padding: 12px 24px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 2px solid #fff;
    border-radius: 7px;
    color: #fff !important;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 0 0 1px var(--top-cta-edge), 0 5px 0 var(--top-cta-edge), 0 10px 17px rgba(0, 25, 48, 0.28);
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

#topimg .top-hero-mock__button--line {
    --top-cta-edge: #08783d;
    background: #06a94f;
}

#topimg .top-hero-mock__button--estimate {
    --top-cta-edge: #b5530c;
    background: #e77a18;
}

#topimg .top-hero-mock__button-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
}

#topimg .top-hero-mock__button-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#topimg .top-hero-mock__button-label {
    position: relative;
    z-index: 1;
    font-size: inherit;
    line-height: inherit;
}

#topimg .top-hero-mock__button::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -45%;
    left: -36%;
    width: 22%;
    height: 190%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16) 28%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.16) 72%, rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    animation: top-hero-cta-shine 5.2s ease-in-out infinite;
    pointer-events: none;
}

#topimg .top-hero-mock__button--estimate::after {
    animation-delay: 1.15s;
}

#topimg .top-hero-mock__button:hover,
#topimg .top-hero-mock__button:focus-visible {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--top-cta-edge), 0 7px 0 var(--top-cta-edge), 0 13px 19px rgba(0, 25, 48, 0.3);
}

#topimg .top-hero-mock__button--line:hover,
#topimg .top-hero-mock__button--line:focus-visible {
    background: #079b4a;
}

#topimg .top-hero-mock__button--estimate:hover,
#topimg .top-hero-mock__button--estimate:focus-visible {
    background: #d96d0e;
}

#topimg .top-hero-mock__button:active {
    transform: translateY(0);
    box-shadow: 0 0 0 1px var(--top-cta-edge), 0 2px 0 var(--top-cta-edge), 0 6px 10px rgba(0, 25, 48, 0.24);
}

#topimg .top-hero-mock__button:focus-visible {
    outline: 3px solid #173d6a;
    outline-offset: 3px;
}

@keyframes top-hero-cta-shine {
    0%, 52% { left: -36%; opacity: 0; }
    57% { opacity: 1; }
    72% { left: 116%; opacity: 1; }
    73%, 100% { left: 116%; opacity: 0; }
}

@media screen and (max-width: 768px) {
    #topimg.top-hero-mock {
        min-height: 500px;
        background-position: 61% center;
    }

    #topimg.top-hero-mock .top-hero-mock__inner {
        width: calc(100% - 28px);
    }

    #topimg .top-hero-mock__card {
        width: 100%;
        margin: 34px 0;
        padding: 19px 12px 24px;
        background: rgba(255, 255, 255, 0.82);
    }

    #topimg .top-hero-mock__card h1 {
        font-size: 27px;
        line-height: 1.38;
        letter-spacing: 0;
    }

    #topimg .top-hero-mock__actions {
        gap: 10px;
        margin-top: 17px;
    }

    #topimg .top-hero-mock__button {
        min-height: 64px;
        padding: 10px 8px;
        gap: 5px;
        border-radius: 6px;
        font-size: 15px;
    }

    #topimg .top-hero-mock__button-icon {
        display: none;
    }

    #topimg .top-hero-mock__button-label {
        white-space: nowrap;
    }
}

@media screen and (max-width: 380px) {
    #topimg .top-hero-mock__card {
        padding-right: 8px;
        padding-left: 8px;
    }

    #topimg .top-hero-mock__button {
        font-size: 14px;
    }
}

/* 「TOPへ戻る」と同じ300pxスクロール後に固定CTAを表示 */
body:not(.top-hero-mock-cta-visible) {
    padding-bottom: 0 !important;
}

#fixed-contact-cta {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(100%) !important;
    pointer-events: none !important;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease !important;
}

#fixed-contact-cta.top-hero-mock-cta--visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    #topimg .top-hero-mock__button {
        transition: none;
    }

    #topimg .top-hero-mock__button::after {
        display: none;
        animation: none;
    }

    #fixed-contact-cta {
        transition: none !important;
    }
}
