:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-alt: #f0ece4;
  --text: #23201b;
  --muted: #6b6257;
  --brand: #8a6a3d;
  --brand-dark: #5f4727;
  --line: #ddd3c4;
  --success: #2f6b4f;
  --shadow: 0 10px 30px rgba(35, 32, 27, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }
.small { font-size: 0.95rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}
.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}
.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.bg-white { background: var(--surface); }
.bg-alt { background: var(--surface-alt); }
.center { text-align: center; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card.soft { background: #fcfaf7; box-shadow: none; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(138, 106, 61, 0.12);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: transparent; border-color: var(--line); }
.btn-secondary:hover { background: #fff; }
.btn-secondary { color: #000; }

.link-arrow { font-weight: 700; color: var(--brand-dark); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid rgba(221, 211, 196, 0.8);
}
.header-inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.9rem;
  min-height: 78px;
}
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  flex: 0 0 auto;
}
.brand strong {
  font-size: 1.05rem;
  white-space: nowrap;
}
.brand span {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}
.nav a {
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.95rem;
}
.nav a.active,
.nav a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
}
.nav-cta .btn {
  white-space: nowrap;
}
.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
}
.hero {
  padding: 5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.hero-panel {
  background: linear-gradient(180deg, #fff 0%, #fbf8f2 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.checklist li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.8rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--success);
}
.form {
  display: grid;
  gap: 0.9rem;
}
label { font-weight: 600; font-size: 0.95rem; }
input, textarea, select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--text);
}
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.kpi {
  border-left: 4px solid var(--brand);
  padding-left: 1rem;
}
.steps {
  counter-reset: step;
}
.steps .card {
  position: relative;
  padding-top: 3.4rem;
}
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1.15rem;
  left: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.quote {
  font-size: 1.05rem;
  font-style: italic;
}
.case-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.callout {
  padding: 2rem;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: 24px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.faq-answer {
  display: none;
  padding-top: 0.7rem;
  color: var(--muted);
}
.faq-item.open .faq-answer { display: block; }
.page-hero {
  padding: 3.7rem 0 2.4rem;
}
.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}
.service-list .card,
.case-grid .card,
.value-grid .card { height: 100%; }
.table-like {
  display: grid;
  gap: 1rem;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.compare-row > div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.footer {
  padding: 2.2rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 2rem;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.notice {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  margin-top: 1rem;
  display: none;
}
.notice.success {
  display: block;
  background: rgba(47, 107, 79, 0.12);
  color: var(--success);
}
.notice.error {
  display: block;
  background: rgba(137, 34, 34, 0.1);
  color: #892222;
}
@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .compare-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats { grid-template-columns: 1fr; }
  .nav, .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-open .nav,
  .mobile-open .nav-cta {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 1rem;
  }
  .mobile-open .header-inner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-inner {
    align-items: center;
  }

  .brand {
    align-self: center;
    min-height: auto;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    margin: 0;
  }
}


.brand {
  padding: 0 1rem;
  border-radius: 0;
  background: #d9cfbf;
  border-right: 1px solid #c4b8a7;
  margin: -1px 0;
}

.page-hero-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.page-hero-bg,
.page-hero-overlay {
  position: absolute;
  inset: 0;
}

.page-hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s ease-in-out;
}

.page-hero-bg.is-visible {
  opacity: 1;
}

.page-hero-overlay {
  background: linear-gradient(90deg, rgba(240,236,228,0.94) 0%, rgba(240,236,228,0.82) 34%, rgba(240,236,228,0.55) 56%, rgba(240,236,228,0.7) 100%);
  z-index: 0;
}

.page-hero-media .container {
  position: relative;
  z-index: 1;
}

.page-hero-card {
  max-width: 760px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(221,211,196,0.95);
  border-radius: 28px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}

.page-hero-card p {
  max-width: none;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .page-hero-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
}

@media (max-width: 1180px) {
  .nav { gap: 0.8rem; }
  .nav a { font-size: 0.92rem; }
  .nav-cta .btn { padding-left: 1rem; padding-right: 1rem; }
}


.data-load-warning {
  background: #fff4d8;
  border-top: 1px solid #e5d3a1;
  border-bottom: 1px solid #e5d3a1;
  color: #5d4722;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin-top: 0.75rem; font-weight: 600; }
.form-message.is-error { color: #9b1c1c; }
.form-message.is-success { color: #1f6f3f; }
