﻿/* 縦並びの見出しテーブル（タイプ1）
----------------------------------------------------------------*/

.col-head-type1 {
  border-collapse: collapse;
  width: 100%;
}

.col-head-type1 th,
.col-head-type1 td {
  border: 1px solid #dbe1e8;  
  padding: 8px;
}

.col-head-type1 th {
  background: #f9fafc;
  text-align: left;
  width: 220px;
}

@media only screen and (max-width: 800px) {
  .col-head-type1 tr,
  .col-head-type1 th,
  .col-head-type1 td {
    display: block;
    width: auto;
  }
  
  .col-head-type1 tr:first-child {
    border-top: 1px solid #dbe1e8;  
  }
  
  .col-head-type1 th,
  .col-head-type1 td {
    border-top: none;
  }
}


/* 縦並びの見出しテーブル（タイプ2）
----------------------------------------------------------------*/

.col-head-type2 {
  border-collapse: collapse;
  width: 100%;
}

.col-head-type2 tr {
  border-bottom: 1px solid #dbe1e8;  
}
.col-head-type2 tr:first-child {
  border-top: 1px solid #dbe1e8;  
}

.col-head-type2 th,
.col-head-type2 td {
  padding: 8px 0;
}

.col-head-type2 th {
  text-align: left;
  width: 120px;
}

.col-head-type2 input[type='text'],
.col-head-type2 textarea {
  width: 50%;
}
.col-head-type2 textarea {
  height: 100px;
}

@media only screen and (max-width: 800px) {
  .col-head-type2 tr,
  .col-head-type2 th,
  .col-head-type2 td {
    display: block;
    width: auto;
  }
  
  .col-head-type2 th {
    padding-bottom: 0;
  }
  
  .col-head-type2 input[type='text'],
  .col-head-type2 textarea {
    width: 100%;
  }
}


/* 横並びの見出しテーブル（タイプ1）
----------------------------------------------------------------*/

.row-head {
  border-collapse: collapse;
  vertical-align: middle;
  width: 100%;
}

.row-head th,
.row-head td {
  border: 1px solid #dbe1e8;  
  padding: 8px;
}

.row-head th {
  background: #f9fafc;
}

.row-head label {
  line-height: 34px;
  margin: 0;
}

@media only screen and (max-width: 800px) {
  .row-head thead {
    display: none;
  }
  
  .row-head tr,
  .row-head td {
    display: block;
    width: auto;
  }
  
  .row-head tr {
    border: 1px solid #dbe1e8;
    border-radius: 5px;
    box-shadow: 3px 3px rgba(0, 0, 0, .1);
    margin-bottom: 20px;
    padding: 8px 8px 0;
  }
  
  .row-head td {
    border: none;
    border-bottom: 1px solid #dbe1e8;
    display: flex;
    justify-content: space-between;
    text-align: right;
  }
  .row-head td:last-child {
    border-bottom: none;
  }
  .row-head td::before {
    content: attr(aria-label);
    display: inline-block;
    font-weight: bold;
    float: left;
    text-align: left;
    padding-right: 20px;
    white-space: nowrap;
  }
  
  .row-head td.bt-area::before {
    display: none;
  }
  .row-head td.bt-area a {
    background: #007aff;
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    flex: 1;
    height: 40px;
    margin: 0 2px;
    overflow: hidden;
    width: auto;
  }
  .row-head td.bt-area a::before {
    align-items: center;
    content: attr(aria-label);
    display: flex;
    font-size: 14px;
    height: 100%;
    justify-content: center;
    line-height: 40px;
    width: 100%;
  }
  
  .row-head.header-check tr {
    padding-left: 40px;
    position: relative;
  }
  .row-head.header-check td:first-child {
    align-items: center;
    background: #fff;
    border-right: 1px solid #dbe1e8;
    border-bottom: none;
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 0;
    position: absolute;
    text-align: center;
    top: 0;
    width: 40px;
  }
  .row-head.header-check td:first-child::before {
    display: none;
  }
}
