
/* modal */

.modal-wrapper {
     width: 100%;
     height: 100%;
     position: fixed;
     top: 0;
     left: 0;
     background: rgba(0,0,0,0.75);
     pointer-events: none;
     opacity: 0;
     transition: 0.6s ease-out;
     z-index: 11;
}

.modal-wrapper.show {
     opacity: 1;
     pointer-events: all;
}

.modal-inner {
     position: absolute;
     max-width: 80%;
     max-height: 80%;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     object-fit: cover;
     transition: 0.5s ease-out;
}
.modal-image {
     opacity: 0;
}
.modal-image.show {
     opacity: 1;
}

.modal-inner::after {
    content: '';
    background-image: url(/ja/safety/img/Y24/clause_icon_img.png);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    right: 0;
    top: -40px;
    cursor: pointer;
}

@media screen and (min-width: 320px) and (max-width: 767.499px) {
    .modal-inner {
         width: 100%;
         max-width: 90%;
         max-height: 90%;
    }
    .modal-inner::after {
        width: 30px;
        height: 30px;
        top: -25px;
    }
    .modal-wrapper {
         z-index: 15;
    }

}
