/* p-department
---------------------------------------------------------------------------- */
.p-department {
  margin-top: 12.5rem;
}

.p-department-ttl {
  display: inline-block;
}

.p-department-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 4.2rem;
  margin-top: 5rem;
}

.p-department-card {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  height: 100%;
}

.p-department-card-img {
  width: 100%;
  aspect-ratio: 372/230;
}
.p-department-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-department-card-ttl {
  font-size: 3rem;
  line-height: 1.4666666667;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #185FA5;
  text-align: center;
}

.p-department-card-txt {
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.05em;
  font-weight: 400;
  margin-top: 1.8rem;
}

.p-department-items {
  margin-top: 12.5rem;
}

@media screen and (max-width: 767px) {
  .p-department {
    padding-inline: 5.3333333333vw;
    margin-top: 21.3333333333vw;
  }
  .p-department-cards {
    grid-template-columns: 1fr;
    gap: 16vw;
    margin-top: 8.8vw;
  }
  .p-department-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8vw 8vw;
  }
  .p-department-card-img {
    width: 61.3333333333vw;
    aspect-ratio: 230/182;
  }
  .p-department-card:nth-child(odd) .p-department-card-img {
    order: 1;
    clip-path: polygon(0 0, 100% 0%, calc(100% - 15.2vw) 100%, 0% 100%);
    margin-left: -10.6666666667vw;
  }
  .p-department-card:nth-child(even) .p-department-card-img {
    order: 2;
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 15.2vw 100%);
    margin-right: -10.6666666667vw;
  }
  .p-department-card-body {
    display: contents;
  }
  .p-department-card-ttl {
    font-size: 6.4vw;
    line-height: 1.4583333333;
    letter-spacing: 0.2em;
    color: #222;
    width: max-content;
    position: relative;
  }
  .p-department-card:nth-child(odd) .p-department-card-ttl {
    order: 2;
    padding-right: 5.3333333333vw;
  }
  .p-department-card:nth-child(odd) .p-department-card-ttl::after {
    left: 0;
  }
  .p-department-card:nth-child(even) .p-department-card-ttl {
    order: 1;
    padding-left: 5.3333333333vw;
  }
  .p-department-card:nth-child(even) .p-department-card-ttl::after {
    right: 0;
  }
  .p-department-card-ttl._01::after {
    background-color: #FFFF96;
  }
  .p-department-card-ttl._02::after {
    background-color: #B6FF96;
  }
  .p-department-card-ttl._03::after {
    background-color: #ACEFFF;
  }
  .p-department-card-ttl::after {
    content: "";
    position: absolute;
    bottom: 0;
    z-index: -1;
    width: 30.6666666667vw;
    height: 5.3333333333vw;
  }
  .p-department-card-txt {
    order: 3;
    grid-column: span 2;
    font-size: 4vw;
    line-height: 1.4666666667;
    margin-top: initial;
  }
  .p-department-items {
    margin-top: 21.3333333333vw;
  }
}
/* p-person
---------------------------------------------------------------------------- */
.p-person {
  padding-bottom: 11rem;
  margin-top: 13rem;
}

.p-person-ttl {
  display: inline-block;
}

.p-person-cards {
  margin-top: 5rem;
}

.p-person-buttons {
  margin-top: 5rem;
}

@media screen and (max-width: 767px) {
  .p-person {
    padding-bottom: 16vw;
    padding-inline: 5.3333333333vw;
    margin-top: 20vw;
  }
  .p-person-cards {
    margin-top: 9.3333333333vw;
  }
  .p-person-buttons {
    margin-top: 9.3333333333vw;
  }
}
