@charset "utf-8";
.staff {
  padding-top: 80px;
  padding-bottom: 100px;
}

@media screen and (min-width: 600px) {
  .staff {
    padding-top: 119px;
    padding-bottom: 150px;
  }
}

@media screen and (min-width: 768px) {
  .staff__inner.l-inner {
    max-width: calc(1182px + 40px * 2);
  }
}

.staff__container {
  position: relative;
}

.staff__container > .webgene-blog {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px 20px;
  justify-content: center;
  align-items: stretch;
}

@media screen and (min-width: 450px) {
  .staff__container > .webgene-blog {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 600px) {
  .staff__container > .webgene-blog {
    grid-template-columns: repeat(3, 1fr);
    gap: 70px 30px;
  }
}

@media screen and (min-width: 1200px) {
  .staff__container > .webgene-blog {
    grid-template-columns: repeat(4, 1fr);
  }
}

.staff__item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media screen and (min-width: 600px) {
  .staff__item {
    max-width: 273px;
  }
}

.staff__item-image {
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
}

.staff__item-image img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 273/340;
  object-fit: cover;
}

.staff__item-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.staff__item-row {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

/* @media screen and (min-width: 850px) {
  .staff__item-row {
    flex-direction: row;
    align-items: center;
  }
} */

.staff__item-title {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 26px;
  color: var(--sub-color);
}

.staff__item-label {
  color: var(--white-color);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 16px;
  background: var(--title-color);
  border-radius: 27px;
  padding: 2px 16px;
}

.staff__item-text {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.8;
  color: var(--sub-color);
  display: -webkit-box; /* Safariや古いChrome用 */
  -webkit-box-orient: vertical; /* 縦方向に配置 */
  overflow: hidden; /* はみ出した部分を隠す */
  -webkit-line-clamp: 2; /* 行数を2に制限 (Safari用) */
  line-clamp: 2;
}

.staff__container .webgene-pagination {
  justify-self: center;
  grid-column: 1 / -1;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
}
/* --------------------
detail
----------------------- */
.staff__detail {
  padding-top: 70px;
  position: relative;
}

@media screen and (min-width: 1080px) {
  .staff__detail {
    padding-top: 173px;
  }
}

.staff__detail::after {
  content: "";
  z-index: -1;
  position: absolute;
  width: 100%;
  aspect-ratio: 1366/1181;
  top: 508px;
  left: 0;
  background: #5d59b8;
}

@media screen and (min-width: 620px) {
  .staff__detail::after {
    aspect-ratio: 1366 / 806;
    top: 562px;
  }
}

@media screen and (min-width: 725px) {
  .staff__detail::after {
    aspect-ratio: 1366 / 615;
  }
}

@media screen and (min-width: 930px) {
  .staff__detail::after {
    aspect-ratio: 1366 / 535;
  }
}

@media screen and (min-width: 1080px) {
  .staff__detail::after {
    top: 308px;
    aspect-ratio: 1366/416;
    max-height: 416px;
  }
}

@media screen and (min-width: 768px) {
  .staff__detail-inner {
    max-width: calc(1150px + 40px * 2);
  }
}

.staff__detail-container .webgene-blog {
  text-align: center;
}

.staff__detail-contents {
  max-width: 994px;
  margin-inline: auto;
  display: flex;
  flex-direction: column-reverse;
  position: relative;
}

@media screen and (min-width: 1080px) {
  .staff__detail-contents {
    flex-direction: row;
  }
}

.staff__detail-contents-box {
  padding: 55px 25px 53px;
  background: var(--white-color);
  border-radius: 10px;
  width: 97%;
  align-self: flex-start;
  margin-top: -35px;
}

@media screen and (min-width: 620px) {
  .staff__detail-contents-box {
    margin-top: -46px;
    padding: 55px 60px 53px;
    width: 95%;
  }
}

@media screen and (min-width: 1080px) {
  .staff__detail-contents-box {
    margin-top: 0;
    max-width: 571px;
  }
}

.staff__detail-contents-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media screen and (min-width: 620px) {
  .staff__detail-contents-head {
    align-items: flex-end;
    flex-direction: row;
    gap: 26px;
  }
}

.staff__detail-contents-heading {
}

.staff__detail-contents-title-en {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 20px;
  color: var(--title-color);
}

.staff__detail-contents-title-ja {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 35px;
  color: var(--sub-color);
}

.staff__detail-contents-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.staff__detail-contents-label {
  max-width: 204px;
  color: var(--white-color);
  text-align: left;
  padding: 2px 15px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 16px;
  background: var(--title-color);
  border-radius: 27px;
}

.staff__detail-contents-year {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 20px;
  color: var(--text-sub-color);
}

.staff__detail-contents-table {
  margin-top: 45px;
}

.staff__detail-contents-table-row {
  border-bottom: 1px solid #8e9a9b;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 14px 0;
}

@media screen and (min-width: 620px) {
  .staff__detail-contents-table-row {
    flex-direction: row;
    padding-block: 14px;
  }
}

.staff__detail-contents-table-row:first-of-type {
  border-top: 1px solid #8e9a9b;
}

.staff__detail-contents-table-title {
  border-bottom: 1px solid #8e9a9b;
  padding-block: 11px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 20px;
  color: var(--text-sub-color);
  width: 90%;
  text-align: left;
  flex-shrink: 0;
}

@media screen and (min-width: 620px) {
  .staff__detail-contents-table-title {
    border-bottom: none;
    width: 124px;
  }
}

.staff__detail-contents-table-text {
  width: 90%;
  padding-block: 14px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 20px;
  color: var(--text-sub-color);
  text-align: left;
}

@media screen and (min-width: 620px) {
  .staff__detail-contents-table-text {
    width: 100%;
    border-left: 1px solid #8e9a9b;
    padding-inline: 39px 23px;
  }
}

.staff__detail-contents-image {
  aspect-ratio: 443/472;
  width: clamp(231px, 62vw, 443px);
  border-radius: 10px;
  overflow: hidden;
  align-self: flex-end;
}

@media screen and (min-width: 1080px) {
  .staff__detail-contents-image {
    right: 20px;
    top: -104px;
    position: absolute;
  }
}

.staff__detail-contents-image img {
  aspect-ratio: 443/472;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  position: relative;
}

.staff__detail-contents-image img::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 18px;
  background: url(../images/STAFF.png) no-repeat center center / contain;
  width: 83px;
  height: 278px;
  pointer-events: none;
}

.staff__detail-policy {
  margin-top: 140px;
  text-align: center;
  position: relative;
}

@media screen and (min-width: 416px) {
  .staff__detail-policy {
    margin-top: 218px;
  }
}

.staff__detail-policy::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: url(../images/staff-poricy.png) no-repeat center center / contain;
  width: clamp(
    248px,
    calc(248px + (348 - 248) * ((100vw - 375px) / (1366 - 375))),
    348px
  );
  aspect-ratio: 348/95;
  height: auto;
  pointer-events: none;
}

@media screen and (min-width: 768px) {
  .staff__detail-policy::after {
    top: -9px;
  }
}

.staff__detail-policy-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 37;
  color: var(--sub-color);
  line-height: 58px;
}

.staff__detail-policy-discription {
  margin-top: 50px;
  max-width: 776px;
  width: 100%;
  text-align: center;
  margin-inline: auto;
  position: relative;
}

@media screen and (min-width: 768px) {
  .staff__detail-policy-discription {
    margin-top: 75px;
  }
}

.staff__detail-policy-discription::before,
.staff__detail-policy-discription::after {
  content: "";
  position: absolute;
  width: clamp(
    20px,
    calc(20px + (30 - 20) * ((100vw - 375px) / (1366 - 375))),
    30px
  );
  aspect-ratio: 30/22;
}
.staff__detail-policy-discription::before {
  background: url(../images/staff-poricy-icon1.svg) no-repeat center
    center/contain;
  top: 0;
  left: 0;
}

.staff__detail-policy-discription::after {
  background: url(../images/staff-poricy-icon2.svg) no-repeat center
    center/contain;
  bottom: 0;
  right: 0;
}

.staff__detail-policy-discription span {
  font-size: clamp(18px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 0.06em;
  display: block;
  margin-left: 12px;
}

@media screen and (min-width: 768px) {
  .staff__detail-policy-discription span {
    margin-left: 69px;
  }
}

.staff__detail-policy-discription span + span {
  margin-top: 20px;
  margin-left: -28px;
  color: var(--sub-color);
}

.staff__detail-policy-text {
  margin-top: 45px;
  text-align: left;
  letter-spacing: 0.08em;
  line-height: 2.2;
}

.staff__detail__history {
  margin-top: 100px;
  margin-bottom: 100px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1000px) {
  .staff__detail__history {
    margin-top: 150px;
    margin-bottom: 152px;
    flex-direction: row;
    align-items: flex-start;
  }
}

.staff__detail__history-image {
  aspect-ratio: 501/743;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  width: 100%;
}
@media screen and (min-width: 1000px) {
  .staff__detail__history-image {
    margin-right: -25px;
    margin-top: 47px;
    aspect-ratio: 501/743;
    width: clamp(
      200px,
      calc(200px + (501 - 200) * ((100vw - 375px) / (1366 - 375))),
      501px
    );
  }
}

.staff__detail__history-image img {
  aspect-ratio: 501/743;
  object-fit: cover;
  width: 100%;
}

.staff__detail__history-box {
  border-radius: 10px;
  background: var(--white-color);
  padding: 80px 57px 80px 20px;
  width: 100%;
  position: relative;
}

@media screen and (min-width: 600px) {
  .staff__detail__history-box {
    padding: 80px 57px 80px 80px;
  }
}

@media screen and (min-width: 1000px) {
  .staff__detail__history-box {
    padding: 112px 94px 134px;
    max-width: 674px;
  }
}

.staff__detail__history-box::after {
  content: "";
  position: absolute;
  aspect-ratio: 83/389;
  width: clamp(
    45px,
    calc(45px + (83 - 45) * ((100vw - 375px) / (1366 - 375))),
    83px
  );
  background: url(../images/staff-history.svg) no-repeat center center/contain;
  bottom: 0;
  right: 0;
}

.staff__detail__history-title-en {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 20px;
  color: var(--title-color);
}

.staff__detail__history-title {
  text-align: left;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 35px;
}

.staff__detail__history-timeline {
  position: relative;
  margin-top: 70px;
}

.staff__detail__history-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 15px;
  left: 65px;
  width: 1px;
  background: #8e9a9b;
  z-index: 0;
}
@media screen and (min-width: 400px) {
  .staff__detail__history-timeline::before {
    bottom: 23px;
  }
}
@media screen and (min-width: 655px) {
  .staff__detail__history-timeline::before {
    bottom: 16px;
  }
}

@media screen and (min-width: 768px) {
  .staff__detail__history-timeline::before {
    left: 85px;
  }
}

.staff__detail__history-timeline-row {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  position: relative;
}

@media screen and (min-width: 768px) {
  .staff__detail__history-timeline-row {
    gap: 30px;
  }
}

@media screen and (min-width: 1200px) {
  .staff__detail__history-timeline-row {
    margin-bottom: 72px;
  }
}

.staff__detail__history-timeline-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  width: 55px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 21px;
  color: var(--sub-color);
}

.staff__detail__history-timeline-text {
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 21px;
  color: var(--text-sub-color);
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

@media screen and (min-width: 768px) {
  .staff__detail__history-timeline-text {
    gap: 54px;
    font-size: 15px;
  }
}

.staff__detail__history-timeline-text::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #5d59b8;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  padding-right: 12px;
  left: -6px;
  top: 0;
}
