@charset "utf-8";

main {
  font-family: fot-tsukubrdgothic-std, sans-serif;
  font-weight: bold;
  font-size: 17px;
}

#staff p {
  margin: 40px 0 120px;
  text-align: center;
}

.staff-content {
  display: flex;
  flex-wrap: wrap;
  column-gap: 4%;
  row-gap: 50px;
}

.staff-content .staff-item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 48%;
}

.staff-content .staff-item:nth-of-type(odd) {
  margin-top: 20px;
  margin-bottom: -20px;
}


.staff-item img {
  width: 100%;
  height: 70%;
  border-radius: 15px;
}

.staff-content .staff-item:after {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  background-image: url(../images/rec-work/staff-deco1.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  right: 0;
}

.staff-content .staff-item.deco2:after {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  background-image: url(../images/rec-work/staff-deco2.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  right: 0;
}

.staff-content .staff-item.deco3:after {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  background-image: url(../images/rec-work/staff-deco3.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  right: 0;
}

.staff-content h3 {
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  margin: 20px 0 0;
}

.rec .detail-link {
  width: 100%;
}

@media screen and (min-width:992px) {
  .staff-content {
    column-gap: 20px;
    justify-content: space-between;
  }

  .staff-content .staff-item {
    width: calc(33.333% - 20px);
  }

  .staff-content .staff-item:nth-of-type(odd) {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .staff-content .staff-item:nth-of-type(3n +1) {
    margin-top: 40px;
    margin-bottom: -40px;
  }

  .staff-content .staff-item:nth-of-type(3n +2) {
    margin-top: 20px;
    margin-bottom: -20px;
  }

  /* .staff-content .staff-item:nth-of-type(3) {
    margin-top: 0;
  } */

}