﻿@charset "utf-8";

/* --------------------------------------
/*　スライダー
-----------------------------------------*/
.sl-area {
     position: relative;
     padding-bottom: 52.2%; /*アスペクト比 2000:1044の場合の縦幅 PC用画像*/
     height: 0;
     overflow: hidden;
}
.sl-area-sp {
     position: relative;
     padding-bottom: 52.2%; /*アスペクト比 20000:1044(ボタン表示分)の場合の縦幅 SP用画像*/
     height: 0;
     overflow: hidden;
}

.sl {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
}
.out{
    position: relative;
}
.in img{
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: .5s;
    z-index: 0;
}
.out img{
    display: block;
    width: 100%;
    height: auto;
}
.out input{
    display: none;
}
.in{
    display: flex;
    justify-content: right;
}
.in label span{
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    margin: -3rem 0.5rem 0;
    /*  border-radius: 100%; */
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.in label span::before{
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #8dc6f4;
     /*  opacity: 0.5; 
    border-radius: 100%;*/
}
.out input:nth-of-type(1):checked ~ .in label:nth-of-type(1) span::before,
.out input:nth-of-type(2):checked ~ .in label:nth-of-type(2) span::before,
.out input:nth-of-type(3):checked ~ .in label:nth-of-type(3) span::before,
.out input:nth-of-type(4):checked ~ .in label:nth-of-type(4) span::before,
.out input:nth-of-type(5):checked ~ .in label:nth-of-type(5) span::before {
    background: #8dc6f4;;
    opacity: 1;
}
/*  表示5秒、切り替え0.5秒 */
.in label span::before{
    animation: slidebutton 27.5s infinite;       /* 5.5×画像枚数=a */
}
@keyframes slidebutton{
    0%{ /*opacity: 1; */ background: #8dc6f4;;}
    1.81%{ /*opacity: 1; */ background: #0b5592;}     /* 0.5÷a×100=b */
    20%{ /*opacity: 1; */ background: #0b5592;}    /* 100÷画像枚数=c */
    21.81%{ /*opacity: 1; */ background: #8dc6f4;;}  /* b+c */
}
.in label:nth-of-type(2) span::before,
.in label:nth-of-type(2) img{
    animation-delay: 5.5s;
}
.in label:nth-of-type(3) span::before,
.in label:nth-of-type(3) img{
    animation-delay: 11s;
}
.in label:nth-of-type(4) span::before,
.in label:nth-of-type(4) img{
    animation-delay: 16.5s;
}
.in label:nth-of-type(5) span::before,
.in label:nth-of-type(5) img{
    animation-delay: 22s;
}
.out input:nth-of-type(1):checked ~ .in label:nth-of-type(1) img,
.out input:nth-of-type(2):checked ~ .in label:nth-of-type(2) img,
.out input:nth-of-type(3):checked ~ .in label:nth-of-type(3) img,
.out input:nth-of-type(4):checked ~ .in label:nth-of-type(4) img,
.out input:nth-of-type(5):checked ~ .in label:nth-of-type(5) img {
    opacity: 1;
    z-index: 1;
}
.in img{
    animation: slide 27.5s infinite;       /* 5.5×画像枚数=a */
    opacity: 0;
}
@keyframes slide{
    0%{opacity: 0;}
    1.81%{opacity: 1;z-index: 1;}     /* 0.5÷a×100=b */
    20%{opacity: 1;}               /* 100÷画像枚数=c */
    21.8%{opacity: 0 ;transform: scale(1.2) ;z-index: 0;}    /* b+c */
}
.out input:checked ~ .in img,
.out input:checked ~ .in span::before{
    animation: none;
}
/*
.in:hover img,
.in:hover span::before{
    animation-play-state:paused;/* マウスを載せると一時停止 
}
*/


@media screen and (max-width: 460px) {
   .in label span {
      width: 2rem;
      height: 2rem;
      margin: -3rem 0.1rem 0;
     }
  }

