/* 未来五穀テーブル：白・オフホワイト × 若葉グリーン × 明るいイエロー */
:root {
  --bg: #fbfbf6;
  --surface: #ffffff;
  --tint: #f1f6ea;
  --ink: #23311f;
  --ink-soft: #55644f;
  --muted: #7a8673;
  --line: #e3e8da;
  --leaf: #5bb450;          /* 若葉 */
  --leaf-strong: #3c8f35;   /* 文字・ボタン用（白文字で読める濃さ） */
  --leaf-pale: #e4f3dc;
  --sun: #ffd23f;           /* アクセントの黄色 */
  --sun-pale: #fff6cf;
  --danger: #c4452f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(40, 70, 30, .08);
  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--leaf-strong); }
a:hover { color: #2c6d27; }
h1, h2, h3, .h3, .hero-title, .logo, .footer-logo { font-family: var(--font-round); font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .2em 0 .5em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 .6em; }
h3, .h3 { font-size: 1.15rem; margin: 0 0 .4em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.sp { display: none; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 2px solid transparent; border-radius: 999px; padding: .6em 1.3em; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; line-height: 1.4; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--leaf-strong); color: #fff; }
.btn-primary:hover { background: #2f7a29; color: #fff; }
.btn-yellow { background: var(--sun); color: #3a3100; }
.btn-yellow:hover { background: #ffc800; color: #3a3100; }
.btn-ghost { background: #fff; color: var(--leaf-strong); border-color: var(--leaf); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: .85em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .3em .9em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.2rem; }
.gnav { display: flex; align-items: center; gap: 22px; }
.gnav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.gnav a:not(.btn):hover { color: var(--leaf-strong); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
.sample-bar { background: var(--sun-pale); color: #5b4a00; font-size: .85rem; text-align: center; padding: 6px 16px; }

/* メインビジュアル */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(20,40,10,.55) 100%); }
.hero-inner { position: relative; padding: 0 0 56px; }
.hero-kicker { display: inline-block; background: var(--sun); color: #3a3100; font-weight: 700; padding: .2em .9em; border-radius: 999px; font-size: .9rem; margin: 0 0 .8em; }
.hero-title { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 900; margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.35); line-height: 1.25; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: .4em 0 1.4em; text-shadow: 0 1px 10px rgba(0,0,0,.4); font-family: var(--font-round); }
.search-box { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; background: #fff; color: var(--ink); padding: 12px; border-radius: 22px; box-shadow: var(--shadow); max-width: 920px; align-items: end; }
.search-box label { display: flex; flex-direction: column; font-size: .78rem; font-weight: 700; color: var(--ink-soft); padding: 4px 8px; border-right: 1px solid var(--line); }
.search-box label:nth-of-type(3) { border-right: 0; }
.search-box label select, .search-box label input { border: 0; min-height: 0; outline-offset: 2px; padding: 4px 0; font: inherit; font-size: 1rem; background: transparent; color: var(--ink); width: 100%; }

/* セクション */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-tint { background: var(--tint); }
.section-pt0 { padding-top: 0; }
.section-rec { background: linear-gradient(180deg, var(--sun-pale), var(--bg)); padding: 40px 0; }
.rec-item { display: flex; flex-direction: column; gap: 6px; }
.rec-item .card { flex: 1; }
.rec-reason { margin: 0; font-size: .8rem; font-weight: 700; color: #6b5600; background: #fff; border: 1px solid #e7d27a; border-radius: 10px; padding: 4px 10px; line-height: 1.5; }
.rec-box { background: #fffdf3; border: 1px solid #f0e3a8; border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.sec-head { margin-bottom: 28px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.eyebrow { color: var(--leaf-strong); font-weight: 700; letter-spacing: .08em; margin: 0 0 .2em; font-size: .9rem; }
.eyebrow.light { color: var(--sun); }
.more { font-weight: 700; text-decoration: none; }

/* 目的別カード */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.purpose-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.purpose-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.purpose-card:hover img { transform: scale(1.05); }
.purpose-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15,35,10,.7)); }
.purpose-text { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 1; display: flex; flex-direction: column; }
.purpose-text b { font-family: var(--font-round); font-size: 1.3rem; }
.purpose-text small { opacity: .92; }

/* 体験カード */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--leaf-pale); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; }
.card-place { color: var(--leaf-strong); font-size: .82rem; font-weight: 700; margin: 0; }
.card-title { font-size: 1.05rem; margin: .2em 0 .35em; line-height: 1.5; }
.card-summary { color: var(--ink-soft); font-size: .88rem; line-height: 1.65; margin: 0 0 .7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.card-spec { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 .4em; font-size: .8rem; color: var(--ink-soft); }
.card-spec span:last-child { color: var(--leaf-strong); letter-spacing: .02em; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 .6em; }
.card-tags span { font-size: .72rem; background: var(--sun-pale); color: #5b4a00; border-radius: 999px; padding: 0 8px; }
.tag-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.tag-bar-title { font-weight: 700; font-size: .85rem; margin-right: 4px; }
.tag-chip { font-size: .82rem; text-decoration: none; padding: 3px 11px; border-radius: 999px; border: 1.5px solid #e7d27a; background: #fffbea; color: #5b4a00; }
.tag-chip:hover { background: var(--sun-pale); color: #3a3100; }
.tag-chip.on { background: var(--sun); border-color: var(--sun); color: #3a3100; font-weight: 700; }
.tag-list .tag-feature { background: #fffbea; border: 1px solid #e7d27a; }
.dots { color: var(--leaf-strong); letter-spacing: .1em; }
.intensity-note { background: var(--tint); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; margin: -8px 0 24px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a { font-size: .95rem; padding: 6px 16px; }
.price { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.price small { font-weight: 400; color: var(--muted); }
.badge { position: absolute; top: 10px; left: 10px; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.badge-sample { background: var(--sun); color: #3a3100; }
td .badge, .admin .badge { position: static; }

/* 地図 */
.map-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
.map-box { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.jmap { width: 100%; height: auto; }
.jmap .tile rect { fill: #eef1ea; }
.jmap .tile text { font-size: 11px; fill: #9aa594; font-family: var(--font); }
.jmap .tile.has rect { fill: var(--leaf); }
.jmap .tile.has text { fill: #fff; font-weight: 700; }
.jmap .tile.has .n { font-size: 13px; fill: var(--sun); }
.jmap a.tile:hover rect, .jmap a.tile:focus rect { fill: var(--leaf-strong); }
.jmap .tile.sel rect { stroke: var(--sun); stroke-width: 3; }
.region-links { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.region-links a { display: flex; justify-content: space-between; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .9rem; }
.region-links a.has { color: var(--leaf-strong); border-color: var(--leaf); font-weight: 700; }

/* こんな時間 */
.scenes { display: grid; gap: 24px; }
.scene { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: #fff; border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.scene.rev { grid-template-columns: 1fr 1.1fr; }
.scene.rev img { order: 2; }
.scene img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; }
.scene > div { padding: 24px 28px; }
.scene p { color: var(--ink-soft); }

/* 生産者 */
.farm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.farm-card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); }
.farm-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.farm-hero .card-img { border-radius: var(--radius); }
.farm-msg { background: var(--sun-pale); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 0; font-family: var(--font-round); }
.farm-head { padding-top: 16px; }

/* 生産者CTA */
.cta-producer { background: linear-gradient(120deg, #3c8f35, #5bb450); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.closing { background: var(--sun-pale); }
.closing h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }

/* 一覧ページ */
.page-hero.small { background: var(--tint); padding: 28px 0 22px; }
.page-hero { position: relative; color: #fff; min-height: 420px; display: flex; align-items: flex-end; }
.page-hero.small { color: var(--ink); min-height: 0; display: block; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero:not(.small)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(20,40,10,.6)); z-index: 1; }
.page-hero-inner { position: relative; z-index: 2; padding: 48px 0; }
.crumbs { font-size: .82rem; color: var(--muted); margin: 0 0 .3em; }
.crumbs a { color: var(--muted); }
.search-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; padding: 28px 0 64px; align-items: start; }
.filters { position: sticky; top: 84px; }
.filter-form { display: grid; gap: 12px; background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.filter-toggle { display: none; width: 100%; }
.reset { font-size: .85rem; text-align: center; }
.result-count { color: var(--muted); margin: 0 0 12px; }
.empty, .empty-box { color: var(--ink-soft); }
.empty-box { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.links-inline { display: flex; flex-wrap: wrap; gap: 8px 14px; }

/* 体験詳細 */
.exp-detail { padding-top: 16px; }
.detail-hero { position: relative; }
.detail-hero img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.detail-hero .badge { top: 16px; left: 16px; font-size: .85rem; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 28px 0 40px; align-items: start; }
.lead { font-size: 1.08rem; color: var(--ink-soft); }
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tag-list li { background: var(--leaf-pale); border-radius: 999px; padding: 2px 12px; font-size: .85rem; }
.tag-list a { text-decoration: none; }
.tag-list .tag-soft { background: var(--sun-pale); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 0 0 28px; }
.facts div { background: #fff; border-radius: var(--radius-sm); padding: 12px; text-align: center; box-shadow: var(--shadow); }
.facts dt { font-size: .78rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.block { margin: 0 0 36px; }
.check-list { list-style: none; padding: 0; }
.check-list li::before { content: "✓"; color: var(--leaf-strong); font-weight: 700; margin-right: .5em; }
.info-table { margin: 0; }
.info-table > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-table dt { font-weight: 700; color: var(--ink-soft); }
.info-table dd { margin: 0; }
.info-table.compact > div { padding: 6px 0; grid-template-columns: 7em 1fr; }
.producer-msg { display: grid; grid-template-columns: 120px 1fr; gap: 20px; background: var(--sun-pale); padding: 20px; border-radius: var(--radius); }
.producer-msg img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.book-box { position: sticky; top: 84px; background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.book-price { font-size: 1.6rem; font-weight: 700; margin: 0; font-family: var(--font-round); }
.date-pick { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.date-pick legend { font-weight: 700; margin-bottom: 6px; }
.date-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; font-size: .92rem; }
.date-opt:has(input:checked) { border-color: var(--leaf); background: var(--leaf-pale); }
.date-opt em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .8rem; }
.date-opt.full { opacity: .5; }
.fav-form { margin-top: 10px; }
.fav-btn.on { background: #fff0f2; border-color: #e6a0ad; color: #b0465b; }
.sp-book-bar { display: none; }

/* フォーム */
.form-page { padding: 32px 0 64px; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 700; color: var(--ink-soft); font-size: .92rem; }
.form small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=date], input[type=month], input[type=time], input:not([type]), select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); border: 1.5px solid #d4dbc9; border-radius: var(--radius-sm); padding: .65em .8em; background: #fff; width: 100%; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(91,180,80,.3); border-color: var(--leaf); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0; display: grid; gap: 12px; background: #fff; }
legend { font-weight: 700; padding: 0 6px; font-family: var(--font-round); }
.req, .opt { display: inline-block; margin-left: .5em; font-size: .72rem; padding: 0 .6em; border-radius: 999px; vertical-align: middle; }
.req { background: #fde6e1; color: var(--danger); }
.opt { background: #eef1ea; color: var(--muted); }
.err { color: var(--danger); margin: -6px 0 0; font-size: .88rem; }
.check { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--leaf-strong); flex: none; }
.check small { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { border: 1.5px solid #d4dbc9; border-radius: 999px; padding: .35em .95em; font-weight: 500; font-size: .9rem; background: #fff; color: var(--ink); }
.chip input:checked + span { background: var(--leaf-strong); border-color: var(--leaf-strong); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid rgba(91,180,80,.35); }
.chips.small .chip span { font-size: .8rem; padding: .2em .7em; }
.optional { background: var(--tint); border-radius: var(--radius); padding: 14px 18px; }
.optional summary { cursor: pointer; font-weight: 700; color: var(--leaf-strong); }
.optional fieldset { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.flash { border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; }
.flash-ok { background: var(--leaf-pale); }
.flash-info { background: var(--sun-pale); }
.flash-err { background: #fde6e1; color: #8a2a18; }
.split-cta { margin-top: 24px; display: grid; gap: 8px; }
.progress { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; counter-reset: s; }
.progress li { flex: 1; text-align: center; padding: 6px; border-radius: 999px; background: #eef1ea; color: var(--muted); font-size: .85rem; font-weight: 700; }
.progress li.on { background: var(--leaf-strong); color: #fff; }
.mini-exp { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 20px; }
.mini-exp img { width: 110px; height: 82px; object-fit: cover; border-radius: var(--radius-sm); }
.mini-exp p { margin: 0; }
.price-box { background: var(--tint); border-radius: var(--radius); padding: 14px 18px; }
.price-box p { display: flex; justify-content: space-between; margin: 4px 0; }
.price-box .total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 1.15rem; }
.faq { background: #fff; border-radius: var(--radius-sm); padding: 12px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq.danger summary { color: var(--danger); }
.thumb { width: 180px; border-radius: var(--radius-sm); }

/* 生産者向けページ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--leaf); }
.steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.steps li::before { content: counter(st); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-weight: 900; font-family: var(--font-round); }

/* マイページ */
.mypage { padding: 28px 0 64px; }
.mypage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin: 16px 0 22px; }
.tabs a { padding: 8px 16px; text-decoration: none; color: var(--ink-soft); font-weight: 700; border-radius: 12px 12px 0 0; }
.tabs a.on { background: var(--leaf-strong); color: #fff; }
.res-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.res-list a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; background: #fff; border-radius: var(--radius); padding: 10px; color: inherit; text-decoration: none; box-shadow: var(--shadow); align-items: center; }
.res-list img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.res-list div { display: grid; }
.res-list span { font-size: .88rem; color: var(--ink-soft); }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 10px; border-radius: 999px; background: #eef1ea; color: var(--ink-soft); width: fit-content; }
.s-confirmed, .s-published { background: var(--leaf-pale); color: #2c6d27; }
.s-requested, .s-review { background: var(--sun-pale); color: #6b5600; }
.s-cancelled_user, .s-cancelled_producer, .s-weather_cancel { background: #fde6e1; color: #8a2a18; }
.res-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.res-card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.res-card header { display: flex; justify-content: space-between; align-items: center; }
.res-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: flex-start; }
.res-actions details { width: 100%; }
.card-pad { background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.inline-dates { grid-template-columns: repeat(3, 1fr) auto; align-items: end; }
.b { font-weight: 700; }

/* 管理画面 */
.admin-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 28px; padding: 24px 0 64px; }
.admin-nav { display: grid; gap: 4px; align-content: start; position: sticky; top: 84px; }
.admin-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: .92rem; }
.admin-nav a.on { background: var(--leaf-strong); color: #fff; }
.admin-main { min-width: 0; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--tint); white-space: nowrap; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.btn-row details, td details { font-size: .85rem; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.inline-form input, .inline-form select { width: auto; min-width: 180px; }
.todo { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.todo a { display: flex; justify-content: space-between; background: #fff; padding: 14px 16px; border-radius: var(--radius); text-decoration: none; color: var(--ink-soft); box-shadow: var(--shadow); }
.todo .has a { background: var(--sun-pale); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.stats div { background: #fff; padding: 14px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: 0; font-size: 1.6rem; font-weight: 700; font-family: var(--font-round); }
.chip-link { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--leaf); text-decoration: none; font-size: .88rem; }
.chip-link.on { background: var(--leaf-strong); color: #fff; }
.nl-form h4 { margin: 8px 0 0; font-size: .9rem; }
.seg-count { font-size: 1.05rem; }
.seg-count b { font-size: 1.5rem; color: var(--leaf-strong); }
.danger-zone { border-color: #f0c2b8; background: #fffaf8; }
.mail-preview { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: var(--radius); background: #f6f7f1; }
.mail-text { white-space: pre-wrap; background: #fff; padding: 16px; border-radius: var(--radius); font-size: .85rem; }
.pager { display: flex; gap: 8px; }
/* 会員分析 */
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 24px; }
.an-grid.two { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); margin-top: 24px; }
.an-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.an-card h3 small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.bar-row { display: grid; grid-template-columns: minmax(7em, 13em) 1fr 5.5em; gap: 8px; align-items: center; font-size: .85rem; padding: 3px 0; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { background: #eef1ea; border-radius: 999px; height: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--leaf); border-radius: 999px; }
.bar-n { text-align: right; font-weight: 700; }
.bar-n small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; line-height: 1.1; }
.table.cross td { text-align: center; font-weight: 700; min-width: 5.5em; }
.table.cross td small, .table.cross th small { display: block; font-weight: 400; font-size: .72rem; color: var(--ink-soft); }
@media (max-width: 600px) { .an-grid, .an-grid.two { grid-template-columns: 1fr; } }
.news-list { list-style: none; padding: 0; }
.news-list li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); flex: none; }
.prose { line-height: 2; }
.error-page { padding: 72px 0; text-align: center; }
.error-code { font-size: 4rem; font-weight: 900; color: var(--leaf); margin: 0; font-family: var(--font-round); }

/* フッター */
.site-footer { background: #23311f; color: #dfe7d8; padding: 48px 0 24px; margin-top: 0; }
.site-footer a { color: #dfe7d8; text-decoration: none; display: block; padding: 3px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.footer-logo { font-size: 1.3rem; margin: 0 0 .4em; color: #fff; }
.site-footer .muted { color: #b2bfa9; }
.copyright { font-size: .8rem; color: #94a28b; margin-top: 28px; }

/* スマートフォン */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .gnav { position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .gnav.open { display: flex; }
  .gnav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .gnav .btn { margin-top: 12px; }
  .menu-btn[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .search-box { grid-template-columns: 1fr 1fr; }
  .search-box label { border-right: 0; border-bottom: 1px solid var(--line); }
  .search-box button { grid-column: 1 / -1; }
  .purpose-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .map-layout, .farm-hero, .detail-layout, .search-layout, .admin-wrap { grid-template-columns: 1fr; }
  .filters, .book-box, .admin-nav { position: static; }
  .admin-nav { display: flex; flex-wrap: wrap; }
  .filter-toggle { display: inline-flex; }
  .filter-form { display: none; margin-top: 10px; }
  .filter-form.open { display: grid; }
  .scene, .scene.rev { grid-template-columns: 1fr; }
  .scene.rev img { order: 0; }
  .scene > div { padding: 4px 20px 22px; }
  .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .sp-book-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; justify-content: space-between; align-items: center; font-weight: 700; }
  .exp-detail { padding-bottom: 70px; }
  .inline-dates { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .sp { display: inline; }
  .hero { min-height: 92vh; }
  .hero-inner { padding-bottom: 28px; }
  .search-box { grid-template-columns: 1fr; padding: 10px; border-radius: 18px; }
  .purpose-grid { grid-template-columns: 1fr 1fr; }
  .purpose-text b { font-size: 1.02rem; }
  .purpose-text small { display: none; }
  .scroll-sp { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 4px 16px 14px; }
  .scroll-sp > * { flex: 0 0 78%; scroll-snap-align: start; }
  .region-links { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .info-table > div { grid-template-columns: 1fr; gap: 2px; }
  .producer-msg { grid-template-columns: 1fr; }
  .news-list li { flex-direction: column; gap: 0; }
  .inline-dates { grid-template-columns: 1fr; }
  .map-box { overflow-x: auto; padding: 10px; }
  .jmap { min-width: 560px; }
}

/* 公開準備中の案内（2026-11-11） */
.prelaunch .gnav, .prelaunch .menu-btn, .prelaunch .site-footer nav[aria-label="フッターメニュー"] { display: none; }
.prelaunch-page { padding: 72px 0 80px; text-align: center; }
.prelaunch-page .eyebrow { letter-spacing: .3em; font-weight: 700; color: #5bb450; font-size: 13px; margin: 0 0 10px; }
.prelaunch-page h1 { font-size: clamp(30px, 6vw, 48px); margin: 0 0 20px; }
.prelaunch-page .lead { font-size: 17px; line-height: 1.9; }
.prelaunch-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 28px 0; }
.prelaunch-old { margin-top: 24px; }
/* ---- 共有ボタン（2026-11-13） ---- */
.share-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-label { margin: 0 0 8px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.share-row { display: flex; gap: 8px; }
.share-row .btn { flex: 1; min-height: 44px; padding-inline: 8px; font-size: .85rem; white-space: nowrap; }
.share-sns { display: flex; gap: 8px; margin-top: 8px; }
.share-sns a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 999px; font-size: .82rem; font-weight: 700; text-decoration: none; color: #fff; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.share-sns-line { background: #06c755; }
.share-sns-x { background: #111; }
.share-sns-fb { background: #1877f2; }
.share-url-label { display: block; margin-top: 10px; font-size: .75rem; color: var(--muted); }
.share-url { width: 100%; margin-top: 4px; font-size: .8rem; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--tint); color: var(--ink-soft); }
.share-done { min-height: 1.2em; margin: 6px 0 0; font-size: .85rem; color: var(--leaf-strong); font-weight: 700; }

/* ---- トップのポップアップ（2026-11-13）：見出し・短い説明・ボタン1つ。控えめに出す ---- */
.mgt-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mgt-popup[hidden] { display: none; }
.mgt-popup-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 15, .45); opacity: 0; transition: opacity .2s ease; }
.mgt-popup-box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(20, 40, 10, .25); transform: translateY(12px); transition: transform .2s ease; outline: none; } /* 本体は透かさない（動きが止まる環境でも読める） */
.mgt-popup.is-open .mgt-popup-backdrop { opacity: 1; }
.mgt-popup.is-open .mgt-popup-box { transform: none; }
.mgt-popup-img { background: #0d0d0d; } /* 黒い背景の商品写真を切らずに見せる */
.mgt-popup-img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.mgt-popup-body { padding: 20px 24px 18px; }
.mgt-popup-eyebrow { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: var(--sun-pale); color: #6b5400; font-size: .8rem; font-weight: 700; }
.mgt-popup-body h2 { margin: 0 0 10px; font-family: var(--font-round); font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.mgt-popup-text { margin: 0 0 16px; color: var(--ink-soft); font-size: .92rem; line-height: 1.7; }
.mgt-popup-cta { min-height: 48px; }
.mgt-popup-later { display: block; margin: 10px auto 0; padding: 6px 12px; background: none; border: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; cursor: pointer; }
.mgt-popup-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.mgt-popup-close:focus-visible, .mgt-popup-later:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
html.mgt-popup-lock { overflow: hidden; }
@media (max-width: 600px) {
  /* スマホは画面の下から出す（親指で閉じやすい・押しやすい） */
  .mgt-popup { align-items: flex-end; padding: 0; }
  .mgt-popup-box { width: 100%; max-height: 85vh; border-radius: var(--radius) var(--radius) 0 0; transform: translateY(40px); }
  .mgt-popup-body { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
  .mgt-popup-body h2 { font-size: 1.15rem; }
  .mgt-popup-img img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .mgt-popup-backdrop, .mgt-popup-box { transition: none; transform: none; }
}