@charset "utf-8";

.mod_modalCover {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.54);
    z-index: 101;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    overflow-y: auto;
}

.modalInner {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 102;
    box-sizing: border-box;
}

.modalBtn {
    height: 30px;
    width: 30px;
    background: #000;
    position: absolute;
    right: 15px;
    top: 15px;
    transition: all .3s ease;
    cursor: pointer;
    background: url(/denki/assets/img/overlay/ico_close.png) no-repeat center center;
    background-size: 100%;
    opacity: 0;
}

.modalBtn:hover {
    opacity: .6;
}

.modalElm {
    opacity: 0;
    display: block;
    position: relative;
    padding: 55px 15px 90px;
    box-sizing: border-box;
}

.modalElm a {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    display: block;
    transition: all .3s ease;
    cursor: pointer;
    max-width: 480px;
    margin: 0 auto;
}

.modalElm img {
    width: 100%;
    height: auto;
}

@supports (-webkit-touch-callout: none) {

    .mod_modalCover,
    .modalInner {
        height: -webkit-fill-available;
    }
}

@media screen and (max-width:414px) {
    .modalElm {
        padding: 60px 0 90px;
    }

    .modalBtn {
        height: 30px;
        width: 30px;
        right: 5%;
    }

    .modalElm a {
        border-radius: 8px;
        width: 90%;
    }
}
