:root {
  --bg: #f3f5f1;
  --surface: #ffffff;
  --text: #132019;
  --muted: #5e6d65;
  --line: rgba(19, 32, 25, 0.1);
  --brand: #1d6b50;
  --brand-soft: #edf4ef;
  --shadow: 0 16px 40px rgba(18, 28, 22, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }

.site-header {
  background: rgba(243, 245, 241, 0.94);
  border-bottom: 1px solid rgba(19, 32, 25, 0.06);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 20px;
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow);
}
.brand span {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  font-weight: 800;
  color: var(--brand);
}
.brand strong {
  display: block;
  font-size: 1rem;
  color: var(--muted);
  font-weight: 700;
}
.main-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}
.nav-link.active,
.nav-link:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.hero {
  padding: 32px 0 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}
.hero-copy,
.hero-visual,
.content-frame {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 34px;
}
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  max-width: 12ch;
}
.lead,
.hero-summary {
  color: var(--muted);
  line-height: 1.75;
}
.lead { margin: 16px 0 0; font-size: 1.02rem; }
.hero-summary {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.96rem;
}
.hero-visual {
  overflow: hidden;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.content-section {
  padding: 10px 0 42px;
}
.content-frame {
  padding: 26px;
}
.legacy-content {
  font-size: 1rem;
  line-height: 1.8;
}
.homepage-summary {
  display: grid;
  gap: 14px;
}
.homepage-summary p {
  margin: 0;
  color: var(--muted);
}
.legacy-content p,
.legacy-content div,
.legacy-content li {
  color: var(--muted);
}
.legacy-content strong {
  color: var(--text);
}
.legacy-content .legacy-center {
  text-align: center;
}
.legacy-content img {
  margin: 22px auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.legacy-content table {
  width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.legacy-content td {
  padding: 13px 14px;
  border-right: 1px solid rgba(19, 32, 25, 0.06);
  border-bottom: 1px solid rgba(19, 32, 25, 0.08);
  color: var(--text);
  font-size: 0.94rem;
  background: #fff;
}
.legacy-content tr:first-child td {
  background: var(--brand-soft);
  font-weight: 800;
}
.legacy-gallery .legacy-center {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.legacy-gallery img {
  width: 100%;
  height: 240px;
  margin: 0;
  object-fit: cover;
}
.legacy-content iframe {
  width: 100%;
  border: 0;
  border-radius: 18px;
  margin: 18px 0 22px;
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid rgba(19, 32, 25, 0.06);
  background: #eef2ee;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 30px;
}
.footer-inner strong {
  display: block;
  margin-bottom: 6px;
}
.footer-inner p {
  margin: 0;
  color: var(--muted);
}
.footer-cta {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 700;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .main-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 18px, 1120px); }
  .site-header { position: static; }
  .brand img { width: 62px; height: 62px; }
  .brand strong { font-size: 0.88rem; }
  .nav-link { padding: 9px 12px; font-size: 0.9rem; }
  .hero { padding-top: 18px; }
  .hero-copy,
  .hero-visual,
  .content-frame { border-radius: 18px; }
  .hero-copy,
  .content-frame { padding: 18px; }
  .hero h1 { max-width: none; font-size: clamp(1.8rem, 10vw, 2.8rem); }
  .lead,
  .hero-summary,
  .legacy-content { font-size: 0.96rem; }
  .hero-visual img { min-height: 260px; }
  .legacy-gallery .legacy-center { grid-template-columns: 1fr; }
  .legacy-gallery img { height: auto; }
  .legacy-content td { padding: 10px 11px; font-size: 0.86rem; }
}
