/* ギャラリーページ全体 */
.gallery-page {
  padding: 40px 20px;
  background-color: #f9fbe7;
}

/* ギャラリーの見出し */
.gallery-intro {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-intro h1 {
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.gallery-intro p {
  font-size: 16px;
  color: #555;
}

/* ギャラリーグリッド（3列） */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* ギャラリーアイテム */
.gallery-item {
  width: calc(33.333% - 20px);
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ホバーでカード全体を拡大＋影強調 */
.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 画像スタイル（サイズ統一＆トリミング） */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.gallery-item .caption {
  text-align: center;
  font-size: 15px;
  color: #444;
  margin-top: 10px;
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.4;
  background-color: transparent; /* ← 完全に透明に！ */
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: none; /* 影も消してスッキリ */
}

/* アニメーション */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スマホ対応（768px以下） */
@media screen and (max-width: 768px) {
  .gallery-page {
    padding: 30px 15px;
  }

  .gallery-intro {
    margin-bottom: 30px;
  }

  .gallery-intro h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .gallery-intro p {
    font-size: 14px;
  }

  .gallery-grid {
    gap: 15px;
  }

  .gallery-item {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: none;
  }

  .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  }

  .gallery-item img {
    height: 160px;
  }
}
