@charset "utf-8";

@import "base_layout.css";
@import "common_parts.css";

.swiper-container img{
	width: 100%;
	height: auto;
}

.anim{
	opacity: 0;
	transform: translate(0,60px); 
	-webkit-transform: translate(0,60px); 
	transition: .8s;
}
.move{
	opacity: 1.0;
	transform: translate(0,0); 
	-webkit-transform: translate(0,0);
}

.delay1{
	transition-delay: .1s;
}
.delay2{
	transition-delay: .2s;
}
.delay3{
	transition-delay: .3s;
}
.delay4{
	transition-delay: .4s;
}
.delay5{
	transition-delay: .5s;
}
.delay6{
	transition-delay: .6s;
}
.delay7{
	transition-delay: .7s;
}
@media screen and (max-width: 979px) {
.delay1,
.delay2,
.delay3,
.delay4,
.delay5,
.delay6,
.delay7{
	transition-delay: .1s;
}
}

@media screen and (max-width: 768px){
.delay1,
.delay2,
.delay3,
.delay4,
.delay5,
.delay6,
.delay7{
	transition-delay: 0;
}
}

#slideshow { position:relative; width:100%; height:auto; margin:auto;}
#slideshow img { position:absolute; top:0; left:0; z-index:8; }
#slideshow img.active { z-index:10; }
#slideshow img.last-active { z-index:9; }

.mainphoto{
	position: relative;
	width: 100%;
	z-index: 10;
	overflow: hidden;
	text-align: center;
	background: #f1f1f1;
}
.mainphoto:before {
	content:"";
	display: block;
	padding-top: 37%;
}
.mainphoto img{
	height: auto;
	width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
	margin: auto;
}


.photo-grid{
}
.grid-item{
	display: inline-block;
	
	position: relative;
	
	padding: 15px 15px 35px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	margin: 0;
	
}
.grid-item .img-wrap{
	position: relative;
	background: #000;
	font-size: 0;
	line-height: 0;
	padding: 0;
}
.grid-item .img-wrap .g-hover-title{
	display: none;
	position: absolute;
	color: #fff;
	font-size: 16px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 999;
	text-align: center;
	line-height: 1.5;
	
}
.grid-item img {
	width: 100%;
	height: auto;
	box-sizing: border-box;
	opacity: 1;
	-webkit-transition: all .5s ease-in-out;
	-moz-transition: all .5s ease-in-out;
	-o-transition: all .5s ease-in-out;
	transition: all .5s ease-in-out;
}
.grid-item:hover .img-wrap .g-hover-title{
	display: block;
}
.grid-item:hover .img-wrap img{
	opacity: .7;
}
.grid-item .title{
	font-size: 20px;
	margin: 15px 0 5px 0;
	font-weight: 700;
}
.grid-item .title a{
	color: #000;
	text-decoration: none;
}
.grid-item .cmt{
	font-size: 14px;
}

.grid-item.grow1{
	width: 30%;
}
.grid-item.grow2{
	width: 40%;
}
.grid-item.grow3{
	width: 29%;
}
.grid-item.grow4{
	width: 39%;
}
.grid-item.grow5{
	width: 25%;
}
.grid-item.grow6{
	width: 35%;
}

@media screen and (max-width: 768px){
.grid-item{
	padding: 1% 1% 2%;
	
}
.grid-item .title{
	font-size: 15px;
}
.grid-item.grow2{
	width: 39%;
}
.grid-item.grow6{
	width: 34%;
}
}
@media screen and (max-width: 620px) {
.grid-item.grow1{
	width: 49%;
}
.grid-item.grow2{
	width: 49%;
}
.grid-item.grow3{
	width: 49%;
}
.grid-item.grow4{
	width: 49%;
}
.grid-item.grow5{
	width: 49%;
}
.grid-item.grow6{
	width: 49%;
}
}

/*news
************************************************************************************/
#news ul{
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	-webkit-justify-content: left;
	justify-content: left;
}
#news ul li{
	display: block;
	width: 24%;
	padding: 25px;
	margin: 0 0.5%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-o-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	border: 1px solid #000;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
}
#news ul li.research{
	width: 32%;
}
#news #banner a{
	width: 98%;
	margin: 30px auto;
	text-align: center;
	color: #FFF;
	font-size: 24px;
	background: #C00;
	padding: 7px 0;
	display: block;
	border-radius: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	text-decoration: none;
}

@media screen and (max-width: 979px) {
#news ul li{
	width: 49%;
	margin: 0.5%;
}
}
@media screen and (max-width: 620px) {
#news ul li,
#news ul li.research{
	width: 99%;
	margin: 0.5%;
}
}

/*youkou
************************************************************************************/
#youkou{
	background: #ecf4f5;
}


/*faq
************************************************************************************/
#faq{}

#faq dl{
	width: 700px;
	margin: auto;
}

#faq dl dt{
	background: url(../../img/toppage/faq_icon_q.png) no-repeat left top;
	padding: 7px 0 0 30px;
	margin: 0 0 20px 0;
}

#faq dl dd{
	background: url(../../img/toppage/faq_icon_a.png) no-repeat left top;
	padding: 7px 0 0 30px;
	margin: 0 0 60px 0;
}

@media screen and (max-width: 768px){
#faq dl{
	width: 95%;
	margin: auto;
}
}


/*contact
************************************************************************************/
#contact{
	background: #ecf4f5;
}

#contact .frameCaution{
	background: #FFF;
	padding: 20px;
	margin: 0 0 20px 0;
}
#contact .frameCaution li{
	background: url(../../img/toppage/icon_blue.png) no-repeat left 0.5em;
	-moz-background-size: 5px auto;
	background-size: 5px auto;
	padding: 0 0 0 10px;
	margin: 10px 0;
}
#contact span.hissu{
	color: #F00;
	padding: 0 3px;
	font-weight: normal;
}
