/*************************************
style.css
*************************************/

.mincho {
  font-weight: 700;
  font-size: 1.6rem;
  font-family: 'Noto Serif JP', serif;
  text-align: center;
}


/* table layout
-------------------------*/

.tableLayout {
  margin: 1rem auto;
}

.tableLayout table {
  position: relative;
  table-layout: fixed;
  box-sizing: border-box;
  overflow: auto;
  width: 800px;
  margin: 0 auto;
  border: 2px solid #004d41;
  font-size: .8rem;
  text-align: center;
  line-height: 1.2;
}

.tableLayout table thead tr th {
  z-index: 50;
  padding: .5rem 0;
  border: 1px solid #fff;
  background-color: #004d41;
  color: #fff;
  text-align: center;
  vertical-align: middle;
}

.tableLayout table thead tr th.term {
  width: 10%;
}

.tableLayout table thead tr th.building {
  width: 10%;
}

.tableLayout table thead tr th.subject {
  width: 10%;
}

.tableLayout table thead tr th.lecture {
  width: 25%;
}

.tableLayout table thead tr th.date {
  width: 30%;
}

.tableLayout table thead tr th.time {
  width: 25%;
}

.tableLayout table thead tr:first-child th:first-child,
.tableLayout table tbody tr th {
  position: sticky;
  left: -1px;
  z-index: 100;
}

.tableLayout table tbody tr th {
  border: 1px solid #004d41;
  background-color: #f5f5f5;
  text-align: center;
  vertical-align: middle;
}

.tableLayout table td {
  overflow-wrap: break-word;
  height: 3rem;
  padding: .2rem;
  border: 1px solid #004d41;
  background: #fff;
  vertical-align: middle;
}

.tableLayout table tr:nth-last-of-type(even) td {
  background-color: #f5f5f5;
}

.tableLayout table tr td.building {
  background-color: #fff;
}

.tableLayout table tr td.subject {
  width: 10%;
  background-color: #fff;
}

.tableLayout table tr td.lecture {
  width: 25%;
  text-align: left;
}


@media all and (-ms-high-contrast:none) {

.tableLayout table th {
  left: auto!important;
  background-clip: padding-box !important;
}

.tableLayout table td {
  background-clip: padding-box !important;
}

}

@supports (-ms-ime-align:auto) {

.tableLayout table td, 
.tableLayout table th {
  background-clip: padding-box !important;
}

.tableLayout table thead th {
  border-top: none !important;
}

.tableLayout table {
  position: relative;
  z-index: index 10;
}

}

@-moz-document url-prefix() {

.tableLayout table td, .tableLayout table th {
  background-clip: padding-box !important;
}

}


@media screen and (orientation: portrait) and (max-width: 767px){

  .mincho {
    font-size: 1.4rem;
  }

  .tableLayout table {
    margin: 0 .5rem;
  }

  .tableLayout table thead tr th.term {
    width: 8%;
  }
  
  .tableLayout table thead tr th.building {
    width: 8%;
  }
  
  .tableLayout table thead tr th.subject {
    width: 6%;
  }
  
  .tableLayout table thead tr th.lecture {
    width: 23%;
  }
  
  .tableLayout table thead tr th.date {
    width: 30%;
  }
  
  .tableLayout table thead tr th.time {
    width: 35%;
  }

  .tableLayout table td {
    height: 2rem;
  }
  
}