:root {
  --bg: #eef4ec; --surface: #ffffff; --ink: #1d2a22; --muted: #5d6e63; --leaf: #2f6b4f;
  --leaf-soft: #d6e8dc; --slide: #f2b705; --slide-ink: #3b2c00; --warn: #b8452c; --line: #c9d8cd;
  color-scheme: light; box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141b17; --surface: #1d2621; --ink: #e6efe8; --muted: #9fb2a6; --leaf: #7cc39c;
    --leaf-soft: #253a2e; --slide: #f2c53d; --slide-ink: #2a1f00; --warn: #ef8a70; --line: #33443a;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.8;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif; font-weight: 500; }
.wrap { max-width: 680px; margin: 0 auto; padding: 16px 18px 48px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 2px solid var(--line); }
.brand { font-weight: 900; font-size: 1.15rem; color: var(--leaf); text-decoration: none; }
h1 { font-size: 1.5rem; margin: 24px 0 4px; }
h2 { font-size: 1.15rem; margin: 28px 0 6px; color: var(--leaf); }
h3 { font-size: 1rem; margin: 18px 0 4px; }
p, li { font-size: 0.95rem; }
.note { color: var(--muted); font-size: 0.85rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.table { overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: var(--leaf-soft); }
a { color: var(--leaf); }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field label { font-size: 0.9rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; width: 100%; }
textarea { min-height: 9em; }
.btn { font: inherit; font-weight: 700; border: 2px solid var(--leaf); background: var(--leaf); color: var(--bg); border-radius: 999px; padding: 8px 22px; cursor: pointer; }
.btn:disabled { opacity: 0.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 12px; font-weight: 700; }
.msg.err { color: var(--warn); }
.foot { margin-top: 40px; padding-top: 14px; border-top: 2px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 6px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--slide); outline-offset: 2px; }
