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

<style type="text/css">
/* --- 全体のBOX定義 ---------------------------------------- */
.box {
  position   : relative;
  width  : 100%;
  margin     : auto;
  overflow   : hidden;
}

/* --- 背景の指定 ------------------------------------------- */
.box .bgImg {
  position   : absolute;
  top        : 5rem;
  left       : 0;
  bottom     : 0;
  right      : 0;
  opacity    : 0;
  animation  : bgAnime 60s infinite;   /* 4画像 × 各10s = 40s */
}

/* --- 段差で背景画像のアニメーションを実行 ----------------- */
.box .src1 {
  background-image : url(../../images/top/photo_01.jpg);   /* 背景の画像を指定 */
  background-size: 100% auto;
  background-repeat: no-repeat;
}
.box .src2 {
  background-image : url(../../images/top/photo_02.jpg);   /* 背景の画像を指定 */
  background-size: 100% auto;
  background-repeat: no-repeat;
  animation-delay  : 10s;
}
.box .src3 {
  background-image : url(../../images/top/photo_03.jpg);   /* 背景の画像を指定 */
  background-size: 100% auto;
  background-repeat: no-repeat;
  animation-delay  : 20s;
}
.box .src4 {
  background-image : url(../../images/top/photo_04.jpg);   /* 背景の画像を指定 */
  background-size: 100% auto;
  background-repeat: no-repeat;
  animation-delay  : 30s;
}
.box .src5 {
  background-image : url(../../images/top/photo_05.jpg);   /* 背景の画像を指定 */
  background-size: 100% auto;
  background-repeat: no-repeat;
  animation-delay  : 40s;
}
.box .src6 {
  background-image : url(../../images/top/photo_06.jpg);   /* 背景の画像を指定 */
  background-size: 100% auto;
  background-repeat: no-repeat;
  animation-delay  : 50s;
}


@keyframes bgAnime {
   0% { opacity: 0; }
   10% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; }
 100% { opacity: 0; }
}

/* --- 前面の文字定義（サンプルのため変更してください） ----- */
.box .boxString{
  position   : absolute;
  display    : inline-block;
  padding    : 20px;
  background : rgba(255, 255, 255, 0.6);          /* 半透明の青 */
  color      : #fff;
  top        : 50%;                               /* 中央寄せ */
  left       : 50%;
  transform  : translate(-50%,-50%);
  z-index    : 11;
}
</style>

