th:lang(en) {
  font: normal 1.0em/1.4 Verdana, 'MS PGothic', sans-serif;
}
td:lang(en), td:lang(ja) {
  font: normal 1.0em/1.4 Verdana, 'MS PGothic', sans-serif;
}
td:nth-child(1) {
  white-space: nowrap;
  text-align: center;
}
th:nth-child(2), td:nth-child(2) {
  text-align: center;
}
td:nth-child(2) {
  width: 2em;
}
th:nth-child(4) {
  text-align: left;
}
td:nth-child(4) {
  white-space: nowrap;
  text-align: left;
}
td:nth-child(5) {
  white-space: nowrap;
}
.students th, .students td {
  text-indent: 0;
  border-style: solid solid solid solid;
}
h3 {
  border-style: solid solid solid solid;
  border-color: #ffbb33;
}

@media screen {
  .students table {
    margin: 0.5em 10px 0.5em 20px;
    border-collapse: collapse;
    width: 670px;
  }
  .students th, .students td {
    border-width: 1px 1px 1px 1px;
    border-color: #eaeaea;
    padding: 3px 3px 3px 5px;
  }
  .students th {
    background: #ffffcc;
    border-color: #eaeaea #eaeaea #ffbb33 #eaeaea;
  }
  p.nav {
    padding: 1em 10px 5px 40px;
  }
  h3 {
    margin: 0 8px 0 20px;
    padding: 5px 0 0 10px;
    border-width: 0 0 2px 0;
  }
  th:nth-child(1), td:nth-child(1){
    width: 5em;
  }
  td:nth-child(3) {
    min-width: 15em;
  }
}
@media only screen and (max-width: 480px) {
  .students table {
    margin: 0.5em 1px 0.5em 3px;
    border-collapse: collapse;
    width: auto;
  }
  p.nav {
    text-align: left;
    padding: 1em 8px 0 10px;
  }
  th:nth-child(1), td:nth-child(1){
    display: none;
  }
  th:nth-child(2), td:nth-child(2){
    display: none;
  }
  td:nth-child(3) {
    min-width: 0;
  }
  h3 {
    margin: 0 3px 0 3px;
    padding: 5px 0 0 0;
  }
}
@media print {
  .students th, .students td {
    font-size: 10pt;
    border-width: 1pt 1pt 1pt 1pt;
    border-color: #e0e0e0;
    padding: 3px 5px 3px 5px;
  }
  h3 {
    border-width: 0 0 2pt 0;
  }
  .students table {
    margin: 0.5em auto 0.5em 3mm;
    border-collapse: collapse;
    width: 98%;
  }

}