@charset "UTF-8";
/*↑ブラウザでソースを表示する際の文字化け防止対策。ファイルの先頭に書かなければならないためコメントアウトは2行目から書く。*/

/*スライドショーのCSS*/
.slideshow{
   position: relative;
   width: 100%;
   /*background-color: #ff6347;*/
}

.slide-container{
   margin: auto;
   margin-bottom: 5px;
   position: relative;
   width: 100%;
   aspect-ratio: 16 / 9; /* 高さ = 幅 × 9 / 16 */
   /*overflow: hidden;*/
   border-radius: 10px;
   box-shadow: 4px 4px #efefef;
}

.slide-item{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: contain;
    /*object-fit: cover;*/
    translate: -50% -50%;
    opacity: 0;
    transition: opacity 1s, scale 4s;
}

.slide-item:hover{
   opacity:0.6;
   transition:0.3s;
}

.active{
   opacity: 1;
   z-index: 10;
}

#prevBtn{
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   left: 2%;
   width: 5%;
   height: auto;
   opacity: 0.6;
   border: none;
   background: transparent;
   z-index: 11;
}

#nextBtn{
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   right: 2%;
   width: 5%;
   height: auto;
   opacity: 0.6;
   border: none;
   background: transparent;
   z-index: 11;
}

#prevBtn img,
#nextBtn img {
   width: 100%;
   height: auto;
}

#prevBtn img:hover,
#nextBtn img:hover{
   opacity:0.6;
   transition:0.3s;
}

@media(max-width: 600px){
   #prevBtn{
      width: 10%;
      height: auto;
   }

   #nextBtn{
      width: 10%;
      height: auto;
   }
}

.nav{
    display: flex;
    text-align: center;
    margin: auto;
    width: 200px;
    margin-top: 10px;
}

.nav-item{
    margin: auto;
    width: 10px;
    height: 10px;
    line-height: 10px;
    text-align: center;
    cursor: pointer;
    border-radius:50%;
    border:1px solid #ff6347;
    color:#000000;
    background-color:#ffffff;
}

.nav-item:hover{
   opacity:0.6;
   transition:0.3s;
}

/*現在のナビゲーション用CSS*/
.nav-active{
    background-color: #ff6347;
}
