/*----------------------------------------------------------*/
/* staff */
/*----------------------------------------------------------*/
#staff table {
  margin: 5px 0;
  width: 100%;
}
#staff table th {
  background: #f1f1f1;
}
#staff table th,
#staff table td {
  padding: 3px 3px;
  border: 1px #000000 solid;
  font-size: 0.75rem;
  font-weight: normal;
}

.mincho {
  font-family: "Noto Serif JP", serif;
}

#staff .category_ttl {
  font-size: min(4.5vw, 2.2em);
}
#staff ul.cont {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
#staff ul.cont li {
  position: relative;
  padding: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
  background-color: #fff;
  display: flex;
  flex-flow: column;
  container-type: inline-size;
}
#staff ul.cont li table {
  margin-top: auto;
}
#staff ul.cont li h4 {
  text-align: center;
  font-size: 1.3em;
  margin: 10px 0;
}
#staff ul.cont li p {
  font-size: 0.9em;
  margin-bottom: 1em;
}
#staff ul.cont li figure {
  width: 90%;
  margin: 0 auto;
}
#staff ul.cont li .staff_head h3,
#staff ul.cont li .staff_head .post {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: bold;
  position: absolute;
}
#staff ul.cont li .staff_head h3 {
  top: 20px;
  right: 20px;
  padding: 5px 0;
  background-color: rgba(177, 8, 8, 0.8);
  font-size: 5cqw;
  color: #fff;
  max-height: 40cqh;
}
#staff ul.cont li .staff_head .post {
  max-height: 40cqh;
  top: 20px;
  left: 20px;
}
#staff ul.cont li .staff_head .post dl {
  display: flex;
  letter-spacing: 3px;
  justify-content: center;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 20px 10px;
  border: 2px solid #fff;
  position: relative;
}
#staff ul.cont li .staff_head .post dl::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid #fff;
  pointer-events: none;
}
#staff ul.cont li .staff_head .post dl dt {
  font-size: 4cqw;
}
#staff ul.cont li .staff_head .post dl dd {
  margin-top: 0.2em;
  font-size: 8cqw;
}
#staff ul.cont li.w50 {
  width: 48%;
  margin: 0 auto 10px auto;
}
#staff ul.cont li.w30 {
  width: 32%;
}
#staff ul.cont li.w30 table th,
#staff ul.cont li.w30 table td {
  font-size: 0.7em;
}
#staff ul.cont li.w25 {
  width: 24%;
}
#staff ul.cont li.w25 table th,
#staff ul.cont li.w25 table td {
  font-size: 0.5em;
}
#staff ul.cont li.w25 p {
  font-size: 0.8em;
}
#staff ul.cont li.w25 .post dl dd {
  font-size: 6cqw;
}

@media only screen and (max-width: 767px) {
  .vertical {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
  }
  #staff table tr {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-collapse: separate;
    border-spacing: 0;
  }
  #staff table tr th {
    grid-column: 1;
    border-top: 0 !important;
    border-left: 0 !important;
  }
  #staff table tr td {
    grid-column: 2;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    display: flex;
    align-items: center;
  }
  #staff ul.cont {
    margin: 10px 0 10px 0;
  }
  #staff ul.cont li {
    padding: 10px;
  }
  #staff ul.cont li.w50 {
    width: 60%;
  }
  #staff ul.cont li.w25 {
    width: 32%;
  }
  #staff ul.cont li .staff_head h3 {
    top: 10px;
    right: 10px;
  }
  #staff ul.cont li .staff_head .post {
    top: 10px;
    left: 10px;
  }
  #staff ul.cont li .staff_head .post dl {
    padding: 15px 5px;
  }
}
@media only screen and (max-width: 580px) {
  #staff ul.cont {
    margin: 5px 0 5px 0;
  }
  #staff ul.cont li {
    padding: 10px;
  }
  #staff ul.cont li.w50 {
    width: 100%;
  }
  #staff ul.cont li.w30, #staff ul.cont li.w25 {
    width: 49%;
  }
  #staff ul.cont li .staff_head h3 {
    top: 10px;
    right: 10px;
  }
  #staff ul.cont li .staff_head .post {
    top: 10px;
    left: 10px;
  }
  #staff ul.cont li .staff_head .post dl {
    padding: 15px 5px;
  }
}