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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ========================================
   年別グループ
   ======================================== */
.content-wrapper-news .year-group {
  /* レイアウト */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);

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

.content-wrapper-news .year-group:last-child {
  margin-bottom: 0;
}

.content-wrapper-news .year-title {
  /* フォント */
  font-family: var(--font-en-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;

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

  /* 下線 */
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-primary);
}

/* ========================================
   お知らせリスト
   ======================================== */
.news-list-items {
  /* レイアウト */
  display: flex;
  flex-direction: column;

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

.news-item {
  /* レイアウト */
  display: flex;
  align-items: baseline;
  gap: var(--spacing-lg);

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

  /* 下線 */
  border-bottom: 1px solid var(--color-border);
}

.news-item:first-child {
  padding-top: 0;
}

.news-date {
  /* フォント */
  font-family: var(--font-en-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;

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

  /* サイズ */
  flex-shrink: 0;
  min-width: 100px;
}

.news-link {
  /* レイアウト */
  display: block;
  flex: 1;

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

  /* トランジション */
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--color-primary);
}

.news-title {
  /* フォント */
  font-family: var(--font-ja-serif);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

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

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

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

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

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

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

  .content-wrapper-news .year-title {
    font-size: 24px;
  }

  .news-item {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .news-date {
    min-width: auto;
  }

  .news-title {
    font-size: 15px;
  }
}

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

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

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

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

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

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

  .content-wrapper-news .year-title {
    font-size: 20px;
  }

  .news-title {
    font-size: 14px;
  }

  .news-date {
    font-size: 13px;
  }
}
