.p-staff-page {
  color: var(--color-contrast);
  overflow: hidden;
}

.p-staff-page-hero {
  padding-top: 40px;
}

.p-staff-page-hero__visual {
  position: relative;
  display: flex;
  width: min(calc(100% - 120px), 1160px);
  height: 340px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.p-staff-page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-staff-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 20%);
}

.p-staff-page-hero__heading {
  position: relative;
  color: var(--color-base);
  font-weight: 700;
  text-align: center;
}

.p-staff-page-hero__heading h1 {
  color: var(--color-base);
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.p-staff-page-hero__heading p {
  margin-top: 17px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.p-staff-page-breadcrumb {
  display: flex;
  width: min(calc(100% - 180px), 1100px);
  margin: 0 auto;
  padding-top: 12px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
}

.p-staff-page-breadcrumb a {
  color: var(--color-contrast-light);
}

.p-staff-page__main {
  display: flex;
  flex-direction: column;
  padding: 80px 0 160px;
  gap: 160px;
}

.p-staff-director,
.p-staff-list {
  width: min(calc(100% - 80px), 1000px);
  margin: 0 auto;
}

.p-staff-director__heading,
.p-staff-list__heading {
  margin-bottom: 60px;
}

.p-staff-director__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.p-staff-director__body,
.p-staff-director__image-wrap {
  width: 460px;
}

.p-staff-director__body {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.p-staff-director__message {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-staff-director__message h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
}

.p-staff-director__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.p-staff-director__signature {
  align-self: flex-end;
  text-align: right;
}

.p-staff-director__profiles {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.p-staff-director__profile {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-staff-director__profile h3,
.p-staff-group__title {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-contrast);
  color: var(--color-contrast);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.p-staff-director__profile dl,
.p-staff-director__profile ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.p-staff-director__profile dl > div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
}

.p-staff-director__image-wrap {
  height: 613px;
  overflow: hidden;
  border-radius: 20px;
  background: #ececec;
}

.p-staff-director__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-staff-gallery {
  width: 100%;
  overflow: hidden;
}

.p-staff-gallery__track {
  display: flex;
  transition-timing-function: linear !important;
}

.p-staff-gallery__slide {
  width: 305px;
  height: 229px;
  flex: none;
}

.p-staff-gallery__slide img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.p-staff-list__groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-staff-group {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-staff-group__grid {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  gap: 60px 80px;
}

.p-staff-card {
  display: flex;
  width: 280px;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.p-staff-card__image {
  width: 280px;
  height: 280px;
  border-radius: 20px;
  object-fit: cover;
}

.p-staff-card__name {
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.5;
  white-space: nowrap;
}

.p-staff-card__name p {
  font-size: 12px;
  letter-spacing: 0.08em;
}

.p-staff-card__name h3 {
  color: var(--color-contrast);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.p-staff-card__table {
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
}

.p-staff-card__table > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1px;
}

.p-staff-card__table dt,
.p-staff-card__table dd {
  display: flex;
  min-height: 55px;
  padding: 10px 20px;
  align-items: center;
}

.p-staff-card__table dt {
  background: var(--color-main-light);
}

@media (max-width: 1023px) {
  .p-staff-page-hero__visual {
    width: calc(100% - 80px);
  }

  .p-staff-director__body,
  .p-staff-director__image-wrap {
    width: calc(50% - 20px);
  }

  .p-staff-group__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px 40px;
  }

  .p-staff-card {
    width: 100%;
  }

  .p-staff-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 767px) {
  .p-staff-page-hero {
    padding-top: 20px;
  }

  .p-staff-page-hero__visual {
    width: calc(100% - 40px);
    height: 188px;
  }

  .p-staff-page-hero__heading h1 {
    font-size: 24px;
  }

  .p-staff-page-hero__heading p {
    margin-top: 12px;
    font-size: 12px;
  }

  .p-staff-page-breadcrumb {
    width: calc(100% - 40px);
    padding-top: 10px;
    font-size: 11px;
  }

  .p-staff-page__main {
    padding: 60px 0 100px;
    gap: 100px;
  }

  .p-staff-director,
  .p-staff-list {
    width: calc(100% - 40px);
  }

  .p-staff-director__heading,
  .p-staff-list__heading {
    margin-bottom: 40px;
  }

  .p-staff-director__content {
    flex-direction: column;
    gap: 30px;
  }

  .p-staff-director__body,
  .p-staff-director__image-wrap {
    width: 100%;
  }

  .p-staff-director__body {
    display: contents;
  }

  .p-staff-director__message {
    gap: 24px;
    order: 1;
  }

  .p-staff-director__message h2 {
    font-size: 20px;
  }

  .p-staff-director__image-wrap {
    height: auto;
    aspect-ratio: 3 / 4;
    order: 2;
  }

  .p-staff-director__profiles {
    gap: 24px;
    order: 3;
  }

  .p-staff-gallery {
    overflow: hidden;
  }

  .p-staff-gallery__slide {
    width: 240px;
    height: 180px;
  }

  .p-staff-gallery__slide img {
    border-radius: 12px;
  }

  .p-staff-list__groups {
    gap: 60px;
  }

  .p-staff-group {
    gap: 30px;
  }

  .p-staff-group__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .p-staff-card {
    max-width: 335px;
    margin: 0 auto;
  }

  .p-staff-card__name h3 {
    font-size: 17px;
  }

  .p-staff-card__table {
    font-size: 13px;
  }
}
