/* 工程⑦-2⑧: 余白活用・強制改ページ解除。元仕様 工程⑦-2⑤: 月間 + 選択日を一つのTOPボタンから印刷 */
@page{size:A4 portrait;margin:7mm}
@media print{
 body.e39-print-combined{background:white!important;margin:0!important}
 body.e39-print-combined main{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;box-shadow:none!important}
 body.e39-print-combined main > :not(#calendarPanel){display:none!important}
 body.e39-print-combined #calendarPanel > :not(#calendar):not(#dailyDetail){display:none!important}
 body.e39-print-combined #calendar{display:block!important;width:100%!important;max-width:100%!important;overflow:visible!important}
 body.e39-print-combined #calendar .month{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
 body.e39-print-combined #calendar .month th,body.e39-print-combined #calendar .month td{width:14.2857%!important;min-width:0!important;max-width:14.2857%!important;box-sizing:border-box!important;padding:1.2mm .6mm!important;font-size:6.2pt!important;line-height:1.2!important;overflow-wrap:anywhere!important;word-break:normal!important}
 body.e39-print-combined #calendar .month td{height:auto!important;min-height:0!important;break-inside:avoid!important}
 body.e39-print-combined #calendar .month tr{break-inside:avoid!important}
 body.e39-print-combined #calendar .month caption{font-size:12pt!important;font-weight:700!important;margin-bottom:2mm!important}
 body.e39-print-combined #calendar .month .day-button{font-size:8pt!important;line-height:1.15!important;min-width:0!important;width:auto!important;padding:0!important;color:inherit}
 body.e39-print-combined #calendar .month .holiday-name{font-size:5.5pt!important}
 body.e39-print-combined #calendar .month .note,body.e39-print-combined #calendar .month .marker{font-size:5.7pt!important;line-height:1.2!important;margin-top:.5mm!important;font-weight:600!important}
 body.e39-print-combined #calendar .month .marker{padding:.2mm .5mm!important}
 body.e39-print-combined #calendar .month .date-heading,body.e39-print-combined #calendar .month .marker-row,body.e39-print-combined #calendar .month .pillar-row{gap:.5mm!important}
 body.e39-print-combined #dailyDetail{display:block!important;break-before:auto!important;page-break-before:auto!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:white!important;max-width:100%!important;overflow:visible!important}
 body.e39-print-combined #dailyDetail .daily-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2mm 5mm!important}
 body.e39-print-combined #dailyDetail .daily-fields>div{min-width:0!important;break-inside:avoid!important;padding:1.5mm!important}
 body.e39-print-combined #dailyDetail .daily-fields dt,body.e39-print-combined #dailyDetail .daily-fields dd{font-size:9pt!important;overflow-wrap:anywhere!important}
 body.e39-print-combined #dailyDetail section{break-inside:auto!important}
 body.e39-print-combined #dailyDetail .unified-list>*,body.e39-print-combined #dailyDetail .guide-cards>*{break-inside:avoid!important}
 body.e39-print-combined #dailyDetail h2,body.e39-print-combined #dailyDetail h3{break-after:avoid!important}
 /* 公開準備版: 「この日の暦のポイント」から新しいページを開始 */
 body.e39-print-combined #e39DaySummary{break-before:page!important;page-break-before:always!important}
}
