.bl_modalWrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.bl_modal {
    width: 880px;
    max-width: 95%;
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px;
    background-color: #F4F5F7;
}

.bl_modal_header {
    display: block;
    font-size: 32px;
    font-family: 'Libre Baskerville', serif;
    text-align: center;
    font-weight: 400;
}

.bl_modal_subHeader {
    display: block;
    font-size: 18px;
    font-family: 'Noto Serif Japanese';
    text-align: center;
    margin-top: 10px;
}

.bl_modal_box {
    background-color: #fff;
    padding: 32px 0px 42px;
    margin-top: 40px;
}

.bl_modal_boxHeader {
    display: inline-block;
    text-align: center;
    font-size: 20px;
    font-family: 'Noto Serif Japanese';
    font-weight: 400;
    position: relative;
}

.bl_modal_boxHeader::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: #333;
    bottom: -2px;
    left: 0;
}

.bl_modal_boxInner {
    max-width: 450px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

.bl_modal_boxInner>* {
    width: 50%;
    font-size: 16px;
    cursor: pointer;
}

.bl_modal_boxInner>*:nth-of-type(n+3) {
    margin-top: 2rem;
}

.bl_modal_submit {
    display: block;
    width: 100%;
    max-width: 300px;
    background-color: #24140C;
    color: #fff;
    font-family: 'Noto Serif Japanese';
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 21px;
    position: relative;
    font-size: 16px;
    transition: opacity .3s ease-out;
}

.bl_modal_submit::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 2rem;
    background-color: #fff;
    width: 30px;
    height: 1px;
    transform: translateY(-50%);
}

.bl_modal_submit::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2rem;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
    width: 4px;
    height: 4px;
    transform: translateY(-50%) rotate(45deg);
}

.bl_modal_submit:hover {
    opacity: .65;
}

.bl_modal_close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
}

.bl_modal_close::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 4px;
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #777777;
    left: 50%;
    top: 50%;
}

.bl_modal_close::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 4px;
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: #777777;
    left: 50%;
    top: 50%;
}

/************************
    Helper
************************/
.center {
    text-align: center;
}

/************************
    Program
************************/
.bl_modalWrapper[data-active="true"] {
    display: block;
}

.bl_modalWrapper[data-active="false"] {
    display: none;
}

[data-sended="true"] #js_modal_submit::before,
[data-sended="true"] #js_modal_submit::after {
    display: none;
}

[data-sended="true"] .bl_modal_boxInner {
    max-width: 80%;
    margin-top: 0;
    line-height: 1.85;
}

[data-sended="true"] .bl_modal_boxInner * {
    width: 100%;
}

/************************
    Responsive
************************/
@media screen and (max-width:768px) {
    .bl_modalWrapper {
        padding: 0 20px;
    }

    .bl_modal {
        padding: 40px 20px;
    }

    .bl_modal_header {
        font-size: 22px;
    }

    .bl_modal_subHeader,
    .bl_modal_boxHeader {
        font-size: 14px
    }

    .bl_modal_box {
        min-height: 175px;
        padding: 20px;
        margin-top: 20px;
    }

    .bl_modal_boxInner {
        margin-top: 20px;
    }

    .bl_modal_boxInner * {
        font-size: 13px;
    }

    .bl_modal_boxInner>label {
        width: 100%;
        display: flex;
        align-items: center;
        ;
    }

    .bl_modal_boxInner>*:nth-of-type(n+2) {
        margin-top: 1rem;
    }

    .bl_modal_submit {
        margin-top: 20px;
        padding: 14px;
        font-size: 13px;
    }

    .bl_modal_close {
        top: 20px;
        right: 20px;
    }

    [data-sended="true"] .bl_modal_box {
        min-height: 120px;
    }
    [data-sended="true"] .bl_modal_boxInner {
        max-width: 90%;
    }
}