@charset "utf-8";

/* ===== 色とフォント ===== */
:root {
  --ground: #F6F2E8;      /* 生成り（地） */
  --ground-deep: #EFE7D5; /* 一段濃いベージュ */
  --white: #FFFFFF;
  --ink: #23271F;         /* 本文 */
  --ink-strong: #15241A;  /* 見出し */
  --ink-sub: #4A4F43;     /* 補足 */
  --brown: #7C6A4F;       /* ラベル */
  --green-dark: #16301E;
  --green-mid: #22402B;
  --navy: #1F3A5F;
  --water: #9FD4E8;
  --line: rgba(21, 36, 26, 0.18);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--navy); }
a:hover { color: #142741; }

.l-inner { max-width: 1120px; margin-inline: auto; }

.c-label {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--brown);
}

.c-heading {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink-strong);
}

/* ===== ファーストビュー ===== */
.p-fv {
  position: relative;
  overflow: hidden;
  background: #0E1C2B;
}

.p-fv__sizer {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 520px;
  max-height: 760px;
}

.p-fv__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: brightness(1.06) saturate(1.04);
  animation: slowZoom 16s ease-out 1.75s both;
}

.p-fv__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(12,26,40,0.70) 0%, rgba(12,26,40,0.44) 44%, rgba(12,26,40,0.12) 76%, rgba(12,26,40,0.24) 100%);
}

.p-fv__veil--bottom {
  background: linear-gradient(to top, rgba(10,22,35,0.56) 0%, rgba(10,22,35,0.18) 34%, rgba(10,22,35,0) 54%);
}

/* ヘッダー */
.l-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 32px);
  animation: fadeUp .9s cubic-bezier(.22,.8,.26,1) 1.9s both;
}

.l-header__name {
  font-family: var(--serif);
  font-size: clamp(15px, 1.4vw, 18px);
  letter-spacing: 0.1em;
  color: var(--white);
}

.l-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.l-nav a {
  font-size: clamp(11px, 1vw, 12px);
  color: #DCE4EA;
  text-decoration: none;
  padding: 4px 0;
}

.l-nav a:hover { color: var(--white); text-decoration: underline; }

/* FVの中身 */
.p-fv__body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(92px, 8vw, 104px) clamp(20px, 4vw, 56px) clamp(32px, 5vw, 60px);
}

.p-fv__row {
  display: flex;
  gap: clamp(13px, 2.2vw, 28px);
  align-items: flex-end;
}

.p-fv__title {
  margin: 0;
  font-family: var(--serif);
  writing-mode: vertical-rl;
  font-size: clamp(24px, 3.25vw, 42px);
  height: clamp(268px, 37vw, 474px);
  line-height: 1.5;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(8,18,28,0.55);
  animation: maskUp 1.1s cubic-bezier(.22,.8,.26,1) 2s both;
}

.p-fv__text { flex: 1 1 auto; min-width: 0; padding-bottom: 10px; }

.p-fv__ripple {
  position: relative;
  width: 11px;
  height: 11px;
  margin: 0 0 16px 2px;
}
.p-fv__ripple span {
  position: absolute;
  inset: 0;
  border: 1px solid var(--water);
  border-radius: 50%;
  animation: ripple 3.4s ease-out infinite;
}
.p-fv__ripple span:nth-child(2) { animation-delay: 1.2s; }
.p-fv__ripple span:nth-child(3) {
  inset: 3px;
  border: 0;
  background: var(--water);
  animation: none;
}

.p-fv__eyebrow {
  margin: 0 0 14px;
  font-size: clamp(10.5px, 0.95vw, 12px);
  letter-spacing: 0.18em;
  color: #DCE6EC;
  text-shadow: 0 1px 10px rgba(8,18,28,0.6);
  animation: fadeRight 1s cubic-bezier(.22,.8,.26,1) 2.3s both;
}

.p-fv__lead {
  margin: 0;
  max-width: 30em;
  font-size: clamp(12.5px, 1.2vw, 16px);
  line-height: 2.05;
  color: #F2F5F7;
  text-shadow: 0 1px 12px rgba(8,18,28,0.6);
  animation: fadeRight 1s cubic-bezier(.22,.8,.26,1) 2.45s both;
}

/* のれん */
.p-curtain {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--green-mid) 0%, var(--green-dark) 100%);
  animation: curtainUp 1s cubic-bezier(.76,0,.24,1) 1.75s both;
}

.p-curtain__inner {
  text-align: center;
  animation: curtainText 1.9s cubic-bezier(.25,.65,.2,1) both;
}

.p-curtain__name {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 32px);
  color: var(--white);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.p-curtain__bar {
  width: 40px;
  height: 1px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.45);
}

.p-curtain__sub {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(12px, 1.2vw, 15px);
  color: #D7E3D4;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
}

/* ===== 冒頭の説明 ===== */
.p-intro { background: var(--white); padding: 60px 24px; }
.p-intro__box { max-width: 43em; margin-inline: auto; text-align: center; }
.p-intro__box p { margin: 0 0 22px; font-size: clamp(14px, 1.2vw, 16px); line-height: 2.2; }
.p-intro__box p:first-child { color: #2E332A; }
.p-intro__box p:last-child { margin-bottom: 0; font-size: clamp(13.5px, 1.1vw, 15px); color: var(--ink-sub); }

/* ===== 3つの理由 ===== */
.p-reasons { background: var(--white); padding: 76px 24px; }
.p-reasons .c-heading { margin-bottom: 40px; }
.p-reasons__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-reason { display: flex; flex-direction: column; gap: 18px; }
.p-reason__photo { overflow: hidden; }
.p-reason__photo img { width: 100%; height: 220px; object-fit: cover; }
.p-reason h3 { margin: 0; font-family: var(--serif); font-size: 21px; color: var(--ink-strong); }
.p-reason p { margin: 0; font-size: 14px; line-height: 2; color: var(--ink-sub); }

/* ===== 西条市はこんなまち ===== */
.p-town { background: var(--ground-deep); padding: 76px 24px; }
.p-town__lead { margin: 0 0 40px; max-width: 44em; font-size: 15px; line-height: 2.1; color: var(--ink-sub); }
.p-town__photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 36px; }
.p-town__photos img { width: 100%; height: 200px; object-fit: cover; }
.p-town__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-town__list > li { border-top: 1px solid var(--line); padding-top: 18px; }
.p-town__list h3 { margin: 0 0 10px; font-size: 17px; color: var(--ink-strong); }
.p-town__list p { margin: 0; font-size: 14px; line-height: 2; color: var(--ink-sub); }
.p-town__source { margin: 28px 0 0; font-size: 12px; color: #8C8064; }

/* ===== 農園を探す ===== */
.p-farms { background: var(--ground); padding: 76px 24px; }
.p-farms__note { margin: 0 0 36px; font-size: 14px; color: #6B6A5A; }
.p-farms__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-farm { background: var(--white); display: flex; flex-direction: column; }
.p-farm__photo { overflow: hidden; height: 168px; }
.p-farm__photo img { width: 100%; height: 100%; object-fit: cover; }
.p-farm__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.p-farm__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-farm__name { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--ink-strong); }
.p-farm__badge { font-size: 11px; padding: 3px 9px; background: #E6EFE2; color: #2C5430; }
.p-farm__badge--closed { background: #ECEAE2; color: #716F62; }
.p-farm__crops { font-size: 12px; color: #6B6A5A; letter-spacing: 0.04em; }
.p-farm__soon { margin-top: 4px; font-size: 13px; color: #8C8064; }

/* ===== お問い合わせ・フッター ===== */
.l-footer {
  background: linear-gradient(160deg, var(--green-mid) 0%, var(--green-dark) 100%);
  color: var(--white);
  padding: 72px 24px 32px;
}
.l-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.l-footer__name { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; letter-spacing: 0.12em; }
.l-footer__sub { margin: 0; font-size: 13px; line-height: 1.9; color: #A9BCA6; }
.l-footer__label { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.16em; color: #A9BCA6; }
.l-footer__mail {
  color: var(--white);
  font-size: 22px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 4px;
}
.l-footer__mail:hover { color: var(--white); border-bottom-color: var(--white); }
.l-footer__copy {
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 12px;
  color: #93A690;
}

/* ===== 動き ===== */
@keyframes curtainUp { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes curtainText {
  0% { opacity: 0; filter: blur(14px); transform: translateY(8px) scale(1.035); }
  70% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}
@keyframes maskUp { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slowZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ripple { from { transform: scale(.5); opacity: .6; } to { transform: scale(2.1); opacity: 0; } }

/* 動きを減らす設定の人には出さない */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p-curtain { display: none; }
  .p-fv__photo, .l-header, .p-fv__title, .p-fv__eyebrow, .p-fv__lead, .p-curtain__inner { animation: none; }
  .p-fv__ripple span { animation: none; opacity: .5; }
}
