/* =========================================================
   STAFF ARCHIVE（スタッフ一覧）
   ＋ SINGLE共通パーツ（.staff-pager）
   ※ css/staff.css の後に読み込む
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');


/* =========================================================
   TOKENS
   ========================================================= */

.staff-archive {
  --sa-ink: #171717;
  --sa-gold: #a88b59;
  --sa-paper: #f6f3ee;
  --sa-line: rgba(17, 17, 17, 0.14);

  --sa-serif-en: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sa-serif-jp: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}


/* =========================================================
   REVEAL（main.js が .is-visible を付与）
   ========================================================= */

.staff-archive .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-archive .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   01｜HERO
   ========================================================= */

.archive-hero {
  position: relative;
  display: flex;
  align-items: flex-end;

  width: 100%;
  height: 62svh;
  min-height: 420px;
  max-height: 680px;

  background: #111;
  color: #fff;
  overflow: hidden;
}

.archive-hero__bg {
  position: absolute;
  inset: 0;
}

.archive-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.34;
}

.archive-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(17, 17, 17, 0.92) 0%, rgba(17, 17, 17, 0) 62%);
  pointer-events: none;
}

.archive-hero__content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 52px;
  box-sizing: border-box;
}

.archive-hero__label {
  margin: 0 0 18px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;

  color: rgba(255, 255, 255, 0.7);
}

.archive-hero__title {
  position: relative;
  display: inline-block;

  margin: 0;

  font-family: var(--sa-serif-en);
  font-size: clamp(72px, 19vw, 190px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.06em;
  color: #fff;
}

/* 輪郭だけの影文字（添付イメージの "MEMBERS" の重なり表現） */
.archive-hero__title::after {
  content: attr(data-text);
  position: absolute;
  top: 0.07em;
  left: 0.05em;
  z-index: -1;

  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.archive-hero__sub {
  margin: 22px 0 0;

  font-family: var(--sa-serif-jp);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   02｜MEMBERS
   ========================================================= */

.archive-members {
  padding: 72px 24px 104px;
  background: var(--sa-paper);
  color: var(--sa-ink);
}

.archive-members__head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.archive-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;

  margin: 0 0 22px;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.24em;
  color: var(--sa-ink);
}

.archive-label::before,
.archive-label::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--sa-gold);
}

.archive-members__head h2 {
  margin: 0;

  font-family: var(--sa-serif-jp);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.archive-members__lead {
  margin: 22px 0 0;

  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #555;
}


/* ---------------------------------------------------------
   LIST
--------------------------------------------------------- */

.archive-members__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;

  max-width: 1080px;
  margin: 0 auto;
  padding: 0;

  list-style: none;
}

.staff-card {
  margin: 0;
  padding: 0;
}

.staff-card:nth-child(2) {
  transition-delay: 0.15s;
}

.staff-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}


/* ---------------------------------------------------------
   CARD｜PHOTO
--------------------------------------------------------- */

.staff-card__media {
  position: relative;
}

.staff-card__photo {
  position: relative;

  aspect-ratio: 4 / 5;
  overflow: hidden;

  background: #1a1a1a;
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.16);
}

.staff-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.38), rgba(17, 17, 17, 0) 42%);
  pointer-events: none;
}

/* 筆記体風の英字名（写真に少し重ねる） */
.staff-card__script {
  position: absolute;
  left: -6px;
  bottom: -0.42em;
  z-index: 2;

  font-family: var(--sa-serif-en);
  font-size: clamp(36px, 9vw, 58px);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;

  color: var(--sa-gold);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}


/* ---------------------------------------------------------
   CARD｜BODY
--------------------------------------------------------- */

.staff-card__body {
  padding: 62px 4px 0;
}

.staff-card__name {
  margin: 0;

  font-family: var(--sa-serif-jp);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.staff-card__role {
  margin: 6px 0 0;

  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #666;
}


/* READ MORE（添付イメージの白いピル＋丸矢印） */

.staff-card__more {
  display: inline-flex;
  align-items: center;
  gap: 22px;

  margin-top: 28px;
  padding: 7px 8px 7px 28px;

  background: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.08);

  transition: box-shadow 0.4s ease;
}

.staff-card__more-text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--sa-ink);
}

.staff-card__more-arrow {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border-radius: 50%;
  background: var(--sa-ink);
  color: #fff;
  font-size: 15px;
  line-height: 1;

  transition:
    background-color 0.4s ease,
    transform 0.4s ease;
}


/* ---------------------------------------------------------
   HOVER / FOCUS
--------------------------------------------------------- */

.staff-card__link:focus-visible {
  outline: 2px solid var(--sa-gold);
  outline-offset: 8px;
}

@media (hover: hover) {

  .staff-card__link:hover .staff-card__photo img {
    transform: scale(1.04);
  }

  .staff-card__link:hover .staff-card__more {
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.14);
  }

  .staff-card__link:hover .staff-card__more-arrow {
    background: var(--sa-gold);
    transform: translateX(3px);
  }

}


/* =========================================================
   TABLET / PC
   ========================================================= */

@media (min-width: 768px) {

  .archive-hero__content {
    padding: 0 48px 72px;
  }

  .archive-hero__sub {
    font-size: 17px;
  }

  .archive-members {
    padding: 112px 48px 144px;
  }

  .archive-members__head {
    margin-bottom: 96px;
  }

  .archive-members__head h2 {
    font-size: 34px;
  }

  .archive-members__lead {
    font-size: 15px;
  }

  .archive-members__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
  }

  /* 2人目を少し下げて、並びに動きを出す */
  .staff-card:nth-child(2) {
    margin-top: 88px;
  }

  .staff-card__name {
    font-size: 26px;
  }

}

@media (min-width: 1200px) {

  .archive-hero__content {
    padding-bottom: 88px;
  }

  .archive-members__list {
    gap: 88px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .staff-archive .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .staff-card__photo img,
  .staff-card__more,
  .staff-card__more-arrow {
    transition: none;
  }

}


/* =========================================================
   STAFF PAGER（single ページ共通：一覧へ戻る / 次のスタッフ）
   ========================================================= */

.staff-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  width: 100%;
  margin: 0;
  /* 帯は全幅、中身だけ最大1200pxに収める */
  padding: 28px max(24px, calc((100% - 1200px) / 2));
  box-sizing: border-box;

  border-top: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
}

.staff-pager__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 10px 0;

  color: #171717;
  text-decoration: none;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;

  transition: color 0.3s ease;
}

.staff-pager__arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.staff-pager__link:focus-visible {
  outline: 2px solid #a88b59;
  outline-offset: 4px;
}

@media (hover: hover) {

  .staff-pager__link:hover {
    color: #a88b59;
  }

  .staff-pager__link--back:hover .staff-pager__arrow {
    transform: translateX(-4px);
  }

  .staff-pager__link--next:hover .staff-pager__arrow {
    transform: translateX(4px);
  }

}

@media (min-width: 768px) {

  .staff-pager {
    padding-top: 36px;
    padding-bottom: 36px;
    padding-left: max(48px, calc((100% - 1200px) / 2));
    padding-right: max(48px, calc((100% - 1200px) / 2));
  }

  .staff-pager__link {
    font-size: 12px;
  }

}
