.age-grade_section_table{
  padding-bottom: 50px;
}

.age-grade_table {
  border-radius: 16px 16px 0 0;
  border: 1px solid #D1D1D1;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.age-grade_table table thead th {
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 1.44;
  text-align: center;
  color: #fff;
  background: #00A23F;
  height: 76px;
  vertical-align: middle;
}
.age-grade_table table thead th:nth-child(1){
  width: 180px;
}

.age-grade_table table thead th > .inr {
  position: relative;
  height: 36px;
  white-space: wrap;
  padding: 0 1em;
  padding-top: 5px;
}

.age-grade_table table thead th > .inr sup{
  font-size: 1.2rem;
  padding-left: 0;
  display: inline-block;
  transform: translateY(-5px);
}

.age-grade_table table thead th > .inr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 36px;
  width: 1px;
  background: #fff;
}

.age-grade_table table thead th:last-child > .inr::after {
  display: none;
}

.age-grade_table table thead th:first-child > .inr::after {
  display: block;
}

.age-grade_table table tbody th {
  vertical-align: middle;
  position: relative;
  background: #fff;
}

.age-grade_table table tbody th .inr{
  height: 100%;
}

.age-grade_table table tbody th .inr::after{
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: #4198CE;
}

.age-grade_table table tbody .u15 th .inr::after{
  background: #E84224;
}

.age-grade_table table tbody .u18 th .inr::after{
  background: #4FB73E;
}

.age-grade_table table tbody .u19 th .inr::after{
  background: #EEC32B;
}

.age-grade_table table tbody th .inr .img img {
  width: 56px;
  margin-bottom: 12px;
}

.age-grade_table table tbody th .inr .img .en {
  font-size: 3.2rem;
  line-height: 1;
  font-family: var(--sub);
  margin-bottom: 10px;
}

.age-grade_table table tbody th .inr .img .jp {
  font-size: 1.6rem;
  line-height: 1;
}

.age-grade_table table tbody th {
  border: 1px solid #D1D1D1;
  padding: 25px 0;
}

.age-grade_table table tbody td {
  border: 1px solid #D1D1D1;
  text-align: center;
  padding:5px 14px;
  height: 73px;
  vertical-align: middle;
  background: #fff;
}

.age-grade_table table tbody th:nth-child(1){
  border-left: 0;
}

.age-grade_table table tbody td:last-child{
  text-align: left;
  border-right: 0;
}

.age-grade_table table tbody td .fs18 {
  font-size: 1.8rem;
  line-height:1.3;
  display: block;
  font-weight: bold;
}

.age-grade_table table tbody td .fs16 {
  font-size: 1.6rem;
  line-height:1.5;
  font-weight: bold;
  display: block;
}
.age-grade_table table tbody td .fs14 {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.5;
  display: block;
}
.age-grade_table table tbody td .fs12 {
  font-size: 1.2rem;
  display: block;
  font-weight: bold;
  line-height: 1.5;
}

@media screen and (max-width: 1200px) {
  
  .age-grade_table table tbody td .fs18 {
    font-size: 1.5vw;
  }

  .age-grade_table table tbody td .fs16 {
    font-size: 1.3vw;
  }

  .age-grade_table table tbody td .fs14 {
    font-size: 1vw;
  }

  .age-grade_table table tbody td .fs12 {
    font-size: 0.9vw;
  }

}

@media screen and (max-width: 1100px) {
  .sticky{
    position: sticky !important;
    left:0;
    top:0;
    z-index: 10;
  }

  .age-grade_table table thead th .inr {
    height: 76px;
    padding-top: 25px;
    background: #00A23F;
  }

  .age-grade_table table thead th:not(:last-child) > .inr::after {
    top: 12px;
    padding-top: 20px;
  }

  .age-grade_table {
    overflow-x: scroll;
  }

  .age-grade_table table{
    width: 1100px;
  }

  .age-grade_table table tbody td .fs18 {
    font-size: 1.6rem;
    line-height:1.3;
    display: block;
    font-weight: bold;
  }

  .age-grade_table table tbody td .fs16 {
    font-size: 1.4rem;
    line-height:1.5;
    font-weight: bold;
    display: block;
  }
  .age-grade_table table tbody td .fs14 {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.5;
    display: block;
  }
  .age-grade_table table tbody td .fs12 {
    font-size: 1rem;
    display: block;
    font-weight: bold;
    line-height: 1.5;
  }
}

@media screen and (max-width: 768px) {

  .age-grade_table table thead th .inr {
    height: 58px;
    padding-top: 19px;
  }

  .age-grade_table {
    border-radius: 10px 10px 0 0;
    overflow-x: scroll;
  }

  .age-grade_table table thead th {
    font-size: 1.8rem;
    height: 58px;
  }

  .age-grade_table table tbody th{
    padding: 15px 0;
  }
    
  .age-grade_table table tbody th .inr::after{
    width: 4px;
  }

  .age-grade_table table thead th:nth-child(1) {
    width: 100px;
  }

  .age-grade_table table tbody td {
    padding: 5px 5px;
    height: 54px;
  }

  .age-grade_table table tbody th .inr .img img {
    width: 40px;
    margin-bottom: 8px;
  }

  .age-grade_table table tbody th .inr .img .en {
    font-size: 2.4rem;
    margin-bottom: 5px;
  }

  .age-grade_table table thead th {
    font-size: 1.4rem;
  }

  .age-grade_table table tbody th .inr .img .jp {
    font-size: 1.4rem;
    line-height: 1;
  }

  .age-grade_table table tbody td .fs18 {
    font-size: 1.6rem;
  }

  .age-grade_table table tbody td .fs16 {
    font-size: 1.5rem;
  }

  .age-grade_table table tbody td .fs14 {
    font-size: 1.2rem;
  }

  .age-grade_table table tbody td .fs12 {
    font-size: 1rem;
  }

}

