@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --bg: #f2f5f0;
  --bg-soft: #e7efe6;
  --ink: #18211b;
  --ink-soft: #2a352e;
  --muted: #5b6a60;
  --line: #d4ddd5;
  --line-strong: #b7c4ba;
  --brand: #2f9a44;
  --brand-deep: #1c6f31;
  --brand-soft: #e6f3e8;
  --brand-wash: #d7eadb;
  --card: #ffffff;
  --danger: #c9443a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(24, 33, 27, 0.04), 0 10px 28px rgba(24, 33, 27, 0.06);
  --shadow-soft: 0 1px 2px rgba(24, 33, 27, 0.04);
  --font-display: "Source Serif 4", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --focus-ring: 0 0 0 3px rgba(47, 154, 68, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  background:
    radial-gradient(920px 460px at 6% -12%, #d8edd9 0%, transparent 58%),
    radial-gradient(720px 360px at 98% 0%, #e4efe2 0%, transparent 52%),
    linear-gradient(180deg, #f7faf6 0%, var(--bg) 38%, #eef3ec 100%);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--brand); }
.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(247, 250, 246, 0.82);
  border-bottom: 1px solid rgba(212, 221, 213, 0.9);
}
.header-inner {
  display: flex; align-items: center; gap: 0.75rem;
  min-height: 68px; flex-wrap: wrap; padding: 0.45rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 0;
  object-fit: contain;
  display: block;
  flex: 0 0 38px;
  background: transparent;
  box-shadow: none;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1;
}
.site-nav {
  display: flex; gap: 0.15rem; flex-wrap: wrap;
  margin-left: 0.55rem;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-xs, 8px);
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 650;
}

.site-search { flex: 1; min-width: 150px; max-width: 230px; }
.site-search input,
.hero-search input,
.ask-form input,
.ask-form textarea,
.ask-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.72rem 1rem;
  background: #fff;
  font: inherit;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.site-search input::placeholder,
.hero-search input::placeholder {
  color: #87958c;
}
.site-search input:focus,
.hero-search input:focus,
.ask-form input:focus,
.ask-form textarea:focus,
.ask-form select:focus {
  border-color: #8fc899;
  box-shadow: var(--focus-ring);
}
.ask-form textarea, .ask-form select { border-radius: var(--radius-sm); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  border-radius: var(--radius-sm); padding: 0.62rem 1.1rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-cta {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(47, 154, 68, 0.28);
}
.btn-cta:hover {
  color: #fff;
  background: var(--brand-deep);
  filter: none;
}

.hero {
  padding: 3.4rem 0 2rem;
  animation: rise 0.55s ease both;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  margin: 0 0 0.95rem;
}
.hero h1, .page-head h1, .article h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.45rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0 0 0.8rem;
  color: var(--ink);
}
.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.75;
}
.hero-search {
  display: flex; gap: 0.6rem; margin-top: 1.45rem; max-width: 560px;
}
.hero-search input { flex: 1; }

.section { padding: 1.25rem 0 2rem; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: 0.35rem;
}
.section-head h2, .section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.section-head a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--brand-deep);
}
.section-head a:hover { color: var(--brand); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.95rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.55s ease both;
}
.card:nth-child(2) { animation-delay: 0.05s; }
.card:nth-child(3) { animation-delay: 0.1s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:hover {
  transform: translateY(-2px);
  border-color: #9ec9a6;
  box-shadow: var(--shadow);
  color: inherit;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.meta { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.86rem; }

.link-list, .path-list { list-style: none; padding: 0; margin: 0; }
.link-list li, .path-list li {
  padding: 0.92rem 0.15rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.22rem;
}
.link-list a, .path-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.link-list a:hover, .path-list a:hover { color: var(--brand-deep); }
.path-list { counter-reset: step; }
.path-list li { counter-increment: step; padding-left: 2.2rem; position: relative; }
.path-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0.95rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--brand-soft);
  display: grid; place-items: center;
  font-size: 0.76rem; font-weight: 700; color: var(--brand-deep);
}

.page-head { padding: 2.1rem 0 0.55rem; animation: rise 0.45s ease both; }
.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  color: var(--muted); font-size: 0.86rem; margin-bottom: 0.95rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-deep); }
.article { padding-bottom: 3rem; }
.prose {
  max-width: 44rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 650;
  margin-top: 1.55rem;
  color: var(--ink);
}
.prose p, .prose li { color: var(--ink-soft); }
.prose a { font-weight: 500; }

.cta-band {
  margin-top: 1.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf6ec, #f3f8f2);
  border: 1px solid var(--brand-wash);
  box-shadow: var(--shadow-soft);
}
.cta-band .btn { margin-right: 0.4rem; margin-top: 0.35rem; }
.ask-form { display: grid; gap: 0.9rem; max-width: 540px; }
.ask-form label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--ink-soft); }

.site-footer {
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
  background: rgba(247, 250, 246, 0.78);
  padding: 2.1rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 1.1rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 0; object-fit: contain; }
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.footer-grid p { color: var(--muted); margin: 0; }
.footer-grid a {
  display: block; margin: 0.28rem 0;
  text-decoration: none; color: var(--ink-soft); font-weight: 500;
}
.footer-grid a:hover { color: var(--brand-deep); }
.footer-label {
  font-size: 0.76rem; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase; font-weight: 700;
  margin: 0 0 0.45rem;
}
.footer-note { margin-top: 1.4rem; color: var(--muted); font-size: 0.88rem; }

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

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav, .site-search { display: none; width: 100%; }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-search.is-open { display: block; max-width: none; }
  .header-inner .btn-cta { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { flex-direction: column; }
  .hero { padding-top: 2.4rem; }
}
