@charset "UTF-8";

#main table thead tr:first-child th {
  color: #FFFFFF;
}
#main table th {
  width: auto;
}
#main table td {
  width: auto;
  text-align: center;
}
#main table th,
#main table td {
  background: none;
  font-weight: normal;
}
#main td, #main th {
  padding: 5px;
  border: none;
  font-size: 92%;
  line-height: initial;
  vertical-align: middle;
  box-sizing: border-box;
}
#main table tr:nth-child(n+2)>th {
  padding-left: 0;
}
#main table tr:nth-child(1) {
  border-bottom: none;
}


#main .archive-table {
  font-size: 92%;
  flex: 1;
  overflow: auto;
  display: flex !important;
  flex-direction: column;
  width: 100%;
  height: 80vh;
}
#main .archive-table table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #666666;
  color: #FFFFFF;
}
#main .archive-table table {
  border: 1px solid #333333;
  border-top: none;
  border-left: none;
  border-collapse: separate;
  border-spacing: 0;
  empty-cells: show;
  width: 1240px;/* 360 + (80 * 11) */
  text-align: center;
  margin-bottom: 0;
}
#main .archive-table table th {
  font-weight: normal;
}
#main .archive-table table th, 
#main .archive-table table td {
  border-right: 1px solid #333333;
  border-top: 1px solid #333333;
}
#main .archive-table table th:last-child,
#main .archive-table table td:last-child {
  border-right: none;
}
#main .archive-table table:nth-last-of-type(1) td.main-heading {
  border-bottom: none;
}
#main .archive-table table tr td.sub-heading:nth-last-child(2) {
  border-bottom: 3px solid blueviolet;
}
#main .archive-table table tr:last-of-type td {
  border-bottom: none;
}
#main .archive-table table th.main-heading,
#main .archive-table table td.main-heading {
  position: sticky;
  left: 0;
  width: 80px;
  text-align: left;
  background: #FFFFFF;
}
#main .archive-table table th.sub-heading,
#main .archive-table table td.sub-heading {
  position: sticky;
  left: 80px;
  width: 80px;
  text-align: left;
  background: #FFFFFF;
}
#main .archive-table table th.minor-heading,
#main .archive-table table td.minor-heading {
  position: sticky;
  left: 160px;
  width: 200px;
  text-align: left;
  background: #FFFFFF;
}
#main .archive-table table th.main-heading,
#main .archive-table table th.sub-heading,
#main .archive-table table th.minor-heading {
  text-align: center;
  background: #666666;
}
#main .archive-table table td.main-heading {
  border-left: 1px solid #333333;
}

#main .archive-table table td > a {
  font-size: 154%;
  text-decoration: none;
}
#main .archive-table table td > a:hover {
  opacity: 0.6;
}

#main .archive-table table td.strikethrough {
  font-size: 154%;
  color: rgba(0, 0, 0, 0.6);
}

#main .archive-table table .faded-text {
  color: rgba(0, 0, 0, 0.5);
}

/* 後ろから選択 */
#main .archive-table table td:nth-last-child(-n+10) > a {
  color: #8AB4F9;
}
#main .archive-table table td:nth-last-child(11) > a {
  color: #0D59DA;
}
#main .archive-table table td:nth-last-child(12) > a{
  color: #0A3C91;
}

/* tableのth分の高さ調整 */
#main .archive-table table td#item-87 {
  padding-top: 30px;
  padding-bottom: 30px;
}

a[href$="pdf"] {
  padding-right: 0%;
}

a[href$="pdf"]:after {
  content: none;
}

@media screen and (max-width: 764px) {

  #main .archive-table {
    width: 95%;
    margin: 0 auto;
    height: 80dvh;
  }
  #main .archive-table table {
    margin-bottom: 50px;
  }
  #main .archive-table table th.minor-heading,
  #main .archive-table table td.minor-heading {
    width: 100px;
  }
}
