/* common */
.modal_box {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal_bg{
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.75);
}

.modal_wrap {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 970px;
    height: auto;
    margin: 50px auto;
    padding: 20px;
    border-radius: 7px;
    background: white;
}

.modal_box table{
    width: 100%;
}

/* #modal01 */
#modal01 .modal_wrap {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
#modal01 td,
#modal01 th{
    padding: 8px;
    border: 1px solid #adb5bd;
    text-align: center;
}
#modal01 .th_f1 td{
    font-weight: bold;
    text-align: center;
    color: #fff;
    background-color: #495057;
}
#modal01 th{
    background-color: #ddd;
}
#modal01 .vam{
    vertical-align: middle;
}
#modal01 p{
    margin-top: 10px;
    font-size: 14px;
}

#modal01 .modal_close_wrap {
    width: 100%;
    background-color: white;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    padding-top: 30px;
}
#modal01 .modal_close {
    cursor: pointer;
    display: block;
    width: 7em;
    margin: 0 auto;
    padding: .25em;
    color: white;
    text-align: center;
    background-color: #546E7A;
    border-radius: 5px;
    transition: 0.2s;
    position: relative;
    z-index: 2;
}
#modal01 .modal_close::before {
    content: "\02716";
    padding-right: 5px;
    font-size: 20px;
    font-weight: bold;
}

/* #moda02 */
#modal02 .js__modal_close {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 48px;
    height: 48px;
    background: url(../img/common/modal_close.png) no-repeat center / 48px;
    transition: 0.3s;
}

.modal_content {
    display: none;
    opacity: 0;
    transition: 0.3s ease;
}
.modal_content.show {
    display: block;
    opacity: 1;
}

#modal02 h2 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0.5em;
}
#modal02 .tac{
    text-align: center;
}
#modal02 ul {
    display: grid;
    row-gap: 1em;
    width: fit-content;
    margin: auto;
}
#modal02 label {
    display: inline-block;
    vertical-align: middle;
}
#modal02 input {
    margin-right: 10px;
    appearance: auto;
    accent-color: var(--jcom-red);
    cursor: pointer;
    transform: scale(1.5);
}
#modal02 .options_select {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 1em 0;
}
#modal02 .options_btn {
    width: auto;
    min-width: 280px;
    padding: .75em 2em;
    font-weight: bold;
    text-align: center;
    background-color: white;
    border: 2px solid var(--jcom-red);
    border-radius: 50px;
    transition: 0.3s;
}
#modal02 .options_btn:hover {
    color: white;
    background-color: var(--jcom-red);
}

#modal02 .other-txt{
    text-align: center;
}

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

    /* common */
    .modal_wrap {
        width: calc(100% - 2em);
        padding: 10px;
    }


    /* #moda01 */


    /* #moda02 */
    #modal02 .js__modal_close {
        display: none;
    }
    #modal02 h2 {
        font-size: 16px;
    }
    #modal02 .tac {
        text-align: center;
    }

    #modal02 ul {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr 1fr;
        row-gap: 0;
        width: 95%;
        height: 200px;
    }
    #modal02 ul li {
        display: flex;
        align-items: center;
        font-size: 15px;
    }

    #modal02 .options_select {
        grid-template-columns: auto;
        gap: 10px 0;
        margin: 20px auto;
    }

    #modal02 .options_btn.js__next_btn {
        grid-area: 1;
    }
}