/* A4職員用メモ。画面・印刷・ビルド時のはみ出し検査で共用。 */
@page { size: A4 portrait; margin: 15mm; }
.staff-memo { box-sizing: border-box; width: 180mm; max-width: 100%; padding: 8mm; margin: 2rem auto; border: 1px solid #bbb; background: #fff; color: #111; font-family: "UD Digi Kyokasho N-R", "Yu Gothic", "Meiryo", sans-serif; font-size: 12pt; line-height: 1.55; }
.staff-memo * { box-sizing: border-box; }
.staff-memo h1 { font-size: 22pt; margin: 2mm 0 4mm; }
.staff-memo h2 { font-size: 15pt; margin: 3mm 0 2mm; }
.staff-memo p { margin: 2mm 0; }
.staff-memo dl { margin: 0; }
.staff-memo dt { font-weight: 700; margin-top: 2mm; }
.staff-memo dd { margin: 0; }
.staff-memo ol { padding-left: 6mm; margin: 2mm 0; }
.staff-memo li { margin-bottom: 2mm; }
.staff-memo .memo-label { border-bottom: 1pt solid #111; font-weight: 700; padding-bottom: 2mm; }
.staff-memo .memo-file { font-size: 10pt; overflow-wrap: anywhere; }
.staff-memo .sf { border-top: 1pt solid #111; padding-top: 2mm; margin-top: auto; font-size: 10pt; }
/* checkLayoutは画面媒体でA4の高さも測定する。 */
.staff-memo.sheet { height: 266mm; display: flex; flex-direction: column; }
.staff-memo .sh-b { flex: 1; min-height: 0; }
@media (max-width: 760px) { .staff-memo.sheet { height: auto; padding: 1rem; } }
@media print {
  html, html[data-fs] { font-size: 12pt; }
  body:has(.staff-memo) { background: #fff; margin: 0; }
  body:has(.staff-memo) .hd, body:has(.staff-memo) .ft, body:has(.staff-memo) .skip,
  body:has(.staff-memo) .crumbs, body:has(.staff-memo) .set-controls { display: none !important; }
  body:has(.staff-memo) main { padding: 0; margin: 0; max-width: none; }
  .staff-memo.sheet { width: 180mm; height: 266mm; max-width: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
  .staff-memo h1, .staff-memo h2 { font-family: inherit; letter-spacing: 0; text-wrap: wrap; }
  .staff-memo a { color: #111; }
}
