@charset "utf-8";
/* CSS Document */

#main_img {
	width: 100%;
	height: 0;
	padding-top: calc(600/1500*100%);
	background: url(../images/gallary_main_img.png) center center / cover no-repeat;
	position: relative;
	z-index: -10;
}

.title_logo {
	width: 40%;
	position: absolute;
	top: 50%;
	left: 60%;
	right: 40%;
}

#gallary  {
	padding-bottom: 40px;
	pading-top: 40px;
	background-image: url(../images/../images/g_back02.png);
	background-repeat: repeat;
}

#gallary ul {
	margin: 0;
	padding: 0;
	max-width: 1000px;
	width: 100%;
}

#gallary .caption {
	font-size: 15px;
	padding-top: 40px;
}

#gallary ul li {
	width:33.3%;
	float: left;
	margin-top: 10px;
}

#gallary ul li img {
	max-width: 1000px;
	width: 100%;
}

figure {
	position: relative;
	overflow: hidden;
	color: #fff;
}
figure a{
	color: #fff;
}
figcaption {
	position: absolute;
	bottom: -60px;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 60px;
	background: rgba(0,0,0,.6);
	-webkit-transition: .3s;
	transition: .3s;
}

h3 {
	font-size: 18px;
	text-align: center;
	margin-top: 20px;
}

figure:hover figcaption {
	bottom: 0;
}

@media (min-width:416px){
#gallary ul li:nth-child(3n+1) {
	clear: left;
	float: left;
}
}

/*ここからタブレット用（～800px）環境の設定
---------------------------------------------------------------------------*/
/*表示を切り替えるウィンドウサイズの指定*/
@media (max-width:800px){
	
	h3 {
		font-size: 14px;
	}
}




/*ここからスマホ用（～415px）環境の設定
---------------------------------------------------------------------------*/
/*表示を切り替えるウィンドウサイズの指定*/
@media (max-width:415px){
	
	#gallary ul li {
		width: 50%;
	}
	#gallary ul li:nth-child(2n+1) {
	clear: left;
	float: left;
	}
	

}