@charset "utf-8";

/*------モーダルウィンドウ------*/

.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: .5s;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.modal .cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.6);
}
.modal.open {
    visibility: visible;
    opacity: 1;
}
.modal .modalWrap {
    width: 80vw;
    height: 100%;
    max-height: 80vh;
    position: relative;
    box-shadow: 2px 2px 4px #000;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-sizing: content-box;
}
.modal .modalInner {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    overflow-y: auto;
}
.modal .modalInner .wrap_detail {
    font-size: 90%;
    line-height: 1.5em;
    border-top: 2px dotted #ccc;
    margin-top: 5px;
    padding-top: 5px; 
}
.modal .iframeWrap {
    position: relative;
    width: 100%;
    height: 100%;
}
.modal.modalmovie .modalWrap {
    max-width: 720px;
    height: auto;
}
.modal.modalmovie .iframeWrap {
    width:100%;
    padding-top: 56.25%;
    position: relative;
}
.modal .iframeWrap iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}
.modal .close {
    background: #333;
    border: 3px solid #FFF;
    position: absolute;
    top: -17px;
    right: -17px;
    z-index: 999;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-sizing: content-box;
    color: #fff;
    box-shadow: 2px 2px 4px #000;
}
.modal .close:before,
.modal .close:after {
    content: "";
    position: absolute;
    width: 12%;
    height: 60%;
    background: #fff;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}
.modal .close:before {
    transform: rotate(45deg);
}
.modal .close:after {
    transform: rotate(-45deg);
}
@media screen and (max-width:1279px) {
    .modal .modalWrap {
        padding: 8px;
    }
}