/* ===========================
   Type2: 縦ナビ型 - スタイルシート
   カラーテーマ: ダークグリーン × クリーム × ゴールド
=========================== */

*, *::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: #f8f6f0;
  line-height: 1.8;
  display: flex;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --green: #2d4a3e;
  --green-light: #3d6454;
  --cream: #f8f6f0;
  --gold: #b8973a;
  --gold-light: #d4af5a;
  --white: #ffffff;
  --gray-light: #f0ede4;
  --gray: #888;
  --text: #333;
  --text-light: #666;
  --sidebar-width: 240px;
}

/* ===========================
   サイドバー（縦ナビ）
=========================== */
#sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--green);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 32px 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo a {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.sidebar-logo span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}
.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  border-left: 3px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-left-color: var(--gold);
}
.sidebar-nav ul li a .nav-icon { font-size: 1rem; }

.sidebar-contact {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-contact .tel {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.sidebar-contact .tel-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.btn-sidebar-contact {
  display: block;
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 10px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-sidebar-contact:hover { background: var(--gold-light); }

/* ===========================
   メインコンテンツ
=========================== */
#main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

/* ===========================
   ファーストビュー
=========================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s 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 bottom, rgba(45,74,62,0.3) 0%, rgba(45,74,62,0.6) 100%);
}
.hero-text {
  position: absolute;
  bottom: 80px; left: 60px;
  color: var(--white);
  max-width: 500px;
}
.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: 16px;
}
.hero-text .sub {
  font-size: 0.95rem;
  opacity: 0.9;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.btn-hero {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s;
}
.btn-hero:hover {
  background: var(--white);
  color: var(--green);
}
.hero-scroll {
  position: absolute;
  bottom: 24px; right: 40px;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.5);
  animation: scrollLine 1.5s ease infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================
   セクション共通
=========================== */
section { padding: 80px 60px; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-title { margin-bottom: 50px; }
.section-title .en {
  display: block;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.section-title h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
}
.section-title .divider {
  width: 36px; height: 2px;
  background: var(--gold);
  margin-top: 12px;
}

/* ===========================
   特徴・強み
=========================== */
#features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.feature-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--cream);
  border-radius: 4px;
  border-left: 4px solid var(--gold);
}
.feature-card .icon { font-size: 2rem; flex-shrink: 0; }
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   提供サービス
=========================== */
#services { background: var(--cream); }
.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.service-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.service-item:hover { transform: translateY(-2px); }
.service-item img {
  width: 100%; height: 200px; object-fit: cover;
}
.service-item-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-item-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}
.service-item-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s;
}
.btn-service:hover { color: var(--green); border-color: var(--green); }

/* ===========================
   施工事例
=========================== */
#works { background: var(--white); }
.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(45,74,62,0.85), transparent);
  color: var(--white);
  padding: 20px 14px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.works-more { margin-top: 32px; }
.btn-more {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 11px 36px;
  border-radius: 3px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-more:hover { background: var(--green); color: var(--white); }

/* ===========================
   お客様の声
=========================== */
#voices { background: var(--cream); }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  background: var(--white);
  padding: 28px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.voice-stars { color: var(--gold); font-size: 0.95rem; margin-bottom: 12px; }
.voice-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.voice-author { font-size: 0.8rem; font-weight: 600; color: var(--green); }
.voice-author span { font-weight: 400; color: var(--gray); margin-left: 8px; }

/* ===========================
   お問い合わせ
=========================== */
#contact { background: var(--green); }
#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: 640px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  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.68rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.88rem;
  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);
}
.form-group select option { color: var(--text); background: var(--white); }
.form-group textarea { height: 130px; resize: vertical; }
.btn-submit {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 14px 48px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.2s;
  font-family: inherit;
}
.btn-submit:hover { background: var(--gold-light); }

/* ===========================
   フッター
=========================== */
#footer {
  background: #1a2e26;
  color: rgba(255,255,255,0.6);
  padding: 40px 60px 20px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.footer-info p { font-size: 0.8rem; line-height: 2; }
.footer-nav h4 {
  font-size: 0.8rem; font-weight: 700; color: var(--white);
  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.55);
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  max-width: 960px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   モバイル対応
=========================== */
@media (max-width: 900px) {
  body { display: block; }
  #sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: 260px;
    transition: left 0.3s;
  }
  #sidebar.open { left: 0; }
  #main { margin-left: 0; }

  .mobile-header {
    display: flex !important;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--green);
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 999;
  }
  .mobile-header .logo-m {
    font-size: 0.95rem; font-weight: 700; color: var(--white);
  }
  .hamburger-m {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  }
  .hamburger-m span {
    display: block; width: 22px; height: 2px; background: var(--white);
  }

  #hero { height: 70vh; min-height: 400px; margin-top: 60px; }
  .hero-text { left: 24px; bottom: 50px; }
  .hero-text .catch { font-size: 1.6rem; }

  section { padding: 56px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; }
  .service-item img { height: 180px; }
  .works-grid { grid-template-columns: repeat(2,1fr); }
  .voices-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  #footer { padding: 36px 24px 16px; }
}

.mobile-header { display: none; }
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.overlay.show { display: block; }
