/* ===========================
   Type1: 横ナビ型 - スタイルシート
   カラーテーマ: ネイビー × ホワイト × ゴールド
=========================== */

/* --- リセット & ベース --- */
*, *::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 {
  --navy: #1a2e4a;
  --navy-light: #243d5e;
  --gold: #b8973a;
  --gold-light: #d4af5a;
  --white: #ffffff;
  --gray-light: #f5f5f0;
  --gray: #888;
  --text: #333;
  --text-light: #666;
}

/* ===========================
   ヘッダー
=========================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-top {
  background: var(--navy);
  padding: 6px 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}
.header-top .tel {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.header-top .tel span {
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 6px;
}
.btn-contact-sm {
  background: var(--gold);
  color: var(--white);
  padding: 5px 18px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-contact-sm:hover { background: var(--gold-light); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 64px;
}
.logo a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--gray);
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* メインナビ */
.global-nav ul {
  display: flex;
  gap: 0;
}
.global-nav ul li a {
  display: block;
  padding: 0 18px;
  height: 64px;
  line-height: 64px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.global-nav ul li a:hover {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* ハンバーガー（スマホ用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: 0.3s;
}

/* ===========================
   ファーストビュー（スライドショー）
=========================== */
#hero {
  margin-top: 100px;
  position: relative;
  height: 600px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.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 right, rgba(26,46,74,0.65) 0%, rgba(26,46,74,0.2) 60%, transparent 100%);
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  color: var(--white);
}
.hero-text .catch {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-text .sub {
  margin-top: 16px;
  font-size: 1rem;
  opacity: 0.9;
  letter-spacing: 0.1em;
}
.hero-text .btn-hero {
  display: inline-block;
  margin-top: 28px;
  background: var(--gold);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.2s;
}
.hero-text .btn-hero:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dots span.active { background: var(--white); }

/* ===========================
   セクション共通
=========================== */
section { padding: 80px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.section-title .en {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title .divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 14px auto 0;
}

/* ===========================
   特徴・強み
=========================== */
#features { background: var(--gray-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-card {
  background: var(--white);
  padding: 36px 24px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.feature-card .icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   提供サービス
=========================== */
#services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  height: 280px;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover img { transform: scale(1.05); }
.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,46,74,0.85) 0%, rgba(26,46,74,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}
.service-card-overlay h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.service-card-overlay p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.btn-service {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 7px 20px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
  transition: background 0.2s;
}
.btn-service:hover { background: var(--gold-light); }

/* ===========================
   施工事例
=========================== */
#works { background: var(--gray-light); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}
.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.work-item:hover img { transform: scale(1.06); }
.work-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,46,74,0.8), transparent);
  color: var(--white);
  padding: 20px 16px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.works-more {
  text-align: center;
  margin-top: 36px;
}
.btn-more {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 40px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
}
.btn-more:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===========================
   お客様の声
=========================== */
#voices { background: var(--white); }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.voice-card {
  background: var(--gray-light);
  padding: 28px;
  border-radius: 4px;
  position: relative;
}
.voice-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: 10px; left: 16px;
  line-height: 1;
  font-family: Georgia, serif;
}
.voice-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 12px;
}
.voice-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.voice-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.voice-author span {
  font-weight: 400;
  color: var(--gray);
  margin-left: 8px;
}

/* ===========================
   お問い合わせ
=========================== */
#contact { background: var(--navy); }
#contact .section-title h2 { color: var(--white); }
#contact .section-title .en { color: var(--gold-light); }
#contact .section-title .divider { background: var(--gold-light); }
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-group label .required {
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}
.form-group select option { color: var(--text); background: var(--white); }
.form-group textarea { height: 140px; resize: vertical; }
.btn-submit {
  display: block;
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--gold-light); }

/* ===========================
   フッター
=========================== */
#footer {
  background: #0f1e30;
  color: rgba(255,255,255,0.7);
  padding: 50px 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-info p {
  font-size: 0.82rem;
  line-height: 2;
}
.footer-nav h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.footer-nav ul li {
  margin-bottom: 8px;
}
.footer-nav ul li a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ===========================
   モバイル対応
=========================== */
@media (max-width: 900px) {
  .header-main { padding: 0 20px; }
  .header-top { padding: 6px 20px; }
  .global-nav { display: none; }
  .global-nav.open {
    display: block;
    position: fixed;
    top: 100px; left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 999;
  }
  .global-nav.open ul { flex-direction: column; }
  .global-nav.open ul li a {
    height: auto;
    line-height: 1.6;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
  }
  .hamburger { display: flex; }

  #hero { height: 420px; margin-top: 100px; }
  .hero-text { left: 24px; right: 24px; }
  .hero-text .catch { font-size: 1.7rem; }

  section { padding: 56px 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .voices-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .hero-text .catch { font-size: 1.4rem; }
}
