﻿@charset "utf-8";
/* div[id^="imageModal"] {
  display: none; 
} */
.modal {
  /* position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  overflow-x: hidden;
  background-color: rgba(255, 255, 255, 0.8); */
}

.modal-content {
  /* position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  top: 55%;
  transform: translateY(-50%);
  overflow-y: auto;
  box-shadow: 0 0 15px #666; */
}

.mainSwiper {
  width: 100%;
  height: auto; /* 必要に応じて調整 */
}

.thumbnailSwiper {
  width: 100%;
  height: 100px; /* サムネイルの高さを指定 */
  margin-top: 10px;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain; /* 画像がはみ出さないように */
}

.thumbnailSwiper .swiper-slide {
  opacity: 0.4; /* 初期状態のサムネイルの透明度 */
  cursor: pointer;
}

.thumbnailSwiper .swiper-slide-thumb-active {
  opacity: 1; /* アクティブなサムネイルの透明度 */
}
.close {
  text-align: right;
}
.close-button {
  color: #ccc;
  position: relative;
  right: 10px;
  font-size: 50px;
  cursor: pointer;
  width: fit-content;
  line-height: 0.8;
  height: min-content;
}
.slideshow-container {
  position: relative;
  text-align: center;
}

div[class^="slide_"] {
  display: none;
}

div[class^="slide_"] img {
  vertical-align: middle;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  color: gray;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  user-select: none;
  -webkit-text-stroke: 3px white;
  text-stroke: 3px white;
  paint-order: stroke;
}
.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
  padding: 16px 16px 16px 10px;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
  padding: 16px 10px 16px 16px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.3);
}

.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.thumbnail-container {
  display: flex;
  justify-content: center;
  margin-top: 0px;
  flex-wrap: wrap;
}

img[class^="thumbnail_"] {
  opacity: 0.6;
  margin: 0 5px;
  cursor: pointer;
}

img[class^="thumbnail_"]:hover {
  opacity: 1;
}

.active,
img[class^="thumbnail_"].active {
  opacity: 1;
}

/*追加*/
div[id^="imageModal"] {
  text-align: center;
}
div.modal-content {
  /* padding: 30px 0px; */
}
h2.modal-title {
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
  line-height: 1;
  /* position: relative;
  top: -25px;
  z-index: -1; */
}
@media screen and (min-width: 770px) {
  div[class^="slide_"] > img {
    width: auto;
    max-height: 450px;
  }
}
@media screen and (max-width: 769px) {
  div[class^="slide_"] > img:not([class]) {
    /*横長*/
    width: 99%;
    height: auto;
    aspect-ratio: 8/5; /* 1200*750 */
  }
  div[class^="slide_"] > img.tate {
    /*縦長*/
    width: auto;
    max-width: 99%;
    max-height: 450px;
    aspect-ratio: 5/8; /* 750*1200 */
  }
}
div.thumbnail-container > img {
  width: auto;
  max-height: 100px;
  margin-top: 10px;
}
button {
  cursor: pointer;
}
button.modal-open {
  line-height: 0;
}
button.modal-close {
  padding-right: 15px;
}
.fade {
  /* overflow-x: scroll; */
}
