@charset "utf-8";

/* ヘッダ固定したい table の先祖要素の overflow: hidden を解除 */

.s-of-h {
  overflow: initial !important;
}

.table-sticky {
  overflow: initial !important;
}

/* ヘッダ固定の設定 */

.table-sticky table thead {
  position: sticky;
  top: 60px;
}

/* 固定したヘッダの border が透明になってしまう問題の対処 */

.table-sticky table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  border-left: 1px solid #e4e4e4;
  border-top: 1px solid #e4e4e4;
}

.table-sticky table tr td,
.table-sticky table tr th {
  border-left: 0;
  border-top: 0;
}

.table-sticky .is-sticky {
  display: none;
}

/* 消えてしまうリンクマークの対処 */
.table-sticky .link-cmn-02 {
  height: 27px;
}

@media screen and (max-width: 767px) {
  .table-sticky {
    position: relative;
    height: 500px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .table-sticky .sticky-scroll-wrapper {
    position: relative;
    width: 767px;
    height: 500px;
    overflow: auto !important;
  }

  .table-sticky table {
    width: 768px !important;
  }

  .table-sticky table thead {
    position: static;
    top: 0;
  }

  .table-sticky .is-sticky {
    display: table;
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 767px;
    background: #eee;
  }

  .table-sticky table.is-sticky tbody {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .table-sticky {
    height: 350px;
  }

  .table-sticky .sticky-scroll-wrapper {
    height: 350px;
  }
}
