@charset "UTF-8";
/* =========================================
   変数・基本設定
   ========================================= */
/* =========================================
   1. コンテナ・基本レイアウト
   ========================================= */
.scroll-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  padding-bottom: 30px;
  /* 下の影（::before） */
  /* 右端の影（::after） */
}
.scroll-container::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.3s;
}
.scroll-container.has-hidden-bottom::before {
  opacity: 1;
}
.scroll-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 30px;
  right: 0;
  width: 12px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.3s;
}
.scroll-container.is-scrolled-right::after {
  opacity: 1;
}

.table-wrapper {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 500px;
}

/* =========================================
   2. テーブル基本設定
   ========================================= */
.stickyTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
}
.stickyTable th,
.stickyTable td {
  padding: 10px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  background-clip: padding-box;
  font-size: 12px;
}

/* =========================================
   3. 固定ヘッダー（行の固定）
   ========================================= */
.stickyTable thead th {
  position: sticky;
  top: 0;
  background-color: #333;
  color: #fff;
  z-index: 20;
  /* 縦スクロール時の影（下方向） */
}
.stickyTable thead th::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

.scroll-container.is-scrolled-y thead th::after {
  opacity: 1;
}

/* =========================================
   4. 固定カラム（列の固定）
   ========================================= */
th.fixed-side,
td.fixed-side {
  position: sticky;
  z-index: 10;
  background-color: #f9f9f9;
}

.fixed-1 {
  left: 0;
  border-right: 1px solid #ddd;
}

.fixed-2 {
  /* 固定列の影 */
}
.fixed-2::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  right: -12px;
  width: 12px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 15;
}

.scroll-container.is-scrolled-left .fixed-2::after {
  opacity: 1;
}

/* --- 左上（クロスする部分） --- */
thead th.fixed-side {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 30;
  background-color: #333;
  color: #fff;
  box-shadow: 1px 0 0 #333;
  /* 右側の影 */
}
thead th.fixed-side::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -12px;
  width: 12px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 31;
}

.scroll-container.is-scrolled-left thead th.fixed-side::after {
  opacity: 1;
}

/* =========================================
   5. カスタムスクロールバー
   ========================================= */
.custom-scrollbar {
  display: none;
  height: 22px;
  background-color: #fff;
  padding: 5px 0;
  width: 100%;
  z-index: 40;
  border-bottom: 1px solid #eee;
  /* ▼▼▼ 変更：絶対配置でpaddingの領域に配置 ▼▼▼ */
  position: absolute;
  top: unset;
  bottom: 0;
  left: 0;
}
.custom-scrollbar .scrollbar-track {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #f1f1f1;
  border-radius: 6px;
}
.custom-scrollbar .scrollbar-thumb {
  height: 100%;
  background-color: #c1c1c1;
  border-radius: 6px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  transition: background-color 0.2s;
}
.custom-scrollbar .scrollbar-thumb:hover {
  background-color: #a8a8a8;
}
.custom-scrollbar .scrollbar-thumb:active {
  cursor: grabbing;
  background-color: #999;
}

/* その他装飾系（変更なし） */
.pl_bg01 {
  background: #00214b !important;
  color: #fff;
}

.pl_bg03 {
  background: #ffe5e5 !important;
}

@media (max-width: 599px) {
  .forPC {
    display: none;
  }
}
/*# sourceMappingURL=scrollable_table.css.map */