/* =========================================================
   名取北釜ファーム｜基本サイト ワイヤーフレーム
   情報構成・レイアウト確認用の簡易スタイル
   （完成デザインではありません）
   ========================================================= */

:root {
  --green: #8cc152;        /* 旧サイトの新緑グリーン */
  --green-dark: #4e7717;   /* 文字・背景に使う濃い緑（白文字で 5.28:1／AA達成） */
  --green-soft: #f0f6e6;   /* 薄い緑のセクション背景 */
  --soil: #9c8466;
  --cream: #ffffff;        /* 旧サイト同様の白基調 */
  --paper: #fafbf6;
  --ink: #3a3a3a;
  --ink-soft: #6b6b66;
  --line: #e4e6dd;
  --ph-bg: #eef0ea;
  --ph-line: #cdd2c2;
  --ph-text: #8a8d80;
  --note: #a15a19;        /* 「取り組み中」タグ（白背景で 5.26:1） */
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.85;
  font-size: 16px;
}

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

a { color: var(--green-dark); }

/* キーボード操作時のフォーカス表示 */
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible,
.cta :focus-visible,
.hero-copy :focus-visible { outline-color: #fff; }

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

/* ---- WF全体に付く注釈バナー ---- */
.wf-banner {
  background: #3a3a3a;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: .02em;
}
.wf-banner a { color: #ffd27d; }

/* =================== ヘッダー =================== */
.site-header {
  /* background: linear-gradient(90deg, #9ccb5a, #7eb73f); */
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand .brand-text { color: #fff; font-weight: 700; letter-spacing: .04em; font-size: 16px; }
.brand small { display: block; color: #e9f2dd; font-weight: 400; font-size: 10px; letter-spacing: .08em; }

.gnav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.gnav a {
  color: #f1f3ea; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 6px 2px; border-bottom: 2px solid transparent;
}
.gnav a:hover, .gnav a.current { border-bottom-color: #cdd8bf; }
.gnav .tel { color: #fff; font-weight: 700; }

.nav-toggle { display: none; background: none; border: 1px solid #cdd8bf; color: #fff;
  border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; line-height: 1.4; }
.nav-toggle:hover { background: rgba(255,255,255,.12); }

/* =================== 汎用セクション =================== */
section { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-green { background: var(--green-soft); }

h1, h2, h3 { line-height: 1.5; }
.page-head {
  background: var(--green-soft);
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.page-head .ja { font-size: 26px; margin: 0; }
.page-head .en { display:block; font-size: 12px; letter-spacing: .25em; color: var(--green-dark); margin-bottom: 6px; }
.crumbs { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

.sec-title { text-align: center; margin: 0 0 6px; font-size: 22px; }
/* 本文カラム内で使う左寄せの見出し（旧インラインstyleを置き換え） */
.sec-title.left { text-align: left; margin-bottom: 18px; }
.sec-title .en { display:block; font-size: 11px; letter-spacing: .25em; color: var(--green-dark); margin-bottom: 4px; font-weight: 600; }
.sec-lead { text-align: center; color: var(--ink-soft); margin: 0 auto 36px; max-width: 640px; }
/* sec-title 直後にリード文が無い場合の余白 */
.sec-title + .grid, .sec-title + .news-list { margin-top: 36px; }

/* セクション内の小見出し（TOPの2カラムブロック用） */
.blk-title {
  font-size: 19px; margin: 0 0 10px; padding-left: 12px;
  border-left: 5px solid var(--green);
}
/* 2カラムブロックを続けて並べるときの間隔 */
.blk-gap { margin-top: 40px; }

/* セクション末尾の「詳しく見る」リンク */
.sec-more, .prose .sec-more { text-align: center; margin: 32px 0 0; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* =================== 写真プレースホルダー =================== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(0,0,0,.025) 14px, rgba(0,0,0,.025) 28px),
    var(--ph-bg);
  border: 1px dashed var(--ph-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ph-text);
  min-height: 180px;
  padding: 16px;
}
.ph .ph-inner { font-size: 13px; }
.ph.tall { min-height: 320px; }
.ph.hero { min-height: 420px; border-radius: 0; }
.ph.square { aspect-ratio: 1 / 1; min-height: 0; }

/* 実写真フレーム（旧サイト素材を配置） */
.photo { overflow: hidden; border-radius: 8px; background: var(--ph-bg); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.tall { height: 340px; }
.photo.fill { height: 100%; min-height: 340px; }   /* 隣の要素の高さに合わせる */
.photo.hero { height: clamp(380px, 58vh, 560px); border-radius: 0; }
.card .photo { height: 190px; border-radius: 0; }

/* =================== ヒーロー =================== */
.hero { position: relative; padding: 0; }
.hero .ph.hero { align-items: flex-end; }
.hero-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start; padding: 0 8%;
  background: linear-gradient(90deg, rgba(50,70,25,.42), rgba(50,70,25,.02));
  color: #fff;
}
.hero-copy h1 { font-size: clamp(22px, 4vw, 40px); margin: 0 0 12px; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.hero-copy p { max-width: 520px; margin: 0; text-shadow: 0 1px 5px rgba(0,0,0,.35); }

/* =================== グリッド =================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid.align-center { align-items: center; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card .ph { border: none; border-radius: 0; min-height: 0; height: 190px; }
.card .card-body { padding: 16px 18px; }
.card h3, .card h4 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.card .tag-future {
  display:inline-block; font-size: 11px; font-weight: 600; color: var(--note);
  border: 1px solid var(--note); border-radius: 4px; padding: 1px 6px; margin-left: 6px;
  vertical-align: middle; white-space: nowrap; line-height: 1.6;
}
/* 写真のないカード（新しい挑戦）は上端に緑のラインを付ける */
.card.card-text { border-top: 3px solid var(--green); }
.card.card-text .card-body { padding: 20px 20px 22px; }
.card.card-text h3, .card.card-text h4 { font-size: 16px; margin-bottom: 8px; }

/* =================== お知らせ =================== */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; }
.news-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.news-list time { color: var(--green-dark); font-weight: 600; white-space: nowrap; }

/* =================== CTA / 問い合わせ =================== */
.cta {
  background: var(--green-dark); color: #fff; text-align: center; border-radius: 12px;
  padding: 36px 24px;
}
.cta h2 { margin: 0 0 24px; font-size: 22px; }
.cta p { margin: 0 0 20px; color: #eef5e2; }
.contact-lines { display: inline-flex; flex-direction: column; gap: 12px; align-items: stretch; margin: 0 auto; text-align: left; }
.contact-lines .line { display: flex; align-items: center; gap: 16px; }
.contact-lines .label {
  font-size: 14px; font-weight: 700; letter-spacing: .12em; color: #eaf3da;
  min-width: 58px; padding-right: 16px; border-right: 1px solid rgba(255,255,255,.4);
}
.contact-lines .val { font-size: clamp(16px, 4.4vw, 22px); font-weight: 700; word-break: break-all; }
.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 .cta-btn { margin: 32px 0 0; }
.btn {
  display: inline-block; background: #fff; color: var(--green-dark); text-decoration: none;
  font-weight: 700; padding: 12px 26px; border-radius: 999px; border: 2px solid #fff;
}
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }

/* =================== テキストブロック =================== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 21px; margin: 36px 0 10px; padding-left: 12px; border-left: 5px solid var(--green); }
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px; margin: 26px 0 8px; color: var(--green-dark);
  display: inline-block; padding-bottom: 3px; border-bottom: 2px solid var(--green);
}
.prose p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--green-dark); font-weight: 600; }
.sp-br { display: none; }   /* SPのみ改行させたい箇所 */

/* 経営理念のような箇条書き */
.creed { list-style: none; margin: 0 0 16px; padding: 0; }
.creed li { padding: 0 0 0 18px; margin-bottom: 10px; position: relative; }
.creed li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}

/* 代表メッセージの署名 */
.signature, .prose .signature { margin: 28px 0 0; text-align: right; line-height: 1.9; }
.signature strong { font-size: 18px; }

/* 会社概要テーブル */
.spec { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 30%; background: var(--green-soft); font-weight: 600; white-space: nowrap; }
/* メールアドレス等の長い値がはみ出さないように */
.spec td { overflow-wrap: anywhere; }

/* マーカー（要確認・仮） */
.flag { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; vertical-align: middle; margin: 0 2px; }
.flag.todo { background: #fff0e0; color: #b1671f; border: 1px solid #e6b988; }
.flag.tmp  { background: #eef3ff; color: #2f5bb1; border: 1px solid #b8c8e6; }

/* 事業セクション（事業内容ページ） */
.biz-block { padding: 40px 0; border-bottom: 1px dashed var(--line); }
.biz-block:last-child { border-bottom: none; }

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

/* 工程リスト（農業を支える仕組み） */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.steps .no {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-dark); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.steps h3 { margin: 0 0 2px; font-size: 16px; }
.steps p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

.biz-block .badge {
  display:inline-block; font-size:11px; letter-spacing:.1em; background: var(--green-dark); color:#fff;
  padding: 2px 10px; border-radius: 999px; margin-bottom: 10px;
}
.biz-block h3 { margin: 0 0 10px; font-size: 22px; }

/* 地図プレースホルダー */
.map-ph { min-height: 280px; }
.map-embed { width: 100%; height: 360px; border: 0; border-radius: 8px; display: block; }
.map-gap { margin-top: 24px; }
.map-link { text-align: center; margin: 14px 0 0; font-size: 14px; }
.prose .map-link { text-align: left; }
.map-link a { font-weight: 600; text-decoration: none; }
.map-link a:hover { text-decoration: underline; }
.map-link .ext { margin-left: 4px; font-size: 12px; }

/* 視覚的には隠すがスクリーンリーダーには読ませる */
.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;
}

/* 補足の小さな注記 */
.note-small { font-size: 14px; color: var(--ink-soft); }

/* =================== 汎用ユーティリティ =================== */
section.flush-top,
.biz-block.flush-top { padding-top: 0; }
.centered { text-align: center; }
.photo-pair { margin-top: 28px; }
.blk-title.spaced { margin-top: 36px; }

/* =================== フッター =================== */
.site-footer { background: #f2f4ee; color: #5a5c52; padding: 40px 0 24px; font-size: 14px; border-top: 3px solid var(--green); }
.site-footer .f-grid { display:flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .f-name { color:var(--ink); font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer .f-nav ul { list-style:none; margin:0; padding:0; }
.site-footer .f-nav a { color:var(--green-dark); text-decoration: none; font-size: 13px; }
.site-footer address a { color: var(--green-dark); text-decoration: none; }
.site-footer address a:hover { text-decoration: underline; }
.copyright { text-align:center; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: 12px; color:#6b6b66; }

/* =================== レスポンシブ（SP） =================== */
@media (max-width: 820px) {
  .gnav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--green-dark); padding: 10px 20px 18px;
    border-top: 1px solid rgba(255,255,255,.35);
  }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav li { border-top: 1px solid rgba(255,255,255,.35); }
  .gnav a { display: block; padding: 12px 2px; }
  .nav-toggle { display: inline-block; }

  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
  .grid-5.sp-2 { grid-template-columns: 1fr 1fr; }
  .sp-br { display: inline; }

  section { padding: 40px 0; }
  .ph.hero, .photo.hero { height: 360px; }
  .hero-copy { background: linear-gradient(180deg, rgba(50,70,25,.30), rgba(50,70,25,.62)); padding: 0 6%; }
  .hero-copy p { font-size: 14px; line-height: 1.75; }

  .blk-gap { margin-top: 32px; }
  /* SPでは写真→本文の順で読ませる（2カラムブロック） */
  .grid-2.align-center > .photo { order: -1; }
  .spec th { width: 36%; font-size: 13px; }
  .site-footer .f-grid { flex-direction: column; }

  /* SPでは「TEL」等のラベルを値の上に置き、メールアドレスの途中改行を防ぐ */
  .contact-lines { align-self: stretch; }
  .contact-lines .line { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact-lines .label { border-right: none; padding-right: 0; min-width: 0; font-size: 12px; }
  .contact-lines .val { font-size: 20px; word-break: normal; overflow-wrap: anywhere; }
  .contact-lines .val-mail { font-size: 16px; }
}

/* SP幅の見え方を1画面で確認するための枠（gallery.html用） */
.device-row { display:flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.device { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background:#fff; }
.device.sp { width: 375px; }
.device .device-bar { background:#33352f; color:#fff; font-size:12px; padding:6px 12px; text-align:center; }
.device iframe { width: 100%; border: 0; display:block; }
.device.sp iframe { height: 720px; }
