/* 上部ヘッダー（帯）は常に黒背景。白いカードが背後に来ても文字が見えるように */
.site-header {
  background: #050505;
}
.site-header.scrolled {
  background: #050505;
}

.js-nav-link { cursor: pointer; }

.js-nav-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.staff-main {
  position: relative;
  overflow: hidden;
}

.staff-shell {
  width: min(calc(100% - 80px), 1160px);
  margin: 0 auto;
}

.staff-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.staff-hero {
  position: relative;
  padding-top: 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #02070b;
}

.staff-hero-media {
  display: block;
  width: 100%;
}

.staff-hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
  object-fit: contain;
}

.staff-hero-action {
  display: flex;
  padding: 22px 0 30px;
  justify-content: flex-end;
}

.staff-back-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  min-height: 44px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  color: #d7d9de;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.staff-back-button:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.staff-counts {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 720px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.staff-counts div {
  display: grid;
  min-height: 88px;
  padding: 18px 24px;
  align-content: center;
  border-left: 1px solid var(--line);
}

.staff-counts div:first-child { border-left: 0; }
.staff-counts strong { font-family: var(--font-en); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.staff-counts span { margin-top: 8px; color: var(--muted); font-family: var(--font-en); font-size: 0.5rem; letter-spacing: 0.16em; }

.staff-directory {
  padding: 105px 0 112px;
}

.staff-section-heading {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: 56px;
}

.staff-kicker {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.staff-section-heading h2 {
  max-width: 690px;
  margin-top: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.45;
}

.staff-section-heading > p {
  max-width: 430px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.95;
}

.member-grid {
  display: grid;
  margin-top: 56px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.member-card {
  position: relative;
  min-height: 285px;
  padding: 24px 23px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(21, 27, 32, 0.74), rgba(6, 7, 9, 0.9));
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.member-card::after {
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(127, 210, 255, 0.09);
  border-radius: 50%;
  content: '';
}

.member-card:hover {
  border-color: rgba(127, 210, 255, 0.42);
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(24, 40, 50, 0.76), rgba(6, 7, 9, 0.92));
}

.member-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-en);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.member-kind {
  color: var(--blue);
  font-family: var(--font-en);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.member-card h3 {
  margin-top: 32px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.member-card h3 small {
  display: block;
  margin-top: 5px;
  color: #747983;
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.07em;
}

.member-role {
  min-height: 42px;
  margin-top: 18px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.65;
}

.member-profile {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  color: #aeb1b8;
  font-size: 0.77rem;
  line-height: 1.8;
}

.member-card-human {
  grid-column: 1 / -1;
  min-height: 230px;
  padding: 28px min(34%, 390px) 30px 28px;
  border-color: rgba(216, 194, 143, 0.35);
  background: radial-gradient(circle at 82% 50%, rgba(216, 194, 143, 0.14), transparent 31%), linear-gradient(145deg, rgba(31, 29, 23, 0.82), rgba(6, 7, 9, 0.94));
}

.member-kind-human { color: var(--gold); }
.member-card-human .member-role { min-height: 0; }
.member-card-human .member-profile { max-width: 720px; }

.staff-dialogue {
  padding: 0 0 96px;
}

.staff-dialogue-panel {
  position: relative;
  padding: clamp(30px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 30, 41, 0.78), rgba(7, 8, 11, 0.92));
}

.staff-dialogue-panel::after {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(127, 210, 255, 0.16);
  border-radius: 50%;
  content: '';
}

.staff-dialogue h2 {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin-top: 12px;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.6;
}

.staff-dialogue-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.85;
}

.staff-meeting-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 230px;
  min-height: 50px;
  margin-top: 26px;
  padding: 0 19px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 2px solid #000000;
  border-radius: 8px;
  background: #ffe34f;
  color: #000000;
  font-size: 0.76rem;
  font-weight: 800;
  transition: background 0.25s, transform 0.25s;
}

.staff-meeting-cta:hover {
  background: #fff083;
  transform: translateY(-2px);
}

.staff-meeting-cta b { font-size: 1rem; }

.staff-meeting-cta-hero {
  margin-top: 0;
}

.staff-back-button-bottom { margin-top: 30px; }

@media (max-width: 1100px) {
  .staff-shell { width: min(calc(100% - 56px), 960px); }
  .staff-section-heading { grid-template-columns: 1fr; gap: 24px; }
  .staff-section-heading > p { max-width: 720px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .staff-hero { padding-top: 74px; }
}

@media (max-width: 720px) {
  .staff-shell { width: calc(100% - 32px); }
  .staff-hero-action { padding: 16px 0 22px; }
  .staff-meeting-cta-hero { width: 100%; }
  .staff-counts { margin-top: 36px; }
  .staff-counts div { min-height: 78px; padding: 14px 8px; }
  .staff-counts strong { font-size: 1.5rem; }
  .staff-counts span { font-size: 0.42rem; letter-spacing: 0.06em; }
  .staff-directory { padding: 78px 0 82px; }
  .staff-section-heading { gap: 20px; }
  .staff-section-heading h2 { font-size: clamp(1.75rem, 8vw, 2.25rem); line-height: 1.5; }
  .staff-section-heading > p { font-size: 0.78rem; }
  .member-grid { margin-top: 40px; grid-template-columns: 1fr; gap: 12px; }
  .member-card { min-height: auto; padding: 22px 20px 24px; }
  .member-card h3 { margin-top: 28px; }
  .member-role { min-height: 0; }
  .member-card-human { grid-column: auto; min-height: auto; padding: 24px 20px 26px; }
  .staff-dialogue { padding-bottom: 72px; }
  .staff-dialogue-panel { padding: 27px 22px; border-radius: 15px; }
  .staff-dialogue h2 { font-size: 1.22rem; line-height: 1.7; }
  .staff-dialogue h2 br { display: none; }
  .staff-back-button,
  .staff-back-button-bottom { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .member-card:hover { transform: none; }
}

/* === AI社員紹介カード：白背景・黒文字・役職を最上部で大きく青字 === */
.member-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e5ea;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  cursor: pointer;
}
.member-card::after {
  display: none;
}
.member-card:hover {
  border-color: #0b5cc0;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(11, 92, 192, 0.16);
}
.member-number {
  color: rgba(0, 0, 0, 0.16);
}
/* 役職：カード最上部・大きく・青字 */
.member-role {
  order: -1;
  min-height: 0;
  margin: 0 0 8px;
  padding-right: 42px;
  color: #0b5cc0;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.member-kind {
  display: none;
}
.member-kind-human {
  display: block;
  margin-top: 2px;
  color: #b0862a;
}
.member-card h3 {
  margin-top: 12px;
  color: #000000;
}
.member-card h3 small {
  color: #111111;
}
.member-profile {
  margin-top: 12px;
  color: #111111;
}
/* 代表（自然人）カードも白背景・黒文字。ゴールドのアクセントで区別 */
.member-card-human {
  padding: 28px 30px 30px;
  border-color: #d8c28f;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(216, 194, 143, 0.22);
}
.member-kind-human { color: #b0862a; }
.member-card-human .member-role { color: #0b5cc0; }

/* === 右下の顔アイコン（カード全体がリンク） === */
.member-face {
  align-self: flex-end;
  margin-top: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dbe2ec;
  background: #eef3fb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.member-face-initial {
  display: grid;
  place-items: center;
  color: #0b5cc0;
  font-size: 1.7rem;
  font-weight: 800;
}
.member-card:hover .member-face {
  transform: scale(1.06);
  border-color: #0b5cc0;
  box-shadow: 0 8px 20px rgba(11, 92, 192, 0.25);
}
.member-card-human .member-face { border-color: #e6d3a4; background: #fbf5e6; }
.member-card-human .member-face-initial { color: #b0862a; }
.member-card-human:hover .member-face { border-color: #b0862a; box-shadow: 0 8px 20px rgba(176, 134, 42, 0.25); }

/* プロフィール文と顔アイコンの間に最低限の余白を確保 */
.member-profile { margin-bottom: 14px; }

@media (max-width: 720px) {
  .member-role { font-size: 1.08rem; padding-right: 38px; }
  .member-card-human { padding: 24px 20px 26px; }
  .member-face { width: 66px; height: 66px; }
}
