@charset "UTF-8";
/* CSS Document */
.demo_item{
	width: 50px;
    height: 50px;
    border-radius: 10px;
    background-image: url("../img/train.png");
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    display: block;
    position: relative;
    

}
.demo_item.anime{
    animation-name: upDown;
    animation-iteration-count: infinite;
    animation-duration: 0.1s;
    animation-direction: alternate;
    animation-timing-function: steps(2);
    transition-duration: .3s;
    transition-property: transform;
}


.demo_stage{
    position: relative;
    width: 100%;
    top: 40em;
    display: block;
	border-bottom: solid #75a47f 1px;
}

.demo_wrap{
	display: block;
    position: absolute;
    top: -45px;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    animation-duration: 15s;
    animation-iteration-count: 1;
    margin-right: -25px;
}

.demo_wrap[data-order="left"] {
    animation-name: GoLeft;
}
.demo_wrap[data-order="right"] {
    animation-name: GoRight;
}

[data-order="right"] > .demo_item {
    transform: rotateY(180deg);
}

@keyframes GoLeft {
    0% {
        right: 10%;
    }
    100% {
        right: 90%;
    }
}
@keyframes GoRight {
    0% {
        right: 90%;
    }
    100% {
        right: 10%;
    }
}

@keyframes upDown {
    0% {
        top: 0;
    }
    100% {
        top: 3px;
    }
}

@media screen and (max-width: 600px) {
  /* スマートフォンで見たときは"sp"のclassがついた画像が表示される */

.demo_stage {
    position: relative;
    width: 100%;
    top: 35em;
    display: block;
    border-bottom: solid #75a47f 1px;
}
