/*---▼トレーナー▼---*/


/* モーダルを開くボタン */

.modal__trigger {
    cursor: pointer;
}

.modal__trigger:nth-child(n + 2) {
    margin-top: 60px;
}

.trainer {
    padding: 9rem 0;
}

.trainer .flex_sec {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.87rem 1.06rem;
    margin-top: 4rem;
}

.trainer .flex_sec::after {
    content: "";
    display: block;
    width: calc(100% / 3 - 0.935rem);
}

.trainer .flex_sec .swiper-slide {
    position: relative;
    width: 23.75rem;
    height: 34.625rem;
}

.trainer .flex_sec .modal__trigger img {
    position: absolute;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.25));
    width: 23.75rem;
    height: 34.625rem;
    flex-shrink: 0;
    border: 1px solid #D60000;
    object-fit: cover;
}

.trainer .flex_sec .modal__trigger h3 {
    position: absolute;
    background: rgba(255, 255, 255, 0.80);
    bottom: 2rem;
    left: 1px;
    width: 90%;
    padding: 1rem;
    color: #D60000;
    font-family: "Barlow Semi Condensed";
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 120%;
    gap: 0.88rem;
    display: flex;
    align-items: baseline;
}

.trainer .flex_sec .modal__trigger h3 span {
    color: #222222;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 120%;
}


/* モーダル本体 */

.modal__wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.modal__layer {
    height: 100%;
    background: rgba(50, 50, 50, .85);
    cursor: pointer;
}

.modal__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(100% - 40px), 1000px);
    height: calc(100% - 40px);
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 20px -6px rgba(0, 0, 0, 0.6);
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
}


/* モーダルを閉じるボタン */

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    cursor: pointer;
    transition: opacity .6s;
}

.modal__close:hover {
    opacity: .6;
}

.modal__close:before,
.modal__close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 0.10013rem;
    width: 1.5rem;
    background: #919191;
    content: '';
}

.modal__close:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* モーダル内のコンテンツ */

.modal__content {}

.modal__content h2 {
    color: #D60000;
    font-family: "Barlow Semi Condensed";
    font-size: 5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    text-transform: uppercase;
    border-bottom: 1px solid #D60000;
    padding-bottom: 1rem;
    margin-top: 3rem;
}

.modal__content h2 span {
    font-size: 1.875rem;
    font-weight: 500;
    line-height: 120%;
}

.modal__content .flex_box {
    display: flex;
    gap: 1.19rem;
    margin-top: 1.87rem;
}

.modal__content .flex_box img {
    width: 29.0625rem;
    height: 43.625rem;
    flex-shrink: 0;
    aspect-ratio: 465/698;
}

.modal__content .flex_box .text_sec {
    width: 100%;
}

.modal__content .flex_box .text_sec h3 {
    font-family: "Barlow Semi Condensed";
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 200%;
    border-bottom: 1px solid #222222;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.modal__content .flex_box .text_sec p.message {
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
}

.modal__content .flex_box .text_sec h4 {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 200%;
    margin: 2rem 0;
}

.modal__content .flex_box .text_sec ul li {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal__content .flex_box .text_sec .tag {
    display: flex;
    gap: 0.37rem;
    margin-top: 4rem;
}

.modal__content .flex_box .text_sec .tag>div {
    padding: 0 1.38rem;
    color: #FFF;
    font-weight: 500;
    line-height: 200%;
}

.modal__content .flex_box .text_sec .tag .personal {
    background: #1AB8A3;
}

.modal__content .flex_box .text_sec .tag .meal {
    background: #63A100;
}

@media screen and (max-width: 1024px) {
    #window {
        width: 90%;
        height: 95%;
        padding: 1rem;
    }
    .modal__content .flex_box {
        flex-direction: column;
    }
    .modal__content h2 {
        gap: 0.5rem;
        font-size: 2rem;
        align-items: baseline;
        padding-bottom: 0.5rem;
    }
    .modal__content h2 span {
        font-size: 1rem;
    }
    .modal__content .flex_box img {
        width: 60%;
        height: auto;
        flex-shrink: 0;
        aspect-ratio: 0;
        margin: auto;
    }
    .modal__content .flex_box .text_sec {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .modal__content .flex_box .text_sec h3 {
        font-size: 1.25rem;
        order: 1;
        color: #d60001;
        border-bottom: 1px solid #d60001;
    }
    .modal__content .flex_box .text_sec p.message {
        font-size: 1rem;
        line-height: 150%;
        order: 2;
    }
    .modal__content .flex_box .text_sec h4 {
        font-size: 1rem;
        font-weight: 400;
        margin: 2rem 0;
        margin-top: 0;
        order: 0;
        text-align: center;
    }
    .modal__content .flex_box .text_sec p.text {
        order: 4;
        margin-top: 1rem;
    }
    .modal__content .flex_box .text_sec ul {
        order: 5;
    }
    .modal__content .flex_box .text_sec .tag {
        order: 6;
        padding-bottom: 2rem;
    }
    /*トレーナー一覧*/
    .trainer {
        padding: 6rem 0;
    }
    .trainer .flex_sec {
        display: flex;
        flex-wrap: nowrap;
        gap: 0;
    }
    .trainer .flex_sec::after {
        content: "";
        display: none;
    }
    .trainer .flex_sec .modal__trigger img {
        width: 100%;
        height: 100%;
    }
    .trainer .flex_sec .swiper-slide {
        height: 56.625rem;
    }
    .trainer .flex_sec .modal__trigger h3 {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.2rem;
    }
    .trainer .flex_sec .modal__trigger h3 span {
        color: #222222;
        font-size: 1rem;
    }
}

@media screen and (max-width: 430px) {
    .trainer .flex_sec .swiper-slide {
        height: 20.625rem;
    }
}
