/* ========== GALLERY Section ========== */
.gallery-section {
  background-color: var(--color-dark-2);
  padding: 80px 60px;
}

/* 上：テキスト ／ 下：画像エリア */
.gallery-section__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ===== 左：テキスト ===== */
.gallery-section__title-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.gallery-section__heading {
  font-family: var(--font-midashi-go);
  font-size: 75px;
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: 0.06em;
  line-height: 1;
}

.gallery-section__subheading {
  font-family: var(--font-sawarabi);
  font-size: 23px;
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: 0.1em;
  margin-top: 16px;
  margin-bottom: 24px;
}

.gallery-section__body {
  font-family: var(--font-bunkyu-go);
  font-size: 18px;
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.06em;
  line-height: 2;
  margin-bottom: 16px;
}

/* ===== 右：大画像 + スクロールグリッド ===== */
.gallery-section__right {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

/* 大画像 */
.gallery-section__main-img {
  flex: 0 0 48%;
  overflow: hidden;
}

.gallery-section__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-section__main-img:hover img {
  transform: scale(1.04);
}

/* 小画像グリッド：2列2行表示、横スクロールで3列目 */
.gallery-section__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, calc(50% - 3px));
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
  padding-bottom: 20px;
}

/* Firefoxのみ標準プロパティを適用（Chrome等は -webkit-scrollbar が上書きされないように） */
@supports (-moz-appearance:none) {
  .gallery-section__grid {
    scrollbar-width: thin;
    scrollbar-color: #B2B2A6 #FFFFFF;
  }
}


.gallery-section__grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-section__grid::-webkit-scrollbar-track {
  background: #FFFFFF;
  border-radius: 10px;
}

.gallery-section__grid::-webkit-scrollbar-thumb {
  background: #B2B2A6;
  border-radius: 10px;
}

.gallery-section__grid::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.gallery-section__item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-section__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-section__item:hover img {
  transform: scale(1.04);
}

/* ========== Tablet ========== */
@media (max-width: 1024px) {
  .gallery-section {
    padding: 60px 24px;
  }

  .gallery-section__heading {
    font-size: 48px;
  }
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
  .gallery-section {
    padding: 40px 16px;
  }

  .gallery-section__heading {
    font-size: 36px;
  }

  .gallery-section__subheading {
    font-size: 16px;
  }

  .gallery-section__body {
    font-size: 14px;
  }

  .gallery-section__title-group {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .gallery-section__right {
    flex-direction: column;
  }

  .gallery-section__main-img {
    display: none;
  }
}
