/* ■■■■■■■■■■■■■■■■■■■■■■■■■
  スライドショー関係            
■■■■■■■■■■■■■■■■■■■■■■■■■ */

#slider{
    height: 200px;
    background-color: #000;
    padding-top:200px;
}
.out{
    position: relative;
}
.out img{
    position: absolute;
    max-width: 1000px;
    top:0;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}
.in img{
    position: absolute;
    max-width: 1000px;
    top:0;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: .5s;
    z-index: 0;
}
img{
    display: block;
    width: 100%;
    height: auto;
}
input{
    display: none;
}
.in{
    display: flex;
    justify-content: center;
}
label .slibtm{
    display: block;
    width: 15px;
    height: 15px;
    padding: 7px;
    margin: 0;
    border-radius: 100%;
    cursor: pointer;
    position: relative;
    top:200px;
    z-index: 2;
}
label .slibtm::before{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #4287f5;
    opacity: 0.5;
    border-radius: 100%;
}            
input:nth-of-type(1):checked ~ .in label:nth-of-type(1) .slibtm::before,
input:nth-of-type(2):checked ~ .in label:nth-of-type(2) .slibtm::before,
input:nth-of-type(3):checked ~ .in label:nth-of-type(3) .slibtm::before,
input:nth-of-type(4):checked ~ .in label:nth-of-type(4) .slibtm::before{
    background: rgb(197, 55, 55);
    opacity: 1;
}
label .slibtm::before{
    animation: slidebutton 14s infinite;
}
@keyframes slidebutton{
    0%{opacity: 0.5;background: #4287f5;}
    3.5%{opacity: 1;background: rgb(197, 55, 55);}/* b÷x×100=y */
    25%{opacity: 1;background: rgb(197, 55, 55);}/* 100÷c=z */
    28.5%{opacity: 0.5;background: #4287f5;}/* y+z */
}            
label:nth-of-type(2) .slibtm::before,label:nth-of-type(2) img{
    animation-delay: 3.5s;
}            
label:nth-of-type(3) .slibtm::before,label:nth-of-type(3) img{
    animation-delay: 7s;
}            
label:nth-of-type(4) .slibtm::before,label:nth-of-type(4) img{
    animation-delay: 10.5s;
}            
input:nth-of-type(1):checked ~ .in label:nth-of-type(1) img,
input:nth-of-type(2):checked ~ .in label:nth-of-type(2) img,
input:nth-of-type(3):checked ~ .in label:nth-of-type(3) img,
input:nth-of-type(4):checked ~ .in label:nth-of-type(4) img{
    opacity: 1;
    z-index: 1;
}
.in img{
    animation: slide 14s infinite;/* (a+b)×c=x */
    opacity: 0;
}
@keyframes slide{
    0%{opacity: 0;}
    3.5%{opacity: 1;z-index: 1;}/* b÷x×100=y */
    25%{opacity: 1;}/* 100÷c=z */
    28.5%{opacity: 0;z-index: 0;}/* y+z */
}
input:checked ~ .in img,input:checked ~ .in span::before{
    animation: none;
}
.in:hover img,.in:hover span::before{
    animation-play-state:paused;/* マウスを載せると一時停止 */
}


/* ■ 幅が 620px 以下ならば ■ */
@media screen and (max-width: 620px) {
    #slider{
    height: 90px;
    padding-top:90px;
    padding-bottom: 30px;
    }
    label .slibtm{
        width: 20px;
        height: 20px;
        padding: 15px;
        top:90px;
    }
}