﻿.modal-002__wrap input, .modal-001__wrap input {
    display: none;
}

.modal-002__open-label,
.modal-002__close-label,.modal-001__open-label,
.modal-001__close-label {
    cursor: pointer;
}

.modal-002__open-label, .modal-001__open-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 350px;
    margin:0 auto;
    padding: .8em 2em;
    border: none;
    border-radius: 5px;
    /* background-color: #2589d0; */
    color: #ffffff;
    font-weight: 600;
    font-size: 1em;
}

.modal-002__open-label:hover, .modal-001__open-label:hover {
    background-color: #fff;
    color: #2589d0;
    outline: 1px solid #2589d0;
}

.modal-002, .modal-001 {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal-002__open-input:checked + label + input + .modal-001, .modal-001__open-input:checked + label + input + .modal-001 {
    display: block;
    animation: modal-002-animation .6s;
    animation: modal-001-animation .6s;
}

.modal-002__content-wrap, .modal-001__content-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 650px;
    background-color: #fefefe;
    z-index: 2;
    border-radius: 5px;
}

.modal-002__close-label, .modal-001__close-label {
    background-color: #777;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 20px;
    width: 36px;
    height: 36px;
    line-height: 1.6;
    text-align: center;
    display: table-cell;
    position: fixed;
    top: -15px;
    right: -2%;
    z-index: 99999;
    font-size: 1.3em;
}

.modal-002__content, .modal-001__content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 39px 45px 40px;
}

.modal-002__background, .modal-001__background {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .45);
    z-index: 1;
}

@keyframes modal-002-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes modal-001-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (max-width: 520px) {
    .modal-002__open-label, .modal-001__open-label {
        max-width: 90%;
        padding: .94em 2.1em .94em 2.6em;
    }

    .modal-002__close-label, .modal-001__close-label {
        top: -17px;
        right: -4%;
    }

    .modal-002__content-wrap, .modal-001__content-wrap {
        width: 90vw;
    }

    .modal-002__content, .modal-001__content {
        padding: 33px 21px 35px;
        max-width: 100%;
    }
}