/* ===== 色と文字(ここを変えると、全体の雰囲気が変わる) ===== */
:root {
  --paper: #f7f1e3;      /* クラフト紙のような背景 */
  --paper-soft: #efe5cf; /* 少し濃い背景 */
  --ink: #4a3b2a;        /* 文字の色(濃い茶色) */
  --ink-sub: #7a6a55;    /* 補助の文字 */
  --green: #6b8f5e;      /* 葉っぱの緑 */
  --red: #d9574a;        /* トマトの赤 */
  --line: #c9b99a;       /* 点線の色 */
  --font: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.9;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

/* ===== ヘッダー ===== */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: var(--paper);
  border-bottom: 2px dashed var(--line);
}
.logo { font-size: 20px; font-weight: 700; text-decoration: none; color: var(--green); letter-spacing: .08em; }
.nav { display: flex; gap: 20px; font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--red); }

/* ===== ヒーロー ===== */
/* 大きく雄大な畑の写真を、背景いっぱいに敷く。文字は、紙のようなカードの上に置く */
.hero {
  position: relative; overflow: hidden;
  min-height: 88vh; display: flex; align-items: center; justify-content: center;
  padding: 72px 24px; text-align: center;
  background: #6b8f5e;
}
/* 明るい朝・昼の畑と、野菜いっぱいの写真4枚を、6秒ごとに、ゆっくり切り替える */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; animation: hero-fade 24s infinite; }
.hero-slide:nth-child(1) { background-image: url("images/hero1.jpg"); animation-delay: -1s; }
.hero-slide:nth-child(2) { background-image: url("images/hero2.jpg"); animation-delay: 5s; }
.hero-slide:nth-child(3) { background-image: url("images/hero3.jpg"); animation-delay: 11s; }
.hero-slide:nth-child(4) { background-image: url("images/hero4.jpg"); background-position: center 78%; animation-delay: 17s; }
@keyframes hero-fade { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(74, 59, 42, .08); }
.hero-card {
  position: relative; z-index: 1; max-width: 620px; padding: 44px 36px 40px;
  background: rgba(247, 241, 227, .94); border: 2px dashed var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(40, 30, 20, .25);
}
/* マスキングテープ風の飾り */
.hero-card::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px;
  background: rgba(217, 87, 74, .45); transform: rotate(-2deg);
}
.hero-title { font-size: clamp(30px, 6vw, 52px); line-height: 1.5; letter-spacing: .06em; }
.hero-text { margin: 18px 0 32px; color: var(--ink-sub); }

.btn {
  display: inline-block; padding: 12px 32px;
  background: var(--green); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 700;
  box-shadow: 0 3px 0 #4f6e44;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-off { background: #b8ae9c; box-shadow: 0 3px 0 #978d7b; cursor: not-allowed; }
.btn-off:hover { transform: none; }

/* ===== セクション共通 ===== */
.section { padding: 72px 24px; max-width: 960px; margin: 0 auto; }
.section-soft { max-width: none; background: var(--paper-soft); }
.section-soft > * { max-width: 960px; margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 40px; }
/* 見出しの下に、手書き風の波線を引く */
.section-title span {
  padding-bottom: 6px;
  background: linear-gradient(90deg, var(--green) 50%, transparent 0) 0 100% / 12px 3px repeat-x;
}

/* ===== お知らせ(NEWS) ===== */
.section-news { padding-top: 48px; padding-bottom: 24px; }
.news { max-width: 720px; margin: 0 auto; }
.news-item {
  display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 14px;
  padding: 16px 4px; border-bottom: 2px dashed var(--line);
}
.news-date { font-size: 14px; color: var(--ink-sub); }
.news-tag {
  justify-self: start; padding: 0 12px; font-size: 12px; font-weight: 700; color: #fff; background: var(--green); border-radius: 999px;
}
.news-item:nth-child(1) .news-tag { background: var(--red); }
.news-title { font-size: 15px; }

/* ===== 商品カード ===== */
.items { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.item {
  position: relative;
  padding: 22px 18px 22px; text-align: center;
  background: #fffdf7;
  border: 2px dashed var(--line);
  border-radius: 12px;
  transition: transform .25s ease;
}
/* カードを、少しずつ傾けて、手作り感を出す */
.item:nth-child(odd)  { transform: rotate(-1.2deg); }
.item:nth-child(even) { transform: rotate(1deg); }
.item:hover { transform: rotate(0) translateY(-4px); }
/* マスキングテープ風の飾り */
.item::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 72px; height: 20px; margin-left: -36px;
  background: rgba(217, 87, 74, .35); transform: rotate(-3deg);
}
/* 商品の写真:4:3の比率で、はみ出す部分は切り取る */
.item-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 14px; display: block; }
.item-name { font-size: 18px; }
.item-note { margin: 6px 0 10px; font-size: 13px; color: var(--ink-sub); }
.item-price { font-size: 20px; font-weight: 700; color: var(--red); }

/* ===== 買い方 ===== */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { text-align: center; padding: 0 12px; }
.step-no {
  width: 44px; height: 44px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 20px; font-weight: 700;
}
.step-title { font-size: 18px; margin-bottom: 6px; }
.step p:last-child { font-size: 14px; color: var(--ink-sub); }
.buy-action { text-align: center; margin-top: 40px; }

/* ===== 季節のカレンダー ===== */
.seasons { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.season { padding: 20px 16px; background: #fffdf7; border-left: 5px solid var(--green); border-radius: 6px; }
.season:nth-child(2) { border-color: var(--red); }
.season:nth-child(3) { border-color: #d9a441; }
.season:nth-child(4) { border-color: #6f9bb3; }
.season-name { font-size: 18px; margin-bottom: 4px; }
.season-name small { font-size: 12px; color: var(--ink-sub); font-weight: 400; }
.season p { font-size: 14px; }

/* ===== フッター ===== */
.footer { text-align: center; padding: 40px 24px; border-top: 2px dashed var(--line); }
.footer-note { margin-top: 6px; font-size: 12px; color: var(--ink-sub); }

/* ===== スマホ向け(幅が狭いときは、1列に並べる) ===== */
@media (max-width: 800px) {
  .items, .steps { grid-template-columns: 1fr; }
  /* スマホでは、日付と種類を1行目に、題名を2行目にする */
  .news-item { grid-template-columns: auto 1fr; }
  .news-title { grid-column: 1 / -1; }
  .seasons { grid-template-columns: 1fr 1fr; }
  .nav { gap: 14px; }
  .logo { font-size: 17px; }
}
@media (max-width: 480px) {
  .seasons { grid-template-columns: 1fr; }
}

/* 動きを減らす設定の人には、傾きや動きをなくす */
@media (prefers-reduced-motion: reduce) {
  .item, .btn { transition: none; }
  .hero-slide { animation: none; }
  .hero-slide:nth-child(1) { opacity: 1; }
  .item:nth-child(odd), .item:nth-child(even) { transform: none; }
}
