/* =========================================================
   名取北釜ファーム｜コーポレートサイト スタイルシート
   ========================================================= */

:root {
  --green:       #8cc152;   /* ブランドの新緑グリーン（罫線・アクセント） */
  --green-dark:  #4e7717;   /* 白文字で 5.28:1（AA） */
  --green-deep:  #2c4711;   /* ヘッダー・帯などの濃色 */
  --green-mist:  #f4f7ee;   /* ごく薄い緑の背景 */
  --paper:       #faf9f5;
  --ink:         #2e312b;
  --ink-soft:    #5f6359;   /* 白背景で 6.9:1 */
  --ink-mute:    #6e7267;   /* 白背景で 4.9:1（小さな文字にも使うため AA を確保） */
  --line:        #e3e6db;
  --rule:        #cfd4c4;
  --maxw:        1140px;
  --maxw-hero:   1320px;   /* MVのみ通常の版面より広く使う */
  --measure:     720px;     /* 本文の1行長 */
  --gutter:      clamp(20px, 5vw, 40px);
  --sec-pad:     clamp(64px, 9vw, 116px);

  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.95;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible,
.statement :focus-visible,
.contact-band :focus-visible { outline-color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* 視覚的には隠すがスクリーンリーダーには読ませる */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* =================== ヘッダー =================== */
.site-header {
  background: var(--green-deep);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-text { color: #fff; font-weight: 600; letter-spacing: .06em; font-size: 15px; line-height: 1.45; }
.brand-text small {
  display: block; color: #bcd39a; font-weight: 400;
  font-size: 9px; letter-spacing: .18em; line-height: 1.6;
}

.gnav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.gnav a {
  color: #f2f5ea; text-decoration: none; font-size: 13.5px; font-weight: 600;
  letter-spacing: .08em; padding: 8px 1px; border-bottom: 1px solid transparent;
  display: inline-block;
}
.gnav a:hover, .gnav a.current { border-bottom-color: var(--green); }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff;
  border-radius: 3px; padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; letter-spacing: .12em; line-height: 1.4;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }

/* =================== セクションの基本リズム =================== */
section { padding: var(--sec-pad) 0; }
.section-mist { background: var(--green-mist); }
.section-paper { background: var(--paper); }
.section-tight { padding-top: clamp(40px, 6vw, 72px); }

/* 情報量の少ないページ（CONTACT）だけ縦の密度を上げる */
.page-compact section { padding-top: clamp(52px, 7.4vw, 95px); padding-bottom: clamp(52px, 7.4vw, 95px); }
.page-compact .section-tight { padding-top: clamp(32px, 4.8vw, 58px); }
.page-compact .page-head { padding: clamp(36px, 5vw, 62px) 0 clamp(22px, 3.2vw, 36px); }
.page-compact .sec-head { margin-bottom: clamp(22px, 3.2vw, 34px); }
.page-compact .sec-head-gap { margin-top: clamp(34px, 4.8vw, 54px); }

h1, h2, h3, h4 { line-height: 1.55; font-weight: 600; }

/* 大きな文字の和文は、対応ブラウザでは文節単位で折り返す（非対応時は通常の折り返し） */
.hero h1, .hero-lead, .sec-ja, .sec-lead, .lead,
.statement-text, .statement-sub, .grp-lead, .blk-title, .crop-name {
  word-break: auto-phrase;
}

/* 見出しセット（EN小ラベル ＋ 和文見出し） */
.sec-head { margin: 0 0 clamp(28px, 4vw, 44px); }
.sec-head-gap { margin-top: clamp(44px, 6vw, 68px); }
.sec-en {
  margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .3em;
  color: var(--green-dark); font-family: var(--font-sans);
  display: flex; align-items: center; gap: 14px;
}
.sec-en::after { content: ""; flex: 1; height: 1px; background: var(--rule); max-width: 120px; }
.sec-ja {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .04em;
  margin: 0;
  font-weight: 600;
}
.sec-lead {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--ink);
  margin: -18px 0 clamp(28px, 4vw, 44px);
  max-width: 30em;
}
.sec-address { margin: -12px 0 clamp(24px, 3vw, 32px); font-size: 15px; letter-spacing: .03em; }

.more {
  font-weight: 600; text-decoration: none; font-size: 15px;
  display: inline-block; padding-bottom: 3px; border-bottom: 1px solid var(--rule);
}
.more:hover { border-bottom-color: var(--green-dark); }
.sec-more { margin: clamp(32px, 5vw, 52px) 0 0; }

/* =================== ヒーロー =================== */
.hero {
  position: relative;
  padding: 0;
  height: clamp(460px, 76vh, 680px);
  background: var(--green-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.7s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(22,34,10,.80) 0%, rgba(22,34,10,.56) 40%, rgba(22,34,10,.08) 80%),
    linear-gradient(0deg, rgba(22,34,10,.34) 0%, rgba(22,34,10,0) 40%);
}
.hero-inner {
  position: relative; z-index: 1;
  height: 100%;
  max-width: var(--maxw-hero); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  color: #fff;
}
.hero-en {
  margin: 0 0 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .34em;
  color: #d8e6bf;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 6vw, 58px);
  letter-spacing: .06em;
  line-height: 1.35;
  margin: 0 0 22px;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.hero-lead {
  max-width: 38em; margin: 0;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 2;
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}

/* =================== 写真 =================== */
.photo { overflow: hidden; background: var(--green-mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-3x2 { aspect-ratio: 3 / 2; }
.photo-4x5 { aspect-ratio: 4 / 5; }
.photo-5x2 { aspect-ratio: 5 / 2; }

/* 代表メッセージの導入ビジュアル（人物写真ではなく風景であることを明示する） */
figure { margin: 0; }
.msg-visual { margin: 0 0 clamp(30px, 4vw, 46px); }
.cap { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-mute); letter-spacing: .04em; }

/* 導入ビジュアル（下層ページ） */
.page-visual { padding: 0; }
.page-visual img { width: 100%; height: clamp(240px, 40vh, 420px); object-fit: cover; }

/* =================== 写真＋本文ブロック =================== */
.feature {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 7vw, 92px); }
.feature.reverse { grid-template-columns: 1fr 1.08fr; }
.feature.reverse .feature-media { order: 2; }
.feature-body > *:first-child { margin-top: 0; }
.feature-body > *:last-child { margin-bottom: 0; }
.feature-body p { margin: 0 0 1.2em; max-width: 34em; }

.blk-title {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: .04em;
  margin: 0 0 16px;
}
.blk-en {
  display: block; font-family: var(--font-sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: .28em; color: var(--green-dark); margin-bottom: 8px;
}

/* =================== ステートメント帯 =================== */
.statement {
  position: relative;
  padding: clamp(84px, 13vw, 168px) 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-deep);
}
.statement-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.statement::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,32,8,.80) 0%, rgba(20,32,8,.62) 55%, rgba(20,32,8,.38) 100%);
}
.statement .wrap { position: relative; z-index: 1; }
.statement-text {
  font-family: var(--font-serif);
  color: #fff;
  font-size: clamp(21px, 3.6vw, 38px);
  line-height: 1.75;
  letter-spacing: .06em;
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.statement-sub {
  color: #dfe9cd; margin: 26px 0 0; max-width: 32em;
  font-size: clamp(14px, 1.6vw, 16px);
}

/* =================== 新しい挑戦（編集的な一覧） =================== */
.crop-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 52px);
  margin: 0;
}
.crop-item { border-top: 2px solid var(--green); padding-top: 20px; }
.crop-no {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  letter-spacing: .22em; color: var(--ink-mute);
}
.crop-name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 27px);
  letter-spacing: .05em;
  margin: 0 0 12px;
}
.crop-item p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.9; }

.grp-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: .06em;
  margin: 0 0 20px;
}
.grp-title + .crop-list, .grp-title + .next-list { margin-top: 0; }
.grp-gap { margin-top: clamp(56px, 8vw, 92px); }
.grp-lead {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.9; letter-spacing: .03em;
  margin: -8px 0 26px; max-width: 34em;
}

.next-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid var(--rule);
  padding-top: 26px;
}
.next-item h4 {
  font-family: var(--font-serif);
  font-size: 17px; letter-spacing: .05em; margin: 0 0 8px;
}
.next-item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }

/* =================== 栽培品目のタグ =================== */
.crop-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; }
.crop-tags li {
  font-size: 13px; font-weight: 600; color: var(--green-dark);
  border: 1px solid var(--rule); padding: 4px 14px;
}

/* =================== 工程リスト =================== */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.steps li:first-child { padding-top: 0; }
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  color: var(--green-dark); padding-top: .5em;
}
.steps h3 { margin: 0 0 4px; font-size: 16.5px; font-family: var(--font-serif); letter-spacing: .04em; }
.steps p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.85; }

/* =================== お知らせ =================== */
/* ページ末尾の補足情報として、他セクションより控えめに扱う */
.news-section {
  padding: clamp(44px, 6vw, 76px) 0;
  background: #fff;
  border-top: 1px solid var(--line);   /* ACCESSとの区切り */
}
.news-section .sec-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
}
.news-section .sec-en { margin: 0; }
.news-section .sec-en::after { display: none; }
.news-section .sec-ja { font-size: clamp(17px, 1.9vw, 20px); }

.news-list { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.news-list li {
  display: flex; gap: 24px; padding: 18px 0;
  border-bottom: 1px solid var(--line); font-size: 15px;
}
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list time {
  color: var(--ink-mute); font-weight: 700; white-space: nowrap;
  font-size: 13px; letter-spacing: .08em; padding-top: .2em;
}

/* =================== お問い合わせ帯 =================== */
.contact-band { background: var(--green-deep); color: #fff; text-align: center; }
.contact-band .sec-en { color: #b9d191; justify-content: center; }
.contact-band .sec-en::after { display: none; }
.contact-band .sec-ja { color: #fff; }
.contact-band p { color: #e2ecd3; }
.contact-band .sec-head { margin-bottom: 20px; }
.contact-lines { display: inline-flex; flex-direction: column; gap: 14px; margin: 26px auto 0; text-align: left; }
.contact-lines .line { display: flex; align-items: center; gap: 18px; }
.contact-lines .label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #b9d191;
  min-width: 52px; padding-right: 18px; border-right: 1px solid rgba(255,255,255,.35);
}
.contact-lines .val { font-size: clamp(16px, 4vw, 21px); font-weight: 600; }
.contact-lines .val a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.contact-lines .val a:hover { border-bottom-color: #fff; }
.cta-btn { margin: 36px 0 0; }
.btn {
  display: inline-block; background: transparent; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .04em;
  padding: 14px 34px; border: 1px solid rgba(255,255,255,.6);
}
.btn:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* =================== 下層ページの見出し =================== */
.page-head { padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 4vw, 44px); }
.page-head .en {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .3em;
  color: var(--green-dark); margin-bottom: 14px;
}
.page-head .ja {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 42px); letter-spacing: .06em; margin: 0; font-weight: 600;
}
.crumbs { font-size: 12px; color: var(--ink-mute); margin: 18px 0 0; letter-spacing: .04em; }
.crumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: .25em; }
.crumbs a:hover { color: var(--green-dark); }

/* =================== 本文カラム =================== */
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.35em; }
.prose > *:last-child { margin-bottom: 0; }
.prose h3 {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 20px); letter-spacing: .05em;
  margin: 2.2em 0 .7em; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.prose h3:first-child { margin-top: 0; }
.lead {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.6vw, 26px); line-height: 1.8; letter-spacing: .05em;
  margin: 0 0 1.2em;
}
/* リード文と、続く本文の間隔を少し詰める */
.prose .lead { margin-bottom: .95em; }
/* 短い導入文のブロックは、1行に収まる幅まで版面を広げる（SPでは通常どおり折り返す） */
.prose-intro { max-width: 52em; }
.sp-br { display: none; }

/* 経営理念のような箇条書き */
.creed { list-style: none; margin: 0 0 1.4em; padding: 0; }
.creed li { padding: 0 0 0 20px; margin-bottom: 12px; position: relative; }
.creed li::before {
  content: ""; position: absolute; left: 0; top: .82em;
  width: 6px; height: 6px; background: var(--green);
}
/* CONTACTの「ご相談の例」は1行の短い項目が並ぶため、行間を詰める */
.page-compact .creed li { margin-bottom: 6px; }

.signature { margin: 40px 0 0; text-align: right; line-height: 2; font-size: 15px; }
.signature strong { font-size: 18px; font-family: var(--font-serif); letter-spacing: .06em; }

/* 外部リンク */
.ext-link { font-size: 14.5px; }
.ext-link a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.ext-link a:hover { border-bottom-color: var(--green-dark); }
.ext { margin-left: 5px; font-size: 11px; }

/* =================== 会社概要テーブル =================== */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.spec th, .spec td { text-align: left; padding: 16px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 30%; font-weight: 600; color: var(--ink-soft); font-size: 14px; letter-spacing: .04em; }
.spec td { overflow-wrap: anywhere; }

/* =================== 地図 =================== */
.map-embed { width: 100%; height: clamp(300px, 42vh, 420px); border: 0; display: block; }
.map-gap { margin-top: 28px; }
.map-link { margin: 16px 0 0; font-size: 14px; }
.map-link a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.map-link a:hover { border-bottom-color: var(--green-dark); }

.note-small { font-size: 14px; color: var(--ink-soft); }

/* =================== 写真の並び =================== */
.photo-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 24px);
  margin-top: clamp(32px, 5vw, 52px);
}

/* =================== フッター =================== */
.site-footer {
  background: var(--paper); color: var(--ink-soft);
  padding: clamp(48px, 7vw, 72px) 0 24px; font-size: 14px;
  border-top: 1px solid var(--line);
}
.f-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.f-name {
  color: var(--ink); font-weight: 600; font-size: 17px; margin: 0 0 12px;
  font-family: var(--font-serif); letter-spacing: .06em;
}
.site-footer address { font-style: normal; line-height: 2; }
.site-footer address a { color: var(--green-dark); text-decoration: none; }
.site-footer address a:hover { text-decoration: underline; }
.f-nav ul { list-style: none; margin: 0; padding: 0; line-height: 2.2; }
.f-nav a { color: var(--ink-soft); text-decoration: none; font-size: 13.5px; letter-spacing: .04em; }
.f-nav a:hover { color: var(--green-dark); }
.copyright {
  border-top: 1px solid var(--line); margin-top: clamp(36px, 5vw, 52px);
  padding-top: 20px; font-size: 11px; color: var(--ink-mute); letter-spacing: .12em;
}

/* =================== レスポンシブ（SP） =================== */
@media (max-width: 900px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  /* SPでは常に「写真 → 本文」の順で読ませる */
  .feature.reverse .feature-media { order: 0; }
  .crop-list, .next-list { grid-template-columns: 1fr; }
  .next-list { gap: 0; }
  .next-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
  .next-item:first-child { padding-top: 0; }
  .next-item:last-child { border-bottom: none; padding-bottom: 0; }
  .crop-item { padding-top: 16px; }
}

@media (max-width: 820px) {
  .gnav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--green-deep); padding: 6px var(--gutter) 18px;
    border-top: 1px solid rgba(255,255,255,.25);
  }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-bottom: 1px solid rgba(255,255,255,.18); }
  .gnav li:last-child { border-bottom: none; }
  .gnav a { display: block; padding: 15px 2px; border-bottom: none; font-size: 15px; }
  .gnav a:hover, .gnav a.current { border-bottom-color: transparent; color: var(--green); }
  .nav-toggle { display: inline-block; }

  .hero { height: clamp(440px, 72vh, 560px); }
  .hero::after {
    background: linear-gradient(0deg, rgba(20,32,8,.78) 8%, rgba(20,32,8,.34) 55%, rgba(20,32,8,.18) 100%);
  }
  .hero-inner { justify-content: flex-end; padding-bottom: clamp(36px, 8vw, 56px); }

  .sp-br { display: inline; }
  .photo-pair { grid-template-columns: 1fr; }
  .spec th { width: 34%; font-size: 13px; }
  .f-grid { flex-direction: column; }

  .contact-lines { align-self: stretch; }
  .contact-lines .line { flex-direction: column; align-items: flex-start; gap: 3px; }
  .contact-lines .label { border-right: none; padding-right: 0; min-width: 0; }
  .contact-lines .val { font-size: 19px; overflow-wrap: anywhere; }
  .contact-lines .val-mail { font-size: 16px; }

  .steps li { grid-template-columns: 36px 1fr; gap: 12px; }
  .signature { text-align: left; }

  /* SPでは1行の文字数に合わせて文字サイズと版面を調整する */
  .statement-text { font-size: 20px; letter-spacing: .04em; line-height: 1.8; }
  .statement::after { background: linear-gradient(180deg, rgba(20,32,8,.74), rgba(20,32,8,.82)); }
}

/* =================== 動きの抑制 =================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
