/* 印刷用スタイルシート */
@media print {
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 20px;
    }

    .logo-section {
        text-align: center;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }

    .logo-section img {
        max-width: 200px;
        height: auto;
    }

    .simulator {
        max-width: none;
        border: 1px solid #000;
        margin: 0;
        padding: 20px;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .simulator__title {
        background-color: #dc3545 !important; /* 印刷時も赤色を維持 */
        color: white !important;
        text-align: center;
        padding: 10px;
        margin: -20px -20px 20px -20px;
        transform: none;
        border-radius: 0;
        font-size: 18pt;
    }

    .simulator__content {
        padding: 0;
    }

    .simulator dl dt,
    .simulator dl dd {
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .simulator dl .inner {
        padding: 10px 0;
    }

    .simulator dl .item-title {
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .simulator dl .item-title > div {
        font-size: 10pt;
        color: #666;
        font-weight: normal;
    }

    .simulator input {
        border: none;
        background: none;
        font-size: 12pt;
        padding: 2px;
        width: auto;
        display: inline;
    }

    /* 非表示要素 */
    .submit,
    .error-message,
    .loading,
    button {
        display: none !important;
    }

    /* 結果の表示調整 */
    .result:not(:empty) {
        border: 2px solid #000;
        padding: 20px;
        text-align: center;
        font-size: 18pt;
        color: #000 !important;
        background: white !important;
        margin: 20px 0;
        page-break-inside: avoid;
    }

    .info {
        background-color: #f5f5f5 !important;
        border: 1px solid #ccc;
        padding: 15px;
        margin-top: 20px;
        page-break-inside: avoid;
    }

    .info p {
        font-size: 10pt;
        margin: 5px 0;
        color: #000 !important;
    }

    /* ページ区切り調整 */
    .page-break {
        page-break-before: always;
    }

    /* 印刷日時の追加 */
    .print-info {
        position: fixed;
        bottom: 10px;
        right: 10px;
        font-size: 8pt;
        color: #666;
    }

    @page {
        margin: 20mm;
        size: A4;
    }
}