﻿@charset "UTF-8";

/* ------------------------------
   CHAPTER ELEMENTS
------------------------------ */
#mdArea {
	top: 0;
	left: 0;
	right: 0;
    bottom: 0;
	position: fixed;
	z-index: 1100;
	/*background: rgba(0,0,0,0.70);*/
	display: none;
	height: 100vh;
    overflow-y: auto;
}
#mdOverlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
    bottom: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.70);	
}
/*#mdContainer {
    position: relative;
    padding-top: 60px;
    padding-bottom: 60px;
    display: none;
}*/
#mdWindow {
    width: 50vw;
    min-width: 700px;
    height: auto;
    max-width: 800px;
    position: relative;
    z-index: 11010;
    background: #fff;
    display: none;
    border: none;
    margin: 60px auto;
}
#mdWindow:after {
	content: " ";
	display: block;
	position: absolute;
	z-index: 0;
	border: 1px solid #fff;
	width: calc(100% + 10px);
	height: calc(100% + 10px);
	top: -5px;
	left: -5px;
}
#mdWindow > .mdClose {
	top: -40px;
	right: -40px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	color: #fff;
	font-size: 1.5em;
	position: absolute;
	z-index: 1102;
	cursor: pointer;
}
#mdWindow > .mdClose:before {
	content: " ";
	display: block;
	width: 20px;
	height: 2px;
	background-color: #fff;
	transform: rotate(45deg);
	-webkit-transform: rotate(45deg);
	position: absolute;
	bottom:  10px;
	left: 0;
	z-index: 1100;
}
#mdWindow > .mdClose:after {
	content: " ";
	display: block;
	width: 20px;
	height: 2px;
	background-color: #fff;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	position: absolute;
	bottom: 10px;
	left: 0;
	z-index: 1100;
}
#contWrap {
	padding: 10px;
	width: 100%;
	box-sizing: border-box;
	overflow-y: auto;
	border: none;
	position: relative;
	z-index: 1100;
}

/*SP---------------*/
@media screen and (max-width: 768px) {
    /*#mdContainer {
        padding-bottom: 150px;
    }*/
	#mdWindow {
		width: calc(100% - 60px);
		min-width: inherit;
       /*モーダル内スクロール height: 70vh;*/
	}
	#mdWindow > .mdClose {
		top: -43px;
   		right: -5px;
	}
	#contWrap {
		padding: 8px;
	}
}