/* ============================================
   匠建設 - Warm Wood Construction
   Brown #92400E + Amber + Playfair Display
   ============================================ */

:root {
  --brown: #92400E;
  --brown-dark: #6B2F0A;
  --brown-light: #B45309;
  --amber: #D97706;
  --amber-light: #F59E0B;
  --cream: #FFFBEB;
  --cream-dark: #FEF3C7;
  --text: #292524;
  --text-light: #78716C;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(146,64,14,0.08);
  padding: 0 24px;
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brown);
  color: var(--white);
  font-size: 22px; font-weight: 700;
  border-radius: 8px;
  font-family: var(--font-body);
}
.logo-text {
  font-size: 18px; font-weight: 700; color: var(--brown);
  line-height: 1.2;
}
.logo-text small { display: block; font-size: 10px; font-weight: 400; color: var(--text-light); letter-spacing: 0.1em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; list-style: none; gap: 4px; }
.nav-link {
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  color: var(--text); border-radius: 6px;
  transition: all 0.2s;
}
.nav-link:hover { background: var(--cream); color: var(--brown); }
.nav-cta {
  margin-left: 12px; padding: 10px 24px;
  background: var(--brown); color: var(--white);
  font-size: 13px; font-weight: 600; border-radius: 8px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brown-dark); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  transition: all 0.3s; border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO SPLIT ===== */
.hero {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
}
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}
.hero-left {
  display: flex; align-items: center;
  padding: 80px 60px 80px 80px;
  background: var(--cream);
}
.hero-left-inner { max-width: 520px; }
.hero-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  color: var(--brown);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 0;
  border-bottom: 2px solid var(--amber);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--brown-dark);
  margin-bottom: 20px;
}
.hero-desc {
  font-size: 15px; line-height: 2;
  color: var(--text-light);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: 14px; font-weight: 600;
  border-radius: 8px; border: 2px solid transparent;
  transition: all 0.25s; cursor: pointer;
  font-family: var(--font-body);
}
.btn--primary { background: var(--brown); color: var(--white); border-color: var(--brown); }
.btn--primary:hover { background: var(--brown-dark); border-color: var(--brown-dark); }
.btn--outline { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn--outline:hover { background: var(--brown); color: var(--white); }
.btn--white { background: var(--white); color: var(--brown); border-color: var(--white); }
.btn--white:hover { background: var(--cream); }
.btn--large { padding: 16px 36px; font-size: 16px; }

.hero-mini-stats { display: flex; gap: 32px; }
.mini-stat { display: flex; flex-direction: column; }
.mini-stat-num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--brown);
}
.mini-stat-label { font-size: 12px; color: var(--text-light); }

.hero-right { position: relative; overflow: hidden; }
.hero-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-image-accent {
  position: absolute; bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: var(--amber);
  opacity: 0.15;
  border-radius: 50%;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--brown { background: var(--brown); color: var(--white); }

.section-en {
  display: block;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}
.section-title--light { color: var(--white); }
.section-desc {
  font-size: 15px; color: var(--text-light);
  margin-bottom: 48px;
}

/* ===== QUOTE BLOCK ===== */
.quote-block {
  background: var(--brown);
  margin: 48px 0;
  padding: 80px 24px;
}
.quote-inner {
  max-width: 800px; margin: 0 auto;
  text-align: center; color: var(--white);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 80px; color: var(--amber); line-height: 0.5;
  display: block; margin-bottom: 24px;
}
.quote-text {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 2.2;
  font-weight: 300;
  margin-bottom: 32px;
}
.quote-author { display: flex; flex-direction: column; gap: 4px; }
.quote-author-name { font-size: 16px; font-weight: 600; }
.quote-author-title { font-size: 13px; color: var(--amber-light); }

/* ===== ABOUT FEATURES ===== */
.about-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 48px;
}
.about-feature { text-align: center; }
.about-feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  color: var(--brown);
}
.about-feature-icon svg { width: 100%; height: 100%; }
.about-feature h3 {
  font-size: 18px; font-weight: 700;
  margin-bottom: 12px; color: var(--brown-dark);
}
.about-feature p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ===== SERVICES HORIZONTAL SCROLL ===== */
.services-scroll {
  overflow-x: auto;
  padding: 20px 0 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--brown) var(--cream);
}
.services-scroll::-webkit-scrollbar { height: 6px; }
.services-scroll::-webkit-scrollbar-track { background: var(--cream); border-radius: 3px; }
.services-scroll::-webkit-scrollbar-thumb { background: var(--brown); border-radius: 3px; }
.services-track {
  display: flex; gap: 24px;
  padding: 0 max(24px, calc((100vw - 1200px)/2));
  width: max-content;
}
.service-card {
  width: 340px; flex-shrink: 0;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.service-card-img {
  height: 220px;
  background-size: cover; background-position: center;
}
.service-card-body { padding: 28px; }
.service-card-num {
  font-family: var(--font-display);
  font-size: 14px; color: var(--amber);
  font-weight: 600;
}
.service-card-body h3 {
  font-size: 20px; font-weight: 700;
  margin: 8px 0 12px;
  color: var(--brown-dark);
}
.service-card-body p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.service-card-price {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  color: var(--brown);
  padding: 4px 12px;
  background: var(--cream);
  border-radius: 4px;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin-top: 48px;
}
.process-step {
  position: relative;
  padding: 32px 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
}
.process-num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--amber); display: block;
  margin-bottom: 16px;
}
.process-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.process-step p { font-size: 13px; line-height: 1.8; opacity: 0.8; }

/* ===== WORKS ===== */
.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 48px;
}
.work-item {
  position: relative; overflow: hidden;
  border-radius: 12px; cursor: pointer;
  height: 260px;
}
.work-item--large { grid-row: span 2; height: auto; }
.work-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s;
}
.work-item:hover .work-img { transform: scale(1.05); }
.work-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--white);
}
.work-cat {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  background: var(--amber);
  color: var(--white);
  padding: 3px 10px; border-radius: 3px;
  margin-bottom: 8px;
}
.work-overlay h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.work-overlay p { font-size: 13px; opacity: 0.85; }

/* ===== VOICE ===== */
.voice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.voice-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid rgba(146,64,14,0.08);
}
.voice-stars { color: var(--amber); font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.voice-text { font-size: 14px; line-height: 1.9; color: var(--text); margin-bottom: 20px; }
.voice-author { display: flex; align-items: center; gap: 12px; }
.voice-initial {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  color: var(--brown);
  font-weight: 700; font-size: 16px;
  border-radius: 50%;
}
.voice-name { display: block; font-size: 14px; font-weight: 600; }
.voice-detail { display: block; font-size: 12px; color: var(--text-light); }

/* ===== COMPANY ===== */
.company-table-wrap { margin-top: 48px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid rgba(146,64,14,0.1); }
.company-table th {
  text-align: left; padding: 18px 24px;
  font-size: 14px; font-weight: 600;
  color: var(--brown);
  width: 160px; vertical-align: top;
  background: var(--cream);
}
.company-table td {
  padding: 18px 24px; font-size: 14px;
  color: var(--text);
}

/* ===== RECRUIT ===== */
.recruit-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-top: 48px;
}
.recruit-message h3 {
  font-size: 28px; font-weight: 700;
  line-height: 1.5; margin-bottom: 20px;
}
.recruit-message p { font-size: 15px; line-height: 1.9; opacity: 0.85; }
.recruit-positions { display: flex; flex-direction: column; gap: 20px; }
.recruit-pos {
  padding: 24px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}
.recruit-pos-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  background: var(--amber); color: var(--white);
  padding: 3px 10px; border-radius: 3px; margin-bottom: 8px;
}
.recruit-pos h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.recruit-pos p { font-size: 13px; opacity: 0.75; }

/* ===== CTA ===== */
.section--cta {
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-dark) 100%);
  color: var(--white); text-align: center;
}
.cta-content h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; line-height: 1.5;
  margin-bottom: 16px;
}
.cta-content p { font-size: 15px; opacity: 0.85; margin-bottom: 32px; line-height: 1.9; }
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.cta-hours { font-size: 13px; opacity: 0.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: flex; justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer .logo-icon { background: var(--amber); font-size: 18px; width: 36px; height: 36px; }
.footer .logo-text { color: var(--white); font-size: 16px; }
.footer-address { font-size: 13px; line-height: 1.8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; }
.footer-links a { font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { text-align: center; padding: 24px 0; font-size: 12px; opacity: 0.5; }

/* ===== ANIMATIONS ===== */
[data-anim] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.3s; }
[data-delay="3"] { transition-delay: 0.45s; }
[data-delay="4"] { transition-delay: 0.6s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-left { padding: 60px 32px; }
  .hero-right { height: 50vh; }
  .about-features { grid-template-columns: 1fr; gap: 32px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: 1fr; }
  .work-item--large { height: 360px; }
  .voice-grid { grid-template-columns: 1fr; }
  .recruit-content { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 32px 24px;
    z-index: 999;
  }
  .nav.open .nav-list { flex-direction: column; gap: 0; }
  .nav.open .nav-link { padding: 14px 0; font-size: 16px; }
  .nav.open .nav-cta { margin: 16px 0 0; text-align: center; }
  .hamburger { display: flex; }
  .hero-left { padding: 48px 24px; }
  .hero-actions { flex-direction: column; }
  .hero-mini-stats { gap: 24px; }
  .process-grid { grid-template-columns: 1fr; }
  .company-table th { display: block; width: 100%; padding: 12px 16px 4px; }
  .company-table td { display: block; padding: 4px 16px 12px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-grid { flex-direction: column; gap: 32px; }
  .service-card { width: 300px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-mini-stats { flex-direction: column; gap: 16px; }
  .quote-block { padding: 48px 16px; }
}
