.gallery {
  display: block;      /* ← gridやめる */
  margin-top: 50px;
}

.year-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 48px;
}

.year-block {
  margin-bottom: 80px;
}

.year-title {
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 32px;
}

.works {
  margin-top: 60px;
  padding: 0 40px;
}

.work-item {
  display: block;
  transition: opacity 0.25s ease;
}

.work-item:hover {
  opacity: 0.6;
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee;
  display: block;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.title {
  font-size: 16px;
  margin-top: 12px;
  line-height: 1.4;
}

.place {
  font-size: 14px;
  color: #666;
  margin-top: 2px;
}


.work-type {
  font-size: 14px;
  color: #555;
  display: block;
  margin-top: 10px;
}

.no-image {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  color: #666;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
}

@media (max-width: 900px) {
  .year-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }
}

@media (max-width: 600px) {
  .year-gallery {
    grid-template-columns: 1fr;
  }
}
