/* ３列横並び項目書式 */
.image-grid {
  margin: 4% 0;
  display: grid;
  grid-template-columns: repeat(3, 250px);
  gap: 1.5em 0.8em;
  justify-content: center;
}

.image-grid img {
  width: 250px;
  height: auto;
  object-fit: cover;
  display: block;
}

/* 画面幅 750px以下 → 2列 */
@media screen and (max-width: 750px) {
  .image-grid {
    grid-template-columns: repeat(2, 250px);
    gap: 2em;
  }
}

/* 画面幅 500px以下 → 1列 */
@media screen and (max-width: 500px) {
  .image-grid {
    grid-template-columns: 60%;
    gap: 1em 0;
  }
  .image-grid img {
    width: 100%;
  }
}
}