@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --ink: #2b2a27;
  --sub: #6b665d;
  --line: #c9c1b3;
  --faint: #ece6db;
  --accent: #a8552f;
  --green: #5f7f5a;
}

@page { size: A4; margin: 0; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: #e9e5de; }

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: var(--ink);
  font-size: 10pt;
  line-height: 1.6;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.sheet {
  width: 210mm;
  height: 297mm;
  padding: 14mm 15mm 12mm;
  margin: 8mm auto;
  background: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  page-break-after: always;
  break-after: page;
}
.sheet:last-child { page-break-after: auto; break-after: auto; }

@media print {
  html, body { background: #fff; }
  .sheet { margin: 0; box-shadow: none; }
  .screen-only { display: none !important; }
}
@media screen {
  .sheet { box-shadow: 0 2px 12px rgba(0,0,0,.12); }
}

.screen-only {
  max-width: 210mm;
  margin: 12px auto 0;
  padding: 0 4px;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.screen-only a, .screen-only button {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  cursor: pointer;
}

h1, h2, h3, .mincho { font-family: "Shippori Mincho B1", serif; font-weight: 700; }
h1 { font-size: 20pt; line-height: 1.35; margin: 0; letter-spacing: .02em; }
h2 {
  font-size: 13pt;
  margin: 0 0 3mm;
  padding-bottom: 1.5mm;
  border-bottom: 1.2px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 3mm;
}
h2 .no { color: var(--accent); font-size: 11pt; }
h3 { font-size: 10.5pt; margin: 4mm 0 1.5mm; }
p { margin: 0 0 2mm; }
.small { font-size: 8pt; color: var(--sub); line-height: 1.5; }
.lead { font-size: 10pt; color: var(--sub); margin-bottom: 4mm; }

.runhead {
  display: flex;
  justify-content: space-between;
  font-size: 7.5pt;
  color: var(--sub);
  margin-bottom: 5mm;
  letter-spacing: .05em;
}
.foot {
  margin-top: auto;
  padding-top: 3mm;
  display: flex;
  justify-content: space-between;
  font-size: 7.5pt;
  color: var(--sub);
}

table { width: 100%; border-collapse: collapse; }
th, td {
  border: 0.6pt solid var(--line);
  padding: 1.6mm 2mm;
  vertical-align: top;
  text-align: left;
}
th { background: var(--faint); font-weight: 500; font-size: 8.5pt; }
td.write { height: 9mm; }
td.write-tall { height: 16mm; }
.center { text-align: center; }

.box { display: inline-block; width: 3.4mm; height: 3.4mm; border: 0.8pt solid var(--ink); border-radius: 0.6mm; vertical-align: -0.5mm; margin-right: 1.2mm; }
.choices { display: flex; flex-wrap: wrap; gap: 1.5mm 6mm; }

.field { display: flex; align-items: flex-end; gap: 2mm; margin-bottom: 3mm; }
.field .label { white-space: nowrap; font-size: 9pt; color: var(--sub); }
.field .line { flex: 1; border-bottom: 0.6pt solid var(--ink); height: 7mm; }

.note {
  border-left: 2pt solid var(--accent);
  padding: 1.5mm 3mm;
  background: #fbf6f1;
  font-size: 8.5pt;
  margin: 3mm 0;
}
.lines div { border-bottom: 0.5pt dashed var(--line); height: 8mm; }
