/*
 * jQuery Basic Table
 * Author: Jerry Low
 */

table.bt thead,
table.bt tbody th {
  display: none;
}

table.bt tfoot th,
table.bt tfoot td,
table.bt tbody td {
  border: none;
  display: block;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  vertical-align: top;

  /* IE 9 */
  float: left\9;
  width: 100%\9;
}

table.bt tfoot th::before,
table.bt tfoot td::before,
table.bt tbody td::before {
  content: attr(data-th) "";
  display: flex;
  -webkit-flex-shrink: 0;
  -ms-flex-shrink: 0;
  flex-shrink: 0;
  font-weight: normal;
  width: 30%;
  align-items: center;
}

table.bt tfoot th.bt-hide,
table.bt tfoot td.bt-hide,
table.bt tbody td.bt-hide {
  display: none;
}

table.bt tfoot th .bt-content,
table.bt tfoot td .bt-content,
table.bt tbody td .bt-content {
  vertical-align: top;
}

.bt-wrapper.active {
  max-height: 310px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

table.bt.bt--no-header tfoot td::before,
table.bt.bt--no-header tbody td::before {
  display: none;
}

/* ----------------------------------
  レスポンシブ用テーブルスタイル
-------------------------------------*/

/* basicTable用スタイル */

@media screen and (max-width: 900px){
  .basicTable {
    border: none;
  }
  .basicTable tr {
    border: 1px solid #999;
    margin-bottom: 30px;
    display: block;
    border-bottom: none;
  }
  .basicTable__td {
    padding: 0;
  }
  .basicTable__td::before {
    background: #f1f1f1;
    padding: 15px;
    font-weight: bold !important;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
  }
  
  .bt-content {
    padding: 15px;
    border-bottom: 1px solid #999;
    width: 100%;
  }
}

