@charset "utf-8";



#modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition-duration: 400ms;
    transition-property: visibility, opacity;
    transition-timing-function: ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal .back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
}

body.openModal #modal {
    visibility: inherit;
    opacity: 1;
}

body.openModal {
    overflow: hidden;
}

#modal .inner {
    position: relative;
}

#modal iframe {
    display: block;
    width: 100%;
    height: 100%;
}


#modal .close a {
    position: absolute;
    display: block;
    background-size: 100% 100%;
    text-indent: -9999px;
    overflow: hidden;
}

@media print,
screen and (min-width: 813px) {





    #modal .close a {
        background-image: url(../img/modal_close.svg);
        width: 66.883px;
        height: 45.565px;
        right: -66.883px;
        top: 0;
    }

}


@media only screen and (max-width: 812px) {




    #modal .close a {
        background-image: url(../img/modal_close_sp.svg);
        width: calc(66.454px / 2);
        height: calc( 65.054px / 2);
        right: calc(10px);
        top: calc(-65.054px / 2 - 10px);
    }
}