/* 年度切替ボタンレイアウト */
.year-switch {
  display: grid;
  grid-template-columns: repeat(6, 1fr);  /* デフォルト: PC表示で6列 */
  gap: 10px;
  margin-bottom: 20px;
  justify-items: center;
  text-align: center;
}

.year-switch img {
  width: 100%;              /* 各セルに収まるよう自動調整 */
  height: auto;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.event-switch {
  display: grid;
  grid-template-columns: repeat(6, 1fr);  /* デフォルト: PC表示で6列 */
  gap: 10px;
  margin-bottom: 20px;
  justify-items: center;
  text-align: center;
}

.event-switch img {
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.thumbnail-wrapper {
  position: relative;
  width: 100%;
}

.thumbnail-wrapper img:first-child {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: auto;
  pointer-events: none;
}

.event-block {
  margin-bottom: 40px;
}
.event-image img,
.topic-images img {
  max-width: 100%;
  height: auto;
}
.topic-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.vendor-list, .performer-list {
  padding-left: 1em;
}

/* 共通表示用：.list2 レイアウト（top.cssと統一） */
.list2 {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.list2 figure {
  order: 0;
}
.list2 .text {
  order: 1;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.slider-track {
  display: flex;
  animation: scrollSlider 10s linear infinite;
  width: fit-content;
}

.slider-item {
  flex: 0 0 25%; /* 横4枚 */
  max-width: 25%;
  padding: 0 5px;
  box-sizing: border-box;
}

.slider-item img {
  width: 100%;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 4px;
  object-fit: cover;
}

@keyframes scrollSlider {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* モバイル向けレスポンシブ調整 */
@media screen and (max-width: 767px) {
  .year-switch {
    grid-template-columns: repeat(4, 1fr);  /* モバイルでは4列 */
  }

  .event-switch {
    grid-template-columns: repeat(4, 1fr);
  }

  .list2 {
    flex-direction: column;
  }
  .list2 figure,
  .list2 .text {
    width: 100%;
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 20px;
  }
  .list2 .text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8em;
  }
  .list2 .text li {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
  }
  .list2 .text li span {
    font-size: 1rem;
    opacity: 0.9;
  }

  .slider-item {
    flex: 0 0 25%;
    max-width: 25%;
  }
}