:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --text: #2d3a2e;
  --muted: #6b7a6c;
  --accent: #3e7d4f;
  --accent-soft: #e4efe6;
  --ok: #2e7d32;
  --ok-bg: #e8f5e9;
  --warn: #b26a00;
  --warn-bg: #fff3e0;
  --ng: #c62828;
  --ng-bg: #ffebee;
  --border: #dcdfd8;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

header.site-header {
  background: var(--accent);
  color: #fff;
  padding: 20px 16px;
  margin-bottom: 24px;
}

header.site-header .inner {
  max-width: 760px;
  margin: 0 auto;
}

header.site-header .site-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

header.site-header .tagline {
  margin: 4px 0 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

header.site-header a { color: inherit; text-decoration: none; }

header.site-header .site-nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
header.site-header .site-nav a {
  font-size: 0.85rem;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}
header.site-header .site-nav a:hover { background: rgba(255, 255, 255, 0.15); }

.container h1 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 20px 0 4px;
}

h2 {
  font-size: 1.15rem;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}

.lead { color: var(--muted); font-size: 0.95rem; }

/* 野菜選択 */
.family-group { margin-bottom: 14px; }
.family-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.veg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.veg-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.veg-chip:hover { background: var(--accent-soft); }
.veg-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 判定結果 */
#result { display: none; }
#result.visible { display: block; }

.result-heading { font-size: 1.05rem; margin: 0 0 4px; }
.result-sub { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }

.verdict-section { margin-top: 14px; }
.verdict-title {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.verdict-title.ok { color: var(--ok); background: var(--ok-bg); }
.verdict-title.warn { color: var(--warn); background: var(--warn-bg); }
.verdict-title.ng { color: var(--ng); background: var(--ng-bg); }

ul.verdict-list { list-style: none; padding: 0; margin: 0; }
ul.verdict-list li {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
ul.verdict-list li:last-child { border-bottom: none; }
ul.verdict-list .veg-name { font-weight: 600; margin-right: 8px; }
ul.verdict-list .reason { color: var(--muted); font-size: 0.85rem; }

.note-box {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  margin-top: 16px;
}

/* 野菜別ページ */
.breadcrumb { font-size: 0.8rem; color: var(--muted); margin: 8px 0 0; }
.breadcrumb a { color: var(--accent); }
.meta-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.meta-table th, .meta-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.meta-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.95rem;
  margin-top: 8px;
}
.cta:hover { opacity: 0.9; }

/* 記事 */
.post-meta { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }

.post h2 {
  font-size: 1.1rem;
  margin-top: 32px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.post h2:first-child { margin-top: 0; }
.post h3 {
  font-size: 1rem;
  margin-top: 24px;
  color: var(--accent);
}
.post p { margin: 12px 0; }
.post ul, .post ol { padding-left: 1.4em; margin: 12px 0; }
.post li { margin: 6px 0; }
.post a { color: var(--accent); }
.post table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}
.post th, .post td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.post th { background: var(--accent-soft); white-space: nowrap; }
.post blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.post blockquote p:first-child { margin-top: 0; }
.post blockquote p:last-child { margin-bottom: 0; }

/* 埋め込みフォーム */
.form-embed { margin: 16px 0; }
.form-embed iframe {
  width: 100%;
  max-width: 640px;
  height: 691px;
  border: 0;
  display: block;
}

ul.post-list { list-style: none; padding: 0; margin: 0; }
ul.post-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
ul.post-list li:last-child { border-bottom: none; }
ul.post-list a { color: var(--accent); font-weight: 600; text-decoration: none; }
ul.post-list a:hover { text-decoration: underline; }
.post-excerpt {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 3px;
}

footer.site-footer {
  margin-top: 48px;
  padding: 24px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

footer.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}
footer.site-footer .footer-nav a { color: var(--accent); }

@media (max-width: 480px) {
  header.site-header .site-name { font-size: 1.15rem; }
  .container h1 { font-size: 1.2rem; }
  .veg-chip { font-size: 0.9rem; padding: 6px 12px; }
}
