@charset "utf-8";

/* ヒーロー画像
------------------------------------- */
.hero-treatment {
    background-image: url(../img/treatment/treatment2.jpg);
    background-position: right;
    background-size: 58%;
    object-fit: cover;
}

/* ==================================
  施術（treatment.html）
=====================================*/


.main_title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #18AABE;
    font-size: 2rem;
    height: 249px;

}

.menu {
    background-color: #fff;
    padding: 76px 53px;
}

.pic-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 413px;
    width: 95%;
    height: 94px;
    margin: 0 auto 29px;
}

.pic-container h3 {
    position: relative;
    padding: 1rem 2rem;
    box-shadow: 6px 6px #5DC1CF;
    outline: 3px solid #fff;
    border: 3px solid #5DC1CF;
    background-color: #fff;
    color: #18AABE;
    font-size: calc(36/16*1rem);
    font-weight: 700;
    text-align: center;
}

.menu_group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.reverse {
    flex-wrap: wrap-reverse;
}

.sample_picture {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.befaf_picture {
    display: block;
}

.box_comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #5DC1CF;
    font-family: "ZCOOL XiaoWei", sans-serif;
    text-align: center;
    color: #fff;
    font-size: 2rem;
    height: 63px;
}

.explanation {
    font-size: calc(20/16*1rem);
    line-height: 1.75;
    width: 95%;
    max-width: 414px;
    margin: 0 auto;
}

.menu_list {
    display: flex;
    flex-direction: column;
    /* 縦並びにする */
    gap: 95px;
}

.work_picture {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    gap: 96px;
    margin: 145px 50px 174px;
}

.work_picture img {
    width: 100%;
    height: 20vw;
    object-fit: cover;
    margin: 0 30px;
}

/*お客様の声------------------------------------------------------------------------------------------------------------------*/
.voice {
    margin: 0 auto;
    background-color: #fff;
    background-image: url(../img/treatment/Treatment‗foot-01.svg);
    background-position: right bottom;
    background-size: 26% auto;
    margin-bottom: 185px;
}

.voice__title {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 95px;
    background: #5DC1CF;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 20px 20px 0 0;
}


.voice__list {
    font-size: calc(20/16*1rem);
    list-style-type: none;
    display: table;
    margin: 0 auto;
    padding: 77px 30px;
}

.voice__list__item+.voice__list__item {
    margin-top: 25px;
}

.voice__list__item {
    display: flex;
    flex-direction: column;
}

.voice-text-1 {
    text-indent: -1rem;
}

/*タブレット版レスポンシブ------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width: 960px) {
    .main_title {
        font-size: 1.5rem;
        height: 151px;
    }

    .menu {
        padding: 38px 0;
    }

    .menu_group {
        gap: 20px;
    }

    .pic-container h3 {
        font-size: 1.5rem;
    }

    .explanation {
        font-size: calc(13/16*1.5rem);
    }

    .box_comparison {
        height: 45px;
        font-size: calc(20/16*1.5rem);
    }


    .work_picture {
        gap: 50px;
        margin: 70px 50px 70px;
    }

    .voice__title {
        font-size: 1.5rem;
    }

    .voice__list {
        padding: 50px;
    }

    .voice__list__item {
        font-size: calc(13/16*1.5rem);
    }
}


/*スマホ版----------------------*/
@media screen and (max-width: 428px) {
    .main_title {
        font-size: 1rem;
        height: 151px;
    }

    .menu {
        padding: 43px 0;
    }

    .menu_list {
        gap: 50px;
    }

    .menu_list li:nth-child(even) {
        flex-direction: column-reverse;
    }

    .menu_group {
        flex-direction: column;
        gap: 20px;
    }

    .sample_picture {
        flex-direction: column;
        gap: 10px;
    }

    .pic-container {
        max-width: 300px;
    }

    .pic-container h3 {
        font-size: 1rem;
    }

    .explanation {
        font-size: calc(13/16*1rem);
    }

    .explanation {
        max-width: 300px;
        margin: 0 auto;
    }

    .befaf_picture,
    .befaf_picture img {
        max-width: 250px;
        margin: 0 auto;
    }

    .befaf_picture img {
        height: 207px;
    }

    .box_comparison {
        height: 30px;
        font-size: calc(20/16*1rem);
    }

    .work_picture img {
        width: 100%;
        /* 親要素（.slick-slide）の幅いっぱいに広げる */
        height: auto;
        /* 縦横比を維持して高さを自動調整 */
        display: block;
        /* 余計な下部の余白を防ぐ */
         aspect-ratio: 16/9;
        /*画像の縦横比を維持 */
        object-fit: cover;
        /* 画像が要素を覆うように拡大・縮小し、はみ出し部分はトリミング */
        max-width: 300px;
        /* ユーザーの指定に合わせて画像の最大幅を設定 */
        margin: 0 auto;
        /* 画像を中央に配置（max-widthと組み合わせる場合） */
    }

    .work_picture .slick-slide {
        /* Slickのインラインスタイルを上書きし、高さを自動調整 */
        height: auto !important;
        margin: 0;
        /* デフォルトのマージンをリセット */
        padding: 0;
        /* デフォルトのパディングをリセット */
        /* display: flex !important; ★削除点★ Slickの内部レイアウトと競合する可能性 */
        /* justify-content: center; ★削除点★ */
        /* align-items: center; ★削除点★ */
        box-sizing: border-box;
        /* パディングやボーダーをwidth/heightに含める */
        /* align-items: stretch; ★削除点★ */
        overflow: hidden;
        /* スライド内のはみ出しを隠す */
        margin: 0 5px;
    }

    .work_picture .slick-track {
        height: auto !important;
        /* display: flex !important; ★修正点★ !importantを削除し、Slickのデフォルト挙動に任せる */
        display: flex;
        align-items: flex-start;
        /* スライドの高さが異なる場合に上揃えにする */
    }

    .work_picture .slick-list {
        overflow: hidden;
        height: auto !important;
        margin: 0 -5px;
    }
    .work_picture {
        margin: 40px 50px 40px;
    }

    .voice {
        max-width: 350px;
        margin-bottom: 105px;
    }

    .voice__title {
        height: 37px;
        font-size: 1rem;
    }

    .voice__list {
        padding: 32px;
    }

    .voice__list__item {
        font-size: calc(13/16*1rem);
    }
}
