@charset "UTF-8";
.staff-team  {
  padding-top: 76px;
}

.staff-heading  {
  text-align: center;
}

.staff-heading h1  {
  color: #0a9fda;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
}

.staff-heading p  {
  margin-top: 14px;
  font-size: 16px;
  line-height: 23px;
}

.staff-list  {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 79px 48px;
  max-width: 1176px;
  margin: 73px auto 0;
}

.staff-card  {
  display: block;
  flex: 0 0 calc((100% - 96px) / 3);
  min-width: 0;
  height: 323px;
  align-content: start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.staff-photo  {
  position: relative;
  display: block;
  height: 240px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

/* ホバー：Figmaどおり背景を60%に薄め、別ポーズの写真へ0.3秒でフェード */
.staff-photo::before  {
  position: absolute;
  inset: 0;
  background: linear-gradient(146.4deg, #1782e5 28.991%, #03b9d8 59.425%);
  content: "";
  transition: opacity .3s cubic-bezier(.42, 0, .58, 1);
}

.staff-photo img  {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s cubic-bezier(.42, 0, .58, 1);
}

.staff-photo .photo-hover  {
  opacity: 0;
}

.staff-card:hover .staff-photo::before, .staff-card:focus-visible .staff-photo::before  {
  opacity: .6;
}

.staff-card:hover .staff-photo img, .staff-card:focus-visible .staff-photo img  {
  opacity: 0;
}

.staff-card:hover .staff-photo .photo-hover, .staff-card:focus-visible .staff-photo .photo-hover  {
  opacity: 1;
}

.staff-english  {
  position: absolute;
  bottom: 8px;
  left: 16px;
  color: #fff;
  font-family: "Baskervville", serif;
  font-size: 30px;
  line-height: 28px;
  text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

.staff-name  {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 24px;
  line-height: 34px;
}

.staff-role  {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 20px;
}

.staff-field  {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
}

.staff-banner  {
  max-width: 1180px;
  height: 720px;
  margin: 141px auto 110px;
}

.staff-banner > img  {
  width: 100%;
  height: 100%;
}

.staff-banner > span  {
  display: none;
}

@media (min-width: 761px) and (max-width: 1250px)  {
  .staff-list  {
    margin-right: 32px;
    margin-left: 32px;
    gap: 79px 24px;
  }
  .staff-card  {
    flex-basis: calc((100% - 48px) / 3);
  }
  .staff-photo  {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .staff-english  {
    left: 10px;
    font-size: clamp(18px, 2.4vw, 30px);
  }
  .staff-name  {
    gap: 8px;
    font-size: 20px;
  }
  .staff-role  {
    font-size: 12px;
  }
  .staff-banner  {
    width: calc(100% - 64px);
    height: auto;
    aspect-ratio: 1180 / 720;
  }
}

@media (max-width: 760px)  {
  .staff-team  {
    padding-top: 43px;
  }
  .staff-heading h1  {
    font-size: 22px;
    line-height: 26px;
  }
  .staff-heading p  {
    margin-top: 13px;
    line-height: 19px;
  }
  .staff-list  {
    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;
    width: calc(100% - 48px);
    max-width: 324px;
    margin-top: 40px;
  }
  .staff-card  {
    height: 299px;
  }
  .staff-photo  {
    height: 216px;
  }
  .staff-english  {
    left: 12px;
    bottom: 7px;
    font-size: 27px;
    line-height: 26px;
  }
  .staff-name  {
    gap: 14px;
    margin-top: 14px;
    line-height: 28px;
  }
  .staff-field  {
    margin-top: 8px;
  }
  /* 専門分野は「、」の区切りで改行する（語の途中で改行しない。長い区切りは途中改行を許す） */
  .staff-field > span  {
    white-space: nowrap;
  }
  /* 上の写真帯は元画像の縦横比のまま切り出す（background-size の高さは auto）。下の写真帯はSP専用画像（banner-sp-bottom.webp、393×117の4倍）。帯の高さは写真の高さに合わせる */
  .staff-banner  {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 393 / 414;
    margin: 61px 0 0;
    overflow: hidden;
    background: #03b9d8;
  }
  .staff-banner > img  {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .staff-banner > span  {
    position: absolute;
    display: block;
    background-image: url('../img/staff/banner.webp');
    background-repeat: no-repeat;
  }
  .banner-top  {
    top: 0;
    width: 100%;
    height: 25.5%;
    background-size: 147% auto;
    background-position: right top;
  }
  .banner-copy  {
    top: 25.5%;
    width: 100%;
    height: 44.6%;
    background-size: 220% 255%;
    background-position: 51% 50%;
  }
  .staff-banner > .banner-bottom  {
    bottom: 2%;
    width: 100%;
    height: 28.2%;
    background-image: url('../img/staff/banner-sp-bottom.webp');
    background-size: cover;
    background-position: center;
  }
}
