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

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

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

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

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

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

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

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

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

/* ヒーロー画像の上のオーバーレイ（暗くする効果） */
.hero-overlay-projects {
  /* 位置・サイズ */
  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-projects {
  /* 位置 */
  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-projects {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

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

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

.hero-title-projects .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-projects .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-projects .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;
}

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

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

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

/* ========================================
   セクションヘッダー（幅拡張）
   ======================================== */
.content-wrapper-projects .section-header {
  width: 25%;
  max-width: 280px;
}

/* ========================================
   イントロセクション
   ======================================== */
.intro-section {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);

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

/* ========================================
   プロジェクトリスト
   ======================================== */
.projects-list {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);

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

.project-item {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);

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

/* タイトル行（罫線とタイトルを横並び） */
.project-item .detail-section-title {
  display: flex;
  align-items: center;
  gap: 14px;

  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: var(--font-size-h4);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.project-item .title-accent {
  width: 40px;
  height: 4px;
  flex-shrink: 0;
  background-color: var(--color-primary);
}

.project-info {
  /* レイアウト */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.project-funding {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;

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

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

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

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

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

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

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

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

  .content-wrapper-projects {
    gap: 64px;
    padding: 0 16px;
  }

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

  .intro-title {
    font-size: 24px;
  }

  .intro-text {
    font-size: 15px;
  }

  .project-card {
    padding: var(--spacing-lg);
  }

  .project-title {
    font-size: 20px;
  }
}

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

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

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

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

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

  .content-wrapper-projects {
    gap: 48px;
  }

  .intro-title {
    font-size: 20px;
  }

  .intro-text {
    font-size: 14px;
  }

  .project-card {
    padding: var(--spacing-md);
  }

  .project-title {
    font-size: 18px;
  }

  .project-funding {
    font-size: 14px;
  }

  .project-period {
    font-size: 13px;
  }

  .project-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
