/* ============================================================
   OUR TEAM Page
   ============================================================ */

/* Hero は共通 .page-hero を使用（main.css） */

/* ============================================================
   説明テキスト
   ============================================================ */
.team-intro {
  padding: 80px var(--gutter-width);
}

.team-intro__text {
  line-height: 30px;
  max-width: 700px;
  letter-spacing: 0.16em;
  margin: 0 auto;
}

/* ============================================================
   共通
   ============================================================ */
.team-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter-width);
}

/* ============================================================
   チームセクション（カテゴリ別）
   ============================================================ */
.team-section {
  padding: 60px 0;
}

/* .team-section:nth-child(even) {
  background: #f7f7f7;
} */

.team-section__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 30px;
  color: #222;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.08em;
}

.team-section__title::after {
  content: '';
  display: block;
  width: 62px;
  height: 2px;
  background: #222;
  margin: 10px auto 0;
}

/* ============================================================
   カードグリッド
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.team-card {
  display: block;
  cursor: pointer;
  background-color: #fff;
  color: inherit;
  text-decoration: none;
}

.team-card:hover .team-card__plus {
  color: #145393;
}

.team-card__thumb {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card__info {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.team-card__position {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.team-card__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.08em;
}

.team-card__plus {
  font-size: 20px;
  font-weight: 300;
  color: #888;
  line-height: 1;
  transition: color 0.2s ease;
  display: flex;
  width: 40px;
  align-self: stretch;
  align-items: center;
  justify-content: center;
}

.team-card__name-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.specialty-label {
  font-size: 13px;
}

.team-modal__specialty-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.team-modal__specialty,
.team-card__specialty {
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.team-modal__list,
.team-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
}

.team-modal__specialty .specialty-item {
  display: inline-block;
  background-color: #f7f7f7;
  padding: 1px 8px;
  font-family: var(--font-ja);
  font-size: 12px;
}

.specialty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 詳細ページと同じ青いピル */
.team-card__specialty .specialty-item {
  display: inline-block;
  padding: 3px 10px;
  background: #eef4fa;
  color: #145393;
  border-radius: 3px;
  font-family: var(--font-ja);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ============================================================
   その他の専門家
   ============================================================ */
.team-experts {
  position: relative;
  overflow: hidden;
  padding: 100px var(--gutter-width);
  background: url('../images/our-team/bg_professional.png') center / cover no-repeat;
}

.team-experts::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.team-experts__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: stretch;
  border-radius: 6px;
}

.team-experts__card {
  flex: 0 0 50%;
  min-width: 0;
  background: #f4f5f7;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-experts__label {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 26px;
  color: #222;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}

.team-experts__text {
  font-family: var(--font-ja);
  font-weight: var(--font-weight-medium);
  line-height: 28px;
  margin-bottom: 20px;
  letter-spacing: 0.12em;
}

.team-experts__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #222;
  text-decoration: none;
  padding: 20px;
  transition: background 0.3s ease;
  background: #ddecf3;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 3px;

  font-family: var(--font-ja);
  font-weight: var(--font-weight-medium);
  line-height: 28px;
  margin-bottom: 20px;
  letter-spacing: 0.12em;
}

.team-experts__link:hover {
  background: #c7d2e2;
}

.team-experts__link > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-experts__link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-experts__link-arrow img {
  width: 20px;
  height: 20px;
  display: block;
}

.team-experts__photo {
  flex: 0 0 50%;
  min-width: 0;
  overflow: hidden;
}

.team-experts__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   モーダル
   ============================================================ */
.team-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.team-modal.is-open {
  display: flex;
}

.team-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.team-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 4px;
  max-width: 1100px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.team-modal__body {
  display: flex;
  padding: 50px;
}

.team-modal__photo {
  width: 320px;

  flex-shrink: 0;
  overflow: hidden;
  object-fit: contain;
  object-position: top;
}

.team-modal__photo img {
  width: 100%;
  height: 320px;
  display: block;
  -webkit-box-reflect: below 0px linear-gradient(transparent 60%, rgba(255, 255, 255, 0.3));
  aspect-ratio: 1;
  object-fit: cover;
}

.team-modal__info {
  flex: 1;
  padding: 0 0 0 40px;
  display: flex;
  flex-direction: column;
}

.team-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.team-modal__affiliation {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.team-modal__name {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}

.team-modal__name-en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-modal__close {
  background: none;
  border: none;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.team-modal__close:hover {
  color: #222;
}

.team-modal__detail {
  flex: 1;
}

.team-modal__message {
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  color: #222;
  margin-bottom: 24px;
}

.team-modal__career {
  font-size: 14px;
  line-height: 2;
  color: #555;
  white-space: pre-line;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .team-intro {
    padding: 60px var(--gutter-width);
  }

  .team-section {
    padding: 48px 0;
  }

  .team-section__title {
    font-size: 24px;
    margin-bottom: 36px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
  }

  .team-experts {
    padding: 60px var(--gutter-width);
  }

  .team-experts__card {
    padding: 40px 32px;
  }

  /* modal */
  .team-modal__body {
    padding: 32px;
  }

  .team-modal__photo {
    width: 240px;
  }

  .team-modal__photo img {
    height: 240px;
  }

  .team-modal__info {
    padding: 0 0 0 28px;
  }

  .team-modal__name {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  /* intro */
  .team-intro {
    padding: 40px var(--gutter-width);
  }

  .team-intro__text {
    font-size: 13px;
    line-height: 26px;
  }

  /* section */
  .team-section {
    padding: 40px 0;
  }

  .team-section__title {
    font-size: 18px;
    margin-bottom: 28px;
  }

  .team-section__title::after {
    width: 48px;
  }

  /* grid / card */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px 12px;
  }

  .team-card {
    display: flex;
    width: 100%;
  }

  .team-card__thumb {
    width: 120px;
    flex-shrink: 0;
  }

  .team-card__info {
    padding: 14px 10px;
    width: 100%;
  }

  .team-card__position {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .team-card__name {
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .team-card__name-en {
    font-size: 10px;
  }

  .team-card__specialty {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-modal__specialty .specialty-item,
  .team-card__specialty .specialty-item {
    margin-right: 6px;
    margin-bottom: 6px;
  }

  .team-card__plus {
    font-size: 16px;
    width: 28px;
  }

  /* experts */
  .team-experts {
    padding: 40px var(--gutter-width);
  }

  .team-experts__inner {
    flex-direction: column-reverse;
  }

  .team-experts__card {
    padding: 28px 24px;
  }

  .team-experts__label {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .team-experts__text {
    font-size: 13px;
    line-height: 24px;
    margin-bottom: 20px;
  }

  .team-experts__link {
    font-size: 12px;
    line-height: 20px;
    padding: 14px 12px;
  }

  .team-experts__photo {
    height: 200px;
  }

  /* modal */
  .team-modal__dialog {
    width: 92%;
    max-height: 90vh;
  }

  .team-modal__body {
    flex-direction: column;
    padding: 24px;
  }

  .team-modal__photo {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }

  .team-modal__photo img {
    height: 220px;
  }

  .team-modal__info {
    padding: 20px 0 0;
  }

  .team-modal__header {
    margin-bottom: 20px;
  }

  .team-modal__affiliation {
    font-size: 12px;
  }

  .team-modal__name {
    font-size: 18px;
  }

  .team-modal__name-en {
    font-size: 11px;
  }

  .team-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .team-modal__close::before {
    content: '×';
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    color: #222;
  }

  .team-modal__message {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 16px;
  }

  .team-modal__career {
    font-size: 13px;
    line-height: 1.9;
  }
}

/* ============================================================
   Single（コンサルタント詳細ページ）
   ============================================================ */
.single-team {
  padding: 80px 0 100px;
}

.single-team__body {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.single-team__photo {
  width: 360px;
  flex-shrink: 0;
  overflow: hidden;
}

.single-team__photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.single-team__info {
  flex: 1;
  min-width: 0;
}

.single-team__header {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid #e3e8ee;
}

.single-team__affiliation {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.single-team__name {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}

.single-team__name-en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.single-team__specialty-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
  color: #555;
}

.single-team__specialty {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.single-team__specialty .specialty-item {
  display: inline-block;
  padding: 4px 14px;
  background: #eef4fa;
  color: #145393;
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.single-team__message {
  font-size: 17px;
  font-weight: 700;
  line-height: 2;
  color: #222;
  margin: 0 0 24px;
}

.single-team__career {
  font-size: 14px;
  line-height: 2;
  color: #555;
  margin: 0;
}

/* 関連インタビュー */
.team-related {
  margin-top: 80px;
}

.team-related__title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3e8ee;
}

.team-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-related__item + .team-related__item {
  border-top: 1px solid #eef1f5;
}

.team-related__link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.team-related__link:hover {
  background: #f7f9fc;
}

.team-related__thumb {
  width: 200px;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 2px;
}

.team-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-related__link:hover .team-related__thumb img {
  transform: scale(1.04);
}

.team-related__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e0e0e0;
}

.team-related__body {
  flex: 1;
  min-width: 0;
}

.team-related__date {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  color: #888;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.team-related__item-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: #222;
  margin: 0;
  transition: color 0.2s;
}

.team-related__link:hover .team-related__item-title {
  color: #145393;
}

.single-team__foot {
  margin-top: 60px;
  text-align: center;
}

.single-team__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 16px 40px;
  border: 1px solid #145393;
  color: #145393;
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 3px;
  transition:
    background 0.2s,
    color 0.2s;
}

.single-team__back:hover {
  background: #145393;
  color: #fff;
}

@media (max-width: 768px) {
  .single-team {
    padding: 48px 0 64px;
  }

  .single-team__body {
    flex-direction: column;
    gap: 28px;
  }

  .single-team__photo {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .single-team__name {
    font-size: 24px;
  }

  .single-team__header {
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .single-team__message {
    font-size: 15px;
  }

  .single-team__career {
    font-size: 13px;
  }

  .single-team__back {
    width: 100%;
    min-width: 0;
  }

  /* 関連インタビュー */
  .team-related {
    margin-top: 48px;
  }

  .team-related__title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .team-related__link {
    gap: 14px;
    padding: 16px 0;
  }

  .team-related__thumb {
    width: 120px;
  }

  .team-related__date {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .team-related__item-title {
    font-size: 14px;
    line-height: 1.6;
  }
}
