:root {
  --bg: #ffffff;
  --text: #1c2733;
  --muted: #5b6876;
  --accent: #2f6f1f;
  --accent-dark: #1f4d14;
  --line: #dfe5ea;
  --band: #f3f6f4;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.site-header { border-bottom: 1px solid var(--line); background: var(--band); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--text); }
.brand span { font-weight: 400; font-size: .85rem; color: var(--muted); }
nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a { text-decoration: none; padding: .25rem 0; display: inline-block; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--accent); }

main { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 60vh; }

.content h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0 1rem; }
.content h2 { font-size: 1.4rem; margin: 2rem 0 .5rem; }
.content h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.content img { max-width: min(100%, 22rem); height: auto; }
.content .hero { display: block; margin: 0 auto 1.5rem; max-width: min(100%, 32rem); }
.content table { border-collapse: collapse; width: 100%; max-width: 32rem; }
.content th, .content td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }

.form { display: grid; gap: .5rem; max-width: 36rem; margin-top: 1.5rem; }
.form label { font-weight: 600; margin-top: .5rem; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: .6rem .7rem; font: inherit; border: 1px solid #9aa7b3; border-radius: .35rem; background: #fff; color: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus, .form button:focus-visible { outline: 3px solid #9cc88f; outline-offset: 1px; }
.form button {
  justify-self: start; margin-top: .5rem; padding: .65rem 1.4rem; font: inherit; font-weight: 600;
  color: #fff; background: var(--accent); border: 0; border-radius: .35rem; cursor: pointer;
}
.form button:hover { background: var(--accent-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--muted); font-size: .9rem; }

.notice { padding: .75rem 1rem; border-radius: .35rem; margin: 1rem 0; }
.notice ul { margin: 0; padding-left: 1.2rem; }
.notice.ok { background: #e8f4e5; border: 1px solid #b9dcb2; }
.notice.error { background: #fbeaea; border: 1px solid #e4b4b4; }

.site-footer { border-top: 1px solid var(--line); background: var(--band); color: var(--muted); font-size: .9rem; padding: 1rem 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.site-footer p { margin: 0; }

@media (max-width: 40rem) {
  .content h1 { font-size: 1.6rem; }
}
