/* 指導者・スタッフ紹介専用
 * 通常の指定 → 条件別の調整の順序を保っています。
 * @media は画面幅などの条件です。追記前に同じセレクター名を検索してください。
 */

/* 指導者・スタッフ */

.staff-container {
  max-width: 1120px;
}

.staff-page .about-breadcrumb .container {
  font-size: 12px;
}

.staff-intro {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 7vw, 96px);
  background: #171413;
  text-align: center;
}

.staff-intro-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 63%;
}

.staff-intro:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(24, 6, 4, 0.78), rgba(12, 15, 14, 0.65) 55%, rgba(24, 6, 4, 0.73)),
    linear-gradient(0deg, rgba(17, 14, 12, 0.45), transparent 65%);
}

.staff-intro > .staff-container {
  position: relative;
  animation: staff-intro-reveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

.staff-intro .staff-kicker {
  color: #edcfaa;
}

.staff-intro .staff-intro-lead,
.staff-intro .staff-intro-note {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.staff-kicker {
  margin: 0 0 22px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.6;
}

.staff-intro h2 {
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  font-size: clamp(30px, 4.8vw, 60px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: -0.04em;
}

.staff-intro h2 em {
  position: relative;
  display: inline-block;
  color: #fff;
  font-style: normal;
}

.staff-intro h2 em:after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 0.04em;
  left: 0;
  height: 5px;
  background: #e3b877;
}

.staff-intro-lead {
  margin: 26px 0 12px;
  font-size: clamp(17px, 2.1vw, 24px);
  font-weight: 800;
  line-height: 1.8;
  color: #332b26;
}

.staff-intro-note {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: #5d5149;
}

.staff-messages-scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #272c25;
}

.staff-messages-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.staff-messages-scene:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, rgba(17, 20, 16, 0.58), rgba(27, 19, 14, 0.72));
}

.staff-messages {
  position: relative;
  padding-block: clamp(42px, 5vw, 72px) clamp(52px, 6vw, 80px);
}

.staff-message {
  padding: clamp(28px, 4vw, 50px);
  border: 1px solid #dfd7ce;
  border-top: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.staff-message + .staff-message {
  margin-top: 30px;
}

.staff-section-heading {
  margin-bottom: 26px;
}

.staff-section-heading > p {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--red);
}

.staff-section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.035em;
  color: #211b18;
}

.staff-message-body {
  max-width: 900px;
}

.staff-message-body p {
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
  color: #39312c;
  overflow-wrap: anywhere;
}

.staff-message-body p + p {
  margin-top: 20px;
}

.staff-coach-message {
  border-top-color: #211b18;
  background: rgba(250, 248, 244, 0.98);
}

.staff-message-author {
  display: inline-block;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--red);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  color: #3e332c;
}

.staff-message-body .staff-emphasis {
  color: var(--red);
  font-weight: 800;
}

/* 選手紹介 */

.staff-roster {
  padding-block: clamp(42px, 5vw, 68px) clamp(52px, 6vw, 86px);
  background: #f1ede7;
}

.staff-roster .staff-section-heading {
  margin-bottom: 30px;
}

.staff-person-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--red);
  background: #fff;
}

.staff-person {
  display: grid;
  grid-template-columns: 88px minmax(130px, 0.65fr) minmax(180px, 1fr) minmax(0, 1.9fr);
  align-items: center;
  gap: 20px 24px;
  min-height: 112px;
  margin: 0;
  padding: 26px 30px;
  border-bottom: 1px solid #e5dfd7;
  transition: background 0.3s;
}

.staff-person:hover {
  background: #faf7f3;
}

.staff-photo {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #ece5dc;
  box-shadow: 0 0 0 3px #fff,
    0 0 0 4px #e0d6ca,
    0 6px 16px rgba(33, 27, 24, 0.12);
}

.staff-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-person:hover .staff-photo:not(.staff-photo-empty) img {
  transform: scale(1.05);
}

.staff-photo-empty {
  box-shadow: 0 0 0 3px #fff,
    0 0 0 4px #e8e1d8;
}

.staff-role {
  margin: 0;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.staff-person h3 {
  margin: 0;
  color: #211b18;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.staff-biography {
  padding-left: 24px;
  border-left: 1px solid #ded5cb;
  min-width: 0;
}

.staff-biography p {
  margin: 0;
  color: #51473f;
  font-size: 15px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.staff-biography p + p {
  margin-top: 4px;
}

.staff-person-brief {
  min-height: 100px;
}

@media (max-width: 900px) {
  .staff-person {
    grid-template-columns: 76px minmax(140px, 0.9fr) minmax(0, 1.7fr);
    gap: 4px 22px;
    padding: 24px;
  }

  .staff-photo {
    grid-column: 1;
    grid-row: 1/3;
    width: 76px;
  }

  .staff-role {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .staff-person h3 {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 23px;
  }

  .staff-biography {
    grid-column: 3;
    grid-row: 1/3;
    align-self: center;
    padding-left: 22px;
  }

  .staff-person-brief {
    min-height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .staff-photo img {
    transition: none;
  }
}

@media (max-width: 650px) {
  .staff-page .about-page-hero-inner h1 {
    font-size: clamp(23px, 6.6vw, 38px);
    letter-spacing: -0.02em;
  }

  .staff-intro {
    padding-block: 64px;
  }

  .staff-intro-background {
    object-position: 61% center;
  }

  .staff-intro:before {
    background: linear-gradient(135deg, rgba(31, 7, 5, 0.8), rgba(13, 19, 16, 0.76));
  }

  .staff-messages-background {
    object-position: 42% center;
  }

  .staff-messages {
    padding-block: 32px 40px;
  }

  .staff-kicker {
    font-size: 11px;
    margin-bottom: 18px;
    letter-spacing: 0.1em;
  }

  .staff-intro h2 {
    font-size: clamp(27px, 7.4vw, 42px);
    letter-spacing: -0.045em;
  }

  .staff-intro h2 em:after {
    height: 3px;
  }

  .staff-intro-lead {
    max-width: 26em;
    margin: 22px auto 10px;
    font-size: 17px;
    line-height: 1.8;
    text-wrap: balance;
  }

  .staff-intro-note {
    font-size: 15px;
    line-height: 1.9;
    text-wrap: balance;
  }

  .staff-message {
    padding: 26px 20px;
  }

  .staff-message + .staff-message {
    margin-top: 22px;
  }

  .staff-section-heading {
    margin-bottom: 22px;
  }

  .staff-section-heading h2 {
    font-size: clamp(21px, 5.4vw, 28px);
  }

  .staff-section-heading > p {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .staff-message-body p {
    font-size: 16px;
    line-height: 2;
  }

  .staff-message-author {
    font-size: 15px;
    margin-top: 14px;
  }

  .staff-person {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 2px 16px;
    padding: 22px 20px;
    min-height: 0;
  }

  .staff-photo {
    grid-column: 1;
    grid-row: 1/3;
    align-self: center;
    width: 64px;
    box-shadow: 0 0 0 2px #fff,
      0 0 0 3px #e0d6ca,
      0 4px 12px rgba(33, 27, 24, 0.1);
  }

  .staff-photo-empty {
    box-shadow: 0 0 0 2px #fff,
      0 0 0 3px #e8e1d8;
  }

  .staff-role {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
  }

  .staff-person h3 {
    grid-column: 2;
    grid-row: 2;
    font-size: 24px;
  }

  .staff-biography {
    grid-column: 1/-1;
    grid-row: 3;
    margin-top: 14px;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid #e5dfd7;
  }

  .staff-biography p {
    font-size: 15px;
    line-height: 1.9;
  }
}

@keyframes staff-intro-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.staff-message.is-scroll-reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.staff-message.is-scroll-reveal-ready.is-scroll-revealed {
  opacity: 1;
  transform: none;
}
