@charset "UTF-8";
/*menu style*/
.results_menu {
  font-size: 20px;
  display: flex;
  justify-content: center;
  margin: auto;
}
.year_selected {
  display: flex;
  align-items: center;
  font-size: 30px;
  margin-top: 15px;
  margin-bottom: 15px;
}
.category {
  list-style: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  margin: 15px;
}
.year_menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 500px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
}
.year {
  list-style: none;
  color: rgb(0, 0, 169);
  padding: 0;
}
.category :hover,
.year :hover {
  font-weight: 600;
  text-decoration: underline;
}

/*scroll top*/
#scrollToTop {
  font-size: 20px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: rgb(133, 2, 62);
  width: auto;
  height: auto;
  color: whitesmoke;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}
#scrollToTop:hover {
  background-color: rgb(105, 3, 49);
}

/*results contents style*/
main {
  max-width: 800px;
  margin: auto;
}
.match-category {
  font-size: 25px;
  text-align: center;
  color: white;
  background-color: rgb(133, 2, 62);
  padding-top: 5px;
  padding-bottom: 5px;
  margin-top: 10px;
  margin-bottom: 20px;
}
.match-title {
  font-size: 20px;
  line-height: 1.7;
}
.match-title-sub {
  font-size: 17px;
  line-height: 1.4;
}
.j {
  width: 600px;
  margin: auto;
}
.final-result {
  font-size: 17px;
  color: red;
  margin-top: 5px;
  margin-bottom: 25px;
}
.match-title,
.match-title-sub,
.final-result {
  text-align: left;
  width: 600px;
  margin-left: auto;
  margin-right: auto;
}
h6 {
  font-size: 17px;
  margin-top: 0;
}

/*団体戦*/
.results {
  display: flex;
  border-collapse: collapse;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
}
.results th, 
.results td {
  border: 1px solid rgb(218, 218, 218);
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 7px;
  padding-bottom: 7px;
  text-align: center;
}
.results tr:nth-child(1) {
  background-color: #fffacd; 
}
.results tr:nth-child(even) {
  background-color: rgb(250, 250, 250);
}
.total {
  width: 80px;
}
.worl {
  width: 30px;
}
.univ {
  width: 140px;
}
.score {
  width: 135px;
}


/*個人戦*/
.members {
  display: flex;
  width: 600px;
  margin: auto;
  justify-content: left;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 50px;
}
.sord {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
}
.name {
  font-size: 16px;
  line-height: 1.4;
}
.results-kojin {
  border-collapse: collapse;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
}
.results-kojin th, 
.results-kojin td {
  border: 1px solid rgb(218, 218, 218);
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 7px;
  padding-bottom: 7px;
  text-align: center;
}
.table-title {
  font-size: 16px;
  font-weight: 500;
  background-color: #fffacd;
  padding-top: 3px;
  padding-bottom: 2px;
}
.results-kojin td:nth-child(1),
.results-kojin td:nth-child(5) {
  width: 30px;
}
.results-kojin td:nth-child(2),
.results-kojin td:nth-child(4) {
  width: 150px;
}
.results-kojin td:nth-child(3) {
  width: 135px;
}



@media screen and (max-width: 640px) {
  main {
    width: 98%;
    margin: auto;
  }
  table {
    width: 100%;
    font-size: 3vw;
  }
  .match-title,
  .match-title-sub,
  .final-result {
    text-align: left;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .members {
    width: 100%;
  }
  .j {
    width: 100%;
  }
  .team-or-indivi,
  .year-to-choose {
    width: 95%;
  }
  .selected-year {
    font-size: 5vw;
  }
  .category {
    font-size: 3.8vw;
  }
  .year {
    font-size: 3.6vw;
  }
  .match-category {
    font-size: 5vw;
    text-align: left;
    padding-left: 7px;
  }
  .match-title,
  .match-title-sub {
    font-size: 4vw;
    margin-left: 7px;
  }
  .final-result {
    font-size: 4vw;
    margin-left: 7px;
  }
}