:root {
    /* A4用紙のサイズ定義 */
    --page-width: 210mm;
    --page-height: 297mm;
    /* A4の標準的な余白（上下左右） */
    --page-padding-y: 15mm;
    --page-padding-x: 15mm;

    /* フォント設定（公文書向け明朝体と強調用ゴシック） */
    --font-mincho: 'Noto Serif JP', 'MS Mincho', 'Hiragino Mincho ProN', serif;
    --font-gothic: 'Noto Sans JP', 'Meiryo', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #525659;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    font-family: var(--font-mincho);
    color: #000;
    line-height: 1.5;
    font-size: 10.5pt;
}

/* A4用紙のコンテナ */
.a4-page {
    width: var(--page-width);
    /* プレビュー上で実際のA4ページ単位で区切るため固定高さを設定 */
    height: var(--page-height);
    padding: var(--page-padding-y) var(--page-padding-x);
    margin-bottom: 40px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cover-page {
    height: var(--page-height);
}

.report-body {
    height: var(--page-height);
}

.page-content {
    flex: 1;
    position: relative;
    font-size: 10.5pt;
}

/* 印刷時のスタイル設定 */
@media print {
    body {
        background: none;
        padding: 0;
    }

    .a4-page {
        margin: 0;
        box-shadow: none;
        width: 100%;
        height: 100%;
        page-break-after: always;
        page-break-inside: avoid;
    }

    .report-box,
    .data-table {
        page-break-inside: avoid;
    }

    .page-break {
        page-break-before: always;
    }

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

/* ユーティリティクラス */
.center { text-align: center; }
.right { text-align: right; }
.mt-10 { margin-top: 5px; }
.mt-20 { margin-top: 10px; }
.mt-30 { margin-top: 15px; }
.mb-10 { margin-bottom: 5px; }
.mb-20 { margin-bottom: 10px; }
.text-muted { color: #666; }
.border-bottom { border-bottom: 1px solid #000; padding-bottom: 5px; }

/* ページ番号 */
.page-number {
    display: none;
}

/* レポート見出し */
.report-title-top {
    text-align: center;
    font-size: 14pt;
    letter-spacing: 0.2em;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}
.report-subtitle {
    text-align: center;
    font-size: 11pt;
    margin-bottom: 30px;
}

.section-title {
    font-size: 12pt;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

.sub-section h3 {
    font-size: 11pt;
    margin-bottom: 10px;
}

.sub-section p {
    font-size: 10.5pt;
    margin-bottom: 8px;
    text-align: justify;
}

.sub-section strong {
    font-weight: bold;
}

/* 詳細報告用のボックススタイル（そのまま流用または調整） */
.report-box {
    margin-bottom: 15px;
}

.box-title {
    font-size: 10.5pt;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    padding-bottom: 4px;
}

/* データテーブル（一覧表） */
.table-title {
    font-size: 10pt;
    margin-bottom: 6px;
    padding-left: 5px;
    border-left: 4px solid #000;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8.5pt;
    margin-bottom: 15px;
}

.data-table th,
.data-table td {
    border: 1px solid #000;
    padding: 6px 5px;
    vertical-align: middle;
}

.data-table th {
    background-color: #f4f4f4;
    text-align: center;
    font-weight: bold;
}

/* 設備投資テーブルなど */
.finance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
    margin-bottom: 20px;
}
.finance-table th, .finance-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center;
}
.finance-table th {
    background-color: #f4f4f4;
}
.finance-table td.money {
    text-align: right;
}

ul.issue-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}
ul.issue-list li {
    margin-bottom: 5px;
}
