@charset "utf-8";
/*-----------------------------------------------------------------
Modal
------------------------------------------------------------------*/
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svb;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal[hidden] {
    display: none;
}

html:not(:has(.modal[hidden])) {
    overflow: hidden;
}

.modal_overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100svb;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.modal_content {
    --modal-gutter: 2rem;
    width: min(100% - var(--modal-gutter) * 2, 840px);
    height: min(100svb - var(--modal-gutter) * 2, 580px);
    background-color: #fff;
    padding: var(--modal-gutter);
    font-size: 1.4rem;
    font-weight: 500;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: auto;
    overscroll-behavior: contain;
}

.modal_close_btn {
    display: flex;
    padding: 4px;
    margin-left: auto;
    font-size: 2rem;
    line-height: 1;
    border-radius: 50%;
}

.modal_body_box {
    padding: 1rem;
    border: 2px solid #267989;
}

.modal_body_list > li {
    line-height: 1.6;
}

@media screen and (min-width: 769px) {
    .modal {
        height: 100%;
    }

    .modal_overlay {
        height: 100%;
    }

    .modal_content {
        width: min(100% - var(--modal-gutter) * 2, 600px);
        height: min(100svb - var(--modal-gutter) * 2, 480px);
        font-size: 1.6rem;
    }
}
