/* ========================================
   Peopleページ専用スタイル
   ======================================== */

/* ========================================
   ヒーローセクション（Members専用）
   ======================================== */
.hero-members {
  /* 位置・サイズ */
  position: relative;
  width: 100%;
  height: 420px;

  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 余白 */
  padding: 163px 199px 146px;

  /* オーバーフロー */
  overflow: hidden;
}

/* カルーセルコンテナ */
.hero-members .hero-carousel {
  /* 位置・サイズ */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* カルーセルスライド */
.hero-members .carousel-slide {
  /* 位置・サイズ */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* 透明度 */
  opacity: 1;
}

/* スライド内の画像 */
.hero-members .carousel-slide img {
  /* サイズ */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* ヒーロー画像の上のオーバーレイ（暗くする効果） */
.hero-overlay-members {
  /* 位置・サイズ */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

  /* グラデーション背景 */
  background: linear-gradient(180deg,
      rgba(41, 51, 84, 0.68) 25%,
      rgba(41, 51, 84, 0.85) 100%);

  /* ブレンドモード */
  mix-blend-mode: multiply;

  /* ポインターイベントを無効化 */
  pointer-events: none;
}

/* ヒーローコンテンツ */
.hero-content-members {
  /* 位置 */
  position: relative;
  z-index: 2;

  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  /* サイズ */
  width: 100%;
  max-width: 1042px;
  text-align: center;
}

/* ヒーロータイトル */
.hero-title-members {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  /* 色 */
  color: var(--color-text-light);

  /* サイズ */
  width: 100%;
}

.hero-title-members .hero-title-en {
  /* フォント */
  font-family: var(--font-en-serif);
  font-size: 80px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.8px;

  /* 透明度 */
  opacity: 0.9;
}

.hero-title-members .hero-title-ja {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 2.64px;
  white-space: nowrap;
}

.hero-subtitle {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.5px;

  /* 色 */
  color: var(--color-text-secondary);

  /* 余白 */
  margin-top: 8px;
}

/* 研究室名セクション（Members専用） */
.hero-members .lab-name-section {
  /* 位置 */
  position: absolute;
  bottom: 20.5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ========================================
   メインコンテンツ
   ======================================== */
.content-wrapper-members {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 80px;

  /* サイズ */
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;

  /* 余白 */
  margin-top: 112px;
  margin-bottom: 112px;
}

/* ========================================
   研究室サムネイル画像
   ======================================== */
.article-thumbnail {
  /* レイアウト */
  display: flex;
  gap: 10px;

  /* サイズ */
  width: 100%;

  /* 影 */
  box-shadow:
    25px 77px 23px 0px rgba(0, 0, 0, 0),
    16px 50px 21px 0px rgba(0, 0, 0, 0.01),
    9px 28px 18px 0px rgba(0, 0, 0, 0.02),
    4px 12px 13px 0px rgba(0, 0, 0, 0.03),
    1px 3px 7px 0px rgba(0, 0, 0, 0.04);

  /* 角丸 */
  border-radius: 8px;
  overflow: hidden;
}

.thumbnail-image {
  /* サイズ */
  flex: 1;
  height: 338px;
  min-width: 0;

  /* 位置 */
  position: relative;
}

.thumbnail-image img {
  /* サイズ */
  width: 100%;
  height: 100%;

  /* 画像のフィット */
  object-fit: cover;
  object-position: center;
}

/* セクション共通スタイル（上書き） */
.content-wrapper-members .section-header {
  width: 20%;
  max-width: 200px;
}

.section-year {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.5px;

  /* 色 */
  color: var(--color-text-primary);

  /* 余白 */
  margin-top: 8px;
}

/* ========================================
   教員カード
   ======================================== */
.faculty-card {
  /* レイアウト */
  display: flex;
  gap: var(--spacing-2xl);

  /* サイズ */
  width: 100%;

  /* 余白 */
  margin-bottom: var(--spacing-3xl);
}

.faculty-card:last-child {
  margin-bottom: 0;
}

.member-photo {
  /* サイズ */
  width: 280px;
  height: 320px;
  flex-shrink: 0;

  /* 背景 */
  background-color: #f0f0f0;

  /* 角丸 */
  border-radius: 3px;

  /* オーバーフロー */
  overflow: hidden;
}

.member-photo img {
  /* サイズ */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);

  /* サイズ */
  flex: 1;
}

.member-header {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* 境界線 */
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: var(--spacing-md);
}

.member-name {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;

  /* 色 */
  color: #000;

  /* レイアウト */
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.member-name-en {
  /* フォント */
  font-family: var(--font-en-serif);
  font-size: 18px;
  font-weight: 400;

  /* 色 */
  color: var(--color-primary);
}

.member-position {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;

  /* 色 */
  color: var(--color-accent);
}

.member-details {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.detail-item {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;

  /* 色 */
  color: var(--color-primary);

  /* レイアウト */
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label::before {
  /* コンテンツ */
  content: '';

  /* サイズ */
  width: 4px;
  height: 16px;

  /* 背景 */
  background-color: var(--color-accent);
}

.detail-item .detail-text {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;

  /* 色 */
  color: var(--color-text-primary);
}

.detail-item .detail-text p {
  /* 余白 */
  margin-bottom: 8px;
}

.detail-item .detail-text p:last-child {
  margin-bottom: 0;
}

/* ========================================
   学生カード
   ======================================== */
.student-grid {
  /* レイアウト */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);

  /* サイズ */
  width: 100%;
}

.student-card {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);

  /* サイズ */
  width: 100%;
}

.student-card .member-photo {
  /* サイズ */
  width: 100%;
  height: 280px;
}

.student-info {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.student-name {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;

  /* 色 */
  color: #000;

  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.student-name-en {
  /* フォント */
  font-family: var(--font-en-serif);
  font-size: 14px;
  font-weight: 400;

  /* 色 */
  color: var(--color-primary);
}

.student-grade {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  /* 色 */
  color: var(--color-accent);
}

.student-research {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* 余白 */
  margin-top: 4px;
}

.research-label {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;

  /* 色 */
  color: var(--color-primary);
}

.research-theme {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;

  /* 色 */
  color: var(--color-text-primary);
}

/* ========================================
   研究室の特徴セクション
   ======================================== */
.lab-features-section {
  /* 余白 */
  margin-top: var(--spacing-2xl);
}

.features-grid {
  /* レイアウト */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);

  /* サイズ */
  width: 100%;
}

.feature-card {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);

  /* 余白 */
  padding: var(--spacing-xl);

  /* 背景 */
  background-color: #ffffff;

  /* 角丸 */
  border-radius: 3px;

  /* 境界線 */
  border-top: 4px solid var(--color-primary);

  /* シャドウ */
  box-shadow:
    1px 3px 7px 0px rgba(0, 0, 0, 0.04),
    4px 12px 13px 0px rgba(0, 0, 0, 0.03),
    9px 28px 18px 0px rgba(0, 0, 0, 0.02),
    16px 50px 21px 0px rgba(0, 0, 0, 0.01),
    25px 77px 23px 0px rgba(0, 0, 0, 0);
}

.feature-title {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;

  /* 色 */
  color: var(--color-primary);
}

.feature-text {
  /* フォント */
  font-family: var(--font-ja-mincho);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;

  /* 色 */
  color: var(--color-text-primary);
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
  .hero-members {
    height: 300px;
    padding: 100px 50px 80px;
  }

  .hero-title-members {
    gap: 2px;
  }

  .hero-title-members .hero-title-en {
    font-size: 60px;
  }

  .hero-title-members .hero-title-ja {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .content-wrapper-members {
    gap: 64px;
    padding: 0 16px;
    margin-top: 72px;
    margin-bottom: 72px;
  }

  .article-thumbnail {
    gap: 8px;
  }

  .thumbnail-image {
    height: 260px;
  }

  .content-wrapper-members .section-header {
    width: 100%;
    max-width: none;
  }

  .faculty-card {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  .member-photo {
    width: 100%;
    height: 320px;
  }

  .student-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  .hero-members {
    height: auto;
    min-height: 40vh;
    padding: 80px 27px 60px;
  }

  .hero-title-members .hero-title-en {
    font-size: 48px;
  }

  .hero-title-members .hero-title-ja {
    font-size: 16px;
    letter-spacing: 1.92px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .hero-members .lab-name-section {
    bottom: 16px;
  }

  .content-wrapper-members {
    gap: 48px;
    margin-top: 48px;
    margin-bottom: 48px;
  }

  .article-thumbnail {
    flex-direction: column;
    gap: 8px;
  }

  .thumbnail-image {
    height: 200px;
  }

  .member-name {
    font-size: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .member-name-en {
    font-size: 16px;
  }

  .student-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .student-card .member-photo {
    height: 240px;
  }

  .student-name {
    font-size: 18px;
  }
}

.student-tabs {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.student-tab {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-ja-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.5px;
  text-align: left;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-left: 2px solid transparent;
  padding: 4px 0 4px 12px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.student-tab:hover {
  color: var(--color-primary);
}

.student-tab.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

.student-tab-sub {
  font-family: var(--font-ja-serif);
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.student-panel:not(.active) {
  display: none;
}

@media (max-width: 768px) {
  .student-tabs {
    flex-direction: row;
    gap: var(--spacing-lg);
  }

  .student-tab {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0 0 6px 0;
  }

  .student-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-primary);
  }
}

/* ========================================
   2025年度卒業生 テキスト表示（写真なし・氏名＋卒業論文）
   ======================================== */
.member-text-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  width: 100%;
}

.member-text-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(41, 51, 84, 0.12);
}

.member-text-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.member-text-name {
  font-family: var(--font-ja-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.member-text-name-en {
  font-family: var(--font-en-serif);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-primary);
}

.member-text-theme {
  font-family: var(--font-ja-mincho);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text-primary);
}

.member-text-theme-label {
  font-family: var(--font-ja-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  margin-right: 10px;
}
