/* =========================
  ページヒーロー（ギャラリー）
========================= */
.hero-gallery {
  margin-top: 70px;
  background: #0a5eb7;
  padding: 100px 0;
  color: #fff;
  text-align: center;
}

.hero-gallery h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero-gallery p {
  font-size: 1rem;
  opacity: 0.9;
}

/* SP */
@media (max-width: 768px) {
  .hero-gallery {
    padding: 70px 0;
  }
  .hero-gallery h1 {
    font-size: 1.8rem;
  }
}

/* =========================
  リード文
========================= */
.gallery-lead {
  margin: 40px auto 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* =========================
  ギャラリーグリッド
========================= */
.gallery {
  padding: 40px 0 80px;
}

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

.gallery-item {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* タブレット */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* スマホ */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item {
    height: 150px;
    border-radius: 8px;
  }
}

/* =========================
  CTA
========================= */
.gallery-cta {
  background: #0b63c6;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.gallery-cta p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.gallery-cta .btn-primary {
  display: inline-block;
  background: #fff;
  color: #0b63c6;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-cta .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* =========================
  ライトボックス
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* 閉じる */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* 次／前ボタン（PC） */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 42px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* スマホはスワイプ専用 */
@media (max-width: 768px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}