/*--------------------------------

>>>カードデザイン

---------------------------------*/
.service_card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 4%;
    justify-content: flex-start;
}

.service_card-list .service_card {
    position: relative;
    width: 22%;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 32px 28px 38px 28px;
    box-sizing: border-box;
    transition: box-shadow .3s, transform .3s;
    overflow: hidden;
}

/* .service_card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    transform: translateY(-4px) scale(1.02);
} */

.service_card-list .service_card .thumb {
    width: 100%;
    aspect-ratio: 4/3;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service_card-list .service_card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service_card-list .service_card .no-image {
    display: block;
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    border-radius: 12px;
}

.service_card-list .service_card-title {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: var(--font-custom);
    margin-bottom: 8px;
    letter-spacing: .05em;
    text-align: center;
}

.service_card-list .service_card-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 14px;
    font-family: var(--notosans);
    letter-spacing: .03em;
    text-align: center;
}

.service_card-list .service-card-link {
    position: absolute;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    transition: all .3s ease;
    top: 0;
    left: 0;
}

.service_card-list .service-card-link:hover {
    background-color: var(--main-backcolor);
    mix-blend-mode: multiply;
    opacity: .5;
}

@media (max-width: 1024px) {
    .service_card-list {
        gap: 32px 5%;
    }

    .service_card-list .service_card {
        width: 47.5%;
        padding: 24px 16px 28px 16px;
    }

}

@media (max-width: 767px) {
    .service_card-list {
        gap: 22px 4%;
    }

    .service_card-list .service_card {
        width: 48%;
        padding: 18px 10px 22px 10px;
        border-radius: 10px;
    }

    .service_card-list .service_card .thumb {
        border-radius: 8px;
        margin-bottom: 12px;
    }

    .service_card-list .service_card-title {
        font-size: 1.05rem;
        margin-bottom: 5px;
    }

    .service_card-list .service_card-subtitle {
        font-size: .85rem;
        margin-bottom: 8px;
    }

    .service_card-desc {
        font-size: .92rem;
    }
}

.horizontal-section {
    /* height: 500vh; Removed to let GSAP handle spacing */
    width: 100%;
    position: relative;
    /* overflow: hidden; */
}

.horizontal-sticky {
    /* position: sticky; Removed */
    /* top: 0; Removed */
    height: 100vh;
    /* overflow: hidden; */
    width: 100%;
}

.horizontal-track {
    display: flex;
    height: 100%;
}

.panel {
    min-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    padding: 0 270px;
}

@media (max-width: 767px) {
    .panel {
        padding: 0 5%;
    }
}

/*--------------------------------

>>>画像比較スライダー

---------------------------------*/
.compare_slider {
    width: 100%;
    margin-bottom: 2rem;
}

.compare_inner {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
}

.compare_img {
    width: 100%;
    height: auto;
    display: block;
}

.compare_img img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

/* Before image (bottom layer) */
.compare_before {
    position: relative;
    width: 100%;
}

/* After image (top layer) */
.compare_after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Initial width */
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 2px solid #fff;
    will-change: width;
}

.compare_after img {
    width: 200%;
    /* Compensate for width: 50% */
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

/* Range Input (Invisible) */
.compare_range {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    margin: 0;
    cursor: col-resize;
}

/* Handle */
.compare_handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    /* Let clicks pass to range input */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: left;
}

.compare_handle::before,
.compare_handle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.compare_handle::before {
    border-right: 8px solid #333;
    margin-right: 2px;
}

.compare_handle::after {
    border-left: 8px solid #333;
    margin-left: 2px;
}