@charset "utf-8";

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

.post-wrapper {
  margin-top: 60px;
}

.staff-img {
  position: relative;
}

.staff-img img {
  width: 100%;
}

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

.post-wrapper:nth-of-type(2) .staff-img:after {
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  background-image: url(../images/rec-staff-post/img-deco2.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  top: 88%;
  right: 0;
}

.post-wrapper:nth-of-type(3) .staff-img:after {
  content: none;
}

.post-wrapper h2 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  color: var(--rec-sub-color);
  margin: 40px 0;
  position: relative;
}

.post-wrapper h2:after {
  content: '';
  display: block;
  width: 30px;
  height: 30px;
  background-image: url(../images/rec-staff-post/midashi-deco1.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: 0;
  right: 10%;
}

.post-wrapper:nth-of-type(2) h2:after {
  content: none;
}

.post-wrapper:nth-of-type(3) h2:after {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  background-image: url(../images/rec-staff-post/midashi-deco2.png);
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -15px;
  right: 0;
}

.backBtn {
  background-color: var(--rec-sub-color);
}

@media screen and (min-width:992px) {
  .post-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 60px;
    margin-top: 120px;
  }

  .post-wrapper:nth-of-type(even) {
    flex-direction: row;
  }

  .post-wrapper .main-img {
    border-radius: 30px;
    overflow: hidden;
    flex: 1.5;
  }

  .post-wrapper>* {
    flex: 1;
  }

  .post-wrapper h2 {
    text-align-last: left;
  }

  .post-wrapper:nth-of-type(1) .staff-img:after {
    content: none;
  }

  .post-wrapper:nth-of-type(2) .staff-img:after {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    background-image: url(../images/rec-staff-post/img-deco1.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    top: 75%;
    right: -10%;
  }

  .post-wrapper:nth-of-type(3) .staff-img:before {
    content: '';
    display: block;
    width: 120px;
    height: 120px;
    background-image: url(../images/rec-staff-post/img-deco2.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    position: absolute;
    bottom: -5%;
    right: 2%;
  }

  .post-wrapper:nth-of-type(3) .staff-img:after {
    content: '';
    display: block;
    width: 150px;
    height: 150px;
    background-image: url(../images/rec-staff-post/img-deco3.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    position: absolute;
    top: 80%;
    left: -15%;
  }

  .post-wrapper:nth-of-type(1) h2:after {
    content: none;
  }

  .post-wrapper:nth-of-type(2) h2:after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background-image: url(../images/rec-staff-post/midashi-deco1.png);
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    bottom: 0;
    right: 0%;
  }

  .post-wrapper:nth-of-type(3) h2:after {
    bottom: 0;
    right: 28%;
  }

  .backBtn {
    width: 30%;
    margin: 160px auto 40px;
  }
}

@media screen and (min-width:1200px) {
  .post-wrapper:nth-of-type(3) h2:after {
    right: 38%;
  }
}