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

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

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

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

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

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

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

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

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

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

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

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

.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-ja {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 2.64px;
  white-space: nowrap;
}

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

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

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

}

/* ========================================
   研究記事
   ======================================== */
.research-article {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);

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

.article-thumbnail {
  /* サイズ */
  width: 100%;
  height: 516px;
  flex-shrink: 0;

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

  /* シャドウ */
  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);

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

.article-thumbnail img {
  /* サイズ */
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-content {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);

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

.article-title {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;

  /* 色 */
  color: #000;
}

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

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

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

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

.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;
  white-space: nowrap;

  /* 色 */
  color: #000;
}

.detail-section-title .title-accent {
  /* サイズ */
  width: 40px;
  height: 4px;

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

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

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

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

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

/* ========================================
   トップに戻るボタン
   ======================================== */
.back-to-top-container {
  /* レイアウト */
  display: flex;
  justify-content: center;
  align-items: center;

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

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

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

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

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

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

  .article-thumbnail {
    height: 400px;
  }

  .article-title {
    font-size: 24px;
    white-space: normal;
  }
}

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

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

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

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

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

  .research-article {
    gap: var(--spacing-lg);
  }

  .article-thumbnail {
    height: 300px;
  }

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

  .detail-section-title {
    font-size: 16px;
  }

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