/* ============================
* スワイパー
* ========================= */

.top_swiper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    margin-top: var(--space-section-md);
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper::before,
.swiper::after {
    position: absolute;
    content: "";
    top: 0;
    width: 20%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.swiper::before {
    left: 0;
    background: linear-gradient(to right, rgb(252 252 252 / 1), rgb(252 252 252 / 0.8) 30%, rgb(252 252 252 / 0.3) 60%, rgb(252 252 252 / 0));
}

.swiper::after {
    right: 0;
    background: linear-gradient(to left, rgb(252 252 252 / 1), rgb(252 252 252 / 0.8) 30%, rgb(252 252 252 / 0.3) 60%, rgb(252 252 252 / 0));
}

.swiper-wrapper {
    position: relative;
    box-sizing: border-box;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.swiper-card {
    width: inherit;
    height: auto;
}

.swiper-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background: var(--color-white);
}

.swiper-button-prev,
.swiper-button-next {
    width: clamp(1.5rem, 0.972rem + 1.69vw, 3rem);
    height: clamp(1.5rem, 0.972rem + 1.69vw, 3rem);
    padding: 0.25rem;
    color: var(--color-text);
    border-radius: var(--radius-button);
    background: rgb(252 252 252 / 0.5);
    box-shadow: var(--box-shadow-low);
}

.swiper-button-prev {
    left: 19% !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
}

.swiper-button-next {
    right: 19% !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
}

.swiper-navigation-icon {
    display: none;
}

.swiper-button-arrow polyline {
    fill: none;
    stroke: var(--color-primary-700);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================
* メディアクエリ
* ========================= */

@media screen and (max-width: 768px) {

    .swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
    .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
        margin-inline: 2px;
    }

    .swiper-pagination-bullet {

        width: 5px;
        height: 5px;
    }
}

@media screen and (max-width: 500px) {
    .top_slider {
        padding-inline: 0;
    }

    .swiper:before,
    .swiper::after {
        display: none;
    }

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}