/*○○からのメッセージ-start*/
.message {
    padding: 50px 20px 0px;
    display: flex;
    justify-content: space-between;
}

.message_tx {
    width: 50%;
    position: relative;
}

.message_img {
    width: 50%;
    max-width: 500px;
    max-height: 600px;
    overflow: hidden;
}

.message_img img {
    width: 100%;
    height: auto;
}

.message--description_tx {
    position: absolute;
    bottom: 0px;
    padding-right: 20px;
    z-index: 1;
}

.message--description_tx p {
    margin-top: 50px;
}



.message--description_tx h4 span {
    text-decoration: none;
    line-height: 1.8;
    background-image: linear-gradient(to right, #3278C2 0%, #3278C2 100%);
    background-repeat: no-repeat;
    background-position: 0 105%;
    /* 下に配置 */
    background-size: 100% 5px;
    /* 幅100%、高さ1pxの下線 */

}



.message--name_tx {
    margin-top: 50px;
    text-align: right;
}


/*==============================================
   タブレット用（1030px以下画面幅に適用）
===============================================*/
@media screen and (max-width: 1130px) {
    .message {
        padding: 50px 20px 0px;
        flex-direction: column;
    }

    .message_tx {
        width: 100%;
        max-width: 800px;
        margin-inline: auto;
        margin-top: 50px;
        order: 2;

    }

    .message--description_tx {
        position: relative;
        bottom: 0px;
        padding-right: 0;
    }

    .message_img {
        margin-inline: auto;
        order: 1;
    }

    .message_img img {
        display: block;
        margin-left: auto;
    }
}





/*○○からのメッセージ-fin*/


/*よくある質問-start*/
.accordion_area {
    margin-top: 50px;
}

.accordion_area dl {
    display: block;
}

.accordion {
    width: 90%;
    background-color: #fff;
    border: 1px #3278C2 solid;
    margin-bottom: 20px;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 10px;

}

.accordion dt {
    font-weight: 600;
}

.question-text,
.answer-text {
    width: 100%;
    text-align: left;
    position: relative;
    display: block;
}

.question-text {
    cursor: pointer;
    padding: 30px 60px 30px 100px;
    font-weight: 600;

}

.answer-text {
    height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.answer-text p {
    padding: 30px 60px 30px 100px;
}




.question-text::before {
    content: "Q";
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background-color: #3278C2;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    display: block;
    text-align: center;
    line-height: 40px;

}

.question-text::after {
    content: "";
    width: 40px;
    height: 40px;
    background-image: url(../images/rnew/open-close.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    right: 40px;

    transition: transform 0.3s ease;

}

.accordion.active .question-text::after {
    transform: translateY(-50%) rotate(90deg);
}








/*よくある質問-fin*/




/*下部スライドショー*/
.img_slide-auto {
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 50px 0;
    background-color: #f9f9f9;
}

.splide__list {
    display: flex;
    width: max-content;
    animation: scroll-left 75s linear infinite;
}

.splide__list li {
    flex: 0 0 auto;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    width: clamp(200px, 30vw, 400px);
    /* 必要に応じて画像の幅に合わせる */
    margin-right: 20px;
    border-radius: 10px;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    position: relative;
    box-shadow: 0px 5px 10px rgba(51, 51, 51, 0.3);
}



.splide__list li img {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain */
    display: block;
}

.splide__list li:hover {
    transform: scale(1.05);

}

.splide__list li:hover::before {
    background: none;

}


@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* 半分まで動いてループ */
    }
}


@media (max-width: 800px) {

    .question-text::after {
        width: 30px;
        height: 30px;
        right: 18px;
    }

    .question-text {
        padding: 20px 50px 20px 60px;
    }


    .question-text::before {
        width: 30px;
        height: 30px;
        left: 15px;
        line-height: 30px;
    }

    .answer-text p {
        padding: 20px 30px 20px 30px;
    }

}

@media (max-width: 600px) {
    .message {
        padding: 50px 0px 0px;
    }

    .accordion {
        width: 100%;
    }

    .message--description_tx p {
        margin-top: 30px;
    }
}


.slideshow-container {
    width: 100vw;
    margin: 50px auto 0;
    position: relative;
    /* JavaScriptで位置を制御するため */
}

.slideshow-track {
    display: flex;
    gap: 15px;
    /* 画像と画像の間隔を10pxに設定 */
    /* 画像を横並びにする */
    transition: transform 0.8s ease-in-out;

    /* スライドのアニメーション */
}

.slideshow-track img {
    width: 25vw;
    height: 18vw;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(51, 51, 51, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
    /* 画像が縮まないようにする */
}

.slideshow-track img:hover {
    transform: scale(1.05);
    /* 画像が縮まないようにする */
}

@media (max-width: 600px) {
    .slideshow-track img {
        width: 50vw;
        height: 40vw;
        /* 画面幅の半分に */
    }
}