.carousel {
  position: relative;
  max-width: 1000px;
  max-height: 60vh;
  height: auto;
  overflow: hidden;
  margin: 0 auto;
}

.carousel-images {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out; /* 画像切替の時間（秒） */
}


/*ハイパーリンク対応追加*/
.carousel-images a {
  min-width: 100%; /* ← これが本質 */
  display: block;
}



.carousel-images img {
  /*width: 100%;
  height: 100%;*/
  width: 90%;
  height: 90%;
  margin: 0 auto;

  object-fit: contain;
  flex-shrink: 0;
  /*border-radius: 8px;*/
  display: block; /*ハイパーリンク対応追加*/

}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-100%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}



.carousel-button.left {
  left: 10px;
}

.carousel-button.right {
  right: 10px;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}



.indicators {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.indicators span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicators .dot {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicators .active {
  background-color: #00aaff;
}

@media (max-width: 768px) {
  .carousel {
    max-height: 40vh;   /* スマホは少し低く */
    height: auto;
  }
  .carousel-button {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
  }
  .card-container {
    flex-direction: column;
    align-items: center;
  }
}

