/* 報告書用 追加スタイル */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
}

/* 数値のtabular-nums有効化 */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* 印刷レイアウト最適化 */
@media print {
  /* 背景色・影をすべてリセット */
  body {
    background: #ffffff !important;
  }
  .min-h-screen {
    background: #ffffff !important;
    padding: 0 !important;
  }
  main {
    max-width: 100% !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .shadow-sm {
    box-shadow: none !important;
  }

  /* セクション単位でページをまたがない */
  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* 各拠点のセクション見出し前で改ページ（2ページ目以降） */
  section + section {
    break-before: page;
    page-break-before: always;
  }

  /* テーブル行はまたがない */
  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* ホバー効果を無効化 */
  a:hover,
  tr:hover {
    background-color: transparent !important;
  }

  /* プリント時にも背景色・枠を正しく表示 */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* ナビ・ボタンは印刷しない（念のため） */
  nav,
  button {
    display: none !important;
  }

  /* ページマージン */
  @page {
    margin: 14mm 12mm;
  }
}

/* フォーカス時のアクセシビリティ改善 */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #1e3a5f;
  outline-offset: 2px;
}
