@charset "UTF-8";
@import url("page.css");

/* ===== スタッフ紹介（下層ページ用） ===== */
.staff-page {
  padding: 40px 0 90px;
}

.staff__panel {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px;
}

.staff__en {
  margin: 0;
  text-align: center;
  color: #f57f31;
  font-size: clamp(1rem, 0.556rem + 0.69vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.staff__title {
  margin: 0.2em 0 1em;
  text-align: center;
  font-size: clamp(2.125rem, 1.236rem + 1.39vw, 2.625rem);
  font-weight: 500;
  line-height: 1.3;
}

.staff__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.staff-card {
  text-align: center;
}

.staff-card__photo {
  border-radius: 24px;
  overflow: hidden;
  background: #d8dfe6;
  aspect-ratio: 0.9 / 1;
  margin-bottom: 14px;
}

.staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card__copy {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.85;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.staff-card__name {
  margin: 8px 0 0;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.staff-card__role {
  font-size: 0.85em;
  line-height: 1.45;
}

.staff__arrow-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.staff__arrow {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid var(--color-primary-deep);
  color: var(--color-primary-deep);
  background: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .staff-page {
    padding: 20px 0 60px;
  }

  .staff__panel {
    border-radius: 22px;
    padding: 26px 18px 24px;
  }

  .staff__title {
    margin-bottom: 18px;
    font-size: 2rem;
  }

  .staff__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin: 0 auto;
    max-width: 330px;
  }

  .staff__grid::-webkit-scrollbar {
    display: none;
  }

  .staff-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }

  .staff-card__copy {
    font-size: 1.1rem;
  }

  .staff-card__role {
    font-size: 0.9em;
  }

  .staff__arrow-group {
    margin-top: 18px;
  }
}

/* ===== スタッフ詳細（KV下） ===== */
.staff-detail {
  padding: 100px 0;
}

.staff-detail__panel + .staff-detail__panel {
  margin-top: 80px;
}

.staff-detail__panel {
  position: relative;
  overflow: visible;
  padding: 0;
}

.staff-detail__panel-inner {
  background-color: #E8F5FA;
  background-image: url("/images/staff/staff-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: clamp(26px, 3.125vw, 50px);
  padding: 44px clamp(46px, 6vw, 70px) 30px;
  overflow: hidden;
}

.staff-detail__head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 312px);
  gap: clamp(16px, 3vw, 25px);
  align-items: start;
}

.staff-detail__head-left {
  min-width: 0;
}

.staff-detail__index {
  position: absolute;
  left: clamp(46px, 6vw, 70px);
  top: -3rem;
  margin: 0;
  color: #2B6FB0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.staff-detail__index-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-weight: 400;
  font-size: 1.5rem;
  opacity: 0.95;
}

.staff-detail__index-num {
  font-weight: 400;
  font-size: 5.9375rem;
  line-height: 1;
}

.staff-detail__titles {
  margin-top: 30px;
}

.staff-detail__headline {
  margin: 0;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.6;
}

.staff-detail__name {
  margin: 12px 0 0;
  font-size: 1.5625rem;
  font-weight: 700;
}

.staff-detail__role {
  margin-right: 12px;
  font-size: 1.375rem;
  font-weight: 700;
}

.staff-detail__rule {
  display: none;
}

.staff-detail__meta {
  position: relative;
  padding: 24px 0 0;
  margin: 25px 0 0;
  display: grid;
  gap: 7px;
  font-weight: 500;
}

.staff-detail__meta::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background-image: radial-gradient(circle, var(--color-brand-border) 1.5px, transparent 1.5px);
  background-size: 9px 2px;
  background-repeat: repeat-x;
  pointer-events: none;
}

.staff-detail__meta-row {
  display: grid;
  grid-template-columns: 16em 1fr;
  gap: 16px;
  align-items: baseline;
}

.staff-detail__meta-term {
  margin: 0;
  font-weight: 700;
  background-color: #fff;
  font-size: 1.125rem;
  padding: 6px 1em;
  width: fit-content;
}

.staff-detail__meta-desc {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.staff-detail__photo {
  margin: 0;
  border-radius: clamp(26px, 3.125vw, 50px);
  overflow: hidden;
  background: #d8dfe6;
  aspect-ratio: 156 / 185;
  justify-self: end;
}

.staff-detail__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-qa {
  position: relative;
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 520ms ease, opacity 260ms ease;
  pointer-events: none;
}

.staff-detail__panel.is-expanded .staff-qa {
  max-height: 4000px;
  opacity: 1;
  pointer-events: auto;
  margin-top: clamp(18px, 3vw, 30px);
}

.staff-detail__panel.is-expanded .staff-qa::before,
.staff-detail__panel.is-expanded .staff-qa__item::before {
  opacity: 1;
}

.staff-detail__toggle {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.staff-detail__toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-primary-deep);
  font-weight: 700;
  cursor: pointer;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 220ms ease, opacity 220ms ease, color 220ms ease;
}

.staff-detail__toggle-btn:hover,
.staff-detail__toggle-btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 0.9;
  outline: none;
}

.staff-detail__toggle-icon {
  position: relative;
  width: 16px;
  height: 10px;
  display: inline-block;
}

.staff-detail__toggle-icon::before,
.staff-detail__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 220ms ease;
}

.staff-detail__toggle-icon::before {
  left: 0;
  transform: translateY(-50%) rotate(45deg);
}

.staff-detail__toggle-icon::after {
  right: 0;
  transform: translateY(-50%) rotate(-45deg);
}

.staff-detail__toggle-btn[aria-expanded="true"] .staff-detail__toggle-icon::before {
  transform: translateY(-50%) rotate(-45deg);
}

.staff-detail__toggle-btn[aria-expanded="true"] .staff-detail__toggle-icon::after {
  transform: translateY(-50%) rotate(45deg);
}

.staff-qa::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background-image: radial-gradient(circle, var(--color-brand-border) 1.5px, transparent 1.5px);
  background-size: 9px 2px;
  background-repeat: repeat-x;
  opacity: 0;
  pointer-events: none;
}

.staff-qa__item {
  padding: 22px 14px;
  position: relative;
}

.staff-qa__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background-image: radial-gradient(circle, var(--color-brand-border) 1.5px, transparent 1.5px);
  background-size: 9px 2px;
  background-repeat: repeat-x;
  opacity: 0;
  pointer-events: none;
}

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

.staff-qa__q {
  margin: 0 0 10px;
  color: var(--color-primary-deep);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.staff-qa__q-mark {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 700;
  font-size: 1.6875rem;
  color: var(--color-primary-deep);
}

.staff-qa__a {
  margin: 0;
  line-height: 2;
}

/* 旧：インタビュー内の折りたたみUIは廃止（上部トグルに統一） */

@media (max-width: 1080px) {
  .staff-detail__index {
    top: -2.5rem;
  }

  .staff-detail__index-num {
    font-size: 5.2rem;
  }

  .staff-detail__headline {
    font-size: 1.85rem;
  }

  .staff-detail__name {
    font-size: 1.35rem;
  }

  .staff-detail__role {
    font-size: 1.2rem;
  }
}

@media (max-width: 1080px) and (min-width: 540px) {
  .staff-detail__meta-row {
    grid-template-columns: 10.7em 1fr;
  }
}

@media (max-width: 920px) {
  .staff-detail__head {
    grid-template-columns: 1fr;
  }

  .staff-detail__photo {
    justify-self: center;
    width: min(360px, 100%);
  }
}

@media (max-width: 768px) {
  .staff-detail {
    padding: 60px 0;
  }

  .staff-detail__panel + .staff-detail__panel {
    margin-top: 48px;
  }

  .staff-detail__panel-inner {
    padding: 22px 18px 18px;
  }

  .staff-detail__index {
    left: 18px;
    top: -2.1rem;
  }

  .staff-detail__index-label {
    font-size: 1.1rem;
  }

  .staff-detail__index-num {
    font-size: 4.2rem;
  }

  .staff-detail__titles {
    margin-top: 22px;
  }

  .staff-detail__headline {
    font-size: 1.5rem;
    line-height: 1.65;
  }

  .staff-detail__name {
    margin-top: 10px;
    font-size: 1.15rem;
  }

  .staff-detail__role {
    font-size: 1.05rem;
    margin-right: 10px;
  }

  .staff-detail__meta {
    padding-top: 16px;
    margin-top: 18px;
    gap: 8px;
  }

  .staff-detail__meta-row {
    grid-template-columns: 11.5em 1fr;
    gap: 10px;
  }

  .staff-qa__item {
    padding: 18px 10px;
  }

  .staff-qa__q {
    font-size: 1.1rem;
  }

  .staff-qa__q-mark {
    font-size: 1.45rem;
  }

  .staff-detail__toggle {
    margin-top: 16px;
  }
}

@media (max-width: 540px) {
  .staff-detail__meta-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }

  .staff-detail__meta-term {
    width: fit-content;
  }
}
