/* gallery.css（gallery.html 専用の上書き） */

/* 透明ヘッダー越しに本文が透けて「重なって見える」現象を抑制 */
#site-header,
#site-header header,
#site-header .header,
#site-header .global-header {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: none !important;
}

/* 念のため（固定/追従ヘッダーの環境でもアンカーやスクロール表示が崩れにくい） */
body {
  scroll-padding-top: 110px;
}

/* ページ全体 */
.gallery-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

/* タイトル周り（文字を大きく） */
.gallery-hero h1 {
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.gallery-hero p {
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.7;
  margin: 0 0 22px;
}

/* 事例カード */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.case-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  padding: 18px 18px 16px;
  overflow: hidden;
}
.case-card h2 {
  font-size: clamp(20px, 1.7vw, 28px);
  margin: 0 0 6px;
}
.case-card .desc {
  font-size: 18px;
  margin: 0 0 12px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.78);
}

/* Before / After */
.ba {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.ba-item {
  min-width: 0;
}
.ba-label {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
}
.ba-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 220px; /* “写真が大きすぎる”対策：体感で 1/4 程度に */
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

/* モバイル */
@media (max-width: 820px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ba {
    grid-template-columns: 1fr;
  }
  .ba-img {
    max-height: 200px;
  }
}
