/* =========================================
   基本設定（ここを変えるとサイト全体の色・文字が変わります）
   ========================================= */
:root {
  --bg: #faf8f2;        /* 背景（生成り） */
  --bg-soft: #f1ece0;   /* 薄いベージュの背景 */
  --text: #3a352c;      /* 文字（こげ茶） */
  --muted: #877e70;     /* 補足の文字 */
  --green: #5f7346;     /* 葉のグリーン */
  --accent: #c8862f;    /* アクセント（はちみつ色） */
  --line: #e2dbcc;      /* 線 */

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

  --radius: 10px;
  --width: 1060px;      /* 中身の最大幅 */
}

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

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

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

img, video { display: block; width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

.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.7;
  margin-bottom: 32px;
}
.mini-title {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.7;
  margin: 56px 0 20px;
}
.lead { margin-bottom: 40px; }
.small { font-size: 13px; line-height: 1.9; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 24px; }

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

/* 制作中の表示（本番公開時に index.html の1行とここを削除） */
.preview-bar {
  position: relative;
  z-index: 11;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 6px 16px;
  line-height: 1.7;
}

/* =========================================
   ヘッダー
   ========================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 28px;
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo img { height: 46px; width: auto; mix-blend-mode: multiply; }

.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a:hover { color: var(--green); }
.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}
.nav-cta:hover { background: var(--accent); color: #fff; }

.menu-btn { display: none; }

/* =========================================
   ヒーロー
   ========================================= */
/* 差し替え：メイン写真（url の中） */
.hero {
  display: grid;
  place-items: center;
  min-height: 78svh;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(35, 30, 20, 0.34), rgba(35, 30, 20, 0.42)),
    url("images/hero-farm.jpg") center 45% / cover;
}
.hero-sub { font-size: 14px; letter-spacing: 0.25em; margin-bottom: 18px; }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.hero-tags li { padding: 4px 16px; border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 999px; }

/* =========================================
   お知らせ（イベント日程）
   ========================================= */
.notice {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 40px;
  padding: 22px 20px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
}
.notice a { border-bottom: 1px solid rgba(255, 255, 255, 0.5); padding-bottom: 2px; }
.notice a:hover { opacity: 0.75; }
.notice b { font-family: var(--font-head); margin-right: 10px; letter-spacing: 0.08em; }

/* =========================================
   写真＋文章の2列レイアウト
   ========================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-img { order: 2; }
/* 人物の顔や頭が切れないよう、少し上寄りで切り抜く */
.split-img { aspect-ratio: 4 / 5; border-radius: var(--radius); object-position: center 20%; }

.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; }

/* 畑に入れないもの４つ */
.zero-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 64px 0 0;
  font-family: var(--font-head);
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.1em;
}
.zero-list li {
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
}

/* 作物 */
.veg { text-align: center; font-size: 14px; }
.veg img { aspect-ratio: 1; border-radius: 50%; margin-bottom: 18px; }
.veg h3 { font-family: var(--font-head); font-size: 18px; }
.season { color: var(--green); font-size: 13px; margin-top: 4px !important; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
}
.feature img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.feature img.pos-low { object-position: center 70%; }
.feature.reverse img { order: 2; }
.feature h3 { font-family: var(--font-head); font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }

/* 写真を3枚ならべる */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.photo-row img, .photo-row video { aspect-ratio: 3 / 4; border-radius: var(--radius); object-position: center 25%; }
/* 写真を下寄りで切り抜きたいときに付ける */
.photo-row img.pos-low { object-position: center 72%; }
.photo-row img.pos-bottom { object-position: center 88%; }
.split-img.pos-low { object-position: center 65%; }
/* 下端を見せる（茶畑・巣箱が主役の写真） */
.split-img.pos-end { object-position: center 100%; }
.photo-row img.pos-end { object-position: center 62%; }  /* 茶畑は山の頂上、川は家の屋根まで見せる */
/* 人物の写真は、頭が切れないように上寄りで切り抜く */
.people-photos img { aspect-ratio: 4 / 5; object-position: center 15%; }
.wide-photo { aspect-ratio: 16 / 7; border-radius: var(--radius); }

/* =========================================
   全面写真の帯
   ========================================= */
/* 差し替え：帯の写真（url の中） */
.band {
  display: grid;
  place-items: center;
  min-height: 60svh;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}
.band-field {
  background:
    linear-gradient(rgba(35, 30, 20, 0.3), rgba(35, 30, 20, 0.38)),
    url("images/band-greens.jpg") center 55% / cover;
}
.band-text {
  font-family: var(--font-head);
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 2.1;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* =========================================
   イベント
   ========================================= */
.event {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
  margin-bottom: 40px;
}
.event-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.event-date {
  font-family: var(--font-head);
  font-size: 44px;
  line-height: 1.2;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.event-date span { margin: 0 2px; }
.event-date small { font-size: 15px; color: var(--muted); margin-left: 4px; }
.event-head h3 { font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 25px); line-height: 1.6; }
.event-place { font-size: 14px; color: var(--muted); }
.countdown { display: inline-block; margin-left: 14px; color: var(--accent); }
.countdown b { font-family: var(--font-head); font-size: 19px; margin: 0 2px; }

.event-photo { aspect-ratio: 16 / 7; border-radius: var(--radius); margin-top: 28px; }

.event-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-top: 32px; }
.event-body .mini-title { margin: 32px 0 10px; font-size: 18px; }
.event-detail { background: var(--bg); border-radius: var(--radius); padding: 28px; font-size: 15px; }

.timeline li { display: flex; gap: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.timeline time { color: var(--green); min-width: 5.5em; }

.price { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; margin-top: 20px; }
.price dt { color: var(--muted); }
.price dd { font-family: var(--font-head); }
.event-detail .small { margin-top: 16px; }

.apply {
  margin-top: 28px;
  padding: 18px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: 15px;
  text-align: center;
}

/* まめさん個人の集まり（さんまパーティ・夢飲み会） */
.side-events { margin-top: 64px; }
.side-events .mini-title { margin-top: 0; }
.side-list {
  display: grid;
  /* 数が増減しても幅が自動で均等になる */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0 8px;
}
.side-list li {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}
.side-list b { display: block; font-family: var(--font-head); font-size: 19px; margin-bottom: 4px; }

/* =========================================
   買えるところ
   ========================================= */
.shop {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.shop h3 { font-family: var(--font-head); font-size: 19px; color: var(--green); }
.shop p { font-size: 14px; color: var(--muted); }
.news {
  max-width: 34em;
  margin: 32px auto 0;
  padding: 16px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: center;
  font-size: 15px;
}

/* =========================================
   はちみつ
   ========================================= */
.honey-lead { margin-top: 80px; }
.honey-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}
.honey-points li {
  padding: 18px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: 0.06em;
}
.honey-date { color: var(--accent); font-size: 13px; letter-spacing: 0.1em; }
.honey-cards .card h3 { margin-top: 4px; }
.wax .veg img { border-radius: var(--radius); aspect-ratio: 4 / 3; }

/* =========================================
   まめさん・お弁当
   ========================================= */
.people-photos { margin-top: 56px; }
.bento {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 56px;
  font-size: 15px;
}
.bento img { aspect-ratio: 1; border-radius: var(--radius); }

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

/* =========================================
   紹介記事
   ========================================= */
/* 記事の数に合わせて横幅が自動で均等になる（2件でも右があかない） */
.media-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.media { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: background 0.2s; }
.media:hover { background: #fff; }
.media-src { font-size: 13px; color: var(--muted); }
.media h3 { font-family: var(--font-head); font-size: 18px; line-height: 1.6; margin: 6px 0 10px; }
.media p:last-child { font-size: 14px; }

/* =========================================
   お問い合わせ
   ========================================= */
.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: var(--green); }

.contact-list {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 8px 20px;
  max-width: 34em;
  margin: 48px auto 0;
  text-align: left;
  font-size: 15px;
}
.contact-list dt { color: var(--muted); }
.line-qr { margin: 32px 0 8px; }
.line-qr img { width: 180px; margin: 0 auto 10px; background: #fff; padding: 8px; border-radius: var(--radius); }
.contact-list a { border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--green); }

/* =========================================
   フッター
   ========================================= */
.footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 56px 20px 44px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
}
.footer-logo { width: 120px; background: #fff; border-radius: 8px; padding: 6px 10px; }
.footer small { opacity: 0.6; margin-top: 12px; }

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

/* =========================================
   タブレット
   ========================================= */
@media (max-width: 1000px) {
  .nav { gap: 16px; font-size: 13px; }
  .event-body { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   スマホ（768px以下）
   ========================================= */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .contact { padding: 72px 0; }
  .header { height: 68px; padding: 0 20px; }
  .logo img { height: 38px; }

  .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); }

  /* すりガラス効果があるとメニューが全画面に広がらないので、スマホでは外す */
  .header { background: var(--bg); backdrop-filter: none; }
  /* メニューを開いてもロゴが隠れないように */
  .logo { position: relative; z-index: 2; }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 19px;
    background: var(--bg);
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    overflow-y: auto;
    padding: 90px 24px 40px;
  }
  .nav a {
    width: 100%;
    max-width: 320px;
    padding: 16px 8px;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 20px; padding: 16px 8px; background: var(--accent); color: #fff; border-color: var(--accent); }
  .menu-open .nav { opacity: 1; pointer-events: auto; }

  .notice { flex-direction: column; align-items: center; gap: 10px; font-size: 14px; }

  .split, .feature, .bento { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-img { order: 0; }
  .split-img, .feature img { aspect-ratio: 4 / 3; }
  .bento img { max-width: 240px; margin-inline: auto; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .honey-points { grid-template-columns: 1fr 1fr; gap: 12px; }
  .honey-points li { font-size: 15px; padding: 14px 8px; }

  .photo-row { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
  /* スマホでは3枚目を横長にしていたが、人物の頭が切れるので 4:3 に */
  .photo-row > :nth-child(3) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .people-photos > :nth-child(3) { aspect-ratio: 1; }
  .wide-photo { aspect-ratio: 4 / 3; }

  .event { padding: 28px 20px; }
  .event-head { gap: 16px; }
  .event-date { font-size: 36px; }
  .countdown { display: block; margin: 4px 0 0; }
  .event-detail { padding: 20px; }
  .event-photo { aspect-ratio: 4 / 3; }

  .btn { width: 100%; min-width: 0; }
  .contact-list { grid-template-columns: 6em 1fr; gap: 6px 12px; }
  .side-list { grid-template-columns: 1fr; gap: 14px; }
  .side-list li { padding: 20px 22px; }
}
