@charset "utf-8";
/* ------------------------------
 モーダル
------------------------------ */
body.modal-enable {
	position: fixed;
	overflow: scroll;
}
.modal-close {
	display: block;
	position: fixed;
	top: 30px;
	right: 45px;
	width: 45px;
	height: 45px;
	line-height: 45px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	z-index: 11000;
	background: url(../img/modal_close.svg) no-repeat 0 0 / 30px 30px;
}
.modal-next {
	display: none;
}
.modal-prev {
	display: none;
}
.modal-close p,
.modal-next p,
.modal-prev p {
	visibility: hidden;
}
.modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;/*for old Safari*/
	height: 100vh;
	background-color: rgba(0,0,0,0.7);
	z-index: 11000;
	overflow-y: scroll;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	/*padding-bottom: 150px !important; */
}
.modal-container {
	align-items: center;
	position: relative;
	text-align: left;
	max-width: 100%;
	left: 0;
	right: 0;
	margin: auto;
	height: 100%;
	padding: 60px 0;
}
.modal-open:hover {
    cursor: pointer;
}
.modal-close:hover {
	cursor: pointer;
}
.pop-content {
	background: #fff;
    position: relative !important;
	overflow: visible;
	overflow-x: hidden;
	overflow-y: auto;
}
/* ----------------------
 スマホ用コード
---------------------- */
@media screen and (max-width: 900px) {
	.pop-content {
		width: 100% !important;
	}
}
@media screen and (max-width: 767px) {
	.modal-overlay {
		margin-top: 49px;
	}
	body.modal-enable {
		overflow: hidden;
	}
	.modal-container {
		padding: 0;
	}
	.modal-content {
		width: 100% !important;
		padding: 20px;
		margin: 0 !important;
	}
    .modal-close {
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 40px;
        line-height: 30px;
        background: rgba(0, 0, 0, 0.2) url(../img/modal_close.svg) no-repeat center center / 14px 14px;
    }
    .modal-next {
        top: 248px;
        width: 40px;
        height: 40px;
        line-height: 30px;
        background: url(../img/modal_next.svg) no-repeat 0 0 / 40px 40px;
    }
    .modal-prev {
        top: 248px;
        width: 40px;
        height: 40px;
        line-height: 40px;
        background: url(../img/modal_prev.svg) no-repeat 0 0 / 40px 40px;
    }
}
