/* =========================================
   基本設定（ここを変えるとサイト全体の色・文字が変わります）
   ========================================= */
:root {
  --bg: #faf7f1;        /* 背景（生成り） */
  --bg-soft: #f1ebe0;   /* 薄いベージュの背景 */
  --text: #3d342b;      /* 文字（こげ茶） */
  --muted: #8a7d6f;     /* 補足の文字 */
  --green: #6b7f4f;     /* 葉のグリーン */
  --accent: #c47a45;    /* アクセント（にんじん色） */
  --line: #e3dace;      /* 線 */

  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-head: "Zen Old Mincho", serif;

  --radius: 12px;
  --width: 1080px;      /* 中身の最大幅 */
}

/* =========================================
   リセット・共通
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.05em;
}

img { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 40px, var(--width)); margin-inline: auto; }
.section { padding: 110px 0; }
.bg-soft { background: var(--bg-soft); }

.label {
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.title {
  font-family: var(--font-head);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.6;
  margin-bottom: 32px;
}
.center { text-align: center; }

p + p { margin-top: 1em; }

/* =========================================
   ヘッダー
   ========================================= */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 28px;
  transition: background 0.3s;
}
.header.scrolled { background: rgba(250, 247, 241, 0.95); box-shadow: 0 1px 0 var(--line); }
.header:not(.scrolled) { color: #fff; }

.logo { font-family: var(--font-head); font-size: 22px; font-weight: 700; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a:hover { opacity: 0.6; }
.nav-cta {
  padding: 8px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.menu-btn { display: none; }

/* =========================================
   ヒーロー
   ========================================= */
.hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
  color: #fff;
  text-align: center;
  /* 差し替え：メイン写真 */
  background:
    linear-gradient(rgba(40, 30, 20, 0.35), rgba(40, 30, 20, 0.35)),
    url("https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=80&auto=format&fit=crop") center / cover;
}
.hero-sub { font-size: 14px; letter-spacing: 0.2em; margin-bottom: 16px; }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.5;
  letter-spacing: 0.12em;
}

/* =========================================
   写真＋文章の2列レイアウト（想い・生産者）
   ========================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split.reverse .split-img { order: 2; }
.split-img { aspect-ratio: 4 / 5; border-radius: var(--radius); }

.farmer-name { font-family: var(--font-head); font-size: 20px; margin-bottom: 16px; }
.farmer-name span { font-size: 15px; color: var(--muted); }

/* =========================================
   カード（こだわり・野菜・声・購入方法）
   ========================================= */
.grid-3, .grid-4 { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card img { aspect-ratio: 4 / 3; border-radius: var(--radius); margin-bottom: 20px; }
.card-num { font-family: var(--font-head); color: var(--accent); font-size: 14px; }
.card h3 { font-family: var(--font-head); font-size: 20px; margin-bottom: 8px; }
.card p:last-child { font-size: 15px; }

.veg img { aspect-ratio: 1; border-radius: 50%; margin-bottom: 20px; }
.veg { text-align: center; font-size: 14px; }
.veg h3 { font-family: var(--font-head); font-size: 19px; }
.season { color: var(--green); font-size: 13px; margin: 0 0 8px !important; }

.voice {
  background: #fff;
  padding: 36px 32px;
  border-radius: var(--radius);
  font-size: 15px;
}
.voice cite { display: block; margin-top: 16px; color: var(--muted); font-size: 13px; font-style: normal; }

.shop {
  padding: 36px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
}
.shop h3 { font-family: var(--font-head); font-size: 19px; color: var(--green); margin-bottom: 8px; }

/* =========================================
   旬カレンダー
   ========================================= */
.calendar { margin-top: 80px; }
.calendar-title { font-family: var(--font-head); font-size: 20px; text-align: center; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: center; }
thead th { color: var(--muted); font-weight: 400; }
tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding-right: 12px; }
td { color: var(--accent); }

/* =========================================
   メッセージ
   ========================================= */
.message { padding: 120px 0; background: var(--green); color: #fff; text-align: center; }
.message-text { font-family: var(--font-head); font-size: clamp(18px, 3vw, 26px); line-height: 2.2; }

/* =========================================
   アクセス
   ========================================= */
.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 72px;
}
.access dl { display: grid; grid-template-columns: 6em 1fr; row-gap: 12px; font-size: 15px; }
.access dt { color: var(--muted); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); }

/* =========================================
   お問い合わせ
   ========================================= */
.contact { padding: 110px 0; background: var(--bg-soft); text-align: center; }
.contact .title { margin-bottom: 12px; }
.buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.btn {
  display: inline-block;
  min-width: 280px;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-line { background: #06c755; }

/* =========================================
   フッター
   ========================================= */
.footer {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 56px 0 40px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
}
.footer a { opacity: 0.8; }
.footer small { opacity: 0.6; margin-top: 16px; }

/* =========================================
   デモ用の表示（本番では削除）
   ========================================= */
.demo-badge {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.demo-note {
  max-width: 40em;
  margin: 24px 20px 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  line-height: 1.9;
  text-align: center;
  opacity: 0.6;
}

/* =========================================
   ふわっと表示（script.js と連動）
   ========================================= */
.fade { opacity: 0; transform: translateY(24px); transition: opacity 0.9s, transform 0.9s; }
.fade.show { opacity: 1; transform: none; }

/* =========================================
   スマホ（768px以下）
   ========================================= */
@media (max-width: 768px) {
  .section, .contact { padding: 80px 0; }
  .header { padding: 0 20px; }

  .menu-btn {
    display: grid;
    gap: 7px;
    width: 28px;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 2;
  }
  .menu-btn span { height: 1.5px; background: currentColor; transition: transform 0.3s; }
  .menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    font-size: 17px;
    background: var(--bg);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open { color: var(--text) !important; }

  .split, .access { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-img { order: 0; }
  .split-img { aspect-ratio: 4 / 3; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 32px 20px; }

  .btn { width: 100%; min-width: 0; }
}
