/* =========================
   全体
========================= */
body {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    color: #0e1a2b;
    background-color: #ffffff;
}

/* =========================
   ナビバー（全ページ共通）
========================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;            /* ★ ここを 80px に */
    padding: 0 40px;
    background-color: #1f2a44;
}

.nav-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    white-space: nowrap;
}

.nav-title .faculty {
    font-size: 14px;
    line-height: 1.3;        /* ★ 少しゆとり */
    margin: 0;
    padding: 0;
    color: #f5f5f5;
}

.nav-title .lab {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;        /* ★ 擦れ防止 */
    margin: 0;
    padding: 0;
    color: #f5f5f5;
}


.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}




.menu a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    position: relative;
    padding-bottom: 4px;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background-color: #f5f5f5;
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

/* =========================
   ヒーロー（index.html 専用）
========================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.25),
        rgba(0,0,0,0)
    );
    z-index: 1;
}

.hero-text {
    position: absolute;
    left: 8%;
    bottom: 15%;
    color: #fff;
    z-index: 2;
}

.hero-text h1 {
    font-size: 25px;
    font-weight: 300;
}

.hero-text p {
    font-size: 14px;
    letter-spacing: 0.15em;
}

/* =========================
   共通：ページ余白
========================= */
.page-inner {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* =========================
   ページ上部画像（Members）
========================= */
.main-image img {
    width: 100%;
    max-width: 900px;
    display: block;
    margin: 60px auto;
    border-radius: 6px;
}

/* =========================
   Members
========================= */
.members-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 60px;
}

.faculty-list {
    display: flex;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.faculty {
    width: 200px;
    padding: 20px 16px;
    text-align: center;
}

.faculty img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin-bottom: 14px;
}

.student-list {
    list-style: none;
    padding-left: 0;
}

/* =========================
   Research
========================= */
.research-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 60px;
}

.research-item {
    margin-bottom: 60px;
}

.research-item p {
    line-height: 1.9;
}

/* News 全体 */
.news {
    margin-top: 80px;
}

/* 年表リスト */
.news-list {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid #1f2a44; /* 濃紺 */
}

/* 各ニュース */
.news-list li {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

/* 丸ポチ */
.news-list li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #1f2a44;
    border-radius: 50%;
}

/* 日付 */
.news-date {
    display: inline-block;
    font-weight: bold;
    color: #1f2a44;
    width: 90px;
}

/* 本文 */
.news-text {
    display: inline-block;
}


/* Achievements 全体レイアウト */
.achievements-layout {
    display: flex;
    gap: 48px;
}

/* 左サイドメニュー */
.achievements-nav {
    width: 220px;
    flex-shrink: 0;
}

.achievements-nav ul {
    list-style: none;
    padding-left: 0;
    border-left: 3px solid #1f2a44;
}

.achievements-nav li {
    margin-bottom: 16px;
}

.achievements-nav a {
    text-decoration: none;
    color: #1f2a44;
    font-size: 14px;
    padding-left: 12px;
}

.achievements-nav a:hover {
    text-decoration: underline;
}

/* 右メイン */
.achievements-content {
    flex: 1;
}

/* Publications */
.publication-list {
    padding-left: 20px;
}

.publication-list li {
    margin-bottom: 18px;
    line-height: 1.8;
}
.research-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 24px auto 0;
    border-radius: 6px;
}
/* 宿主免疫：画像を横並びにする */
.research-images {
    display: flex;
    gap: 20px;        /* 画像同士の間隔 */
    margin-top: 20px;
    flex-wrap: wrap;  /* 画面狭いときは縦並び */
}

.research-images .research-image {
    max-width: 300px; /* ← 2枚並べた時のちょうどいいサイズ */
}

.scroll {
    display: none;
}

.hero-text p.hero-sub {
    font-size: 15px;          /* ← 今より少し大きく */
    line-height: 1.8;
    letter-spacing: 0.12em;
    margin-top: 12px;
}

.hero-sub-en {
    display: block;
    font-size: 17px;          /* ★ microbiology and immunology を強調 */
    letter-spacing: 0.15em;
    margin-top: 6px;
}

.navbar * {
    box-sizing: border-box;
}

.navbar span,
.navbar div,
.navbar ul,
.navbar li {
    margin: 0;
    padding: 0;
}


.nav-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.lab-en {
    margin-top: 6px;
    margin-left: 2px;       /* ← 微妙に右に */
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    color: #d6d6d6;
    white-space: nowrap;
}

/* ===== Achievements ===== */

.achievements-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.achievements-content h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.publication-block h3 {
    font-size: 22px;
    margin: 40px 0 15px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.publication-list {
    list-style: none;
    padding-left: 0;
}

.publication-list li {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 15px;
}

.publication-list em {
    font-style: italic;
}

/* ページ全体のタイトル */
.achievements-title {
    text-align: center;
    font-size: 32px;
    margin: 80px 0 60px;
}
/* =========================
   年間スケジュール（全体）
========================= */
.schedule-section {
    margin-top: 80px;
}

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 50px;
}

/* 2カラムレイアウト */
.schedule-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ===== 左：スケジュール ===== */
.schedule-list {
    list-style: none;
    padding-left: 20px;
    border-left: 2px solid #1f2a44;
}

.schedule-list li {
    position: relative;
    margin-bottom: 24px;
    padding-left: 20px;
    line-height: 1.8;
}

.schedule-list li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #1f2a44;
    border-radius: 50%;
}

.schedule-list span {
    display: inline-block;
    width: 52px;
    font-weight: 500;
    color: #1f2a44;
}

/* ===== 右：写真 ===== */
.schedule-photos {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.schedule-photos img {
    width: 100%;
    max-width: 360px;
    border-radius: 6px;
    display: block;
}

.schedule-photos figcaption {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    text-align: center;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
    .schedule-layout {
        grid-template-columns: 1fr;
    }

    .schedule-photos {
        align-items: center;
    }
}

.member-group {
    margin-top: 100px;
}

.member-group h2 {
    margin-bottom: 40px;
}


/* Achievements：学会発表 */
.achievement-section {
    max-width: 700px;
    margin: 0 auto;
}

.achievement-subtitle {
    text-align: center;
    font-size: 22px;
    margin-bottom: 60px;
}

.achievement-year {
    margin-bottom: 50px;
}

.achievement-year h3 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 6px;
}

.achievement-list {
    list-style: none;
    padding-left: 0;
}

.achievement-list li {
    margin-bottom: 18px;
    line-height: 1.8;
    text-align: left;   /* ← 中央カラム内で左揃え */
}

.award {
    color: #8b0000;
    font-weight: 500;
    margin-left: 6px;
}

/* Achievements 全体 */
.achievement-section {
  max-width: 1000px;   /* ← 論文発表と同じ */
  margin: 0 auto;
  padding: 0 24px;
}

/* Achievements タイトル（ど真ん中） */
.achievement-section h1,
.achievement-section h2 {
  text-align: center;
  margin-bottom: 48px;
}

/* 年ブロック間の余白 */
.achievement-year {
  margin-bottom: 48px;
}

/* 論文リスト */
.achievement-list {
  padding-left: 1.2em;   /* 箇条書きの自然なインデント */
}

html {
  scroll-behavior: smooth;
}

/* 論文発表・学会発表 共通タイトル */
.publication-title,
#conference {
  font-size: 1.8rem;   /* ← 論文発表に合わせる */
  margin-bottom: 24px;
}


/* ===== 図を横並びにする ===== */
.research-images.two-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

/* 図ブロック */
.research-figure {
  margin: 0;
}

/* 画像 */
.research-figure img {
  width: 100%;
  display: block;
}

/* キャプション */
.research-figure figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Ref */
.research-figure .ref {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

/* 図説明 */
.research-figure .caption {
  display: block;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .research-images.two-figures {
    grid-template-columns: 1fr;
  }
}

/* ======== 図1・図2を“同じ高さのカード”にする ======== */

.research-images.two-figures {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 横2列 */
  gap: 40px;
}

/* ★ 重要：figureを同じ高さの“箱”にする */
.research-figure {
  display: grid;
  grid-template-rows: auto 1fr; /* 上：画像／下：キャプション */
}

/* ★ 重要：画像の高さを統一（ズレの根本対策） */
.research-image {
  width: 100%;
  height: 260px;        /* ← ここで高さを固定 */
  object-fit: cover;    /* 画像をきれいに収める */
}

/* ★ 重要：キャプション部分を同じ高さの領域に */
.research-figure figcaption {
  display: grid;
  grid-template-rows: 60px auto; /* Refの高さだけ固定 */
  text-align: center;
}

/* 見た目だけ整える */
.research-figure .ref {
  font-size: 0.9rem;
}

/* ===== 図1・図2の正しい揃え方 ===== */

.research-images.two-figures {
  display: flex;          /* 横並び */
  align-items: flex-end;  /* ★ 画像の“下端”を基準に揃える ← これが核心 */
  gap: 40px;
}

/* 各figureは縦に積むだけ */
.research-figure {
  display: flex;
  flex-direction: column;
}

/* キャプションは“必ず同じ位置から始める” */
.research-figure figcaption {
  margin-top: 12px; /* 画像と説明のすき間（任意） */
}


/* ===== 図1・図2のレイアウト（決定版）===== */

/* 親コンテナ：絶対に横並び */
.research-images.two-figures {
  display: flex;
  flex-direction: row;   /* 横並びを確定 */
  align-items: flex-end; /* ★画像の“下端”を揃える（←あなたの要望そのもの） */
  gap: 40px;
}

/* 子要素：縦に積むだけ */
.research-figure {
  display: flex;
  flex-direction: column;
}

/* 画像はいっさい触らない（サイズそのまま） */
.research-image {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* ===== 教員写真レイアウト ===== */
.faculty-list {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 個人カード */
.faculty {
  width: 220px;        /* 横幅を固定 */
  text-align: center;
}

/* 画像（超重要！） */
.faculty img {
  width: 100%;         /* 横幅いっぱい */
  height: auto;        /* 縦は自動（←これで切れない） */
  aspect-ratio: 3 / 4; /* 縦長の比率にする */
  object-fit: contain; /* ← 切り取らない！ */
  border-radius: 8px;
}


/* ナビタイトル左そろえ強制 */
.nav-title-wrap {
    text-align: left;
}

.nav-title {
    align-items: flex-start !important;
}

.faculty,
.lab {
    text-align: left !important;
}