@charset "utf-8";

/* ----------------------------- オーバーレイ用 ▽ */
#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_MAIN_PHOTO_WRAPPER 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_THUMBNAIL_CAROUSEL{
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
}
#MODAL_THUMBNAIL_CAROUSEL li {
	display: inline-block;
	position: relative;
	width: 100px;
	height: 100px;
	overflow: hidden;
	transition: .2s;
	cursor: pointer;
	margin: 0px 2px;
}
#MODAL_THUMBNAIL_CAROUSEL li:hover {
	opacity: .5;
}

#MODAL_THUMBNAIL_CAROUSEL li img {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
#MODAL_IMAGE_THUMBNAIL{
	position: fixed;
	width: 100%;
	bottom: 0px;
	left: 0px;
}
/* ----------------------------- 画像表示用 △ */
/* ----------------------------- コメント用 ▽ */
#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%;

	font-size: 14px;
	font-weight: normal;
	padding: 15px;
	background: rgba(0,0,0,0.5);
}

/* -------------------------------  コメント用 △ */
/* -----------------------------  ＜・＞ボタン ▽ */
#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;
	cursor: pointer;
	content: "";
}

#MW_IMAGE_COUNT:not(:empty) {
	position: absolute;
	top: 10px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	display: block;
	width: 70px;
	margin: auto;
	left: 0;
	right: 0;
	text-align: center;
	padding: 5px;
	z-index: 100;
}

#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);
}

/* -----------------------------  ＜・＞ボタン △ */
.modal_back_hidden {
	opacity: 0;
	pointer-events: none;
}

.modal_window_hidden {
	height: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease-out;
	display: none;
}

.modal_back {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
}

.modal_window {
	opacity: 1.0;
	position: fixed;
	z-index: 2;
	top: 50%;
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	max-height: calc(100%);
	background-color: #fff;
	width: 100%;
	z-index: 2000;
}

.modal_window_contents {
	max-height: calc(100vh);
	overflow-y: auto;
	width: 100%;
}

.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: var(--color-black);
	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;
	padding-left: 5px;
}

/* ------------------------------------------------------------------------------------- */
/* 600px以下 */
/* ------------------------------------------------------------------------------------- */
@media (max-width: 1000px) and (orientation: landscape){
	/* 横サイズにも対応 */
	#MODAL_OVERLAY DIV#MW_IMAGE {
		height: 80%;
	}
}
@media screen and (max-width: 600px) {

	/* ----------------------------- モーダルウィンドウ ▽ */
	#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;
	}	
	#MODAL_OVERLAY .button_slide:before {
		width: 20px;
		height: 20px;
	}

	#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: 10px;
	}

	#MW_BUTTON_BACK:before {
		left: 10px;
	}

	#MW_BUTTON_CLOSE {
		width: 40px;
		height: 40px;
		font-size: 40px;
		padding: 15px 5px;
	}

	.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;
	}
}

/* IE11 ハック */
@media all and (-ms-high-contrast:none) {
	*::-ms-backdrop, #MODAL_OVERLAY .mw_main_photo img {
		height: auto;
	}
}