/* ==========================================================
   Web履歴書メーカー — print styles (A4 x 2 pages)
   履歴書シート(#resume-sheet)のみを印刷する。
   visibility ではなく display:none で他要素のレイアウト空間ごと
   取り除き、余分な空白ページが出ないようにする。
   ========================================================== */

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

/* #resume-sheet の祖先チェーン以外をすべて非表示 */
body > *:not(main) { display: none !important; }
main > *:not(.preview-section) { display: none !important; }
.preview-section .container > h2 { display: none !important; }

body { background: #fff; margin: 0; }

.preview-section {
  padding: 0;
  background: #fff;
}
.preview-section .container {
  max-width: none;
  margin: 0;
  padding: 0;
}
.preview-scroll {
  overflow: visible;
  padding: 0;
}

#resume-sheet {
  display: block;
  width: 210mm;
}

.resume-page {
  width: 210mm;
  height: 296mm;              /* 297mm より僅かに小さくして空白ページ化を防ぐ */
  padding: 12mm 14mm;
  margin: 0;
  box-shadow: none;
  transform: none !important;
  box-sizing: border-box;
  page-break-after: always;
  break-after: page;
  background: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  color: #000;
}
.resume-page:last-child {
  page-break-after: auto;
  break-after: auto;
}
.resume-page.font-gothic {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
}

/* 罫線を印刷でもくっきり出す */
table.r-table th, table.r-table td {
  border: 0.35mm solid #000;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
