/* ========================================
   Gallery Page Styles (施工ギャラリー)
   ======================================== */

/* Hero Section */
.gallery-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 401;
  background-image: url('../img/architecture/gallery-hero.jpg');
  background-size: cover;
  background-position: center;
  overflow: visible;
}

.gallery-hero .page-hero-overlay {
  background-color: rgba(0, 0, 0, 0.40);
}

.gallery-hero-line {
  bottom: -98px;
  height: 232px;
}

/* Intro Section */
.gallery-intro {
  text-align: center;
  padding: 130px 20px 60px;
}

.gallery-intro-text {
  font-family: var(--font-serif-jp);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1.35px;
  line-height: 35px;
  color: var(--color-text);
}

/* Gallery Grid */
.gallery-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 34px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* Gallery Card */
.gallery-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gallery-card-image {
  width: 100%;
  aspect-ratio: 343 / 353;
  overflow: hidden;
  margin-bottom: 16px;
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.05);
}

.gallery-card-location {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.9px;
  line-height: 26px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.gallery-card-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-border-dark);
  margin-bottom: 20px;
}

.gallery-card-title {
  font-family: var(--font-serif-jp);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 24px;
  color: var(--color-text);
}

/* ========================================
   Gallery Detail Page
   (共通スタイルは style.css の .page-detail-* を使用)
   ======================================== */

.gallery-detail-header {
  margin-bottom: 40px;
}

.gallery-detail-location {
  display: block;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  line-height: 26px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.gallery-detail-line {
  width: 100%;
  height: 1px;
  background-color: var(--color-border-dark);
  margin-bottom: 20px;
}

/* ========================================
   SP Responsive
   ======================================== */
@media (max-width: 768px) {
  .gallery-hero {
    aspect-ratio: 377 / 217;
  }

  .gallery-hero-line {
    bottom: -54px;
    height: 109px;
  }

  .gallery-intro {
    padding: 80px 20px 40px;
  }

  .gallery-intro-text {
    font-size: 16px;
    letter-spacing: 1.2px;
    line-height: 32px;
  }

  .gallery-list {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px 40px;
  }

  .gallery-card-image {
    aspect-ratio: 335 / 220;
  }

  .gallery-card-location {
    margin-bottom: 10px;
  }

  .gallery-card-line {
    margin-bottom: 13px;
  }

  .gallery-card-title {
    font-size: 18px;
    letter-spacing: 1.35px;
  }

  /* Detail (gallery固有) */
  .gallery-detail-location {
    font-size: 14px;
  }
}
