/* ==============================
   共通：Chrome / Edge / Firefox / Safari
   ============================== */
@media print {

  /* body 共通設定 */
  body {
    -webkit-print-color-adjust: exact; /* Safari/Chrome */
    print-color-adjust: exact;         /* 標準対応 */
    zoom: 0.9;                         /* Chrome/Edge/Firefox */
  }

  /* 印刷対象をラップするコンテナ */
  #member-page {
    width: 210mm;        /* A4幅 */
    height: 297mm;       /* A4縦 */
    display: block;

    /* Safariでも縮小して収める */
    -webkit-transform: scale(0.9);
    -webkit-transform-origin: top center;

    /* 他ブラウザでも縮小 */
    transform: scale(0.9);
    transform-origin: top center;
  }

  /* 改ページ防止 */
  .member-print-wrapper,
  .section-flex,
  .sec-content1 {
    page-break-inside: avoid;
  }
  

  /* 画像の高さを調整 */
  .member-print-head img {
    width: 100%;
    height: auto !important;
    max-height: 300px; /* 必要に応じて調整 */
    object-fit: cover;
  }
  
  #member-page .txt-box{font-size:14px;line-height:1.5em;}

}

/* ==============================
   IE10以上
   ============================== */
@media print and (-ms-high-contrast: none) {

  body {
    zoom: 1.8;                  /* IEでの縮小率 */
    width: 1200px;               /* IE 固定幅 */
    transform: scale(0.5);       /* IE用縮小 */
    transform-origin: 0 0;
  }
}
