@media (min-width: 1025px) {

    .carousel-container {
        position: relative;
        overflow: hidden;
        max-width: 100%;
        width: 60%;
        margin: auto;
        background-color: #ffffff;
        z-index: 100;

    }

}

@media (max-width: 1024px) {

    .carousel-container {
        position: relative;
        overflow: hidden;
        max-width: 100%;
        width: 100%;
        margin: auto;
        background-color: #ffffff;
        z-index: 100;

    }

}





.carousel-container h2 {
    font-size: calc(26px + (64 - 26) * ((100vw - 1280px) / (3840 - 1280)));
    text-align: center;
    line-height: 1.2;
    background-size: 100% auto;
    /* 縦方向の比率を自動調整 */
    width: 97%;
    /* 明示的に横幅を100%にする */
    margin: 3% 3%;
    /* テキストの周囲に余白をつける */
    background-image: linear-gradient(90deg, rgb(47 44 42), rgb(190 190 190));
    color: white;
}

@media (max-width: 1024px) {
    .carousel-container h2 {
        font-size: 20px;
        text-align: center;
        line-height: 1.2;
        background-image: linear-gradient(90deg, rgb(47 44 42), rgb(190 190 190));
        background-size: 100% auto;
        /* 縦方向の比率を自動調整 */
        width: 97%;
        /* 明示的に横幅を100%にする */
        margin: 3% 3%;
        /* テキストの周囲に余白をつける */
        color: white;

    }
}


.carousel-container p {
    font-size: calc(16px + (32 - 16) * ((100vw - 1280px) / (3840 - 1280)));
    text-align: left;
    white-space: normal;
    padding: 0% 3%;
}

@media (max-width: 1024px) {
    .carousel-container p {
        font-size: 16px;
        text-align: left;
        white-space: normal;
        padding: 0% 3%;
        line-height: 1.6;
    }
}


.carousel {
    display: flex;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 0;
    width: 100%;
    overflow-x: auto;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel li {
    list-style: none;
    width: 100%;
    flex: 0 0 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel img {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.carousel-btn {
    position: absolute;
    top: 6%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    background-color: transparent;
}

@media (max-width: 1024px) {
    .carousel-btn {
        display: none;
    }
}

.carousel-prev {
    left: 10px;
    background-image: url(../img/Prev.png);
    width: 50px;
    height: 50px;
    background-size: cover;


}

.carousel-next {
    right: 10px;
    background-image: url(../img/Next.png);
    width: 50px;
    height: 50px;
    background-size: cover;
}