@charset "utf-8";

/* --- indexTOP画像の指定 ------------------------------------------- */
#index_header .bgImg {
                                animation: bgAnime 20s infinite;   /* 4画像 × 各5s = 20s */
                                position: absolute;
                                top: 80px; left: 0; bottom: 0; right: 0;
                                opacity: 0;
	z-index:-1;
	border-radius: 20px;
                                margin: 0 auto;
	width: 96%;
                                max-width: 350px;
	height: 350px;
}

#index_header .src1 {
                                background: url(../images/photo16_sp.jpg) no-repeat center top;
                                background-size: cover;
}
#index_header .src2 {
                                background: url(../images/photo15_sp.jpg) no-repeat center top;
                                background-size: cover;
                                opacity: 0;
}
#index_header .src3 {
                                background: url(../images/photo16_sp.jpg) no-repeat center top;
                                background-size: cover;
                                opacity: 0;
}
#index_header .src4 {
                                background: url(../images/photo15_sp.jpg) no-repeat center top;
                                background-size: cover;
                                opacity: 0;
}
/*990px以上 ----------------------------------------*/
@media screen and (min-width:980px){
#index_header .bgImg {
        top: 105px;
	width: 936px;
        max-width: 936px;
	height: 618px;
}
#index_header .src1 {
                                background: url(../images/photo16.jpg) no-repeat center top;
                                background-size: cover;
}
#index_header .src2 {
                                background: url(../images/photo15.jpg) no-repeat center top;
                                background-size: cover;
}
#index_header .src3 {
                                background: url(../images/photo16.jpg) no-repeat center top;
                                background-size: cover;
}
#index_header .src4 {
                                background: url(../images/photo15.jpg) no-repeat center top; 
                                background-size: cover;
}
}

/* --- TOP画像アニメーション設定 ----------------- */
#index_header .src1 {
                                animation-delay: 0s;
}
#index_header .src2 {
                                animation-delay: 5s;
}
#index_header .src3 {
                                animation-delay: 10s;
}
#index_header .src4 {
                                animation-delay: 15s;
}

@keyframes bgAnime { /* --- 4枚の時 --- */
	0%{ opacity: 0;}
	5%{ opacity: 1;}
	25%{ opacity: 1;}
	30%{ opacity: 0;}
	100%{ opacity: 0;}
}


/*==================================================
　5-2-1 3本線が×に
===================================*/
/*ボタン外側※レイアウトによってpositionや形状は適宜変更してください*/
.openbtn1{
  position: relative;/*ボタン内側の基点となるためrelativeを指定*/
  background:#57a2c7;
  cursor: pointer;
    width: 50px;
    height:50px;
  border-radius: 5px;
}

/*ボタン内側*/
.openbtn1 span{
    display: inline-block;
    transition: all .4s;/*アニメーションの設定*/
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
  background: #fff;
    width: 45%;
  }

.openbtn1 span:nth-of-type(1) {
  top:15px; 
}

.openbtn1 span:nth-of-type(2) {
  top:23px;
}

.openbtn1 span:nth-of-type(3) {
  top:31px;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
  opacity: 0;/*真ん中の線は透過*/
}

.openbtn1.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}


/*========= ページトップに戻るためのCSS ===============*/

/*　上に上がる動き　*/

#page-top.UpMove{
	animation: UpBtn 0.5s forwards;
}
@keyframes UpBtn{
  from {
    opacity: 0;
	transform: translateY(100px);
  }
  to {
    opacity: 1;
	transform: translateY(0);
  }
}

/*　下に下がる動き　*/

#page-top.DownMove{
	animation: DownBtn 0.5s forwards;
}
@keyframes DownBtn{
  from {
  	opacity: 1;
	transform: translateY(0);
  }
  to {
  	opacity: 1;
	transform: translateY(100px);
  }
}
