body {
  font-family: 'Arial', sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

button {
  padding: 10px 20px;
  background-color: #ddd;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button.active {
  background-color: #555;
  color: white;
}

/* グリッドレイアウト（幅100%） */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* カードデザイン */
.card {
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 44%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
  cursor: pointer;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}

/* モーダルウィンドウ */
.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* モーダルの表示 */
.modal.active {
  visibility: visible;
  opacity: 1;
}

/* モーダルの暗転部分をクリックで閉じる */
.modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Swiper設定 */
.swiper-container {
  width: 80%;
  height: 300px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-slide {
  display: block !important;
}
.swiper-container {
  width: 100%;
  max-width: 600px; /* 必要に応じて調整 */
  height: 400px; /* 必要に応じて調整 */
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

