/* ========================================
   土と木の建築社 - Warm Natural Design
   Colors: Mauve #9B7068 + rose + sage
   Font: Quicksand + Noto Sans JP
   ======================================== */

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

:root {
  --bg: #FBF7F4;
  --bg-alt: #F3EDE8;
  --text: #3D2E27;
  --text-dim: #7D6B62;
  --mauve: #9B7068;
  --rose: #C4867A;
  --sage: #8BA888;
  --cream: #F5EDE6;
  --border: rgba(155,112,104,0.15);
  --radius: 24px;
  --font: 'Quicksand', 'Noto Sans JP', sans-serif;
  --footer-bg: #3D2E27;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 680px; }

/* ===== SAMPLE BANNER ===== */
.sample-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  background: var(--mauve); color: #fff;
  text-align: center; padding: 10px 16px; font-size: 13px;
  letter-spacing: 0.02em;
}

/* ===== PETAL CANVAS ===== */
#petalCanvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ===== WAVE DIVIDERS ===== */
.wave-divider { position: relative; z-index: 2; margin-top: -1px; }
.wave-divider svg { display: block; width: 100%; height: 60px; }
.wave-divider--flip { transform: scaleY(-1); }
.wave-divider--footer { margin-top: 0; }
.wave-divider--footer svg { height: 40px; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 40px; left: 0; right: 0; z-index: 1000;
  padding: 0 24px; transition: all 0.3s;
}
.header.scrolled {
  background: rgba(251,247,244,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(155,112,104,0.08);
}
.header__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.header__logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
}
.logo-text {
  font-size: 16px; font-weight: 700; line-height: 1.3;
  color: var(--mauve);
}
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav a {
  text-decoration: none; color: var(--text-dim); font-size: 14px;
  font-weight: 600; transition: color 0.3s;
}
.header__nav a:hover { color: var(--mauve); }
.nav-cta {
  background: var(--mauve) !important; color: #fff !important;
  padding: 10px 24px !important; border-radius: 100px;
}

.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 22px; position: relative; z-index: 1001;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--mauve);
  position: absolute; left: 0; transition: all 0.3s; border-radius: 2px;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(155,112,104,0.35) 0%,
    rgba(61,46,39,0.55) 100%
  );
}
.hero__content { position: relative; z-index: 2; max-width: 700px; padding: 120px 24px 80px; }
.hero__label {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(36px, 6vw, 64px); font-weight: 700;
  color: #fff; line-height: 1.3; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hero__desc {
  font-size: 16px; color: rgba(255,255,255,0.85); line-height: 1.9;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
}
.scroll-circle {
  width: 28px; height: 44px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-dot {
  width: 4px; height: 8px; background: #fff; border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(12px); }
}
.hero__scroll span { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.15em; text-transform: uppercase; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 100px; font-size: 15px;
  font-weight: 700; text-decoration: none; transition: all 0.3s;
  cursor: pointer; border: none; font-family: var(--font);
}
.btn--primary {
  background: var(--mauve); color: #fff;
  box-shadow: 0 4px 16px rgba(155,112,104,0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(155,112,104,0.4); background: #8B6058; }
.btn--outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn--full { width: 100%; }

/* ===== TRUST ===== */
.trust { padding: 64px 0; position: relative; z-index: 2; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.trust__item { padding: 24px; }
.trust__num { font-size: 42px; font-weight: 700; color: var(--mauve); }
.trust__unit { font-size: 18px; font-weight: 600; color: var(--rose); }
.trust__label { display: block; margin-top: 4px; font-size: 13px; color: var(--text-dim); font-weight: 500; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; z-index: 2; }
.section--alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--sage);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; line-height: 1.4; color: var(--text); }
.section-desc { font-size: 15px; color: var(--text-dim); margin-top: 16px; line-height: 1.8; }

/* ===== PHILOSOPHY ===== */
.philosophy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.philosophy__text p { font-size: 16px; color: var(--text-dim); line-height: 2; margin-bottom: 20px; }
.philosophy__values { display: flex; flex-direction: column; gap: 16px; }
.value-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(155,112,104,0.1); }
.value-card__icon { font-size: 28px; flex-shrink: 0; }
.value-card h3 { font-size: 17px; font-weight: 700; color: var(--mauve); margin-bottom: 6px; }
.value-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }

/* ===== MATERIALS ===== */
.materials__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.material-card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--border); text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.material-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(155,112,104,0.1); }
.material-card__visual { margin-bottom: 20px; }
.material-swatch {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.material-card h3 { font-size: 18px; font-weight: 700; color: var(--mauve); margin-bottom: 12px; }
.material-card p { font-size: 14px; color: var(--text-dim); line-height: 1.8; text-align: left; }

/* ===== WORKS ===== */
.works__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(155,112,104,0.1); }
.work-card__img { height: 200px; }
.work-card__body { padding: 24px; }
.work-card__tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--sage);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
  background: rgba(139,168,136,0.1); padding: 4px 12px; border-radius: 100px;
}
.work-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.work-card p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 16px; }
.work-card__specs { display: flex; gap: 8px; flex-wrap: wrap; }
.work-card__specs span {
  padding: 4px 10px; border-radius: 100px; font-size: 12px; font-weight: 500;
  background: var(--cream); color: var(--mauve);
}

/* ===== VOICE ===== */
.voice__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.voice-card {
  background: #fff; border-radius: var(--radius); padding: 32px;
  border: 1px solid var(--border);
}
.voice-card__text {
  font-size: 15px; color: var(--text); line-height: 1.9; margin-bottom: 20px;
  font-style: italic;
}
.voice-card__author { display: flex; align-items: center; gap: 12px; }
.voice-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--mauve); font-size: 18px;
}
.voice-card__author strong { display: block; font-size: 14px; }
.voice-card__author span { font-size: 12px; color: var(--text-dim); }

/* ===== FLOW ===== */
.flow__steps { max-width: 700px; margin: 0 auto; }
.flow-step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px 0; border-bottom: 1px solid var(--border);
}
.flow-step:last-child { border-bottom: none; }
.flow-step__num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--mauve); color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; flex-shrink: 0;
}
.flow-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--mauve); }
.flow-step p { font-size: 14px; color: var(--text-dim); line-height: 1.8; }

/* ===== COMPANY TABLE ===== */
.company__table {
  background: #fff; border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--border); max-width: 800px; margin: 0 auto;
}
.company__table table { width: 100%; border-collapse: collapse; }
.company__table th, .company__table td {
  padding: 14px 16px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.company__table th { width: 160px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }

/* ===== CONTACT FORM ===== */
.contact-form {
  background: #fff; border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-dim); }
.req { color: var(--rose); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-family: var(--font); font-size: 15px;
  transition: border-color 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--mauve);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }

/* ===== FOOTER ===== */
.footer { position: relative; z-index: 2; }
.footer__bg { background: var(--footer-bg); padding: 60px 0 32px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { font-size: 20px; font-weight: 700; color: #fff; display: block; margin-bottom: 12px; }
.footer__brand p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer__address { font-size: 13px; line-height: 1.7; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer__col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.6);
  text-decoration: none; margin-bottom: 8px; transition: color 0.3s;
}
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; display: flex; justify-content: space-between; }
.footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer__note { font-style: italic; }

/* ===== 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); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .materials__grid { grid-template-columns: 1fr 1fr; }
  .philosophy__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header__nav {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(251,247,244,0.97); backdrop-filter: blur(16px);
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  }
  .header__nav.open { display: flex; }
  .header__nav a { font-size: 18px; color: var(--text); }
  .hamburger { display: block; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .materials__grid { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr; }
  .voice__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .hero__title { font-size: 32px; }
}
