@charset "UTF-8";

/* =========================================
   1. 全体的な基本設定（フォント・カラー・余白）
   ========================================= */
body {
  font-family: "游ゴシック Medium", YuGothic, "メイリオ", Meiryo, "ヒラギノ角ゴ ProN", sans-serif;
  font-weight: 500;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.8;
  background-color: #fff;
}

main {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #555;
}

p {
  margin-bottom: 20px;
  text-align: justify;
}

main p { font-weight: 400; }

strong {
  font-weight: 700;
  color: #000;
}

/* =========================================
   2. ヘッダー・ナビゲーション
   ========================================= */
header { display: none; }

nav {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: opacity 0.3s;
}

.nav-brand a:hover { opacity: 0.7; }

.nav-brand img {
  height: 40px;
  margin-right: 15px;
  border-radius: 5px;
}

.nav-brand span {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-links li { margin-left: 30px; }

.nav-links li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
}

.nav-links li a:hover { color: #007bff; }

/* =========================================
   アニメーション（フワッと表示）
   ========================================= */

/* ① 開いた瞬間に動くもの（トップ画像の文字） */
.hero-content h1 {
  opacity: 0; /* 最初は透明にしておく */
  animation: fadeInUp 1s ease-out forwards; /* 1秒かけてフワッと出す */
}

.hero-content p {
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.4s forwards; /* 0.4秒遅らせて順番に出す */
}

/* アニメーションの動きの定義（下から上へ） */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px); /* 30px下からスタート */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* 元の位置へ */
  }
}

/* ② スクロールに合わせて動くもの（共通クラス） */
.scroll-fade-up {
  opacity: 0;
  transform: translateY(40px); /* 40px下に隠しておく */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* 0.8sかけて滑らかに動かす */
}

/* JSによってこのクラスが付与されると表示される */
.scroll-fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   3. ヒーローセクション（トップ画像）
   ========================================= */
.hero {
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../img/group-photo_2026.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin: 0 0 20px 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  text-align: center;
}

.univ-name {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 5px;
  opacity: 0.9;
}

/* =========================================
   トップページ：最新のニュース
   ========================================= */
.top-news-section {
  background-color: #fff;
  padding: 60px 20px 40px; /* 上・左右・下の余白 */
}

.top-news-container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  margin-bottom: 40px;
  text-align: left;
}

.top-news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  border-top: 2px solid #333; /* リストの一番上にしっかりした線を引く */
}

.top-news-list li {
  border-bottom: 1px solid #eee; /* 各ニュースの区切り線 */
}

/* リンク全体をクリックできるようにする */
.top-news-list li a {
  display: flex;
  align-items: center;
  padding: 20px 10px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s, padding-left 0.2s;
}

/* マウスを乗せたら少し右に動きつつ、背景をうっすら青くする */
.top-news-list li a:hover {
  background-color: #f8fbfd;
  padding-left: 15px; 
}

/* 日付とカテゴリのまとまり */
.news-meta {
  display: flex;
  align-items: center;
  width: 220px; /* 日付とカテゴリの幅を固定して、タイトルの開始位置を揃える */
  flex-shrink: 0;
}

.top-news-list .news-date {
  font-family: Arial, sans-serif;
  font-weight: 600;
  color: #666;
  margin-right: 15px;
  letter-spacing: 0.05em;
}

/* カテゴリバッジ（どこでも使える共通デザイン） */
.news-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff; /* 文字を白にする */
  padding: 4px 12px; /* 内側の余白 */
  border-radius: 4px; /* 角丸 */
  white-space: nowrap;
  display: inline-block; /* 形を綺麗に保つ魔法 */
}

/* 一覧ページ（news.html）の時だけ、日付の右に少し余白を開ける */
.news-date .news-category {
  margin-left: 15px;
  vertical-align: middle; /* 日付と縦の高さを合わせる */
}

/* カテゴリごとの色分け（ここは変更なし） */
.category-notice { background-color: #7f8c8d; } 
.category-award { background-color: #e74c3c; } 
.category-research { background-color: #3498db; } 
.category-event { background-color: #27ae60; }

.top-news-list .news-title {
  flex: 1; /* タイトルが余ったスペースを全部使う */
  font-weight: 500;
  line-height: 1.6;
}

/* ニュース一覧を見るボタン */
.news-btn-wrapper {
  text-align: right;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  padding: 12px 30px;
  background-color: #fff;
  color: #3498db;
  text-decoration: none;
  border: 2px solid #3498db; /* 青い枠線 */
  border-radius: 30px; /* おしゃれな丸いボタン */
  font-weight: bold;
  transition: all 0.3s;
}

.btn-more:hover {
  background-color: #3498db;
  color: #fff;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-more::after {
  content: "→"; /* ボタンの右に矢印をつける */
  margin-left: 8px;
  font-family: inherit;
}

/* =========================================
   4. サブナビ（画像付きカードメニュー）
   ========================================= */
#subnavBack {
  width: 100%;
  background-color: #f8f9fa;
  padding: 60px 0;
}

#subnavWrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

ul#subnav {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

ul#subnav li {
  width: 31%;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

ul#subnav li:hover { transform: translateY(-5px); }

ul#subnav li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 250px;
  padding: 20px;
  box-sizing: border-box;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  background-size: cover;
  background-position: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

ul#subnav li.menu1 a { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("../img/menu/menu_hashimoto.jpg"); }
ul#subnav li.menu2 a { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("../img/menu/menu_fujiwara.jpeg"); }
ul#subnav li.menu3 a { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url("../img/menu/menu_mizuguchi.jpg"); color: #fff; }

/* =========================================
   ページトップに戻るボタン（フローティング）
   ========================================= */
/* クリックした時に「スルスルっ」と滑らかに一番上に戻る魔法 */
html {
  scroll-behavior: smooth;
}

.page-top-btn {
  position: fixed; /* 画面に固定して追従させる */
  bottom: 30px;    /* 下からの位置 */
  right: 30px;     /* 右からの位置 */
  width: 50px;     /* ボタンの幅 */
  height: 50px;    /* ボタンの高さ */
  background-color: #3498db; /* アクセントカラーの青 */
  border-radius: 50%; /* まん丸にする */
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); /* 浮いているような影 */
  transition: all 0.3s ease;
  z-index: 1000; /* 他の要素より手前に表示 */
}

/* マウスを乗せた時の動き */
.page-top-btn:hover {
  background-color: #2980b9; /* 少し濃い青に */
  transform: translateY(-5px); /* 少し上にフワッと浮く */
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* CSSで作る綺麗な「上向き矢印」 */
.page-top-btn::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff; /* 上の線 */
  border-left: 3px solid #fff; /* 左の線 */
  transform: rotate(45deg); /* 45度回転させて上向きの「く」の字にする */
  margin-top: 5px; /* 矢印がど真ん中に見えるように少し下げる */
}

/* =========================================
   5. コンテンツ：メンバー（Member）
   ========================================= */
.member-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

/* ご好評いただいたカード型デザイン！ */
.member-card {
  display: flex;
  background-color: #f8f9fa; /* うすいグレーの背景 */
  padding: 30px;
  border-radius: 8px; /* 角を少し丸く */
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* ふんわりした影 */
  gap: 30px;
  align-items: center;
}

.member-image {
  flex-shrink: 0;
  width: 200px; 
  height: 200px;
  border-radius: 50%; /* 写真を丸く切り抜く */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 写真にも少し影を */
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  flex: 1;
}

.member-info h3 {
  margin-top: 0;
  margin-bottom: 15px;
  /* ★不要だった青い線（border-bottom）を削除しました！ */
}

.member-info p {
  margin-bottom: 8px;
  line-height: 1.5;
}
/* =========================================
   学生リスト（バッジ付きモダンリスト）
   ========================================= */
.student-section {
  margin-bottom: 50px;
}

.student-degree {
  font-size: 1.2rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 20px;
  color: #333;
}

.modern-student-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px; /* 学生間の余白 */
}

.modern-student-list li {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 4px solid #3498db; /* 左端に青いアクセント */
  transition: transform 0.2s;
}

.modern-student-list li:hover {
  transform: translateX(5px); /* マウスを乗せると少し右に動く */
}

.student-main {
  display: flex;
  align-items: center;
  gap: 15px;
}

.grade-badge {
  background-color: #3498db;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 3px 0;
  border-radius: 20px; /* 丸っこいバッジ */
  width: 50px;
  text-align: center;
}

.badge-d { background-color: #9b59b6; } /* 博士は落ち着いたパープル */
.badge-b { background-color: #1abc9c; } /* 学部はフレッシュなエメラルドグリーン */

.student-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  letter-spacing: 0.05em;
}

.student-theme {
  font-size: 0.95rem;
  color: #666;
  padding-left: 65px; /* バッジの幅の分だけ字下げして綺麗に揃える */
  line-height: 1.5;
}

/* =========================================
   配属状況（洗練されたモダン・クリーンデザイン）
   ========================================= */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 60px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06); /* 影を少し柔らかく広げる */
  border-radius: 12px; /* 丸みを少し強めて、より優しい印象に */
  background-color: #fff;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  min-width: 600px;
}

.modern-table th, 
.modern-table td {
  padding: 18px 20px; /* 余白を少し広げて、ゆったりとした高級感を出す */
  text-align: center;
  border-bottom: 1px solid #f0f0f0; /* とても薄くて上品なグレーの線 */
}

/* 上部のヘッダー全体（左上の空セルも含む） */
.modern-table thead th {
  background-color: #fff; /* 背景はすべて白で統一し、角丸との喧嘩をなくす */
  color: #2c3e50; /* 文字色をネイビーにしてキリッとさせる */
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid #3498db; /* ★アクセントとして、ヘッダーの下にだけ青い直線を引く */
}

/* 左側のヘッダー（課程名） */
.modern-table tbody th.row-header {
  background-color: #fff;
  color: #444;
  font-weight: 600;
  text-align: left;
}

/* 一番下の線は消す（角丸を綺麗に保つため） */
.modern-table tr:last-child th,
.modern-table tr:last-child td {
  border-bottom: none;
}

/* 数字のセル */
.modern-table tbody td {
  color: #555;
  font-size: 1.1rem;
}

/* 行にマウスを乗せた時のアクション */
.modern-table tbody tr:hover td,
.modern-table tbody tr:hover th.row-header {
  background-color: #f8fafc; /* ホバー時はごく僅かに青みがかった清潔感のあるグレーに */
}

/* =========================================
   コンテンツ：研究内容（Research）
   ========================================= */

/* 各教員の研究紹介などの見出し上の余白 */
.section-divider {
  margin-top: 80px;
}

/* 先生ごとの大きなセクション（カード風の背景で区切る） */
.research-section {
  margin-bottom: 60px;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
  border: 1px solid #f0f0f0;
}

/* 先生の名前とサブタイトル */
.research-section h3 {
  margin-top: 0; /* 上部の隙間をなくす */
  font-size: 1.6rem; /* 先生の名前を少し大きくして堂々とした印象に */
  color: #2c3e50; /* 名前は落ち着いたネイビー */
  
  /* ★線を完全に削除し、余白もリセットしました！ */
  border: none; 
  padding: 0; 
  
  margin-bottom: 30px;
  line-height: 1.4;
}

/* 研究テーマ（サブタイトル） */
.research-subtitle {
  display: block;
  font-size: 1.15rem; 
  color: #3498db; /* テーマは鮮やかな青色で目立たせる */
  margin-top: 8px;
  font-weight: 700; /* 太字 */
  letter-spacing: 0.05em; 
}

/* リストのデザイン */
.custom-list {
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 20px;
}

.custom-list li {
  margin-bottom: 8px;
}

/* --- 画像とテキストの並び（Flexbox） --- */
.research-flex {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.research-flex.reverse {
  flex-direction: row-reverse;
}

.research-text { 
  flex: 1; 
}

.research-image {
  width: 45%;
  flex-shrink: 0;
  text-align: center;
}

.research-image img {
  /* ★大幅変更：すべての画像を灰色枠内に収める魔法 */
  width: 100%;          /* 横幅はコンテナいっぱい */
  aspect-ratio: 4 / 3;   /* ★追加：枠の比率を固定（例：横4:縦3） */
  object-fit: contain;  /* ★追加：切らずに全部見せて、余白を作る */
  background-color: #f0f0f0; /* ★追加：足りない部分の灰色 */
  
  /* 角丸と影を適用 */
  border-radius: 8px; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* 画像の上下余白調整用クラス（そのまま） */
.mb-10 { margin-bottom: 10px; }
.mt-20 { margin-top: 20px; }

/* --- キャプションのデザイン --- */
.research-caption {
  font-size: 0.85rem;
  color: #555;
  background-color: #f8f9fa; /* 薄いグレーの背景 */
  padding: 12px 15px; 
  margin-top: 15px; /* 画像からの距離 */
  margin-bottom: 25px; /* ★追加：水口先生の箇所のように複数の画像がある場合の次の画像との距離 */
  border-left: 4px solid #3498db; 
  border-radius: 0 4px 4px 0; 
  text-align: left; 
  line-height: 1.6;
}

/* キャプションが連続する場合の最後の余白を消す */
.research-image .research-caption:last-child {
  margin-bottom: 0;
}

/* --- 橋本先生用の横並び2カラム（Grid） --- */
.research-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  align-items: start;
}
.research-grid-2 .research-image { 
  width: 100%; 
}

/* =========================================
   7. コンテンツ：業績（Publication）
   ========================================= */
.pub-list {
  list-style: none;
  padding: 0;
  margin-bottom: 50px;
}
.pub-list li {
  background: #f8f9fa;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-left: 5px solid #007bff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pub-list strong {
  font-size: 1.1rem;
  color: #333;
}
.pub-list a {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}
.pub-list a:hover { text-decoration: underline; }

/* =========================================
   8. コンテンツ：ニュース（News & Topics）
   ========================================= */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 50px;
}
.news-item {
  display: flex;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}
.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.news-image {
  width: 300px; /* 写真エリアの横幅を固定 */
  flex-shrink: 0;
  background-color: #f8f9fa; /* 写真がない・余白ができた場合の背景色（薄いグレー） */
  
  /* ★追加1：画像エリアの「縦横比」を4:3に強制固定して、高さを揃える */
  aspect-ratio: 4 / 3; 
  
  /* ★追加2：テキストが長くて箱が下に伸びた場合でも、画像を常に中央に配置する */
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-image img {
  width: 100%;
  height: 100%;
  
  /* ★変更：cover（はみ出しを切り抜いて埋める）から
           contain（切らずに全部見せて、余白を作る）に変更 */
  object-fit: contain; 
}

.news-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1; /* ★追加：テキストエリアに余った空間をしっかり埋めさせる */
}
.news-date {
  font-size: 0.95rem;
  color: #007bff;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.news-title {
  font-size: 1.3rem;
  margin: 0 0 10px 0;
  color: #333;
  line-height: 1.4;
}
.news-desc {
  font-size: 1rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* =========================================
   ページネーション（ボタンのデザイン）
   ========================================= */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 50px 0;
}

.pagination-wrapper button {
  padding: 8px 16px;
  border: 2px solid #3498db;
  background-color: #fff;
  color: #3498db;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-wrapper button:hover:not(:disabled) {
  background-color: #3498db;
  color: #fff;
}

.pagination-wrapper button.active {
  background-color: #3498db;
  color: #fff;
}

.pagination-wrapper button:disabled {
  border-color: #eee;
  color: #ccc;
  cursor: not-allowed;
}

/* 数字のボタン */
.page-numbers {
  display: flex;
  gap: 5px;
}

/* =========================================
   9. コンテンツ：アクセスマップ
   ========================================= */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================
   10. フッター
   ========================================= */
.site-footer {
  background-color: #2c3e50; 
  color: #ecf0f1;
  padding: 50px 0 0 0; 
  margin-top: 60px; 
  font-family: inherit;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; 
  gap: 50px;
}
.footer-brand {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}
.footer-brand h2,
.footer-brand h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
  border-bottom: none !important;
}
.footer-brand .footer-address {
  line-height: 1.8;
  color: #bdc3c7; 
  margin: 0;
  font-size: 0.95rem;
}
.univ-name-footer {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #bdc3c7;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.footer-widgets {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.footer-col {
  flex: 1;
  min-width: 200px;
}
.footer-col h3, .footer-info h3 {
  color: #fff;
  font-size: 1.1rem; 
  margin-top: 0;
  margin-bottom: 15px; 
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  line-height: 1.3;
  display: inline-block;
}
.footer-contact p {
  font-size: 0.9rem;
  color: #bdc3c7;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.6;
}
.footer-contact .contact-email {
  display: inline-block;
  font-weight: 600;
  color: #3498db; 
  background-color: rgba(255,255,255,0.05); 
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li {
  margin-bottom: 10px; 
  border-bottom: 1px solid #3a4f63; 
  padding-bottom: 8px;
}
.footer-nav li:last-child { border-bottom: none; }
.footer-nav a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s;
  display: block;
  line-height: 1.4;
  font-size: 0.9rem; 
}
.footer-nav a:hover {
  color: #3498db; 
  padding-left: 5px; 
}
.jp-nav {
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-left: 10px;
}
.en-link {
  font-size: 0.75rem;
  color: #7f8c8d;
  display: block; 
  margin-top: 3px;
}
.footer-nav a:hover .en-link { color: #85c1e9; }
.footer-bottom {
  background-color: #1a252f;
  text-align: center;
  padding: 12px; 
  margin-top: 40px; 
  color: #7f8c8d;
  font-size: 0.85rem;
}

/* =========================================
   11. スマホ対応（レスポンシブ調整を一括管理）
   ========================================= */
@media (max-width: 768px) {
  /* ナビゲーション */
  .nav-container { flex-direction: column; height: auto; padding: 15px; }
  .nav-links { flex-wrap: wrap; justify-content: center; margin-top: 15px; }
  .nav-links li { margin: 5px 10px; }
  
  /* サブナビ */
  ul#subnav { flex-direction: column; }
  ul#subnav li { width: 100%; margin-bottom: 15px; }

  /* トップページニュースのスマホ対応 */
  .top-news-list li a {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-meta {
    width: 100%;
    margin-bottom: 10px;
  }

  /* ページトップボタンのスマホ対応 */
  .page-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* メンバー */
  .member-card { flex-direction: column; align-items: center; text-align: center; padding: 20px;}
  .member-image { margin-right: 0; margin-bottom: 20px; }

  /* 学生リストのスマホ対応 */
  .student-theme { padding-left: 0; margin-top: 5px; }
  
  /* 研究内容 */
  .research-section {
    padding: 25px 15px; /* スマホでは内側の余白を少し狭める */
  }

  .research-flex, 
  .research-flex.reverse {
    flex-direction: column; /* スマホでは強制的に縦並びにする */
    gap: 20px;
  }

  /* ★スマホでは画像をテキストよりも【上】に配置する魔法 */
  .research-image { 
    width: 100%; 
    margin-bottom: 20px; 
    order: -1; 
  }

  .research-text {
    order: 1;
  }

  .research-grid-2 { 
    grid-template-columns: 1fr; /* 写真を2列から1列に変更 */
  }

  /* ニュース */
  .news-item { flex-direction: column; }
  
  .news-image { 
    width: 100%; 
    height: 220px; /* スマホ時は高さを220pxに固定 */
    aspect-ratio: auto; /* PCで設定した4:3を解除して高さを優先させる */
  }
  
  .news-content { padding: 20px; }
}