
/* ------------------------------------------------------------------------------------- */
/* =================== ↓モーダルウィンドウ ================ */
/* ----------------------------- オーバーレイ用 ▽ */
#MODAL_OVERLAY {
	z-index: 99999;
	display: none;
	position: fixed;
	top: 0px;
	left: 0px;
	background-color: rgba(0, 0, 0, 0.75);
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: 70px;
}
/* ----------------------------- オーバーレイ用 △ */
/* --------------------------------- 画像表示用 ▽ */
#MW_WRAPPER {
	margin : auto;
	position : absolute;
	top : 0;
	bottom : 0;
	left : 0;
	right : 0;
}
#MODAL_OVERLAY DIV#MW_IMAGE {
	position: relative;
	text-align: center;
	box-sizing: border-box;
	max-width: 1000px;
	height: calc(100% - 130px);
	margin: auto;
	background-color : rgba(255,255,255,0.9);
}
#MODAL_OVERLAY DIV#MW_IMAGE img{
	box-sizing : border-box;
	position : absolute;
	top : 0;
	bottom : 0;
	right : 0;
	left : 0;
	margin : auto;
}
#MW_TEXTS_WRAPPER span{
	padding : 15px;
}
#MODAL_OVERLAY img{;
	user-select: none;
	/* CSS3 */
	-moz-user-select: none;
	/* Firefox */
	-webkit-user-select: none;
	/* Safari、Chromeなど */
	-ms-user-select: none;
	/* IE10 */
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	max-height: 85%;
	margin: auto;
	display : block;
}
#MODAL_OVERLAY #VIEW_MAP_SP img{
	max-height : 100%;
}
.mw_main_photo{
	position : absolute;
	top : 0;
	right : 0;
	left : 0;
	margin : auto;
	height : calc(100% - 50px);
}
#MW_THUMBNAIL_BASE{
	z-index : 600;
	position : absolute;
	bottom : 5%;
	left : 0;
	right : 0;
	overflow-x : auto;
	overflow-y : hidden;
	height : 100px;
	width : 100%;
	white-space : nowrap;
	display:-ms-flexbox;
	display:-webkit-flex;
	display:flex;
	-webkit-justify-content: center; /* Safari etc. */
	-ms-justify-content : center; /* IE10 */
	justify-content : center;
	align-items : center;
	background-color : rgba(0,0,0,0.5);
}
#MW_THUMBNAIL {
	height : 100px;
	width : auto;
	margin-top : 15px;
}
#MW_THUMBNAIL > img:not(:first-of-type) {
	position : static;
	border-left : none;
}
#MW_THUMBNAIL > img:first-of-type {
	position : static;
}
#MW_THUMBNAIL img{
	cursor : pointer;
	margin-right : 2px;
	opacity : 0.5;
	display : inline-block;
}
/* ----------------------------- 画像表示用 △ */
/* ----------------------------- コメント用 ▽ */
#MODAL_OVERLAY #MW_TEXTS_WRAPPER {
	color: #ffffff;
	font-size: 18px;
	text-align: center;
	width: 100%;
	height: auto;
	margin: auto;
	box-sizing: border-box;
	background-color : rgba(0,0,0,0.8);
}
#MODAL_OVERLAY SPAN#MW_COMMENT {
	display: block;
	color : #ffffff;
	position : absolute;
	bottom : 0;
	width : 100%;
}
/* -------------------------------  コメント用 △ */
/* -----------------------------  ＜・＞ボタン ▽ */
#MODAL_OVERLAY .button_slide {
	z-index: 9999;
	display: block;
	position: absolute;
	top: 35%;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	color: #ffffff;
	font-size: 21px;
	text-align: center;
	background-color: rgba(0, 0, 0, 0.8);
	width: 44px;
	height: 150px;
	margin-top: -43px;
}
#MODAL_OVERLAY .button_slide:before{
	width : 30px;
	height : 30px;
	border-top : 1px solid #E0E2E7;
	border-right : 1px solid #E0E2E7;
	position : absolute;
	margin : auto;
	display : block;
	vertical-align : middle;
	cursor : pointer;
	content : "";
}
#MW_BUTTON_BACK {
	left: -44px;
}
#MW_BUTTON_BACK:before{
	top : 0;
	bottom : 0;
	left : 15px;
	-webkit-transform : rotate(225deg);
	transform : rotate(225deg);
}
#MW_BUTTON_NEXT{
	right: -44px;
}
#MW_BUTTON_NEXT:before{
	top : 0;
	bottom : 0;
	-webkit-transform : rotate(45deg);
	transform : rotate(45deg);
}
/* -----------------------------  ＜・＞ボタン △ */
/* -----------------------------  閉じるボタン ▽ */
.button_close {
	z-index: 9999;
	display: block;
	position: absolute;
	top: 0px;
	right: 0px;
	cursor: pointer;
	color: #ffffff;
	font-size: 40px;
	line-height: 10px;
	text-align: center;
	background-color: #078CD6;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	box-sizing: border-box;
	width: 50px;
	height: 50px;
	padding-top: 20px;
}
/* ----------------------------- 閉じるボタン △ */
/* =================== ↑モーダルウィンドウ ================ */



/* ----------------------------- 物件データ表示用 ▽ */
#MODAL_ESTATE_BOX {
	overflow-x : hidden;
	height : 96%;
	padding : 2%;
}
#MODAL_OVERLAY #MODAL_MAIN_IMG_WRAPPER{
	position : relative;
	width : 100%;
	height : 50vw;
	max-height : 400px;
}
#MODAL_OVERLAY #MODAL_MAIN_IMG_WRAPPER img{
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
#MODAL_OVERLAY .button_style{
	font-size : 18px;
	padding : 8px;
	width : 180px;
	display : block;
	margin : 20px auto;
	cursor : pointer;
}
#MODAL_OVERLAY DIV#MW_IMAGE #MODAL_ESTATE_BOX img{
	position : relative;
	top: 50% ;
	max-width : 100%;
	max-height : 100%;
	transform : translate(0%, -50%);
}
#MODAL_OVERLAY #MODAL_ESTATE_BOX ul{
	width : 100%;
	padding : 0px 10px;
	margin : 10px auto;
	overflow-x : hidden;
}
#MODAL_OVERLAY #MODAL_ESTATE_BOX li{
	width : 80px;
	height : 80px;
	border : #cacaca 1px solid;
	border-radius : 2px;
	margin : 10px 0 0 0;
	position : relative;
	cursor : pointer;
	margin : 3px;
	float : left;
}
#MODAL_OVERLAY .data_box{
	display:-ms-flexbox;
	display:-webkit-flex;
	display:flex;
	-ms-flex-wrap:wrap;
	-webkit-flex-wrap:wrap;
	flex-wrap:wrap;
	width : 100%;
	max-width : 500px;
	margin : 20px auto;
	clear : both;
}
#MODAL_OVERLAY .data_box p{
	text-align : left;
	padding : 5px;
	width : calc(50% - 10px);
	border-bottom : 1px solid #cacaca;
}
#MODAL_OVERLAY .data_box p:nth-child(-n+2){
	border-top : 1px solid #cacaca;
}
#MODAL_OVERLAY .data_box .span_item{
	width : 5em;
	margin-right : 1em;
	display : inline-block;
}
/* ----------------------------- 物件データ表示用 △ */

/* ------------------------------------------------------------------------------------- */
/* 600px以下 */
/* ------------------------------------------------------------------------------------- */
@media screen and (max-width: 600px) {

	/* ----------------------------- モーダルウィンドウ ▽ */
	/* 横サイズにも対応 */
	#MODAL_OVERLAY DIV#MW_IMAGE{
		height : 50%;
	}
	#MW_IMAGE_WRAPPER{
		height : calc(100% - 100px);
		overflow : hidden;
	}
	#MODAL_OVERLAY{
		padding : 20px;
	}
	.tech_subtitle span:after,
	.tech_subtitle span:before{
		display : none;
	}
	/* スクロールバー表示 */
	#MW_WRAPPER .flow_box::-webkit-scrollbar,
	.div_tech_textbox::-webkit-scrollbar {
		height: 5px;
	}
	#MW_WRAPPER .flow_box::-webkit-scrollbar-track,
	.div_tech_textbox::-webkit-scrollbar-track {
		border-radius: 2px;
		background: #eee;
	}
	#MW_WRAPPER .flow_box::-webkit-scrollbar-thumb,
	.div_tech_textbox::-webkit-scrollbar-thumb {
		border-radius: 2px;
		background: #666;
	}
	#MODAL_OVERLAY #MW_TEXTS_WRAPPER{
		bottom : 100px;
	}
	#MODAL_OVERLAY .button_slide{
		height : 100px;
		top : 50%;
		width : 30px;
	}
	#MW_WRAPPER .div_tech_syousai{
		overflow : auto;
	}
	#MW_THUMBNAIL_BASE{
		bottom : 0;
		height : 50px;
	}
	#MW_THUMBNAIL{
		height : 50px;
	}
	#MODAL_OVERLAY #MW_TEXTS_WRAPPER{
		bottom : 50px;
	}
	#MW_TEXTS_WRAPPER span{
		padding : 5px;
	}
	#MW_BUTTON_BACK {
		left: -10px;
	}
	#MW_BUTTON_NEXT{
		right: -10px;
	}
	#MW_BUTTON_NEXT:before{
		right : 5px;
	}
	#MW_BUTTON_BACK:before{
		left : 5px;
	}
	#MW_BUTTON_CLOSE{
		width : 40px;
		height : 40px;
		font-size : 40px;
		padding : 10px 0px;
	}
	.estate #MW_BUTTON_CLOSE{
		border-width : 0px 0px 2px 2px;
		border-color : #ffffff;
		border-style : solid;
		z-index: 100000;
	}
	#MODAL_OVERLAY .data_box p{
		width : 100%;
	}
	#MODAL_OVERLAY .data_box p:nth-child(2){
		border-top : none;
	}
	/* ----------------------------- モーダルウィンドウ △ */
}
/* ------------------------------------------------------------------------------------- */
/* 560px以下 */
/* ------------------------------------------------------------------------------------- */
@media screen and (max-width: 560px) {

	/* ----------------------------- モーダルウィンドウ ▽ */
	#MODAL_OVERLAY{
		padding : 20px 10px;
	}
	.mw_main_photo{
		position : relative;
		overflow : hidden;
		width : 95%;
		margin : 10px auto;
		height : 75%;
	}
	#MODAL_OVERLAY .button_slide{
		top : 50%;
	}
	/* ----------------------------- モーダルウィンドウ △ */
}
/* ------------------------------------------------------------------------------------- */
/* 420px以下 */
/* ------------------------------------------------------------------------------------- */
@media screen and (max-width: 420px){
	#MODAL_OVERLAY{
		padding : 10px 0px;
	}
	#MODAL_OVERLAY .button_slide{
		background-color : rgba(0,0,0,0.3);
	}
	#MW_BUTTON_BACK{
		left : 0;
	}
	#MW_BUTTON_NEXT{
		right : 0;
	}
	.mw_main_photo{
		width : 100%;
	}
	#MW_BUTTON_CLOSE{
		padding : 15px 0px;
	}
	#MODAL_OVERLAY DIV#MW_IMAGE{
		height : 90%;
	}
}
/* IE11 ハック */
@media all and (-ms-high-contrast:none) {
	*::-ms-backdrop, #MODAL_OVERLAY .mw_main_photo img{
		height : auto;
	}
}
