:root {
  --leaf: #236b35;
  --leaf-dark: #123a22;
  --soil: #6f4e2f;
  --sun: #e7a72f;
  --cream: #fffaf0;
  --paper: #ffffff;
  --ink: #1d211b;
  --muted: #5f675d;
  --border: #dfe6d8;
  --shadow: 0 14px 40px rgba(18, 58, 34, 0.14);
  --font-main: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  line-height: 1.8;
  background: var(--cream);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.farm-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  height: 68px;
  padding: 0 clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid rgba(35, 107, 53, 0.16);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-weight: 900;
  color: var(--leaf-dark);
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
}
.farm-nav { display: flex; align-items: center; gap: 18px; font-size: 0.88rem; font-weight: 700; color: var(--leaf-dark); }
.farm-nav a { flex: 0 0 auto; white-space: nowrap; }
.farm-nav a:hover { color: var(--sun); }

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 5vw, 72px) 76px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 58, 34, 0.92), rgba(18, 58, 34, 0.58) 46%, rgba(18, 58, 34, 0.12)),
    url('assets/farm-harvest.jpg') center / cover no-repeat;
  transform: scale(1.02);
}
.hero-content {
  position: relative;
  width: min(900px, 100%);
}
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--sun);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-accent);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0;
}
.lead {
  width: min(620px, 100%);
  margin: 22px 0 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.primary-btn,
.secondary-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 900;
}
.primary-btn { background: var(--sun); color: #221b0b; }
.secondary-btn { border: 1px solid rgba(255,255,255,0.7); color: #fff; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.two-column {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
h2 {
  margin: 0;
  font-family: var(--font-accent);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.32;
  color: var(--leaf-dark);
}
.copy-block p,
.section-heading p,
.experience-panel p,
.contact p {
  color: var(--muted);
  margin: 0 0 18px;
}

.vision {
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}
.vision-grid,
.students-grid,
.community-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.vision-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.vision-metrics article {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(18, 58, 34, 0.08);
}
.vision-metrics span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef6e8;
  color: var(--leaf);
  font-weight: 900;
}
.vision-metrics strong {
  display: block;
  margin-top: 14px;
  color: var(--leaf-dark);
  font-size: 1.1rem;
}
.vision-metrics p { margin: 8px 0 0; color: var(--muted); }
.story-photo,
.section-photo,
.field-photo {
  margin-top: 36px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.story-photo img,
.section-photo img,
.field-photo img {
  width: 100%;
  object-fit: cover;
}
.story-photo img {
  height: 520px;
}
.section-photo {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  align-items: center;
  margin-bottom: 24px;
}
.section-photo img {
  height: 260px;
}
.story-photo figcaption,
.section-photo figcaption,
.field-photo figcaption {
  margin: 0;
  padding: 18px 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.membership {
  background: #fff;
}
.sales-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 8px;
  background: #fff3d3;
  border-left: 5px solid var(--sun);
  color: var(--leaf-dark);
  font-weight: 900;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.plan-card {
  min-height: 260px;
  padding: 28px;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(18, 58, 34, 0.08);
}
.plan-card.featured {
  background: linear-gradient(135deg, #fff7dd, #ffffff);
  border-color: rgba(231, 167, 47, 0.62);
}
.participation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.participation-grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: #fffaf0;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(18, 58, 34, 0.08);
}
.plan-card span,
.participation-grid span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: #eef6e8;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 900;
}
.plan-card h3,
.participation-grid h3 {
  margin: 16px 0 10px;
  color: var(--leaf-dark);
  font-size: 1.24rem;
}
.plan-card p,
.participation-grid p { margin: 0; color: var(--muted); }

.field-building { background: var(--leaf-dark); color: #fff; }
.field-building h2 { color: #fff; }
.field-building .section-heading p { color: rgba(255,255,255,0.82); }
.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.field-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.field-photo {
  margin-top: 0;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  box-shadow: none;
}
.field-photo img {
  height: calc(100% - 78px);
  min-height: 360px;
}
.field-photo figcaption { color: rgba(255,255,255,0.78); }
.field-grid article {
  min-height: 0;
  padding: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
}
.field-grid span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(231,167,47,0.18);
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
}
.field-grid h3 { margin: 18px 0 10px; font-size: 1.3rem; }
.field-grid p { margin: 0; color: rgba(255,255,255,0.78); }

.students { background: #f1f7ec; }
.students-panel {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.students-panel p,
.community p,
.media-grid p { color: var(--muted); margin: 14px 0 0; }
.student-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.student-steps article {
  min-height: 182px;
  padding: 22px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--border);
}
.student-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-weight: 900;
}
.student-steps strong { display: block; margin-top: 12px; color: var(--leaf-dark); }
.student-steps p { margin: 6px 0 0; color: var(--muted); font-size: 0.94rem; }

.community { background: #fff; }
.community-card {
  padding: clamp(28px, 5vw, 44px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--leaf), var(--leaf-dark));
  color: #fff;
  box-shadow: var(--shadow);
}
.community-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 22px;
}
.community-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.community-card ol {
  margin: 0;
  padding-left: 1.35em;
  font-weight: 900;
}
.community-card li + li { margin-top: 14px; }

.media { background: #fffaf0; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.media-grid article {
  min-height: 190px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(18, 58, 34, 0.08);
}
.media-grid strong {
  display: block;
  color: var(--leaf-dark);
  font-size: 1.12rem;
}
.media-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.media-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(18, 58, 34, 0.08);
}
.notice {
  margin-top: 24px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border-left: 5px solid var(--sun);
  box-shadow: var(--shadow);
}
.notice p { margin: 8px 0 0; }

.products { background: #fff; }
.section-heading {
  width: min(720px, 100%);
  margin-bottom: 36px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(18, 58, 34, 0.08);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-card div { padding: 22px; }
.label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6e8;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 900;
}
.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  color: var(--leaf-dark);
}
.product-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.experience {
  background:
    linear-gradient(rgba(255,250,240,0.88), rgba(255,250,240,0.88)),
    url('assets/farm-experience.png') center / cover fixed;
}
.experience-panel {
  width: min(720px, 100%);
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--leaf);
  font-weight: 900;
  border-bottom: 2px solid var(--sun);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: start;
}
.contact-card {
  background: #fff;
  padding: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.contact-card dl { margin: 0; }
.contact-card div { margin-bottom: 14px; }
.contact-card dt { font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.contact-card dd { margin: 0; font-weight: 900; color: var(--leaf-dark); }
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-links a {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--leaf);
  color: #fff;
  font-weight: 900;
}
.farm-footer {
  min-height: 72px;
  padding: 18px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  background: var(--leaf-dark);
}
.farm-footer p { margin: 0; }
.farm-footer a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 820px) {
  .farm-header { height: auto; min-height: 64px; align-items: flex-start; flex-direction: column; padding: 12px 18px; }
  .farm-nav { width: 100%; gap: 12px; overflow-x: auto; padding-bottom: 2px; font-size: 0.84rem; }
  .hero { min-height: 88vh; padding-top: 128px; }
  .two-column,
  .contact-grid,
  .vision-grid,
  .students-grid,
  .community-grid,
  .vision-metrics,
  .plan-grid,
  .participation-grid,
  .field-layout,
  .field-grid,
  .student-steps,
  .product-grid,
  .media-grid,
  .media-gallery,
  .section-photo { grid-template-columns: 1fr; }
  .story-photo img,
  .section-photo img,
  .field-photo img,
  .media-gallery img { max-height: none; height: auto; min-height: 0; }
  .hero-actions a { width: 100%; }
  .experience { background-attachment: scroll; }
  .farm-footer { flex-direction: column; align-items: flex-start; }
}
