/* ============================================================
   真岡高松農園 — 共通スタイル
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700;900&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --bg-top:    #f4f1e8;
  --bg-mid:    #eef5ea;
  --bg-bottom: #e7f1e2;
  --text:      #1f1c1a;
  --muted:     #667063;
  --line:      #d8e1d2;
  --purple:    #4b2d5f;
  --green:     #5d7f49;
  --green-deep:#436236;
  --green-light:#e4f0dc;
  --line-green:#06C755;
  --shadow:    0 18px 50px rgba(25,18,30,.10);
  --radius:    24px;
  --radius-lg: 32px;
  --max:       1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, var(--bg-top) 0%, var(--bg-mid) 60%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.8;
  letter-spacing: .02em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: .04em;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
[id] { scroll-margin-top: 100px; }
.container {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120,105,90,.10);
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand img {
  width: 72px; height: 72px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.07);
  padding: 4px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1rem; }
.brand-text span   { font-size: .76rem; color: var(--muted); }

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: .9rem;
}
.nav a {
  color: #2f2924;
  opacity: .82;
  padding: 6px 10px;
  border-radius: 8px;
  transition: opacity .2s, background .2s;
}
.nav a:hover,
.nav a.active { opacity: 1; background: var(--green-light); }

.nav-cta {
  background: var(--green-deep) !important;
  color: #fff !important;
  opacity: 1 !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-weight: 700;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--green) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  padding: 48px 0 120px;
  color: var(--muted);
  font-size: .88rem;
  background: linear-gradient(180deg, rgba(232,242,227,.3), rgba(223,236,217,.8));
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  border-top: 1px solid rgba(92,127,73,.16);
  padding-top: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 3px;
}
.footer-brand strong { font-size: .95rem; color: var(--text); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.footer-links a {
  color: var(--muted);
  font-size: .84rem;
  opacity: .9;
}
.footer-links a:hover { opacity: 1; color: var(--green-deep); }

.footer-copy {
  text-align: right;
}
.footer-copy small { font-size: .82rem; }


/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */

.page-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Ken Burns 背景レイヤー */
.page-hero-bg {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  animation: pageKenBurns 22s ease-in-out infinite alternate;
  z-index: 0;
  will-change: transform;
}
@keyframes pageKenBurns {
  0%   { transform: scale(1.00) translate(0%,    0%); }
  100% { transform: scale(1.08) translate(-1.5%, 1%); }
}

/* グラデーションオーバーレイ（採用情報と同一） */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(244,241,232,1) 0%, rgba(244,241,232,0) 8%, rgba(231,241,226,0) 88%, rgba(231,241,226,1) 100%),
    linear-gradient(135deg, rgba(20,12,25,.70), rgba(50,30,62,.50));
  z-index: 1;
}

/* コンテンツを前面に */
.page-hero > .container {
  position: relative;
  z-index: 2;
}
.page-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-size: .82rem;
  margin-bottom: 16px;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.2;
  font-weight: 800;
}
.page-hero p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--green-deep); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: .6; }


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(67,98,54,.22);
}
.btn-primary:hover { background: var(--green); box-shadow: 0 12px 28px rgba(67,98,54,.28); }

.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-outline:hover { background: var(--green-light); }

.btn-white {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

.btn-line {
  background: #06C755;
  color: #fff;
  box-shadow: 0 8px 20px rgba(6,199,85,.22);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); }


/* ============================================================
   SECTION COMPONENTS
   ============================================================ */

section { padding: 96px 0; position: relative; }

.section-tint      { background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(236,245,232,.78)); }
.section-tint-deep { background: linear-gradient(180deg, rgba(243,248,241,.76), rgba(231,241,226,.96)); }

.section-label {
  display: inline-block;
  font-size: .82rem;
  color: var(--green-deep);
  background: rgba(92,127,73,.08);
  border: 1px solid rgba(92,127,73,.16);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.section-head { max-width: 860px; margin-bottom: 36px; }
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.25;
}
.section-head p { margin: 0; color: var(--muted); }

/* Card grid */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.feature-card {
  background: rgba(255,255,255,.80);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(35,25,20,.04);
  backdrop-filter: blur(6px);
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p  { margin: 0; color: var(--muted); font-size: .95rem; }


/* ============================================================
   FLOATING CTA (mobile, recruit page)
   ============================================================ */

.floating-mobile {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 1001;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(120,105,90,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  border-radius: 22px;
  padding: 10px;
  gap: 10px;
}
.floating-mobile a {
  flex: 1;
  text-align: center;
  padding: 13px 10px;
  border-radius: 16px;
  font-weight: 700;
  font-size: .94rem;
}
.floating-mobile .line { background: #06C755; color: #fff; }


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  html { scroll-behavior: auto; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  /* Hamburger visible */
  .nav-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120,105,90,.10);
    padding: 12px 16px 20px;
    gap: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 16px; border-radius: 12px; opacity: 1; }
  .nav-cta { text-align: center; }

  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy  { text-align: left; }

  .page-hero { padding: 120px 0 56px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  section { padding: 72px 0; }
  .brand img { width: 58px; height: 58px; }
  .brand-text span { display: none; }
  .floating-mobile { display: flex; }
  .site-footer { padding-bottom: 130px; }
}
