/* day-futan.css（このページ専用） */

/* 見出し帯（他ページと揃える） */
.page-futan .explanation{
  background: var(--accent);
  color:#fff;
  padding: 10px 12px;
  text-align:center;
  font-weight: 900;
  border-radius: var(--radius);
  margin: 0 0 12px;
}

/* 文章 */
.page-futan .lead{
  line-height: 1.75;
  margin: 0;
}

.page-futan .text-red{ color:#cc0000; }
.page-futan .subhead{
  margin: 10px 0 8px;
  font-weight: 800;
  line-height: 1.6;
}
.page-futan .subhead--mt{ margin-top: 16px; }

/* ===== テーブル共通 ===== */
.page-futan .table-wrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}

/* 表が狭い幅で潰れて折り返して崩れるのを防ぐ */
.page-futan .fee-table{
  width: 100%;
  min-width: 760px;          /* ★ここが効きます（必要なら 720〜820で調整OK） */
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;           /* ★表の文字を小さめに */
  line-height: 1.45;
}

.page-futan .fee-table th,
.page-futan .fee-table td{
  border: 1px solid #000;
  padding: 6px 8px;          /* ★余白を少し詰める */
  vertical-align: middle;
}

.page-futan .fee-table thead th{
  text-align: center;
  font-weight: 900;
  white-space: nowrap;       /* ★見出しは原則1行 */
}

.page-futan .fee-table--yellow thead th{ background:#ffffb3; }
.page-futan .fee-table--green  thead th{ background:#bfffbf; }

/* 左端見出しセル */
.page-futan .fee-table .rowhead{
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
.page-futan .fee-table--yellow .rowhead{ background:#ffffb3; }
.page-futan .fee-table--green  .rowhead--green{ background:#bfffbf; }

/* 数字は折り返さない＋右寄せ */
.page-futan .fee-table .num{
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums; /* 数字の幅を揃えて見やすく */
}

/* 中央寄せ */
.page-futan .fee-table .center{ text-align:center; }

/* チェック列（幅固定＋折り返し禁止） */
.page-futan .fee-table .checkcol{
  width: 46px;
  text-align: center;
  white-space: nowrap;
}

/* 注釈は少し小さく */
.page-futan .fee-table .notes{
  font-size: 12px;
  line-height: 1.65;
  padding: 10px 10px;
}

/* 縦見出し（サービス提供体制加算） */
.page-futan .fee-table .td-vertical{
  width: 54px;
  background: #bfffbf;
  text-align: center;
  font-weight: 900;

  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ?/?/? の列（色付き） */
.page-futan .fee-table .td-grade{
  width: 68px;
  text-align: center;
  font-weight: 900;
  white-space: nowrap;

  /* ほんのり色（テーブル色に馴染ませる） */
  background: rgba(0, 0, 0, 0.06);
}

/* ===== 小さい画面の微調整 ===== */
@media (max-width: 900px){
  .page-futan .fee-table{
    font-size: 12px;
    min-width: 720px;  /* スマホでも極端に潰れないように */
  }
  .page-futan .fee-table th,
  .page-futan .fee-table td{
    padding: 6px 7px;
  }
  .page-futan .fee-table .notes{ font-size: 11px; }
}
