@charset "UTF-8";

/*---------------------------------------------
    ギャラリー
---------------------------------------------*/
.gallery-section {
  padding: 80px 0 90px;
  background: #ffffff;
}
.gallery-lead {
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.9;
  color: #555;
  margin: 24px 0 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  background: #e8f3f1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
/* マウスオーバーで出る詳細キャプション */
.gallery-cap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -42%);
  z-index: 3;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(77, 182, 172, 0.0);
  transition: background 0.4s ease;
  z-index: 1;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item:hover::before {
  background: rgba(77, 182, 172, 0.35);
}
.gallery-item:hover .gallery-cap {
  opacity: 1;
  transform: translate(-50%, -50%);
}

@media screen and (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gallery-lead {
    font-size: 1.4rem;
    margin-bottom: 32px;
  }
}

/*---------------------------------------------
    ライトボックス
---------------------------------------------*/
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
  max-width: 1240px;
  padding: 0 90px;
}
.lightbox-img {
  flex: 0 1 auto;
  max-width: 64vw;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  display: block;
}
.lightbox-info {
  flex: 0 0 190px;
  color: #333;
}
.lightbox-caption {
  font-size: 2.0rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}
.lightbox-insta {
  display: inline-block;
  font-size: 1.5rem;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.lightbox-insta:hover {
  color: #4DB6AC;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  color: #333;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}
.lightbox-close {
  top: 24px;
  right: 24px;
}
.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
@media screen and (max-width: 900px) {
  .lightbox-body {
    flex-direction: column;
    gap: 18px;
    padding: 64px 16px 44px;
  }
  .lightbox-img {
    max-width: 90vw;
    max-height: 62vh;
  }
  .lightbox-info {
    flex: none;
    text-align: center;
  }
  .lightbox-caption {
    font-size: 1.7rem;
    margin-bottom: 10px;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev,
  .lightbox-next,
  .lightbox-close {
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }
}
