/* ワークシート（A4 たて・印刷／PDF） */
body {
  background: var(--bg2);
}
.ws-ctl {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.ws-ctl .lab {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.ws-ctl label {
  font-size: 13.5px;
  font-weight: 700;
}
.ws {
  padding: 24px 0 60px;
  color: #111;
}
.ws-page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 24px;
  background: #fff;
  padding: 13mm 14mm 20mm;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 10.5pt;
  line-height: 1.55;
}
@media (max-width: 820px) {
  .ws-page {
    width: auto;
    margin: 0 8px 16px;
    min-height: 0;
  }
}
.ws [lang='en'] {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.12em;
  font-weight: 600;
}
.ws .ja {
  color: #555;
  font-size: 0.86em;
}
html.no-ja .ws .ja {
  display: none;
}
html.no-key .ws-key {
  display: none;
}
.ws-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px double #b8892e;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.ws-brand {
  font-size: 8.5pt;
  font-weight: 900;
  color: #8a6418;
}
.ws-brand span {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.15em;
  margin-left: 4px;
}
.ws-head h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24pt;
  line-height: 1.1;
}
.ws-title b {
  font-size: 14pt;
}
.ws-name {
  display: grid;
  gap: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 11pt;
  min-width: 52mm;
}
.ws-name div {
  display: flex;
  gap: 4px;
}
.ws-name span {
  flex: 1;
  border-bottom: 1px solid #444;
}
.ws-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8mm;
  align-items: start;
}
.ws-img {
  margin: 0;
  border: 6px solid #c9a24a;
  box-shadow: inset 0 0 0 2px #fff;
  padding: 2px;
}
.ws-img img {
  width: 100%;
  max-height: 95mm;
  object-fit: contain;
}
.ws-info p {
  margin: 0 0 3px;
}
.ws-two,
.ws-three {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6mm;
}
.ws-three {
  grid-template-columns: 1fr 1fr 1fr;
}
.ws-img2 {
  margin: 0;
  text-align: center;
  font-size: 9pt;
}
.ws-img2 img {
  width: 100%;
  height: 62mm;
  object-fit: contain;
  border: 4px solid #c9a24a;
  background: #f7f3ea;
}
.ws-box {
  border: 1.5px solid #333;
  border-radius: 8px;
  padding: 3mm 4mm;
  margin: 4mm 0;
  break-inside: avoid;
}
.ws-box h2 {
  margin: 0 0 2mm;
  font-size: 11.5pt;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.ws-box h2 small {
  font-weight: 400;
}
.ws .no {
  display: inline-grid;
  place-items: center;
  width: 7mm;
  height: 7mm;
  border-radius: 50%;
  background: #1b2a52;
  color: #fff;
  font-size: 10pt;
  font-family: sans-serif;
}
.ws-check {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11pt;
}
.ws-match {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18mm;
}
.ws-match ol {
  margin: 0;
  padding-left: 1.5em;
}
.ws-match li {
  margin: 1.4mm 0;
}
.ws-match ol:first-child li {
  text-align: right;
}
.ws-match i {
  font-style: normal;
  color: #1b2a52;
}
.ws-read {
  background: #f6f2e8;
  border-radius: 6px;
  padding: 2.5mm 3.5mm;
  margin: 0 0 2mm;
  line-height: 1.5;
}
.ws-tf li {
  margin: 1mm 0;
}
.ws-tf b {
  margin-left: 6px;
  font-family: sans-serif;
  white-space: nowrap;
}
.ws-choices {
  columns: 2;
  margin: 0;
}
.ws-lines div {
  height: 9mm;
  border-bottom: 1px solid #888;
}
.ws-hint {
  font-size: 9.5pt;
  background: #eef2ff;
  border-radius: 6px;
  padding: 2mm 3mm;
  margin-bottom: 2mm;
}
.ws-frame {
  margin: 1mm 0;
}
.ws-blank {
  display: inline-block;
  width: 60mm;
  border-bottom: 1px solid #444;
}
.ws-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 9.5pt;
}
.ws-tbl td,
.ws-tbl th {
  border: 1px solid #999;
  padding: 1.5mm 2mm;
}
.ws-tbl td:nth-child(n + 2) {
  text-align: center;
  width: 12mm;
  font-size: 14pt;
}
.ws-fun {
  border: 2px dashed #b8892e;
  border-radius: 10px;
  padding: 3mm 4mm;
  background: #fffaf0;
}
.ws-foot {
  position: absolute;
  left: 14mm;
  right: 14mm;
  bottom: 8mm;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 7.5pt;
  color: #666;
  border-top: 1px solid #ccc;
  padding-top: 2mm;
}
.ws-key {
  background: #fbfbf6;
}
.ws-keyh {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18pt;
  border-bottom: 2px solid #b8892e;
  margin: 0 0 4mm;
}
.ws-key p {
  margin: 0 0 3mm;
}
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  body {
    background: #fff;
  }
  .ws {
    padding: 0;
  }
  .ws-page {
    margin: 0;
    box-shadow: none;
    width: 210mm;
    height: 297mm;
    min-height: 0;
    overflow: hidden;
    break-after: page;
  }
  .ws-page:last-child {
    break-after: auto;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
.ws-part {
  font-style: normal;
  background: #1b2a52;
  color: #fff;
  border-radius: 4px;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 8pt;
}
.ws-key .ws-part {
  background: #9b1d33;
}
.ja-ins {
  font-weight: 400;
  font-size: 8.5pt;
  color: #555;
}
.ws-gap {
  display: inline-block;
  min-width: 26mm;
  border-bottom: 1.2px solid #222;
  margin: 0 2px;
  text-align: center;
  font-size: 8pt;
  color: #666;
}
.ws-bank {
  border: 1.5px dashed #1b2a52;
  border-radius: 6px;
  padding: 1.5mm 3mm;
  margin: 0 0 2mm;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 12pt;
}
.ws-fill li,
.ws-box ol li {
  margin: 1mm 0;
}
.ws-scr span {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 12pt;
}
.ws-keygrid {
  columns: 2;
  column-gap: 7mm;
  font-size: 9pt;
  line-height: 1.5;
}
.ws-keygrid > div {
  break-inside: avoid;
  margin-bottom: 3mm;
}
.ws-keygrid h3 {
  margin: 0 0 1mm;
  font-size: 10pt;
  color: #1b2a52;
  border-bottom: 1px solid #ccd;
}
.ws-keygrid p,
.ws-keygrid ol {
  margin: 0;
}
.ws-keygrid ol {
  padding-left: 1.3em;
}
.ws-key .ja {
  color: #333;
  font-size: 1em;
}
/* PDF 作成用（scripts/pdf.mjs が ?pdf を付けて開く） */
html.pdf-mode .hd,
html.pdf-mode .ft,
html.pdf-mode .owl-guide,
html.pdf-mode .ws-ctl {
  display: none !important;
}
/* 線結び：番号のすぐ横に語と ● を置く（2026-11-01「問題番号と選択肢の間の余白が変」） */
.ws-match {
  grid-template-columns: max-content max-content;
  justify-content: start;
  column-gap: 26mm;
}
.ws-match ol {
  padding-left: 1.6em;
}
.ws-match ol:first-child li {
  text-align: left;
}
.ws-match li {
  margin: 1.6mm 0;
  padding-left: 1mm;
}
.ws-match ol:first-child i {
  margin-left: 3mm;
}
.ws-match ol:last-child i {
  margin-right: 2mm;
}
.ws-choices li,
.ws-tf li,
.ws-fill li {
  padding-left: 1mm;
}
.ws ol {
  padding-left: 1.6em;
}
