/* ===========================
   Type4: ギャラリー一覧型
   カラーテーマ: ウォームグレー × ホワイト × アンバー
=========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --warm-gray: #4a4540;
  --amber: #c47a2a;
  --amber-light: #d9943e;
  --white: #ffffff;
  --off-white: #faf8f5;
  --light-gray: #f2ede8;
  --border: #e8e2da;
  --gray: #888;
  --text-light: #666;
}

/* ===========================
   ヘッダー
=========================== */
#header {
  position: sticky;
  top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.06em;
}
.logo span {
  display: block;
  font-size: 0.6rem;
  color: var(--gray);
  letter-spacing: 0.12em;
  margin-top: 2px;
}
.global-nav ul {
  display: flex;
  gap: 28px;
}
.global-nav ul li a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.global-nav ul li a:hover {
  border-bottom-color: var(--amber);
  color: var(--amber);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-tel {
  font-size: 0.8rem;
  color: var(--warm-gray);
}
.header-tel strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.btn-contact-header {
  background: var(--amber);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-contact-header:hover { background: var(--amber-light); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--warm-gray);
}

/* ===========================
   ファーストビュー（スライダー＋ギャラリー）
=========================== */
#hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(74,69,64,0.2) 0%, rgba(74,69,64,0.6) 100%);
}
.hero-text {
  position: absolute;
  bottom: 60px; left: 60px;
  color: var(--white);
}
.hero-text .catch {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 12px;
}
.hero-text .sub {
  font-size: 0.92rem;
  opacity: 0.9;
  margin-bottom: 24px;
}
.btn-hero {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-hero:hover { background: var(--amber-light); }
.hero-nav {
  position: absolute;
  bottom: 20px; right: 60px;
  display: flex; gap: 8px;
}
.hero-nav span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-nav span.active { background: var(--white); }

/* ===========================
   ギャラリーバナー（トップ直下）
=========================== */
#gallery-banner {
  background: var(--off-white);
  padding: 40px;
  border-bottom: 1px solid var(--border);
}
.gallery-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-banner-inner h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--warm-gray);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.gallery-strip-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 3px;
}
.gallery-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-strip-item:hover img { transform: scale(1.06); }
.gallery-strip-item .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(74,69,64,0.8), transparent);
  color: var(--white);
  padding: 16px 10px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-strip-item:hover .label { opacity: 1; }
.gallery-more {
  text-align: right;
  margin-top: 14px;
}
.gallery-more a {
  font-size: 0.8rem;
  color: var(--amber);
  font-weight: 600;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}

/* ===========================
   セクション共通
=========================== */
section { padding: 80px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.section-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-gray);
  letter-spacing: 0.06em;
}
.section-title .en {
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}
.section-more {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 600;
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}

/* ===========================
   特徴
=========================== */
#features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}
.feature-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--warm-gray);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   サービス
=========================== */
#services { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.service-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.service-card-body {
  padding: 18px 16px;
}
.service-card-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--warm-gray);
  margin-bottom: 8px;
}
.service-card-body p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}
.btn-service {
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}

/* ===========================
   施工事例（大きめグリッド）
=========================== */
#works { background: var(--white); }
.works-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}
.work-card:first-child {
  grid-column: 1 / 3;
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.work-card:hover img { transform: scale(1.04); }
.work-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(74,69,64,0.9) 0%, transparent 100%);
  padding: 24px 16px 14px;
  color: var(--white);
}
.work-card-info .tag {
  display: inline-block;
  background: var(--amber);
  color: var(--white);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 6px;
  font-weight: 600;
}
.work-card-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
}

/* ===========================
   お客様の声
=========================== */
#voices { background: var(--off-white); }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.voice-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 3px;
}
.voice-stars { color: var(--amber); font-size: 0.9rem; margin-bottom: 10px; }
.voice-card p {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}
.voice-author { font-size: 0.78rem; font-weight: 600; color: var(--warm-gray); }
.voice-author span { font-weight: 400; color: var(--gray); margin-left: 8px; }

/* ===========================
   お問い合わせ
=========================== */
#contact { background: var(--warm-gray); }
#contact .section-title { border-bottom-color: rgba(255,255,255,0.15); }
#contact .section-title h2 { color: var(--white); }
#contact .section-title .en { color: var(--amber-light); }
.contact-form { max-width: 660px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.82rem;
  color: rgba(255,255,255,0.8); margin-bottom: 5px; font-weight: 600;
}
.form-group label .required {
  background: var(--amber); color: var(--white);
  font-size: 0.68rem; padding: 2px 6px; border-radius: 2px; margin-left: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: var(--white); font-size: 0.88rem; font-family: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--amber);
}
.form-group select option { color: #333; background: #fff; }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
  background: var(--amber); color: var(--white);
  border: none; padding: 13px 48px;
  font-size: 0.92rem; font-weight: 700; border-radius: 3px;
  cursor: pointer; letter-spacing: 0.08em;
  transition: background 0.2s; font-family: inherit;
}
.btn-submit:hover { background: var(--amber-light); }

/* ===========================
   フッター
=========================== */
#footer {
  background: #2a2520;
  color: rgba(255,255,255,0.55);
  padding: 48px 40px 20px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-info p { font-size: 0.78rem; line-height: 2; }
.footer-nav h4 {
  font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.65);
  margin-bottom: 12px; letter-spacing: 0.08em;
}
.footer-nav ul li { margin-bottom: 7px; }
.footer-nav ul li a {
  font-size: 0.78rem; color: rgba(255,255,255,0.45); transition: color 0.2s;
}
.footer-nav ul li a:hover { color: var(--amber-light); }
.footer-bottom {
  max-width: 1100px; margin: 16px auto 0;
  text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.3);
}

/* ===========================
   モバイル
=========================== */
@media (max-width: 960px) {
  .header-inner { padding: 0 20px; }
  .global-nav, .header-cta { display: none; }
  .global-nav.open {
    display: block;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--white); padding: 20px; z-index: 999;
    border-bottom: 1px solid var(--border);
  }
  .global-nav.open ul { flex-direction: column; gap: 0; }
  .global-nav.open ul li a {
    display: block; padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
  }
  .hamburger { display: flex; }

  #hero { height: 380px; }
  .hero-text { left: 24px; bottom: 40px; }
  .hero-text .catch { font-size: 1.7rem; }

  #gallery-banner { padding: 28px 20px; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .gallery-strip-item:nth-child(n+4) { display: none; }

  section { padding: 56px 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid-main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .work-card:first-child { grid-column: 1 / 3; }
  .voices-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  #footer { padding: 36px 20px 16px; }
}
@media (max-width: 480px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip-item:nth-child(n+3) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid-main { grid-template-columns: 1fr; }
  .work-card:first-child { grid-column: auto; }
}
