/* モーダル */
.ruishin-modal {
    position: fixed;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    z-index: 20;
    transition: 0.5s;
    visibility: hidden;
    opacity: 0;
}

.ruishin-modal.active {
    opacity: 1;
    visibility: visible;
}

body.ruishin-movie-active {
    overflow: hidden;
}

.ruishin-modal-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

.ruishin-modal-btn {
    position: absolute;
    top: 13%;
    left: 50%;
    width: 75px;
    height: 17px;
    cursor: pointer;
    padding: 20px;
    transform: translate(-50%, -50%);
    display: block;
}

.ruishin-modal-btn span {
    display: block;    
    width: calc(100% - 20px);    
    height: 1px;    
    background-color: #fff;    
    position: absolute;    
    left: 10px;
    transition: transform 0.5s;
}

.ruishin-modal-btn span:first-of-type {
    transform: translate(0,8.5px) rotate(12deg) !important;
    top: 20px;
}

.ruishin-modal-btn:hover span:first-of-type {
    transform: translate(0,8.5px) rotate(18deg) !important;
}

.ruishin-modal-btn span:last-of-type {
    transform: translate(0,-8.5px) rotate(-12deg) !important;
    top: 37px;
}

.ruishin-modal-btn:hover span:last-of-type {
    transform: translate(0,-8.5px) rotate(-18deg) !important;
}

.ruishin-modal-movie {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 1080px;
    margin: 0 auto;
}

.ruishin-modal-movie iframe {
    width: 100%;
    height: 100%;
}

.ruishin-kv-video {
    width: 100%;
    vertical-align: bottom;
}

.ruishin-kv-video-sp {
    display: none;
}

@media screen and (max-width: 640px) {
    .ruishin-kv-video-sp {
        display: block;
    }
    .ruishin-kv-video-pc {
        display: none;
    }
}

.ruishin-kv {
    cursor: pointer;
    position: relative;
}

.ruishin-kv-click {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* トップ */
@media screen and (max-width: 640px) {
    #ruishin-top-modal-kv {
        aspect-ratio: 9 / 16;
        width: 80%;
    }
}

.ruishin-top-movie {
    display: none;
}

.ruishin-top-movie.active {
    display: block;
}