@media print {
    header,
    footer,
    .detail-block01,
    .detail-block05,
    .detail-block03 .flex-box,
    .detail-block02 .h-style01{
        display: none !important;
    }
    
    .pr-gallery .gallery-item .img-box img {
        width:100%;
        height:auto;
    }
    
    .pr-gallery .gallery-item .img-box {
    aspect-ratio: 4/3;
    margin-bottom: 8px;
}
.pr-gallery .gallery-item .img-box img {
    height: 100%;
    object-fit: cover;
}

    table{
        break-inside: avoid; /* テーブルの途中で改ページされないようにする（重要） */
        page-break-after: auto; /* テーブルの後に強制改ページはしない */
        border-collapse: collapse;
        border-spacing: 0;
    }
    table.sp {
        display: none;
    }
    .detail-block04::before {
        content: "履歴書";
        width: 100%;
        display: block;
        text-align: center;
        font-size: 20px;
        margin-bottom: 16px;
        font-weight: bold;
    }
    .w-style-postdetail {
        display: flex;
        flex-wrap: wrap;
    }
    .w-style-postdetail > div {
        width: 100%;
    }
    .detail-block02 {
        order: 2;
    }
    .detail-block04 {
        order: 1;
    }

    .detail-block04 .flex-box {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
    .detail-block04 .flex-box .img-box {
        order: 2;
        width: 24%;
    }
    
    .detail-block04 .flex-box .img-box img {
        width:100%;
    }
    
    .detail-block04 .flex-box table {
        order: 1;
        width: 72%;
    }
    .pr-gallery {
        display: flex;
        gap: 24px;
    }
    .pr-gallery .gallery-item {
        width: calc(100% / 3);
    }
    .detail-block03 .flex-box {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }
    .detail-block03 .flex-box button {
        width: 220px;
        height: 38px;
    }
    .post-detail table {
        width: 100%;
        table-layout: fixed;
        letter-spacing: 0em;
        margin-bottom: 16px;
        border-top: 1px solid #999999;
        border-left: 1px solid #999999;
    }
    .post-detail table th {
        background: #eee;
        width: 110px;
        text-align: center;
        border-bottom: 1px solid #999999;
        border-right: 1px solid #999999;
        font-size: 15px;
    }
    .post-detail table td {
        border-bottom: 1px solid #999999;
        border-right: 1px solid #999999;
        padding: 8px 12px;
        font-size: 16px;
    }
    .post-detail td.td-year {
        width: 72px;
        text-align: center;
        padding: 8px;
        font-size: 17px;
    }
    .post-detail td.td-month {
        width: 40px;
        text-align: center;
        padding: 8px;
        font-size: 17px;
    }
    .post-detail td.td-detail {
        padding: 8px 20px;
        font-size: 17px;
    }
    .post-detail td.td-name {
        font-size: 18px;
    }
    .post-detail td.td-pr {
        font-size: 17px;
        line-height: 1.6em;
    }

    .post-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        letter-spacing: 0em;
        margin-bottom: 8px;
    }

    @page {
        margin: 5mm;
        size: A4; /* 用紙サイズをA4に明示的に指定（ブラウザデフォルトがA4でない場合のため） */
    }

    body {
        -webkit-print-color-adjust: exact; /* Chrome/Safari */
        print-color-adjust: exact;         /* 標準 */
    }


    /*----------------------------------------------------------------------------*/
    /*----------------------------------------------------------------------------*/
    /*----------------------------------------------------------------------------*/





    table td p {
        margin: 0;
        padding: 0;
    }



}

