html { color-scheme: light; }
:root {
  --green: #5f8700;
  --green-strong: #4a6a00;
  --green-soft: #f6f7f5;
  --ink: #1f2a1a;
  --muted: #5c6657;
  --line: #dfe5d6;
  --bg: #ffffff;
  --card: #ffffff;
  --danger: #b42318;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--green-strong); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--card); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { border-radius: 8px; }
.header-cta { font-size: 14px; text-decoration: none; border: 1px solid var(--green); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }

main { padding: 24px 16px 56px; }
h1 { font-size: 26px; line-height: 1.4; margin: 8px 0 16px; }
h2 { font-size: 20px; line-height: 1.5; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }

.hero {
  border-bottom: 1px solid var(--line);
  padding: 32px 0 28px;
  text-align: center;
  margin-bottom: 28px;
}
.hero h1 { margin-top: 0; }
.search input {
  width: 100%; max-width: 560px; font-size: 16px; padding: 12px 18px;
  border: 1px solid #cfd5c8; border-radius: 999px; background: #fff; color: #1f2a1a;
}
#search-results { text-align: left; max-width: 560px; margin: 12px auto 0; background: var(--card); color: var(--ink); border-radius: 12px; padding: 4px 16px; }
#search-results:empty { display: none; }

.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.section-card { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px 12px; background: var(--card); }
.section-card h2 a { text-decoration: none; color: var(--ink); }
.article-list { list-style: none; padding: 0; margin: 0; }
.article-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.article-list li:first-child { border-top: 0; }
.article-list.big li { padding: 14px 0; font-size: 17px; }
.article-list .snippet { display: block; color: var(--muted); font-size: 13px; }

.contact-band { margin-top: 36px; padding: 24px; background: var(--green-soft); border-radius: 14px; text-align: center; }
.contact-band.small { padding: 16px; }
.contact-band p { margin: 0 0 12px; }
.button {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none; border: 0;
  padding: 12px 28px; border-radius: 999px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.button:hover { filter: brightness(1.08); }

.article .meta { color: var(--muted); font-size: 13px; margin-top: -8px; }
.article-body { overflow-wrap: anywhere; }
.article-body img { border-radius: 8px; border: 1px solid var(--line); margin: 8px 0; }
.article-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; }
.article-body pre { white-space: pre-wrap; background: var(--green-soft); padding: 12px; border-radius: 8px; }
.article-body blockquote { margin: 0; padding: 4px 16px; border-left: 4px solid var(--line); color: var(--muted); }
.wysiwyg-color-red { color: var(--danger); }
.wysiwyg-color-blue { color: #1d64c8; }
.wysiwyg-font-size-x-large { font-size: 1.4em; }
.wysiwyg-text-align-center { text-align: center; }
.related { margin-top: 36px; border-top: 1px solid var(--line); }

.lead { color: var(--muted); }
.contact-form { display: grid; gap: 18px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.label { font-weight: 700; }
.field em { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.field em.req { background: var(--danger); color: #fff; }
.field em.opt { background: var(--line); color: var(--muted); }
.field small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.privacy { font-size: 13px; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  h1 { font-size: 22px; }
  .brand span { font-size: 15px; }
  .hero { padding: 20px 0 22px; }
}
