#top_hero_slider-list {
    height: unset;
}

.top_hero_slider {
    padding: 3cqw 10cqw 1cqw;
    background: #fff;
    margin: auto;
}

.splide__track {
    border-radius: 20px;
    overflow: hidden;
}

.top_hero_slide {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
}

.top_hero_img {
    width: 50%;
    line-height: 0;
}

.top_hero_img img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: contain;
}

.top_hero_info {
    width: 50%;
    padding: 4cqw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.top_hero_date {
    font-size: var(--font-xs);
    color: #000;
    font-weight: 500;
    margin-bottom: 3%;
}

.top_hero_title {
    font-size: var(--font-xl);
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top_hero_tags {
    display: flex;
    flex-wrap: wrap;
}

/* Splide Custom Pagination */
.splide__pagination {
    position: relative !important;
    top: -4cqw !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    gap: 1cqw !important;
    margin-top: 1.5cqw !important;
    padding-left: calc(50% + 4cqw) !important;
}

.splide__pagination__page {
    width: 3cqw !important;
    height: 0.3cqw !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.1) !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition:
        background-color 0.3s,
        width 0.3s !important;
}

.splide__pagination__page.is-active {
    background: var(--theme_color) !important;
    width: 3cqw !important;
    transform: none !important;
}

@media (max-width: 767px) {
    .top_hero_slider {
        width: 100%;
        margin-bottom: 8cqw;
        padding: 0;
    }

    .splide__track {
        border-radius: 12px;
    }

    .top_hero_slide {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .top_hero_img {
        width: 100%;
    }

    .top_hero_img img {
        border-radius: 0;
    }

    .top_hero_info {
        width: 100%;
        padding: 1.5rem;
        justify-content: flex-start;
    }

    .top_hero_title {
        font-size: var(--font-m);
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .splide__pagination {
        padding-left: 0 !important;
        margin-top: 5cqw !important;
        left: 5% !important;
        width: 30%;
    }

    .splide__pagination__page {
        width: 6cqw !important;
        height: 0.5cqw !important;
    }

    .splide__pagination__page.is-active {
        width: 6cqw !important;
    }
}

/* スライダー内ボタンの配置調整 */
.top_hero_sub_link_wrapper {
    position: absolute;
    z-index: 10;
    bottom: 0%;
}

.sv-hero-img-button {
    display: inline-block;
    max-width: 80%; /* スライダー内では少し小さめにする */
    transition: transform 0.2s;
}

.sv-hero-img-button img {
    width: 100%;
    height: auto;
}

.sv-hero-img-button:hover {
    transform: scale(1.05);
}
@media (max-width: 767px) {
    .top_hero_sub_link_wrapper {
        position: relative;
        z-index: 10;
        bottom: 0%;
    }

    .sv-hero-img-button {
        display: inline-block;
        max-width: 80%; /* スライダー内では少し小さめにする */
        transition: transform 0.2s;
    }

    .sv-hero-img-button img {
        width: 100%;
        height: auto;
    }

    .sv-hero-img-button:hover {
        transform: scale(1.05);
    }
}
