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

#cboxBottomCenter{height:0;}
#colorbox p {font-size: 14px;line-height: 1.5; color: #666;}
#colorbox p a{color: #666; text-decoration: underline;}

/*--------------------------------------------------------
　PC
--------------------------------------------------------*/

footer {
	margin-top: 0;
}

div.main {
	wwidth: 100%;
	height: 39.3vw;
	max-height: 830px;
	margin-bottom: 0;
	background: url("../images/gallery/main.jpg") no-repeat;
	background-size: cover;
	position: relative;
	overflow: hidden;
	display: flex;
	flex-wrap:wrap;
	justify-content: center;
	align-items: center;
}

div.main div.text{
	width: 100vw;
	display: inline-block;
}

div.main h2{
	width: 86.25%;
	max-width: 1242px;
	margin: 0 auto;
	line-height: 0;
}

div.main h3{
	font-size: 20px;
	font-size: 2.0rem;
	font-weight: bold;
	line-height: 1;
	text-align: center;
	color: #FFF;
	letter-spacing: 0.3em;
	padding-left: 0.3em;
}
	
div#gallery {
	width: 100%;
	animation-name: 0;
}
	
div#gallery ul.out_block{
	width: 100%;
	margin: 0 auto;
	display: flex;
	flex-wrap:wrap;
	justify-content: flex-start;
}

div#gallery ul.out_block li.block{
	width: auto;
	display: flex;
	flex-wrap:wrap;
	justify-content: flex-start;
}

div#gallery ul.out_block li.block ul{
	width: auto;
	display: flex;
	flex-wrap:wrap;
	justify-content: flex-start;
}

div#gallery ul.out_block li.block ul.four.first{
	width: 50%;
}

div#gallery ul.out_block li.block ul.four li{
	width: 25%;
}

div#gallery ul.out_block li.block ul.two li{
	width: 50%;
}

div#gallery ul.out_block li a{
	display: block;
	transition-duration: 0.5s;
	position: relative;
}

div#gallery ul.out_block li a:hover{
	opacity: 0.7;
}

div#gallery ul.out_block li a div{
	line-height: 0;
	position: relative;
}

div#gallery ul.out_block li a div::after{
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(0,0,0,.4);
	z-index: 3;
	content: "";
}

div#gallery ul.out_block li a p{
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
}

#cboxTitle {
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    bottom: auto;
    left: auto;
    text-align: left;
    width: 100%;
    color: #999;
}

#cboxLoadedContent {
    position: relative;
}

#cboxPrevious {
    position: absolute;
    bottom: 50%;
    left: -20px;
    background: url("../images/gallery/btn_prev.png") no-repeat;
	background-size: cover;
    width: 40px;
    height: 40px;
    text-indent: -9999px;
	outline: none;
}

#cboxNext {
    position: absolute;
	bottom: 50%;
	left: auto;
    right: -20px;
    background: url("../images/gallery/btn_next.png") no-repeat;
	background-size: cover;
    width: 40px;
    height: 40px;
    text-indent: -9999px;
	outline: none;
}

#cboxClose {
    position: absolute;
    top: -65px;
    right: 0;
    background: url("../images/gallery/btn_close.png") no-repeat;
	background-size: cover;
    width: 50px;
    height: 50px;
    text-indent: -9999px;
	outline: none;
}

@media screen and (min-width: 768px){
	div#gallery ul.out_block li.block ul.four.first li{
        width: 50%;
    }
	div#gallery ul.out_block li.block ul.two.first{
        width: 50%;
    }
    div#gallery ul.out_block li.block ul.two.first li{
        width: 100%;
    }
}

/*--------------------------------------------------------
　SP
--------------------------------------------------------*/

@media screen and (max-width: 767px){
	
	div.main {
		height: 50vw;
		margin-bottom: 0;
	}
	
	div.main h3{
		font-size: 16px;
		font-size: 1.6rem;
	}
	
	div#gallery ul.out_block li.block ul.four.first{
        width: 100%;
    }

    div#gallery ul.out_block li.block ul.four li{
        width: 50vw;
    }

    div#gallery ul.out_block li.block ul.two li{
        width: 100vw;
    }
	
	#cboxMiddleLeft{width:20px;}
    #cboxMiddleRight{width:20px;}
    #cboxTopCenter{height:30px;}
	
	#cboxTitle {
    font-size: 13px;
    line-height: 1.6;
    position: relative;
    bottom: auto;
    left: auto;
    text-align: left;
    width: 100%;
    color: #999;
	}
	
	#cboxPrevious {
        position: absolute;
        bottom: 50%;
        left: -15px;
        background: url("../images/gallery/btn_prev.png") no-repeat;
        background-size: cover;
        width: 30px;
        height: 30px;
        text-indent: -9999px;
        outline: none;
    }

    #cboxNext {
        position: absolute;
        bottom: 50%;
        left: auto;
        right: -15px;
        background: url("../images/gallery/btn_next.png") no-repeat;
        background-size: cover;
        width: 30px;
        height: 30px;
        text-indent: -9999px;
        outline: none;
    }

    #cboxClose {
        position: absolute;
        top: -50px;
        right: 0;
        background: url("../images/gallery/btn_close.png") no-repeat;
        background-size: cover;
        width: 40px;
        height: 40px;
        text-indent: -9999px;
        outline: none;
    }
	
}