.modelyear {
  width: 1800px;
}

.grade-selection-container {
  padding: 10px 40px 15px 40px;
  margin: auto;
  width: 1800px;
  font-weight: bold;
}
.grade-selection-container .grade-selection-item {
  display: flex;
  flex-wrap: wrap;
}
ul.grade-selection-item li:first-child {
  padding-left: 0;
  font-weight: normal;
}
ul.grade-selection-item li {
  padding-right: 25px;
}
#pr-fixed-table-origin {
  display: block;
  overflow: auto;
  height: 800px;
  border-top: 1px solid red;
  max-width: 1802px;
}
ul.grade-selection-item li input {
  margin-right: 5px;
  accent-color: #E70012;
  cursor: pointer;
}
ul.grade-selection-item li label {
  cursor: pointer;
}
#pr-fixed-table {
  border-collapse: separate;
  width: 100%;
}

#pr-fixed-table::before {
  display: none;
}

#pr-fixed-table td, #pr-fixed-table th {
  border: none;
  border-bottom: 1px solid #313131;
  border-left: 1px solid #313131;
}

#pr-fixed-table thead > tr > th:first-child, #pr-fixed-table tbody > tr > td:first-child {
  border-bottom: 1px solid #313131;
  border-left: 1px solid #313131;
}


/* 固定TOP 1行目*/
table#pr-fixed-table thead .item_title:nth-child(1) th {
  position: sticky;
  top: 0px;
  z-index: 5;
}

/* 固定TOP 2,3,4行目*/
table#pr-fixed-table thead .item_title:nth-child(2) th,
table#pr-fixed-table thead .item_title:nth-child(3) th,
table#pr-fixed-table thead .item_title:nth-child(4) th,
table#pr-fixed-table thead .item_title:nth-child(5) th  {
  position: sticky;
  z-index: 5;
}

/*列固定左 */
tr.row td.cell-bk {
  position: sticky;
  left: 0px;
  border-left: none;
  border-collapse: separate;
}

/*擬似要素　固定TOP透過ボーダー用*/
table#pr-fixed-table thead .item_title th::before {
  top:0px;
  left: 0;
  width: 100%;
  height: 100%;
  border-right: 1px solid #313131;
  border-top: 1px solid #313131;
  z-index: -1;
}

/*擬似要素　列固定左透過ボーダー用*/
tr.row td.cell-bk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-right: 1px solid #313131;
  z-index: -1;
}

/*[品名]固定*/
.celltop {
  z-index: 10 !important;
}

/*枠外文字改行*/
table thead tr th {
  overflow-wrap: break-word;
}



/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 75%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
  z-index: 110;
}

/*モーダル本体の擬似要素の指定*/
.modal-container:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  z-index: 50;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active {
  opacity: 1;
  visibility: visible;
  animation: bgOpenAnime 0.8s ease;
}

@keyframes bgOpenAnime {

  /* フェードイン */
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

/*モーダル枠の指定*/
.modal-body {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 950px;
  width: 90%;
}

/*モーダルを閉じるボタンの指定*/
.modal-close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 12;
}

/*モーダル内のコンテンツの指定*/
.modal-content {
  background: #fff;
  text-align: left;
  padding: 30px;
  line-height: 1.5;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #000;
}

.modal-content ul li {
  text-indent: -2em;
  margin: 0 2em;
  font-size: 13px;
  padding: 0.3em 2em;
  line-height: 1.5;
}

/*モーダル内注釈選択時の背景色*/
.modal-content ul li.bgcolor {
  background-color: #ffe6e6;
}

div.modal-open:link {
  padding: 0 2px;
    color: #dc143c;
    text-decoration: underline;
    font-size: 13px;
    font-weight: bold;
  }
  
  div.modal-open:link:hover {
  opacity: 0.7;
  }

  table {
    table-layout: fixed;
    border-collapse: collapse;
  }

/*行と列の色*/
td.rowhover:not(.cell-bk) {
	background: #eeeeee!important;
} 

/*行と列の色*/
td.colhover:not(.cell-bk) {
	background: #eeeeee!important;
} 

/*マウスポインタの色*/
td.hovercell:not(.cell-bk) {
  background:#d9d9d9!important;
}


.modal-open{
  display: inline-block;
	margin: auto;
	cursor: pointer;
}

#pr-fixed-table div.modal-open {
  color: #FF0000;
}

#pr-fixed-table-origin #pr-fixed-table thead {
  pointer-events: none;
}