﻿/* カルーセル全体 */
.carousel {
  /* 水平方向中央寄せ */
  display: flex;
  justify-content: center;
}

/* カルーセル内容 */
.contains {
  width: 700px;
  height: 350px;
  overflow: hidden;
  position: relative;
  padding: 0;
  list-style: none;
}


.slide_select {
  display: none;
}

/* 各スライド */
.slide {
  width: 700px;
  height: 350px;
  position: absolute;
  opacity: 0;
}

.slide > img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* 前へ次へボタン */
.scroll_button {
  position: absolute;
  display: block;
  height: 30px;
  width: 30px;
  top: 50%;
  margin-top: -20px;
  border-width: 5px 5px 0 0;
  border-style: solid;
  border-color: #ffffff;
  cursor: pointer;
  opacity: 0.5;
  z-index: 3;
}

.scroll_button:hover {
  opacity: 1;
}

/* 前へボタン */
.scroll_prev {
  left: 15px;
  transform: rotate(-135deg);
}

/* 次へボタン */
.scroll_next {
  right: 15px;
  transform: rotate(45deg);
}

/* スライド移動ボタンエリア */
.move_controler {
  position: absolute;
  bottom: 6px;
  width: 100%;
  text-align: center;
}

/* スライド移動の各ボタン */
.button_move {
  display: inline-block;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  border-radius: 100%;
  cursor: pointer;
  opacity: 0.5;
  z-index: 2;
}

.button_move:hover {
  opacity: 0.75;
}

/* スライド移動ボタンの色 */
.button_move {
  background-color: #8888bb;
}

/* 1番目のスライド */
.slide_select:nth-of-type(1):checked ~ .slide:nth-of-type(1) {
  opacity: 1;
}
.slide_select:nth-of-type(1):checked ~ .move_controler .button_move:nth-of-type(1) {
  opacity: 1;
}

/* 2番目のスライド */

.slide_select:nth-of-type(2):checked ~ .slide:nth-of-type(2) {
  opacity: 1;
}
.slide_select:nth-of-type(2):checked ~ .move_controler .button_move:nth-of-type(2) {
  opacity: 1;
}

/* 3番目のスライド */
.slide_select:nth-of-type(3):checked ~ .slide:nth-of-type(3) {
  opacity: 1;
}
.slide_select:nth-of-type(3):checked ~ .move_controler
  .button_move:nth-of-type(3) {
  opacity: 1;
}