/*
 * ヘッダ行・左列固定テーブル（fixed_midashi.js の置き換え）
 * 使い方（スクロールする div の中に置く）:
 *   <div style="overflow:auto; height:50vh;">
 *     <table class="sticky-table" data-controller="sticky-table" data-sticky-table-cols-value="3">
 * ヘッダは thead 内の行が固定される。左列の固定は sticky_table_controller.js が設定する。
 *
 * border-collapse:collapse だと固定セルの罫線がスクロールで消えるため separate にし、
 * 罫線はセルの右・下と表の上・左に引く
 */
table.sticky-table { border-collapse: separate; border-spacing: 0; border-width: 1px 0 0 1px; }
table.sticky-table th, table.sticky-table td { border-width: 0 1px 1px 0; }
table.sticky-table td { background-color: inherit; }
table.sticky-table thead th { position: sticky; top: 0; z-index: 2; }
table.sticky-table .sticky-col { position: sticky; z-index: 1; }
table.sticky-table thead th.sticky-col { z-index: 3; }
