/* --- 全体のBOX定義 ---------------------------------------- */
.box {
  position: relative;
  max-width: 10%x;
  height: 500px;
  margin: auto;
  overflow: hidden;
}

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

/* --- 段差で背景画像のアニメーションを実行 ----------------- */
.box .src1 {
    background-image: url(img/aya01.jpg);
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 0s;
}

.box .src2 {
    background-image: url(img/kawaramati01.jpg);
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 6s;
}

.box .src3 {
    background-image: url(img/tomi01.jpg);
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 12s;
}

.box .src4 {
    background-image: url(img/kyoto_yakei_01.jpg);
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 18s;
}

.box .src5 {
    background-image: url(img/huya01.jpg);
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 24s;
}

.box .src6 {
    background-image: url(img/tomi02.jpg);
    background-size: cover;
    /* 背景の画像を指定 */
    animation-delay: 30s;
}


@keyframes bgAnime {
    0% {
        opacity: 0;
    }

    6% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    31% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}



.box .boxString {
  position: absolute;
  display: inline-block;
  padding: 10px;
  /*background: rgba(116, 91, 46, 0.7);
  半透明*/
  color: #ffe;
  top: 50%;
  left: 50%;
  /*中央寄せ*/
  transform: translate(-50%, -50%);
  z-index: 11;
  font-weight: bold;
  font-family: serif;
  font-size: 30px;
  text-align: center;
  text-shadow: 0px 0px 12px #000000, 0px 0px 4px #002061, 1px 1px 4px #000000;
}

.box .boxString .text {
  font-weight: normal;
  font-family: serif;
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.1em;
  margin-top: 13px;
  text-shadow: 0px 0px 12px #000000, 0px 0px 4px #002061, 1px 1px 4px #000000;
}







/* http://black-flag.net/jquery/20110708-3310.html */

#carousel {
    margin: 0 auto;
    width: 756px;
    height: 253px;
    text-align: left;
    position: relative;

}

#carousel_prev,
#carousel_next {
    top: 0;
    width: 20px;
    height: 253px;
    background: #000;
    cursor: pointer;
    position: absolute;
}
#carousel_prev {
    left: -20px;
    background:transparent url(img/but_left.gif) no-repeat top left;
}
#carousel_next {
    right: -20px;
    background:transparent url(img/but_right.gif) no-repeat top left;
}

#carousel ul#carousel_base {
    height: 253px;
    overflow: hidden;
}

#carousel ul#carousel_base li {
    width: 756px;
    float: left;
    display: inline;
}

#carousel ul#carousel_base li ul {
    width: 756px;
}

#carousel ul#carousel_base li ul li {
    width: 250px;
    padding-left:1px;
    padding-right:1px;
    float: left;
    display: inline;
}

#carousel #carousel_pagination {
    padding: 5px 0;
    width: 100%;
    text-align: center;
}

#carousel #carousel_pagination a {
    margin: 0 5px;
    width: 10px;
    height: 10px;
    display: inline-block;
    overflow: hidden;
    background-color:#d1c0a5;
}


/* =======================================
ClearFixElements
======================================= */
#carousel ul:after {
    content: ".";
    height: 0;
    clear: both;
    display: block;
    visibility: hidden;
}

#carousel ul {
    display: inline-block;
    overflow: hidden;
}