/* ===== 基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* ===== ヘッダー ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
}

.logo img {
  width: 150px;
}

.global-nav ul {
  display: flex;
  list-style: none;
}

.global-nav li {
  margin: 0 15px;
}

.global-nav a {
  text-decoration: none;
  color: #000;
}

.button-list a {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
}

/* ===== メイン画像 ===== */
.main-image img {
  width: 100%;
  height: auto;
}

/* ===== メインタイトル ===== */
.main-title {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.main-title h1 {
  font-size: 2.5rem;
}

/* ===== コンセプト ===== */
.concept {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

.concept-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  background: #000;
  padding: 30px;
}

.image-item {
  display: flex;
  flex-direction: column;
}

.image-item img {
  width: 100%;
  height: auto;
}

.image-comment {
  color: #fff;
  margin-top: 15px;
  line-height: 1.6;
}

/* ===== ギャラリー ===== */
#gallery {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

.image-gallery {
  position: relative;
  background: #000;
  padding: 80px 0;
  display: flex;
  justify-content: center;
}

.gallery-images {
  display: flex;
  justify-content: center;
}

.gallery-image-container {
  width: 60%;
  max-width: 900px;
}

.gallery-image-container img {
  width: 100%;
  height: auto;
}

/* 矢印 */
.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  transform: translateY(-50%);
}

.gallery-arrow {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

/* ===== NEXT ===== */
#next-page img {
  width: 25%;
  display: block;
  margin: 40px auto;
}

/* ===== フッター ===== */
footer {
  background: #f57c00;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {

  .concept-images {
    grid-template-columns: 1fr;
  }

  .gallery-image-container {
    width: 90%;
  }

  #next-page img {
    width: 50%;
  }
}
/* ===== ギャラリー最終調整（1枚中央表示）===== */

/* ギャラリー全体 */
.image-gallery {
  position: relative;
  background: #000;
  padding: 80px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 画像並び */
.gallery-images {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* いったん全部非表示 */
.gallery-image-container {
  display: none;
}

/* 最初の1枚だけ表示 */
.gallery-image-container:first-child {
  display: block;
  width: 60%;
  max-width: 900px;
  margin: 0 auto;
}

/* 画像 */
.gallery-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* 矢印 */
.gallery-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 40px;
}

.gallery-arrow {
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 32px;
  cursor: pointer;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .gallery-image-container:first-child {
    width: 90%;
  }
}
/* フッターロゴ サイズ調整 */
footer .footer-content img {
  width: 95px;      /* ← おすすめ：50〜70pxで微調整 */
  height: auto;
}
/* ===== NEXTエリア ===== */
.next-area {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 40px;
  padding: 60px 20px;
}

.next-box {
  text-align: center;
}

.next-box img {
  width: 12.5%; /* ← 今の25%の半分 */
  min-width: 150px;
}

.next-text {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.next-list {
  font-size: 14px;
  text-decoration: underline;
  color: #000;
}
@media screen and (min-width: 769px) {
  .main-image img {
    height: 70vh;
    object-fit: cover;
  }
}
@media screen and (min-width: 769px) {
  header .logo img {
    width: 180px; /* 150px × 1.2 */
  }
}
@media screen and (min-width: 769px) {
  header .global-nav {
    margin-left: auto;
    padding-right: 40px;
  }
}
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header .global-nav {
    margin-top: 15px;
  }

  header .global-nav ul {
    flex-wrap: wrap;
  }
}
.gallery-note {
  color: #fff;
  font-size: 14px;
  margin-top: 20px;
  text-align: center;
}
/* ===== NEXTセクション ===== */
.next-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
}

/* センター */
.next-center {
  flex: 1;
  text-align: center;
}

.next-center a {
  font-size: 16px;
  text-decoration: underline;
  color: #000;
}

/* 右端 */
.next-right {
  text-align: right;
}

.next-link {
  display: inline-block;
  text-decoration: none;
  color: #000;
}

/* NEXT文字（画像と同幅） */
.next-label {
  display: block;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* PC：画像を今の半分 */
.next-link img {
  width: 12.5%;
  min-width: 180px;
  display: block;
  margin-left: auto;
}

/* タイトル */
.next-title {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  .next-area {
    flex-direction: column;
    gap: 40px;
  }

  .next-right {
    text-align: center;
  }

  .next-link img {
    width: 100%; /* ← スマホは今のまま */
    min-width: auto;
  }

  .next-label {
    font-size: 24px;
  }
}
/* ギャラリー全体に余白を確保 */
.image-gallery {
  padding-bottom: 120px;
}

/* 矢印を少し上に */
.gallery-controls {
  top: 45%;
}

/* 説明文は矢印の下に */
.gallery-note {
  position: relative;
  margin-top: 60px;
  color: #fff;
  text-align: center;
}
@media screen and (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  header .global-nav {
    display: flex;
    align-items: center;
  }

  header .button-list {
    margin-left: 10px;
  }
}
/* NEXT内の施工例一覧 */
.next-list {
  flex: 1;
  text-align: left;
}

/* button-list共通の縦1文字問題対策 */
.button-list a {
  white-space: nowrap;
}
.next-image {
  flex: 1;
  text-align: right;
}

.next-label {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.next-image img {
  width: 12.5%; /* 今の半分 */
}

.next-title {
  margin-top: 10px;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  .next-inner {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .next-image {
    text-align: center;
  }

  .next-image img {
    width: 25%;
  }
}
/* =========================
   HEADER 完全リセット版
========================= */

/* 共通（PC & スマホ） */
header {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #fff;
}

.logo img {
  width: 180px; /* PCで120% */
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.global-nav a {
  color: #000;
  text-decoration: none;
}

.button-list a {
  padding: 8px 16px;
  background: #333;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* ===== PC ===== */
@media screen and (min-width: 769px) {
  header {
    justify-content: space-between;
  }

  .global-nav {
    margin-left: auto;
    margin-right: 20px;
  }
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  /* 1段目：ロゴ */
  .logo {
    width: 100%;
    margin-bottom: 10px;
  }

  /* 2段目：ナビ＋施工例一覧（横並び固定） */
  .global-nav,
  .button-list {
    width: auto;
  }

  .global-nav ul {
    gap: 12px;
  }

  .button-list {
    margin-left: 12px;
  }

  .button-list a {
    font-size: 12px;
    padding: 6px 12px;
  }
}
