:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #ff5a1f;
  --card-bg: #ffffff;
  --border: #111111;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; }

.variant-banner {
  background: var(--ink);
  color: var(--bg);
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  text-align: center;
  padding: 8px;
}
.variant-banner a { color: var(--accent); text-decoration: underline; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 50%),
    url("/images/hero-vegetables-01.jpg") center 42%/cover no-repeat;
  padding: 32px;
  border-bottom: 3px solid var(--ink);
}

.hero-inner { width: 100%; color: #fff; }

.kicker {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 14px;
}

.headline {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  max-width: 480px;
  text-wrap: pretty;
}

.sub {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: #ddd;
  margin: 18px 0 0;
}

.cta {
  display: inline-block;
  margin-top: 26px;
  padding: 12px 24px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
}
.cta:hover { background: #fff; color: var(--ink); }

.intro {
  padding: 32px;
  border-bottom: 1px solid var(--border);
}
.intro-text {
  font-size: 14px;
  max-width: 640px;
  text-wrap: pretty;
}

.farmers { padding: 40px 32px 60px; max-width: 960px; margin: 0 auto; scroll-margin-top: 12px; }
.farmers-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.tag {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  color: var(--accent);
}
.farmers-head h2 { font-size: 22px; font-weight: 700; margin: 0; }

.tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  width: fit-content;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 8px 16px;
  border: none;
  border-right: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  cursor: pointer;
}
.tab:last-child { border-right: none; }
.tab.active { background: var(--ink); color: #fff; }

.farmer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (min-width: 640px) {
  .farmer-grid { grid-template-columns: 1fr 1fr; }
}

.farmer-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.farmer-card .thumb {
  width: 68px;
  height: 68px;
  flex: none;
  background: #f0f0f0 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid var(--border);
}
.farmer-card .name { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.farmer-card .location {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
}
.farmer-card .crops { font-size: 13px; margin: 0 0 8px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  color: var(--ink);
}
.badge.event { color: var(--accent); border-color: var(--accent); }

.empty-state, .loading, .error-message { color: var(--muted); font-size: 14px; padding: 20px 0; }

.site-footer {
  padding: 32px;
  border-top: 3px solid var(--ink);
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}
.site-footer .credit { margin-top: 10px; }
.site-footer a { color: var(--accent); }

/* 常時表示の上部ナビバー(ハンバーガーメニューは使わない構成) */
.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 3px solid var(--ink);
  font-family: "Roboto Mono", monospace;
  row-gap: 6px;
}
.top-nav-brand { font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.top-nav-links { display: flex; flex-wrap: nowrap; }
.top-nav-links a {
  font-size: 11px; text-decoration: none; color: var(--ink);
  padding: 6px 10px; border-left: 1px solid var(--border);
  white-space: nowrap;
}
.top-nav-links a.active { background: var(--ink); color: #fff; }

@media (min-width: 480px) {
  .top-nav { padding: 16px 24px; }
  .top-nav-brand { font-size: 14px; }
  .top-nav-links a { font-size: 12px; padding: 6px 14px; }
}

.page-header { padding: 32px 24px 8px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 20px; font-weight: 700; margin: 0; }
.page-header p { font-family: "Roboto Mono", monospace; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.container { max-width: 720px; margin: 0 auto; padding: 0 24px 48px; }

/* 農家ページ */
.cover { width: 100%; aspect-ratio: 16/9; background: #f0f0f0 center/cover no-repeat; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 36px; }
.farmer-header { padding: 24px; border-bottom: 1px solid var(--border); }
.farmer-header h1 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.farmer-header .meta { font-family: "Roboto Mono", monospace; font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.farmer-header .desc { font-size: 14px; white-space: pre-wrap; }

.contact-buttons { display: flex; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; border: 1px solid var(--ink); font-size: 13px;
  font-family: "Roboto Mono", monospace; text-decoration: none; cursor: pointer; background: #fff; color: var(--ink);
}
.btn.line, .btn.phone { flex: 1; border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); }
.btn.danger { color: var(--accent); border-color: var(--accent); }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

section.section { padding: 24px; border-bottom: 1px solid var(--border); max-width: 720px; margin: 0 auto; }
section.section h2 { font-size: 15px; font-weight: 700; margin: 0 0 14px; }

.listing-card, .event-card { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.listing-card:last-child, .event-card:last-child { border-bottom: none; }
.listing-card .thumb { width: 60px; height: 60px; flex: none; border: 1px solid var(--border); background: #f0f0f0 center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.listing-card .title, .event-card .title { font-weight: 700; font-size: 14px; margin: 0; }
.listing-card .comment, .event-card .desc { font-size: 13px; color: var(--muted); margin: 3px 0; }
.listing-card .price { font-family: "Roboto Mono", monospace; font-size: 14px; font-weight: 700; color: var(--accent); }
.event-card .date-box {
  flex: none; width: 48px; height: 48px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: "Roboto Mono", monospace; font-size: 11px; font-weight: 700;
}
.event-card .sub { font-family: "Roboto Mono", monospace; font-size: 11px; color: var(--muted); margin: 2px 0; }

.badge.special, .badge.labor { color: var(--accent); border-color: var(--accent); }

/* フォーム(post.html / admin.html / seller.html) */
form.stack { display: flex; flex-direction: column; gap: 14px; }
label { font-family: "Roboto Mono", monospace; font-size: 11px; font-weight: 700; display: block; margin-bottom: 5px; }
input[type=text], input[type=number], input[type=tel], input[type=url], input[type=date], input[type=time],
input[type=password], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); font-size: 14px;
  background: #fff; color: var(--ink); font-family: inherit;
}
textarea { min-height: 80px; resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

.card { background: #fff; border: 1px solid var(--border); padding: 20px; margin-bottom: 20px; max-width: 720px; margin-left: auto; margin-right: auto; }
.card h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; }

.item-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.item-row:last-child { border-bottom: none; }
.item-row .actions { display: flex; gap: 6px; flex: none; }
.item-row .actions button { padding: 6px 10px; font-size: 11px; }

.image-preview { width: 100%; max-width: 200px; margin-top: 8px; display: none; }
.image-preview.show { display: block; }

.result-box { background: #f5f5f5; border: 1px solid var(--border); padding: 14px; margin-top: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 10px 18px;
  font-family: "Roboto Mono", monospace;
  font-size: 12px; opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 2000;
}
.toast.show { opacity: 1; }
