/* スタッフページに関するスタイルを記述します。 */
main {
  background-color: #FFF9F4;
  overflow-x: hidden;
}

p {
  color: #3f3b3a;
}

/*メイン画像の設定*/
.staff-main {
  max-width: 144rem;
  margin: 0 auto;
  width: 100%;
}

.mainvisual .mainimg-pc {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.mainvisual img {
  width: calc(100% / 3);
  max-width: 100%;
  height: auto;
  margin-bottom: 4rem;
  z-index: 5;
  position: relative;
  opacity: 0;
  transform: translateX(5rem);
  animation: fadeInRight 0.6s ease-out both;
}

.mainvisual img:nth-child(1) {
  animation-delay: 0.1s;
}

.mainvisual img:nth-child(2) {
  animation-delay: 0.3s;
}

.mainvisual img:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.sp-comment {
  display: none;
}

.sp-stop {
  display: none;
}

.sp-img {
  display: none;
}

.mainimg-sp {
  display: none;
}

/*ページタイトル*/
.page-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.page-title h1,
.page-title p {
  animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title h1 {
  font-size: 10rem;
  font-family: "Zen Old Mincho", serif;
  font-weight: normal;
  color: #3f3b3a;
  letter-spacing: 10%;
  -webkit-text-stroke: 0.3rem black;
  paint-order: stroke;
}

.page-title p {
  font-size: 2.8rem;
  padding-bottom: 10rem;
  padding-top: 1rem;
  color: #3f3b3a;
  font-weight: bold;
}

.page-title .pc-border {
  display: block;
  width: 106.4rem;
  height: 0.2rem;
  background-color: #3f3b3a;
}

.page-title img {
  position: absolute;
  height: auto;
}

.page-title img:nth-of-type(1) {
  top: 45%;
  left: 20%;
  width: 13.3rem
}

.page-title img:nth-of-type(2) {
  top: 0;
  right: 10%;
  width: 18.8rem;
}

.page-title img:nth-of-type(3) {
  top: -10rem;
  left: -5rem;
  width: 20rem;
  z-index: 1;
  opacity: 0.4;
}

.page-title img:nth-of-type(4) {
  top: -30rem;
  right: -20rem;
  width: 50rem;
  z-index: 1;
  opacity: 0.4;
}

/*コメント*/
.comment {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 6.8rem 0;
}

.comment p {
  font-size: 3rem;
  font-family: 'Zen Old Mincho', serif;
  color: #3f3b3a;
}

.comment img {
  position: absolute;
}

.comment img:nth-child(2) {
  top: -5rem;
  right: 52rem;
  width: 5rem;
}

.comment img:nth-child(3) {
  top: -5rem;
  left: 10rem;
  width: 5.5rem;
}

.comment img:nth-child(4) {
  left: 15rem;
  opacity: 0.3;
  width: 2rem
}

.comment-sub {
  display: none;
}

/*紹介カード*/
.card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 9rem;
  max-width: 115rem;
  margin: 0 auto;
  padding: 3.2rem;
  background-color: #fff;
  border-radius: 3rem;
  box-shadow: 2.5rem 2.5rem 3rem rgba(200, 168, 168, 0.4);
  transform: translateY(3rem);
  transition: opacity 0.6s, transform 0.6s;
  opacity: 0;
  scroll-margin-top: 14rem;
}

.card.is-show {
  opacity: 1;
  transform: translateY(0);
}

#staff1,
#staff3 {
  background: linear-gradient(to right, #FF8D28 0%, #FF8D28 20%, #fff 20%, #fff 100%);
}

#staff2 {
  background: linear-gradient(to right, #Fff 0%, #Fff 80%, #FF8D28 80%, #FF8D28 100%);
  box-shadow: -2.5rem 2.5rem 3rem rgba(200, 168, 168, 0.4);
}

#mainimg {
  flex: 0 0 45rem;
}

#mainimg img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card .status {
  flex: 1;
  min-width: 40rem;
  padding: 0 3rem;
}

.status .job {
  color: #FF8D28;
  font-size: 2.8rem;
  margin-bottom: 3rem;
}

.status .staff-name {
  display: flex;
  align-items: baseline;
  font-size: 4rem;
}

.staff-name h2 {
  letter-spacing: 0.3rem;
}

.staff-name .kana {
  margin-left: 3rem;
  padding-top: 2rem;
  font-size: 2rem;
  letter-spacing: 15%;
  font-family: "Nothing You Could Do", cursive;
  color: #FF8D28;
}

.status .border {
  display: block;
  width: 100%;
  height: 0.2rem;
  background-color: #FF8D28;
  margin: 3.8rem 0;
}

.status .staff-concept {
  background-color: #ffe4cb;
  border-radius: 1rem;
  padding: 1.2rem 2rem;
  margin-top: 4rem;
  white-space: nowrap;
}

.staff-concept p {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin: 0;
  text-align: center;
}

.staff-concept p::after {
  content: "";
}

.staff-concept .sub-title {
  color: #FF8D28;
  font-size: 2.2rem;
  margin-right: auto;
}

/*カード下段*/
.card .thumbnails {
  width: 100%;
  display: flex;
  gap: 2rem;
  margin-top: 2.6rem;
}

.thumbnails .thumb {
  width: calc((100% - (2rem * 3)) / 4);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnails .thumb:hover {
  transform: translateY(-0.5rem);
}

/*カードの合間*/
.staff-footer-top {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 115rem;
  margin: 5rem auto 3rem;
  width: 100%;
  min-height: 10rem;
  top: -2.5rem;
}

.img-up p {
  font-size: 2rem;
  font-family: "Yomogi", serif;
  margin: 0;
  text-align: center;
}

.img-up.right {
  position: absolute;
  right: 0;
}

.next-staff {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
}

.next-staff span {
  display: inline-block;
  width: 0;
  height: 0;
  margin-top: 0.6rem;
  border-left: 1.5rem solid transparent;
  border-right: 1.5rem solid transparent;
  border-top: 1.5rem solid #333;
}

.staff-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 115rem;
  margin: 0 auto 10rem;
  width: 100%;
}

.staff-footer-bottom .border {
  flex: 0 0 80%;
  height: 0.2rem;
  background-color: #333;
}

.staff-footer-bottom img {
  flex: 1;
  max-width: 10rem;
  height: auto;
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(-5deg);
  }

  50% {
    transform: rotate(5deg);
  }
}

.staff-footer-bottom img {
  animation-name: sway;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.page-start {
  display: block;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 4rem;
  font-size: 2.2rem;
}


@media screen and (max-width: 699.98px) {
  .mainimg-pc {
    display: none !important;
  }

  .mainimg-sp {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    padding: 0;
  }

  .sp-comment {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 8rem 0 0 0;
  }

  .sp-comment p {
    font-size: 1.6rem;
    font-family: 'Zen Old Mincho', serif;
  }

  .sp-comment img {
    position: absolute;
  }

  .sp-comment img:nth-child(2) {
    top: -3rem;
    left: 7rem;
    transform: rotate(-15deg);
    width: 2rem;
  }

  .comment {
    display: none;
  }

  .page-title span {
    animation: floatUp 0.8s ease-out forwards;
  }

  @keyframes floatUp {
    0% {
      opacity: 0;
      transform: translateY(2rem);
    }

    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .page-title .pc-border {
    display: none;
  }

  .page-title img:nth-of-type(1) {
    top: 15rem;
    left: 3rem;
    width: 6.7rem;
  }

  .page-title img:nth-of-type(2) {
    top: -10rem;
    right: 7rem;
    width: 7rem;
  }

  .page-title img:nth-of-type(3) {
    top: 5rem;
    left: 34rem;
    width: 2rem;
  }

  .page-title img:nth-of-type(4) {
    top: -40rem;
    right: -25rem;
  }

  .page-title h1 {
    font-size: 6.4rem;
    margin: 1rem 0;
  }

  .page-title p {
    margin: 1rem 0;
  }

  .sp-border {
    display: block;
    background-color: #3f3b3a;
    height: 0.2rem;
    width: 25rem;
  }

  .comment-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
  }

  .comment-sub p {
    font-family: "Yomogi", serif;
    font-size: 2rem;
    text-align: center;
  }

  .comment-sub img {
    max-width: 7rem;
    height: auto;
    animation: sway 2.5s ease-in-out infinite;
  }

  /*カード*/
  .card {
    flex-direction: column;
    padding: 0;
    gap: 2rem;
    margin: 0 3.5rem;
    background: #fff !important;
  }

  #mainimg {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    order: 1;
    text-align: center;
  }

  #mainimg img {
    max-width: 100%;
  }

  .sp-stop {
    display: block;
    position: absolute;
    width: 100.2%;
    opacity: 0.8;
    bottom: -6rem;
  }

  .sp-stop.stop2 {
    bottom: -6.7rem;
  }

  .sp-stop.stop3 {
    bottom: -8.3rem;
  }

  .sp-stop img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .card .status {
    width: 100%;
    min-width: auto;
    padding: 1rem;
    text-align: left;
    order: 2;
  }

  .status .job {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    margin-top: 5rem;
  }

  .status .staff-name {
    flex-direction: column;
    align-items: center;
    font-size: 2.8rem;
  }

  .staff-name .kana {
    margin-left: 0;
    padding-top: 0.5rem;
    font-size: 2rem;
  }

  .status .border {
    margin: 2rem auto;
  }

  .status .staff-concept {
    justify-content: center;
    margin-top: 2rem;
  }

  .thumbnails {
    position: relative;
    max-width: 30rem;
    height: 25rem;
    margin-top: 0 !important;
    margin: 0 auto 2.8rem;
    overflow: hidden;
    order: 3;
  }

  .thumbnails .thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4rem;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
  }

  .thumbnails .thumb.active {
    opacity: 1;
    z-index: 2;
  }

  /*カードの合間*/
  .img-up {
    display: none;
  }

  .next-staff {
    width: 5rem;
    height: 5rem;
  }

  .next-staff p {
    font-size: 0.8rem;
  }

  .next-staff span {
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    border-top: 1rem solid #333;
  }

  .staff-footer-bottom {
    display: none;
  }

  .staff-footer-top {
    text-align: center;
  }

  .staff-footer-top::before,
  .staff-footer-top::after {
    content: "";
    flex-grow: 1;
    height: 0.2rem;
    background-color: #3f3b3a;
  }

  .staff-footer-top::before {
    margin: 0 5rem 0 5rem;
  }

  .staff-footer-top::after {
    margin: 0 5rem 0 5rem;
  }

  .staff-footer-top.is-last {
    display: none;
  }

  .page-start {
    padding: 15rem 0;
  }

  .sp-img {
    display: block;
    position: relative;
  }

  .sp-img img {
    position: absolute;
  }

  .sp-img .last-img-left {
    top: -12rem;
    left: 10rem;
    width: 3.5rem;
  }

  .sp-img .last-img-right {
    top: -6rem;
    left: 15rem;
    width: 2rem;
    opacity: 0.6;
  }
}