.slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.slider__wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider__item {
  min-width: 100%;
  box-sizing: border-box;
}

.slider__item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer; /* クリック可能に */
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider__btn.prev {
  left: 10px;
}

.slider__btn.next {
  right: 10px;
}

.slider__btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* モーダル（拡大表示） */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal__content {
  max-width: 90%;
  max-height: 90%;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}