@charset "utf-8";
/* CSS Document */

#lower-image {
	background: url(../../../images/main_image.jpg) center -150px;
	background-size: cover;
}

#main-contents #floormap {
	position: relative;
}

#main-contents #floormap figure {
	width: 100%;
	height: 300px;
	background-color: #f5f5f5;
	box-sizing: border-box;
}

#main-contents #floormap #icon {
	padding: 20px;
	overflow: hidden;
	background-color: #f5f5f5;
	box-sizing: border-box;
}

#main-contents #floormap #icon li {
	float: left;
	margin: 0 20px 10px 0;
	list-style: none;
}

#main-contents #floormap #icon li img {
	display: inline-block;
	width: 20px;
	margin-right: 5px;
	vertical-align: middle;
}

#main-contents #floormap #photo {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 30px;
}

#main-contents #floormap #photo li {
	width: calc(50% - 10px);
}

#main-contents #floormap #photo li:nth-of-type(n + 3) {
	margin-top: 20px;
}

#main-contents #floormap #photo li a {
	position: relative;
	display: block;
}

#main-contents #floormap #photo li figure {
	height: auto;
	padding: 0;
	background: none;
	overflow: hidden;
	line-height: 0;
}

#main-contents #floormap #photo li p {
	position: absolute;
	bottom: 0;
	display: table;
	width: 100%;
	height: 100%;
	
	color: #fff;
	font-size: 1.2rem;
	line-height: 1.6;
	text-align: left;
	border-radius: 0 0 5px 5px;
	opacity: 1;
	background-image: linear-gradient(0deg, rgba(0,0,0,0.5), rgba(0,0,0,0) 50%);
	
	transition: all 0.2s cubic-bezier(0.21,0.42,0.5,1.16);
}

#main-contents #floormap #photo li p span {
	position: relative;
	display: table-cell;
	width: 100%;
	height: auto;
	padding: 40px 10px 10px;
	font-weight: bold;
	vertical-align: bottom;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

#main-contents #floormap #photo li a:hover p {
	opacity: 0;
}

#main-contents #sub-map h3 {
	margin-bottom: 20px;
}

#main-contents #sub-map #sakura,
#main-contents #sub-map #south,
#main-contents #sub-map .main {
	margin-bottom: 20px;
	padding: 20px;
	background-color: #f5f5f5;
	overflow: hidden;
	box-sizing: border-box;
}

#main-contents #sub-map div figure {
	max-width: 550px;
	margin: auto;
}

#main-contents #sub-map div p {
	font-size: 1.2rem;
}

#main-contents #sub-map #sakura h3 {
	color: #e95098;
}

#main-contents #sub-map #south h3 {
	color: #f3981e;
}

#main-contents #sub-map .main h3 {
	color: #90c31f;
}


@media screen and (min-width: 768px) {
	#main-contents #floormap figure {
		height: 600px;
	}

	#main-contents #floormap #icon li {
		margin-bottom: 0;
	}

	#main-contents #floormap #photo:before {
		content: '';
		display: block;
		width: calc(25% - 15px);
		order: 1;
	}
	
	#main-contents #floormap #photo:after {
		content: '';
		display: block;
		width: calc(25% - 15px);
	}

	#main-contents #floormap #photo li {
		width: calc(25% - 15px);
	}
	
	#main-contents #floormap #photo li:nth-of-type(n + 3) {
		margin-top: 0;
	}

	#main-contents #floormap #photo li:nth-of-type(n + 5) {
		margin-top: 20px;
	}

	#main-contents #sub-map #sub-wrap {
		display: -webkit-flex;
		display: -moz-flex;
		display: flex;
		justify-content: space-between;
	}

	#main-contents #sub-map #sakura,
	#main-contents #sub-map #south {
		width: calc(50% - 10px);
	}
}

@media screen and (min-width: 1280px) {
	#contents section {
		margin-bottom: 60px;
	}
	
	#main-contents #floormap #photo:before,
	#main-contents #floormap #photo:after {
		width: calc(20% - 15px);
	}

	#main-contents #floormap #photo li {
		width: calc(20% - 15px);
	}

	#main-contents #floormap #photo li:nth-of-type(n + 5) {
		margin-top: 0;
	}

	#main-contents #floormap #photo li:nth-of-type(n + 6) {
		margin-top: 20px;
	}

	#main-contents #sub-map div p {
		font-size: 1.4rem;
	}
}
