/* ========================
  基本設定
======================== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ========================
  ヘッダー全体（太め）
======================== */
.top-header {
  background: #003366;
  color: white;
  padding: 25px 30px;   /* 高さ */
  border-bottom: 3px solid #001f4d;

  /* フォント（Rodin風） */
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ========================
  内側コンテナ
======================== */
.header-inner {
  max-width: none;
  margin: 0 auto;
}

/* ========================
  ロゴ＋テキスト横並び
======================== */
.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ========================
  ロゴ画像
======================== */
.logo-area img {
  height: 80px;
  width: auto;
}

/* ========================
  テキスト全体（縦並び）
======================== */
.title-text {
  display: flex;
  flex-direction: column;
}

/* ========================
  1行目（控えめ）
======================== */
.line1 {
  font-size: 17px;
  opacity: 0.85;
  letter-spacing: 0.03em;   /* 少し広げる（Rodin感） */
}

/* ========================
  2行目（強調・メイン）
======================== */
.line2 {
  font-size: 30px;
  font-weight: 600;         /* ←太すぎない（重要） */
  margin-top: 6px;
  letter-spacing: 0.05em;   /* Rodinっぽい余白 */
}

.line2 a {
  color: inherit;          /* 親の色を使う */
  text-decoration: none;   /* 下線消す */
}

.line2 a:hover {
  text-decoration: underline;
}

.line2 a:visited {
  color: white;
  }


/* ========================
  スマホ対応
======================== */
@media (max-width: 768px) {

  .top-header {
    padding: 20px 15px;
  }

  .logo-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo-area img {
    height: 60px;
  }

  .line1 {
    font-size: 13px;
  }

  .line2 {
    font-size: 20px;
  }

}



/* ========================
  全体レイアウト
======================== */
.main-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ========================
  サイドバー
======================== */
.sidebar {
  width: 220px;
  background: #f5f5f5;
  padding: 20px;
  box-sizing: border-box;
}

.sidebar h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.sidebar nav a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: #333;
}

.sidebar nav a:hover {
  background: #ddd;
}

/* 現在ページ */
.sidebar nav a.active {
  background: #003366;
  color: white;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
    font-size: 16px;
    padding: 10px;
    background: #003366;
    color: white;
    cursor: pointer;
  }

  .menu-toggle span {
    font-size: 22px;
  }



  .sidebar {
    display: none;
  }

  .sidebar.active {
    display: block;
  }

}

/* ========================
  バナー
======================== */
.banner img {
  width: 100%;
  margin-top: 10px;
}


@media (max-width: 768px) {
  .banner {
    display: none;
  }
}


/* ========================
  メインコンテンツ
======================== */
.content {
  flex: 1;
  padding: 30px;
}

h1 {
  color: #003366;
}

h2 {
  border-bottom: 2px solid #003366;
  padding-bottom: 5px;
}

h3 {
  margin-top: 15px;
  font-size: 16px;
  color: #333;
  background: #e6eef6;
  padding: 8px 10px;

}

/* ========================
  News
======================== */
.news {
  list-style: none;
  padding-left: 0;
}

.news li {
  margin-bottom: 8px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px;
}


.news-box {
  max-height: 180px;     /* ←高さ固定 */
  overflow-y: auto;      /* ←縦スクロール */
  border: 1px solid #ccc;
  padding: 10px;
  background: #fafafa;
}


/* ========================
  ギャラリー
======================== */
.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.gallery img {
  width: 300px;
  height: auto;
  border-radius: 5px;
}


/* ========================
  メンバー
======================== */
.member-list {
  margin-bottom: 20px;
}

.member {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

/* メンバーカード */
.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.member-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  width: 150px;
  text-align: center;
  background: #fafafa;
}

.member-card .role {
  font-weight: bold;
  color: #003366;
}

.member-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {

  .member-card img {
    max-width: 250px;
    margin: 0 auto;
    display: block;

    object-fit: contain;   /* ←これが重要 */
  }

}



/* 教員横並び */
.staff {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

/* 教員画像 */
.staff img {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}

/* 教員情報 */
.staff-info {
  display: flex;
  flex-direction: column;
}

/* 役職 */
.staff-role {
  font-size: 16px;
  color: #666;
}

/* 名前 */
.staff-name {
  font-size: 20px;
  font-weight: bold;
}

/* リンク */
.staff-info a {
  margin-top: 5px;
  color: #003366;
}
.staff-section,
.students-section {
  width: 100%;
  margin-bottom: 30px;
}

.email {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
}

.note {
  font-size: 12px;
  color: #888;
}
.orcid {
  margin-top: 5px;
}

.orcid a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.orcid img {
  width: 46px;
  height: 18px;
}
/* ========================
  学会発表
======================== */
.conference-list {
  list-style: none;
  padding-left: 0;
}

.conference-list li {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #ccc;
}

/* ========================
  学生リスト
======================== */
.student-list {
  list-style: none;
  padding-left: 0;
}

.student-list li {
  padding: 4px 0;
  border-bottom: 1px dotted #ccc;
}

/* ========================
  研究概要画像
======================== */
.research-images {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.research-images img {
  width: 300px;    /* ←基本サイズ */
  height: auto;
  border-radius: 6px;
}

/* ✅ スマホ対応 */
@media (max-width: 768px) {

  .research-images {
    flex-direction: column;   /* 縦並び */
  }

  .research-images img {
    width: 100%;
    max-width: 400px;         /* 大きすぎ防止 */
    margin: 0 auto;
    display: block;
  }

}

/* ========================
  スマホ対応
======================== */
@media (max-width: 768px) {

  .main-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }

  .gallery {
    flex-direction: column;
  }

  .gallery img {
    width: 100%;
  }

  .member-grid {
    flex-direction: column;
  }

  .member-card {
    width: 100%;
  }

}
/* ========================
  アクセス
======================== */


.map {
  margin-top: 20px;
}

.map iframe {
  border-radius: 8px;
}
