.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-hidden {
  display: none;
}

.modal-content {
  position: relative;
  background-color: white;
  padding: 20px;
  height: auto;
  max-height: 90%;
  min-width: 300px;
  overflow: auto; /* コンテンツがはみ出さないように */
  
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  display: flex;
  width: 100%; /* 各要素の幅に応じて変更 */
  height: 100%;
}

.carousel-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: none; /* 初期状態では非表示 */
  overflow-y: auto; /* 常に縦スクロールバーを表示 */
  word-wrap: break-word; /* 長い単語も折り返し */
  scrollbar-width: thin; /* Firefox 用 */
  scrollbar-color: #888 #f1f1f1; /* Firefox 用 */
}

/* 画像と動画のスタイルを修正 */
.carousel-item video {
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block; /* 余白をなくすため */
}


.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block; /* 余白をなくすため */
}



/* スクロールバーのスタイル */
.carousel-item::-webkit-scrollbar {
  width: 10px; /* スクロールバーの幅 */
}

.carousel-item::-webkit-scrollbar-track {
  background: #f1f1f1; /* スクロールバーのトラックの背景色 */
}

.carousel-item::-webkit-scrollbar-thumb {
  background: #888; /* スクロールバーのサム（動かす部分）の背景色 */
}

.carousel-item::-webkit-scrollbar-thumb:hover {
  background: #555; /* サムにホバーした時の色 */
}

/* スクロールバーのスタイル */
.carousel-item::-webkit-scrollbar {
  width: 10px; /* スクロールバーの幅 */
}

.carousel-item::-webkit-scrollbar-track {
  background: #f1f1f1; /* スクロールバーのトラックの背景色 */
}

.carousel-item::-webkit-scrollbar-thumb {
  background: #888; /* スクロールバーのサム（動かす部分）の背景色 */
  border-radius: 5px; /* サムの角を丸くする */
}

.carousel-item::-webkit-scrollbar-thumb:hover {
  background: #555; /* サムにホバーした時の色 */
}


.prev, .next {
  position: fixed;
  font-size: 60px;
  color : rgba(0, 0, 0, 1);
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background-color: transparent;
  border: none;
  text-shadow: rgb(255, 255, 255) 0px 0px 3px;
}

.prev {
  left: 0px;
}

.next {
  right: 0px;
}

.close {
  position: fixed;
  top: 10px;
  right: 20px;
  color: black;
  font-size: 60px;
  cursor: pointer;
  z-index: 10;
  text-shadow: rgb(255, 255, 255) 0px 0px 10px;
}

.modalBg {
  position:absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}