:root {
  --bg: #e8efe9;
  --bg-deep: #d5e2d8;
  --ink: #15201a;
  --muted: #4a5c52;
  --accent: #0f6b4c;
  --accent-soft: #c6e6d6;
  --line: rgba(21, 32, 26, 0.14);
  --paper: rgba(255, 252, 247, 0.72);
  --shadow: 0 18px 50px rgba(21, 32, 26, 0.08);
  --display: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.7;
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, #f7fff8 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, #cfe8da 0%, transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(21, 32, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 32, 26, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #0a4f38;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.page.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.hero {
  padding: 1.5rem 0 2.5rem;
  animation: rise 0.7s ease both;
}

.hero-visual {
  margin: 2rem 0 0;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #dfece3;
  animation: rise 0.9s ease both;
  animation-delay: 0.12s;
}

.hero-visual picture,
.product-card picture {
  display: block;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.8s ease;
}

.hero-visual:hover img {
  transform: scale(1.03);
}

.brand-mark {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.brand-mark a {
  color: inherit;
  text-decoration: none;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 36rem;
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.55rem;
  border: 1px solid transparent;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--ink);
  color: #f6fbf7;
}

.btn.primary:hover {
  background: #0c1611;
  color: #f6fbf7;
}

.btn.ghost {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.section {
  margin: 0 0 1.25rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  animation: rise 0.8s ease both;
}

.section:nth-of-type(2) {
  animation-delay: 0.08s;
}

.section:nth-of-type(3) {
  animation-delay: 0.16s;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.section-intro {
  margin: 0 0 1.2rem !important;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 252, 247, 0.9);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.product-card h3 {
  margin: 1rem 1rem 0.35rem;
  font-family: var(--display);
  font-size: 1.25rem;
}

.product-card p {
  margin: 0 1rem 1.1rem !important;
}

.contact-list {
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.6rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.contact-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-list dd {
  margin: 0;
  font-weight: 500;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.doc-header {
  margin-bottom: 2rem;
  animation: rise 0.7s ease both;
}

.doc-header h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

.meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc section {
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc ul {
  margin: 0;
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.55rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(920px, calc(100% - 1.5rem));
    padding-top: 2.5rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .section {
    padding: 1.2rem 1rem;
  }
}
