/*CSSスライドショー設定
---------------------------------------------------------------------------*/.photo-show { 
    /*height: 440px; /*表示したい大きさ*/
    margin: 30px auto; /*縦余白30pxは任意*/
    max-width: 100%;
    position: relative;
    width: 100%;/*440px; 表示したい大きさ、height と合わせる*/
}

.photo-show img { 
    animation: show 35s infinite;
    -webkit-animation: show 35s infinite;
    height: auto;
    max-width: 100%;
    opacity: 0;
    position: absolute; /*画像を全て重ねる*/
}

/*アニメーション*/

@keyframes show {
    0% {opacity:0}
    3% {opacity:1}
    10% {opacity:1}
    20% {opacity:0}
 }

@-webkit-keyframes show {
    0% {opacity:0}
    3% {opacity:1}
    10% {opacity:1}
    20% {opacity:0}
}

/*各画像のアニメーションの開始時間をずらす*/

.photo-show img:nth-of-type(1) {
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
}

.photo-show img:nth-of-type(2) {
    animation-delay: 5s;
    -webkit-animation-delay: 5s;
}

.photo-show img:nth-of-type(3) {
    animation-delay: 10s;
    -webkit-animation-delay: 10s;
}

.photo-show img:nth-of-type(4) {
    animation-delay: 15s;
    -webkit-animation-delay: 15s;
}

.photo-show img:nth-of-type(5) {
    animation-delay: 20s;
    -webkit-animation-delay: 20s
}

.photo-show img:nth-of-type(6) {
    animation-delay: 25s;
    -webkit-animation-delay: 25s;
}

.photo-show img:nth-of-type(7) {
    animation-delay: 30s;
    -webkit-animation-delay: 30s;
}

/*マウスが画像に重なった際、動きを止めて四角くする*/
/*
.photo-show img {
    transition: 0.2s;
    -webkit-transition: 0.2s;
}

.photo-show:hover img {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
}*/





/*１枚目*/
@keyframes slide1 {
	0% {opacity: 0;}
	10% {opacity: 1;}
	30% {opacity: 1;}
	40% {opacity: 0;}
	100% {opacity: 0;}
}
/*２枚目*/
@keyframes slide2 {
	0% {opacity: 0;}
	20% {opacity: 0;}
	30% {opacity: 1;}
	60% {opacity: 1;}
	70% {opacity: 0;}
	100% {opacity: 0;}
}
/*３枚目*/
@keyframes slide3 {
	0% {opacity: 0;}
	50% {opacity: 0;}
	60% {opacity: 1;}
	85% {opacity: 1;}
	95% {opacity: 0;}
	100% {opacity: 0;}
}

/*mainimg
---------------------------------------------------------------------------*/
/*画像ブロック*/
#mainimg {
	clear: left;
	position: relative;
	margin-bottom: 40px;
	border: 10px solid #fff;
	-webkit-box-shadow: 0px 0px 20px rgba(0,0,0,0.5);	/*影の設定。右へ、下へ、ぼかし幅。rgbaは色設定で0,0,0は黒。0.2が透明度。*/
	box-shadow: 0px 0px 20px rgba(0,0,0,0.5);			/*同上*/
}
/*３枚画像の共通設定*/
#slide1,#slide2,#slide3 {
	-webkit-animation-duration: 12s;	/*実行する時間。「s」は秒の事。*/
	animation-duration: 12s;			/*同上*/
	-webkit-animation-iteration-count:infinite;	/*実行する回数。「infinite」は無限に繰り返す意味。*/
	animation-iteration-count:infinite;			/*同上*/
	position: absolute;left:0px;top:0px;width: 100%;height: auto;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
}
/*土台画像*/
#slide0 {
	position: relative;width: 100%;height: auto;
}
/*１枚目*/
#slide1 {
	-webkit-animation-name: slide1;	/*上で設定しているキーフレーム（keyframes）の名前*/
	animation-name: slide1;			/*同上*/
}
/*２枚目*/
#slide2 {
	-webkit-animation-name: slide2;	/*上で設定しているキーフレーム（keyframes）の名前*/
	animation-name: slide2;			/*同上*/
}
/*３枚目*/
#slide3 {
	-webkit-animation-name: slide3;	/*上で設定しているキーフレーム（keyframes）の名前*/
	animation-name: slide3;			/*同上*/
}
