@charset "utf-8";
/* CSS Document */
.modal-window {
background: rgba(0,0,0,0.4);
-webkit-transform: translate(0, 100%);
-moz-transform: translate(0, 100%);
-o-transform: translate(0, 100%);
-ms-transform: translate(0, 100%);
transform: translate(0, 100%);
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 999;
opacity: 0;
line-height: 1.3;
}
.modal-window:target {
-webkit-transform: translate(0, 0);
-moz-transform: translate(0, 0);
-o-transform: translate(0, 0);
-ms-transform: translate(0, 0);
transform: translate(0, 0);
opacity: 1;
}

.modal-window .modal-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	z-index: 20;
	width: 80%;
	max-width: 980px;
	max-height: 90%;
	line-height: 1.7;
	border-radius: 7px;
	box-sizing: border-box;
	padding: 40px 40px 20px 40px;
	margin: 0 auto;
	background: #fff;
	-webkit-box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}
.modal-inner .scroll{/* inner内でスクロールさせる */
	overflow-y: scroll;
	padding: 0 15px 0 0;
	box-sizing: border-box;
	width: 100%;
	height: 500px;
	display: flex;
	flex-direction: column;
	margin:0 auto 10px auto !important;
}
.modal-inner .scroll::-webkit-scrollbar{width:3px;}/*バーの太さ*/
.modal-inner .scroll::-webkit-scrollbar-track{background:#eee; border-radius: 6px;}/*バーの背景色*/
.modal-inner .scroll::-webkit-scrollbar-thumb{background:#333; border-radius: 6px;}/*バーの色*/

.modal-window .modal-close {
display: block;
text-indent: -100px;
overflow: hidden;
}
.modal-window .modal-close:before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
}
.modal-window .inner-close{
	display: block;
	margin-top: auto;
}
.modal-window .inner-close a{
	margin: 0 auto;
	display: table;
	line-height: 1.4;
	font-size: 90%;
	padding: 8px 50px;
	background: #eee;
	color: #212121;
	font-weight: bold;
	border-radius: 30px;
	text-decoration: none;
	border-bottom: none;
}
.modal-window .inner-close a:hover{
	background: #ddd;
}
.modal-window {
-webkit-transition: opacity 0.4s;
-o-transition: opacity 0.4s;
transition: opacity 0.4s;
}

@media screen and (min-width: 601px) and (max--width: 999px){
	.modal-inner .scroll{/* inner内でスクロールさせる */
		height: 600px;
	}
}
@media screen and (min-width: 0px) and (max-width: 600px){
	.modal-window {
		z-index: 1002;
	}
	.modal-window .modal-inner {
		width: 90%;
		padding: 20px;
	}
	.modal-inner .scroll{/* inner内でスクロールさせる */
		height: 80vh;
		padding: 40px 20px 20px 20px;
	}
	.modal-window .inner-close{
		margin-top: 30px;
	}
}