@charset "utf-8";




/*================================
    keyviual
=================================*/
#top .keyviual{
	margin-bottom: 80px;
}
/* --- 全体のBOX定義 ---------------------------------------- */
.bgBox {
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 540px;
    z-index: -1;
}

/* --- 背景の指定 ------------------------------------------- */
.bgBox .bgImg {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    -webkit-animation: anime 10s linear 0s infinite ;
    animation: anime 10s linear 0s infinite ;
}

/* --- 段差で背景画像のアニメーションを実行 ----------------- */
.bgBox .src1 {
	background: url(/img/pc/top/slide01.jpg) no-repeat;   /* 背景の画像を指定 */
	background-size: cover;
}
.bgBox .src2 {
	background: url(/img/pc/top/slide02.jpg) no-repeat;   /* 背景の画像を指定 */
	background-size: cover;
	-webkit-animation-delay: 5s;
	animation-delay: 5s;
}
@-webkit-keyframes anime { 
    0% {
        -webkit-animation-timing-function: ease-in;
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    65% {
		-webkit-animation-timing-function: ease-out;
		opacity: 1;
    }
    100% {
       	opacity: 0;
    }
}
@keyframes anime { 
    0% {
        animation-timing-function: ease-in;
        opacity: 0;
    }
    35% {
        opacity: 1;
    }
    65% {
		animation-timing-function: ease-out;
		opacity: 1;
    }
    100% {
    	animation-timing-function: ease-in;
    	opacity: 0;
    }
}

/* --- 前面の文字定義（サンプルのため変更してください） ----- */
.bgBox .boxString{
    position   : absolute;
    display    : inline-block;
    padding    : 20px;
    color      : #fff;
    top        : 50%;                               /* 中央寄せ */
    left       : 50%;
    transform  : translate(-50%,-50%);
    z-index    : 11;
    text-shadow: 1px 1px 3px #000;
    font-size: 36px;
    font-weight: 600;
    text-align: center;
}
.bgBox .boxString .tB{
    display: table;
}
.bgBox .boxString .mainT{
    display: table-cell;
    vertical-align: middle;
    font-size: 60px;
    color: red;
}
.bgBox .boxString .subT{
    display: table-cell;
    vertical-align: middle;
    font-size: 60px;
    color: blue;
}
.bgBox .boxString .textT{
    display: table-cell;
    vertical-align: middle;
    padding: 0 10px;
}

/*===============================================
●tablet.css 画面の横幅が768pxまで
===============================================*/
@media screen and (max-width: 768px){
#top .keyviual {
    margin-bottom: 40px;
}
.bgBox .boxString{
    position   : absolute;
    display    : inline-block;
    padding    : 20px;
    color      : #fff;
    top        : 50%;                               /* 中央寄せ */
    left       : 50%;
    transform  : translate(-50%,-50%);
    z-index    : 11;
    text-shadow: 1px 1px 3px #000;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.bgBox .boxString .tB{
    display: block;
    width: 100%;
}
.bgBox .boxString .mainT{
    display: block;
        font-size: 40px;

}
.bgBox .boxString .subT{
    display: block;
    font-size: 40px;

}
.bgBox .boxString .textT{
    display: block;
    padding: 0;
}
.bgBox .src1 {
    background: url(/img/sp/top/slide01.jpg) no-repeat;   /* 背景の画像を指定 */
    background-size: cover;
}
.bgBox .src2 {
    background: url(/img/sp/top/slide02.jpg) no-repeat;   /* 背景の画像を指定 */
    background-size: cover;
    -webkit-animation-delay: 5s;
    animation-delay: 5s;
}
}