.list_wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(140px, 1fr));
    gap: 15px;
}

.list_wrap li {
    cursor: pointer;
}

.list_wrap li.comingSoon {
    pointer-events: none;
}

.modal {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    z-index: 10000;
}

.modal_bg {
    background-color: hsla(0, 0%, 0%, 0.65);
    color: #fff;
    width: 100%;
    height: 100%;
    position: relative;
}

.modal_content {
    max-width: 800px;
    max-height: 720px;
    width: 80%;
    height: 90%;
    background-image: url(../images/character/modal_bg.png);
    background-size: 100% 100%;
    padding: 60px 0 50px;
    position: absolute;
    transform: translate(-50%,-50%);
    top: 50%;
    left: 50%;
}

.modal_content .modal_close {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    cursor: pointer;
}

.modal_content .chara_name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 15px;
    font-size: clamp(17px,2vw,25px);
    color: #fff000;
    font-weight: bold;
    padding-bottom: 30px;
}
.modal_content .chara_name::before,
.modal_content .chara_name::after {
    content: '';
    background-image: url(../images/character/modal_deco.svg);
    width: 21px;
    height: 40px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
}

.modal_content .chara_name::after {
    transform: rotate(180deg);
}

.modal_content .scroll {
    overflow-x: scroll;
    height: calc(100% - 60px);
    padding: 0 35px;
}

.modal_content .flex_wrap {
    display: flex;
    justify-content: space-between;
}

.modal_content .flex_wrap .txt_wrap {
    width: 48%;
}
.modal_content .flex_wrap .image_wrap {
    width: 50%;
}

.modal_content .flex_wrap .txt_wrap .image {
    margin-top: 20px;
}


.modal_content .flex_wrap .txt {
    font-size: clamp(13px,1.4vw,15px);
    line-height: 1.7;
}

.modal_content .flex_wrap .txt_small {
    font-size: clamp(11px,1.1vw,12px);
    margin-top: 20px;
}

#chara05 .modal_content .flex_wrap,
#chara06 .modal_content .flex_wrap {
    align-items: center;
}


@media screen and (max-width: 1000px) {

    .modal_content {
        height: 60%;
    }

    .modal_content .scroll {
        padding:  0 40px 30px;
    }
}

@media screen and (max-width: 730px) {
    .list_wrap {
        grid-template-columns: repeat(3,1fr);
        gap: 10px;
    }

    .modal_content {
        max-height: 600px;
        width: 90%;
        height: 90%;
    }

    .modal_content .chara_name {
        gap: 0 10px;
        padding-bottom: 10px;
    }

    .modal_content .chara_name::before,
    .modal_content .chara_name::after {
        width: 18px;
        height: 25px;
    }

    .modal_content .scroll {
        padding: 0 25px;
        height: calc(100% - 50px);
    }

    .modal_content .flex_wrap {
        flex-direction: column;
    }

    .modal_content .flex_wrap .txt_wrap {
        width: 100%;
        order: 1;
        display: flex;
        flex-direction: column;
    }

    .modal_content .flex_wrap .txt_wrap .image {
        order: 0;
        margin: 0 0 10px 0;
    }
    .modal_content .flex_wrap .txt {
        order: 1;
    }
    .modal_content .flex_wrap .txt_small {
        order: 2;
    }

    .modal_content .flex_wrap .image_wrap {
        width: 80%;
        margin: 0 auto;
    }

    .modal_content .flex_wrap .image_wrap .image {
        margin-bottom: 15px;
    }

    .modal_content .flex_wrap .image_wrap .image:only-child {
        margin-bottom: 0;
    }

    .modal_content .flex_wrap .image {
        width: 100%;
    }

    .modal_content .flex_wrap .image:nth-child(1) {
        transform: rotate(0);
    }

    .modal_content .flex_wrap .image:nth-child(2) {
        transform: rotate(0);
        margin-top: 0;
    }

}


