/* ============================================================
   PEOPLE INDEX PAGE — 部門と人 一覧
   カンプ 03_toshin_people-index_v0 準拠
   アートボード 1920×7750.7px → ×0.667 で 1280px 基準
   ============================================================ */

/* ----------------------------------------------------------------
   1. HERO
   背景写真フルブリード、左下にテキスト
   カンプ: PERSON y=270, 部門と人 y=361
   ---------------------------------------------------------------- */
.pi-hero {
  position: relative;
  height: clamp(360px, 33.85vw, 650px);
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* sub-kv-reveal の z-index:3 上書きを防ぐため詳細度を上げる */
.pi-hero .pi-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pi-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.pi-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 65, 138, 0.3) 0%,
    rgba(0, 65, 138, 0.5) 100%
  );
}

.pi-hero__inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: calc(44rem / 16) clamp(48px, 5.9vw, 112px) 0;
}

.pi-hero__en {
  font-family: var(--en-font);
  font-size: clamp(calc(41rem / 16), 3.23vw, calc(62rem / 16));
  font-weight: 600;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
}

.pi-hero__ja {
  font-family: var(--jp-font);
  font-size: clamp(calc(14rem / 16), 1.25vw, calc(24rem / 16));
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-top: calc(8rem / 16);
  display: block;
}

/* ----------------------------------------------------------------
   2. DEPARTMENT SECTION — スプリットレイアウト
   左: テキストコンテンツ（スクロール）
   右: 写真（sticky — セクション内で追従）
   ---------------------------------------------------------------- */
.pi-dept {
  background-color: #ffffff;
}

.pi-dept__split {
  max-width: calc(1280rem / 16);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 45% 1fr;
}

/* ---- 左カラム: テキスト ---- */
.pi-dept__content {
  padding: calc(80rem / 16) calc(40rem / 16) calc(80rem / 16) calc(76rem / 16);
}

.pi-dept__title {
  font-family: var(--jp-font);
  font-size: calc(24rem / 16);
  font-weight: 500;
  line-height: calc(42rem / 16);
  letter-spacing: 0.2em;
  color: #231815;
  margin-bottom: calc(40rem / 16);
}

/* 役割 */
.pi-dept__role {
  margin-bottom: calc(48rem / 16);
}

.pi-dept__role-label {
  font-family: var(--jp-font);
  font-size: calc(16rem / 16);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #0063ae;
  margin-bottom: calc(16rem / 16);
}

.pi-dept__role-text {
  font-family: var(--jp-font);
  font-size: calc(14rem / 16);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.075em;
  color: #231815;
}

/* 主な業務内容 */
.pi-dept__tasks {
  margin-bottom: calc(60rem / 16);
}

.pi-dept__tasks-label {
  font-family: var(--jp-font);
  font-size: calc(13rem / 16);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #231815;
  margin-bottom: calc(32rem / 16);
  padding-bottom: calc(12rem / 16);
  border-bottom: 1px solid #e0e0e0;
}

.pi-dept__task {
  display: grid;
  grid-template-columns: calc(200rem / 16) 1fr;
  gap: calc(20rem / 16);
  margin-bottom: calc(40rem / 16);
  align-items: start;
}

.pi-dept__task:last-child {
  margin-bottom: 0;
}

.pi-dept__task-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.pi-dept__task-heading {
  font-family: var(--jp-font);
  font-size: calc(14rem / 16);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #0063ae;
  margin-bottom: calc(10rem / 16);
}

.pi-dept__task-text {
  font-family: var(--jp-font);
  font-size: calc(12rem / 16);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.075em;
  color: #231815;
}

/* この部門の社員 */
.pi-dept__members {
  margin-top: calc(60rem / 16);
  padding-top: calc(40rem / 16);
  border-top: 1px solid #e0e0e0;
}

.pi-dept__members-label {
  font-family: var(--jp-font);
  font-size: calc(18rem / 16);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #231815;
  margin-bottom: calc(24rem / 16);
}

.pi-dept__members-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(24rem / 16);
}

.pi-dept__members-grid--single {
  grid-template-columns: 1fr;
}

/* メンバーカード */
.pi-member-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pi-member-card__photos {
  position: relative;
  margin-bottom: calc(12rem / 16);
}

.pi-member-card__photo-main {
  width: 100%;
  display: block;
}

.pi-member-card__photo-sub {
  position: absolute;
  bottom: calc(-16rem / 16);
  right: calc(-8rem / 16);
  width: 55%;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
}

.pi-member-card__info {
  padding-top: calc(20rem / 16);
}

.pi-member-card__dept {
  font-family: var(--jp-font);
  font-size: calc(12rem / 16);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #231815;
  line-height: 1.6;
}

.pi-member-card__role {
  font-family: var(--jp-font);
  font-size: calc(14rem / 16);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #231815;
  line-height: 1.6;
}

.pi-member-card__name {
  font-family: var(--jp-font);
  font-size: calc(18rem / 16);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #231815;
  line-height: 1.6;
  margin: 10px 0 20px;
}

.pi-member-card__link {
  display: flex;
  align-items: center;
  gap: calc(8rem / 16);
  margin-top: calc(12rem / 16);
}

.pi-member-card__view-more {
  font-family: var(--en-font-sans);
  font-size: calc(9rem / 16);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: #422829;
}

.pi-member-card__line {
  flex: 1;
  height: 1px;
  background-color: #231815;
  max-width: calc(180rem / 16);
}

/* ---- 右カラム: スティッキー写真 ---- */
/* 書き出し画像比率 1251×1809 に合わせる */
.pi-dept__photo {
  position: sticky;
  top: 60px;
  aspect-ratio: 1251 / 1809;
  align-self: start;
  overflow: hidden;
  /*margin-right: calc(-50vw + 50%);*/
}

.pi-dept__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ----------------------------------------------------------------
   3. NEXT PAGE カード
   背景 #dce9ef、カード背景 #0063ae
   ---------------------------------------------------------------- */
.pi-next {
  background-color: #dce9ef;
  padding: calc(60rem / 16);
}

.pi-next__inner {
  max-width: calc(927rem / 16);
  margin: 0 auto;
  background-color: #0063ae;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: calc(60rem / 16) calc(80rem / 16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s;
}

.pi-next__inner:hover {
  background-color: #004f8a;
}

.pi-next__label {
  font-family: var(--en-font);
  font-size: calc(17rem / 16);
  font-weight: 600;
  font-style: italic;
  color: #ffffff;
  display: block;
  line-height: 1;
  margin-bottom: calc(8rem / 16);
}

.pi-next__category {
  font-family: var(--en-font-sans);
  font-size: calc(11rem / 16);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
  margin-bottom: calc(6rem / 16);
}

.pi-next__title {
  font-family: var(--jp-font);
  font-size: calc(19rem / 16);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #ffffff;
  display: block;
}

.pi-next__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(12rem / 16);
}

.pi-next__view-more {
  font-family: var(--en-font-sans);
  font-size: calc(9rem / 16);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: calc(3rem / 16);
}

/* ----------------------------------------------------------------
   5. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .pi-hero {
    height: clamp(300px, 42vw, 430px);
  }

  .pi-dept__split {
    grid-template-columns: 1fr 1fr;
  }

  .pi-dept__content {
    padding: calc(60rem / 16) calc(30rem / 16) calc(60rem / 16) calc(40rem / 16);
  }

  .pi-dept__task {
    grid-template-columns: calc(160rem / 16) 1fr;
    gap: calc(16rem / 16);
  }

}

@media (max-width: 768px) {
  .pi-hero {
    height: calc(340rem / 16);
  }

  .pi-hero__inner {
    padding: calc(56rem / 16) calc(24rem / 16) 0;
  }

  .pi-dept__split {
    grid-template-columns: 1fr;
  }

  .pi-dept__photo {
    position: relative;
    top: 0;
    aspect-ratio: auto;
    height: calc(300rem / 16);
    order: -1;
  }

  .pi-dept__content {
    padding: calc(40rem / 16) calc(24rem / 16) calc(60rem / 16);
  }

  .pi-dept__task {
    grid-template-columns: 1fr;
    gap: calc(12rem / 16);
  }

  .pi-dept__members-grid {
    grid-template-columns: 1fr;
    gap: calc(32rem / 16);
  }

  .pi-next {
    padding: calc(40rem / 16) calc(24rem / 16);
  }

  .pi-next__inner {
    padding: calc(40rem / 16) calc(32rem / 16);
    flex-direction: column;
    align-items: flex-start;
    gap: calc(24rem / 16);
  }

  .pi-next__right {
    align-items: flex-start;
  }
}
