/*
 * Sublime Slideshow - CSP対応版
 *
 * 元の jquery.sublimeSlideshow.js が動的生成していたCSSを外部化したものです。
 * 現在のトップページ設定:
 *   slides   : 3
 *   duration : 5秒/枚
 *   fade     : 1秒
 *   scaling  : false
 *   rotating : false
 *   overlay  : なし
 *
 * このCSSを /css/sublimeSlideshow.css に配置する想定のため、
 * 画像パスは ../img/... としています。
 */

@-webkit-keyframes imageAnimation {
    0% {
        opacity: 0;
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }
    6.666666666666667% {
        opacity: 1;
    }
    33.33333333333333% {
        opacity: 1;
    }
    37.33333333333333% {
        opacity: 0;
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
    100% {
        opacity: 0;
    }
}

@keyframes imageAnimation {
    0% {
        opacity: 0;
        animation-timing-function: ease-in;
    }
    6.666666666666667% {
        opacity: 1;
    }
    33.33333333333333% {
        opacity: 1;
    }
    37.33333333333333% {
        opacity: 0;
        animation-timing-function: ease-out;
    }
    100% {
        opacity: 0;
    }
}

@-webkit-keyframes titleAnimation {
    0% {
        opacity: 0;
    }
    6.666666666666667% {
        opacity: 1;
    }
    33.33333333333333% {
        opacity: 1;
    }
    35.33333333333333% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes titleAnimation {
    0% {
        opacity: 0;
    }
    6.666666666666667% {
        opacity: 1;
    }
    33.33333333333333% {
        opacity: 1;
    }
    35.33333333333333% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.sm-slider,
.sm-slider:after {
    margin: 0;
    padding: 0;
    list-style: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.sm-slider:after {
    content: '';
    background: transparent url() repeat top left;
    z-index: 0;
}

.sm-slider li span {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: none;
    opacity: 0;
    z-index: 0;
    -webkit-animation: imageAnimation 15s linear infinite 0s;
    animation: imageAnimation 15s linear infinite 0s;
}

.sm-slider li div {
    z-index: 1000;
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    color: #fff;
    -webkit-animation: titleAnimation 15s linear infinite 0s;
    animation: titleAnimation 15s linear infinite 0s;
}

.sm-slider li:nth-child(1) span {
    background-image: url('../img/main_01.jpg');
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.sm-slider li:nth-child(1) div {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.sm-slider li:nth-child(2) span {
    background-image: url('../img/main_02.jpg');
    -webkit-animation-delay: 5s;
    animation-delay: 5s;
}

.sm-slider li:nth-child(2) div {
    -webkit-animation-delay: 5s;
    animation-delay: 5s;
}

.sm-slider li:nth-child(3) span {
    background-image: url('../img/main_03.jpg');
    -webkit-animation-delay: 10s;
    animation-delay: 10s;
}

.sm-slider li:nth-child(3) div {
    -webkit-animation-delay: 10s;
    animation-delay: 10s;
}
