@charset 'utf-8';

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dvhはvhの後に配置 */
    padding: 3.2rem;
    background: rgba(51, 51, 51, 0.6);
    cursor: pointer;
}

.modal_wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    overflow-y: auto;
    width: min(calc(100% - 4rem), 33.5rem);
    height: fit-content;
    max-height: 90vh;
    margin: auto;
    padding: 0;
    text-align: right;
}

.modal_wrap > .closeModal_btn {
    position: relative;
    width: 3rem;
    height: 3rem;
    pointer-events: none;
}

.closeModal_btn svg {
    width: 100%;
}

.modal_content {
    height: fit-content;
    max-height: 90vh;
    padding: 3rem 2rem;
    border-radius: 1rem;
    background-color: white;
    text-align: center;
    cursor: auto;
}

html[data-responsive="sp"] .modal_wrap {
    width: min(calc(100% - 4rem), 33.5rem);
}

html[data-responsive="pc"] .modal_wrap {
    width: min(100%, 100rem);
}

@media only screen and (min-width: 751px) {
    html[data-responsive="pc"] .modal_wrap {
        padding: 4rem;
    }
}
