:root {
  color-scheme: light;
  --ink: #1d221d;
  --muted: #4d584b;
  --line: #d4d9cb;
  --accent: #dce841;
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  color: var(--ink);
  background: #f7f8f0;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 46rem; margin: 0 auto; padding: 2rem 1.15rem 4rem; }
header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.wordmark { color: var(--ink); font-size: 2rem; letter-spacing: -.07em; line-height: 1.1; font-weight: 850; text-decoration: none; }
.wordmark span { color: #5d6600; }
.restricted { font-size: .85rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 1.8rem 0 .5rem; letter-spacing: -.06em; line-height: 1.15; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 0 0 .9rem; }
p { margin: 0 0 1rem; }
.intro, #notice { color: var(--muted); }
section { background: #fff; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 1.6rem); margin: 1.2rem 0; }
.field { margin-bottom: 1.35rem; }
.field:last-child { margin-bottom: 0; }
label, legend { display: block; font-weight: 650; }
.hint { display: block; color: var(--muted); font-size: .89rem; margin: .2rem 0 .4rem; }
input, textarea, button { font: inherit; }
input:not([type="checkbox"]), textarea {
  width: 100%; margin-top: .4rem; padding: .6rem .7rem; border: 1px solid #a7b09f; color: var(--ink); background: #fff; border-radius: .4rem;
}
input[readonly] { background: #f1f3ea; }
input[type="file"] { cursor: pointer; }
textarea { resize: vertical; min-height: 7rem; }
fieldset { min-width: 0; border: 0; padding: 0; }
legend { padding: 0; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .2rem .8rem; }
.choices label { display: flex; align-items: flex-start; gap: .55rem; font-weight: 450; padding: .3rem 0; }
input[type="checkbox"] { flex: 0 0 auto; margin: .32rem 0 0; accent-color: #526000; width: 1.05rem; height: 1.05rem; }
:focus-visible { outline: 3px solid #546500; outline-offset: 2px; }
.submit { margin-top: 1.45rem; }
.submit a { color: #324000; }
#feedback { font-weight: 650; }
#feedback:empty { display: none; }
#feedback[data-error="true"] { color: #9d2019; }
button { border: 1px solid #a9b522; background: var(--accent); color: var(--ink); cursor: pointer; font-weight: 750; border-radius: .55rem; padding: .7rem 1.5rem; }
button:disabled { opacity: .68; cursor: wait; }
