@charset "UTF-8";

/* ==========================================================
   GALLERY ARCHIVE PAGE
========================================================== */
.gallery-archive {
 background-color: #000;
 color: #fff;
 padding: 150px 0 100px;
 text-align: center;
}

.gallery-archive .wrap-l {
 max-width: 1200px;
 margin: 0 auto;
}

/* タイトル */
.gallery-archive-title {
 font-family: "Montserrat Alternates", sans-serif;
 font-weight: 700;
 font-size: 2.6rem;
 color: #d27a00;
 margin-bottom: 60px;
 text-align: center;
}

/* グリッド */
.gallery-archive-grid {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 50px 20px;
 justify-items: center;
}
@media screen and (min-width: 768px) {
 .gallery-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
  justify-items: center;
 }
}
/* 各アイテム */
.gallery-archive-item {
 width: 100%;
 max-width: 350px;
 text-align: left;
 transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-archive-item a {
 display: block;
 color: inherit;
 text-decoration: none;
}

.gallery-archive-item:hover {
 transform: translateY(-4px);
 opacity: 0.9;
}

/* サムネイル */
.gallery-archive-thumb img {
 width: 100%;
 height: auto;
 border-radius: 10px;
 display: block;
 margin-bottom: 10px;
}

/* テキスト */
.gallery-archive-place {
 font-family: "Noto Sans JP", sans-serif;
 font-size: 0.9rem;
 color: #ccc;
 margin-bottom: 4px;
}

.gallery-archive-name {
 font-family: "Poppins", sans-serif;
 font-size: 1rem;
 font-weight: 600;
 color: #fff;
}

/* ===============================
   ページネーション
=============================== */
.gallery-archive-pagination {
 margin-top: 60px;
 text-align: center;
}

.gallery-archive-pagination .pagination {
 display: inline-flex;
 gap: 12px;
 list-style: none;
 padding: 0;
}

.gallery-archive-pagination .page-numbers {
 display: inline-block;
 background-color: #222;
 color: #fff;
 padding: 10px 16px;
 border-radius: 6px;
 font-family: "Noto Sans JP", sans-serif;
 font-size: 0.95rem;
 text-decoration: none;
 transition: background-color 0.3s ease, color 0.3s ease;
}

.gallery-archive-pagination .page-numbers:hover {
 background-color: #d27a00;
 color: #000;
}

.gallery-archive-pagination .current {
 background-color: #d27a00;
 color: #000;
}

/* ===============================
   スマホ対応（1カラム → 2カラム）
=============================== */
/* ===============================
 Gallery セクション（スマホ2列対応）
=============================== */
.gallery-section {
 background-color: #000;
 color: #fff;
 padding: 100px 0;
 text-align: center;
}

.gallery-section .wrap-l {
 max-width: 1200px;
 margin: 0 auto;
}

.gallery-title {
 text-align: center;
 font-family: "Montserrat Alternates", sans-serif;
 font-weight: 700;
 font-size: 2.6rem;
 color: #d27a00;
 margin-bottom: 60px;
}

.gallery-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 50px 40px;
 justify-items: center;
}

.gallery-item {
 text-align: left;
 width: 100%;
 max-width: 330px;
}

.gallery-item img {
 width: 100%;
 height: auto;
 border-radius: 10px;
 display: block;
 margin-bottom: 10px;
}

.gallery-place {
 font-family: "Noto Sans JP", sans-serif;
 font-size: 0.9rem;
 color: #ccc;
 margin-bottom: 4px;
}

.gallery-name {
 font-family: "Poppins", sans-serif;
 font-size: 1rem;
 font-weight: 600;
 color: #fff;
}

/* ボタン */
.gallery-btn {
 text-align: center;
 margin-top: 60px;
}

.gallery-more {
 display: inline-block;
 background-color: #d27a00;
 color: #000;
 padding: 14px 80px;
 border-radius: 8px;
 font-family: "Noto Sans JP", sans-serif;
 font-weight: bold;
 font-size: 1.1rem;
 text-decoration: none;
 transition: background-color 0.3s ease;
}

.gallery-more:hover {
 background-color: #f7a800;
}

/* ===============================
 レスポンシブ設定
=============================== */

/* タブレット */
@media screen and (max-width: 1023px) {
 .gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 25px;
 }
}

/* スマホ：横2 × 縦3 */
@media screen and (max-width: 767px) {
 .gallery-section {
  padding: 60px 20px;
 }

 .gallery-title {
  font-size: 2rem;
  margin-bottom: 40px;
 }

 .gallery-grid {
  grid-template-columns: repeat(2, 1fr); /* ← 2列表示 */
  gap: 30px 20px; /* ← 画像間の余白 */
 }

 .gallery-item {
  max-width: 100%;
  text-align: center;
 }

 .gallery-place {
  font-size: 0.85rem;
 }

 .gallery-name {
  font-size: 0.95rem;
 }

 .gallery-more {
  padding: 12px 50px;
  font-size: 0.95rem;
 }
}

/* ==========================================================
   SINGLE GALLERY PAGE（施工情報＋スライダー）
========================================================== */
.single-gallery02 {
 background-color: #000;
 color: #fff;
 padding: 100px 0 100px;
}
@media screen and (min-width: 768px) {
 .single-gallery02 {
  background-color: #000;
  color: #fff;
  padding: 150px 0 100px;
 }
}
.single-gallery-wrap {
 display: flex;
 justify-content: center;
 align-items: flex-start;
 gap: 45px;
 flex-direction: row;
}

/* ===============================
   左：スライダーエリア
=============================== */
.single-gallery-left {
 flex: 0 0 45%;
 max-width: 55%;
 position: relative;
}

/* メインスライダー */
.single-gallery-swiper {
 width: 100%;
 position: relative;
 border-radius: 8px;
 overflow: hidden;
 background: #000;
 text-align: center; /* 縦長の余白を中央に */
}

.single-gallery-swiper .swiper-wrapper {
 display: flex;
 align-items: center;
 width: 100% !important;
 transform: translate3d(0, 0, 0);
}

.single-gallery-swiper .swiper-slide {
 flex: 0 0 100%;
 width: 100% !important;
 height: auto !important;
}

.single-gallery-swiper img {
 width: auto;
 max-width: 100%;

 height: auto;
 max-height: 800px; /* 高さ上限で整える */
 object-fit: contain; /* ← 重要：全体表示 */
 display: inline-block;
 border-radius: 8px;
}

/* サムネイルスライダー */
.single-gallery-thumbs {
 margin-top: 15px;
 overflow: hidden;
}
.single-gallery-thumbs img {
 width: 100%;
 height: 100%;
 object-fit: contain; /* サムネも全体見せる */
 border-radius: 6px;
 display: block;
}

.single-gallery-thumbs .swiper-wrapper {
 display: flex;
 width: 100% !important;
}

.single-gallery-thumbs .swiper-slide {
 flex: 0 0 80px;
 opacity: 0.5;
 cursor: pointer;
}

.single-gallery-thumbs .swiper-slide-thumb-active {
 opacity: 1;
}

.single-gallery-thumbs img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 border-radius: 6px;
 display: block;
}

/* ===============================
   右：施工情報エリア
=============================== */
.single-gallery-right {
 flex: 0 0 40%;
 font-family: "Noto Sans JP", sans-serif;
}

.single-gallery-title {
 font-size: 1.8rem;
 font-weight: 700;
 margin-bottom: 8px;
}

.single-gallery-place {
 font-size: 1rem;
 color: #ccc;
 margin-bottom: 30px;
}

.single-gallery-info {
 margin-bottom: 35px;
}

.single-gallery-info02 h2 {
 font-size: 1.1rem;
 font-weight: 700;
 color: #fff;
 border-left: 4px solid #d27a00;
 padding-left: 10px;
 margin-bottom: 15px;
}

.single-gallery-info h2 {
 font-size: 1.1rem;
 font-weight: 700;
 color: #fff;
 border-left: 4px solid #d27a00;
 padding-left: 10px;
 margin-bottom: 15px;
}

.single-gallery-info ul {
 list-style: none;
 padding: 0;
 margin: 0;
}

.single-gallery-info ul li {
 font-size: 0.95rem;
 line-height: 1.8;
 margin-bottom: 5px;
 color: #fff;
}

.single-gallery-info p {
 font-size: 0.95rem;
 line-height: 1.9;
 color: #fff;
}

/* ===============================
   Swiperナビボタン調整
=============================== */
.single-gallery-swiper .swiper-button-prev,
.single-gallery-swiper .swiper-button-next {
 color: #fff;
 text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

/* ===============================
   スマホ対応
=============================== */
@media screen and (max-width: 767px) {
 .single-gallery-wrap {
  flex-direction: column;
  gap: 40px;
 }

 .single-gallery-left,
 .single-gallery-right {
  flex: 1 1 100%;
  max-width: 100%;
 }

 .single-gallery-title {
  font-size: 1.5rem;
 }

 .single-gallery-place {
  font-size: 0.9rem;
  margin-bottom: 20px;
 }
 .single-gallery-place02 {
  font-size: 0.9rem;
  margin-bottom: 0px;
 }
 .single-gallery-info h2 {
  font-size: 1rem;
 }

 .single-gallery-info ul li,
 .single-gallery-info p {
  font-size: 0.9rem;
 }

 .single-gallery-swiper img {
  max-height: 400px;
 }
}
/* ===============================
   スマホ時の画像中央寄せ補正
=============================== */
@media screen and (max-width: 767px) {
 .single-gallery-swiper {
  text-align: center; /* 中央基準に */
 }

 .single-gallery-swiper .swiper-slide {
  display: flex; /* 中央寄せ */
  justify-content: center; /* 横中央 */
  align-items: center; /* 縦中央 */
 }

 .single-gallery-swiper img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh; /* スマホ画面に収まる高さ制限 */
  object-fit: contain;
  margin: 0 auto;
 }

 .single-gallery-thumbs {
  justify-content: center; /* サムネも中央寄せ */
 }
}
.gallery-back-btn {
 text-align: center;
 margin-top: 40px;
}

.gallery-back-btn a {
 display: inline-block;
 background-color: #d27a00;
 color: #000;
 font-family: "Noto Sans JP", sans-serif;
 font-weight: bold;
 font-size: 1rem;
 padding: 12px 60px;
 border-radius: 8px;
 text-decoration: none;
 transition: background-color 0.3s ease;
}

.gallery-back-btn a:hover {
 background-color: #f7a800;
}

@media screen and (max-width: 767px) {
 .gallery-back-btn {
  margin-top: 30px;
 }

 .gallery-back-btn a {
  padding: 10px 40px;
  font-size: 0.95rem;
 }
}
