body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: 190mm; /* A4幅(210mm)から左右10mmの余白を引いた幅 */
    height: 277mm; /* A4高さ(297mm)から上下10mmの余白を引いた高さ */
    margin: 0 auto;
    padding: 5mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.day-section {
    width: 100%;
    height: calc(100% / 3); /* 1ページに3日分均等に配置 */
    border-bottom: 1px dashed #000;
    padding: 5px;
    box-sizing: border-box;
}

.day-section:last-child {
    border-bottom: none;
}

h2 {
    margin: 0;
    font-size: 12px;
}

h3 {
    margin-top: 5px;
    font-size: 12px;
    margin-bottom: 50px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
    font-size: 10px;
}

th, td {
    border: 1px solid #000;
    padding: 2px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

.input-form {
    margin-bottom: 20px;
    margin-left: 15px;
}

.no-print {
    margin-left: 15px;
}

/* 印刷用のスタイル */
@media print {
    @page {
        size: A4;
        margin: 10mm; /* 上下左右10mmの余白を設定 */
    }

    body {
        margin: 0;
    }

    .container {
        width: 190mm; /* A4幅から左右10mmの余白を引いた幅 */
        height: 277mm; /* A4高さから上下10mmの余白を引いた高さ */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 5mm;
        box-sizing: border-box;
    }

    .day-section {
        height: calc(100% / 3); /* 印刷時も1ページに3日分 */
        border-bottom: 1px dashed #000;
        box-sizing: border-box;
        page-break-inside: avoid;
        margin-bottom: 15px;
        margin-top: 10px;
    }

    .day-section:last-child {
        border-bottom: none;
    }

    .no-print {
        display: none;
    }
}
