:root { --line: #d6d3cc; --bg: #f7f6f2; --ink: #222; --muted: #777; --accent: #6b4a2b; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; font-size: 15px; line-height: 1.6; }
.wrap { max-width: 960px; margin: 0 auto; padding: 16px; }
.wrap.narrow { max-width: 420px; padding-top: 60px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 10px; border-left: 4px solid var(--accent); padding-left: 8px; }
h3 { font-size: 15px; margin: 0 0 6px; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
label { display: block; margin-bottom: 10px; font-size: 14px; }
input[type=text], input[type=date], input[type=datetime-local], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; margin-top: 3px; }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-judge { display: grid; grid-template-columns: 200px 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2, .grid-judge { grid-template-columns: 1fr; } }
.answer { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.inline { display: flex; gap: 6px; align-items: center; }
.checks { padding-top: 22px; }
.check { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
  color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 40px; }
.muted { color: var(--muted); font-size: 13px; }
.req { color: #b00; font-size: 12px; }
.warn { background: #fff6e5; border: 1px solid #f0d8a8; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.notice { background: #eef7ee; border: 1px solid #bcdcbc; padding: 8px 12px; border-radius: 6px; }
.error { background: #fdecec; border: 1px solid #f0bcbc; padding: 8px 12px; border-radius: 6px; }
.count { float: right; color: var(--muted); font-size: 12px; }
.search { display: flex; gap: 8px; margin-bottom: 12px; }
.search input { margin-top: 0; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; font-size: 14px; }
table.list th { background: #efede7; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { table.list th:nth-child(4), table.list td:nth-child(4) { display: none; } }
