/* =========================================================
   作業強度指数 × 人体発熱量 表 専用スタイル
   （6列: ラベル + 1～5列）
   ========================================================= */

.md-typeset table.workload-table {
  width: 100%;
  table-layout: fixed;        /* 列幅を安定させる */
  border-collapse: collapse;
}

/* ---------------------------------------------------------
   1 列目（作業強度指数／人体発熱量） → 少し広め
   --------------------------------------------------------- */
.md-typeset table.workload-table th:nth-child(1),
.md-typeset table.workload-table td:nth-child(1) {
  min-width: 8rem;
  width: 8rem;
  padding: .6rem;
  word-break: break-word;
  vertical-align: top;
}

/* ---------------------------------------------------------
   2〜6列目（1〜5 の数値列） → 均等で細め
   --------------------------------------------------------- */
.md-typeset table.workload-table th:nth-child(n+2):nth-child(-n+6),
.md-typeset table.workload-table td:nth-child(n+2):nth-child(-n+6) {
  min-width: 4rem;
  width: 4rem;
  text-align: center;
  padding: .4rem .3rem;
  word-break: keep-all;
}

/* ---------------------------------------------------------
   セルの共通装飾（汎用CSSと衝突しないよう最小限）
   --------------------------------------------------------- */
.md-typeset table.workload-table th,
.md-typeset table.workload-table td {
  border: 1px solid var(--math-box-border);
  overflow-wrap: anywhere;
}

/* 列境界を少し太くして視認性を上げる */
.md-typeset table.workload-table th + th,
.md-typeset table.workload-table td + td {
  border-left-width: 2px;
}

/* ---------------------------------------------------------
   スマホ最適化（768px 以下）
   --------------------------------------------------------- */
@media (max-width: 768px) {

  /* 1列目は少し狭く */
  .md-typeset table.workload-table th:nth-child(1),
  .md-typeset table.workload-table td:nth-child(1) {
    min-width: 6rem;
    width: 6rem;
  }

  /* 数値列はさらに細く */
  .md-typeset table.workload-table th:nth-child(n+2):nth-child(-n+6),
  .md-typeset table.workload-table td:nth-child(n+2):nth-child(-n+6) {
    min-width: 3rem;
    width: 3rem;
    font-size: .8rem;
  }
}
