/* ========================================
   Modal（最後に追記）
======================================== */

/* Modal */
.image_modal {
    display: none;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-box-pack: center;
    -webkit-box-align: center;
    -moz-box-pack: center;
    -moz-box-align: center;
    -ms-flex-pack: center;
    -ms-flex-align: center;
    -webkit-justify-content: center;
    -webkit-align-items: center;
    justify-content: center;
    align-items: center;
}

/* モーダルが開いている時にヘッダーとハンバーガーメニューを非表示 */
body.modal_open header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body.modal_open .hamburger {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

.modal_content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    -webkit-animation: zoom 0.3s;
    -moz-animation: zoom 0.3s;
    -o-animation: zoom 0.3s;
    -ms-animation: zoom 0.3s;
    animation: zoom 0.3s;
}

@-webkit-keyframes zoom {
    from {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    to {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-moz-keyframes zoom {
    from {
        -moz-transform: scale(0);
        transform: scale(0);
    }
    to {
        -moz-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes zoom {
    from {
        -webkit-transform: scale(0);
        -moz-transform: scale(0);
        -o-transform: scale(0);
        -ms-transform: scale(0);
        transform: scale(0);
    }
    to {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -o-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
    }
}

.modal_close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    -ms-transition: color 0.3s ease;
    transition: color 0.3s ease;
    z-index: 100000001;
	background: none;
    border: none;
}

.modal_close:hover,
.modal_close:focus {
    color: #bbb;
}