﻿/* 全体のリセット */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

main a,
.site-footer a {
  color: #0066cc;
  text-decoration: none;
}

main a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

/* ヘッダ全体 */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);  /* ← 少し透過 */
  backdrop-filter: blur(6px);   
  border-bottom: 1px solid #ccc;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 通常時 */
.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  margin-left: 20px;
}

.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/* 幅が狭いとき */
@media (max-width: 1150px) {
  .hamburger {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px 20px;
  }

  .nav.active {
    display: block;
  }

  .nav ul {
    display: block;
  }

  .nav li {
    margin: 10px 0;
  }
}

.close-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* モバイル時のみ表示 */
@media (max-width: 1150px) {
  .close-btn {
    display: block;
    text-align: right;
    width: 100%;
  }
}

/* ロゴ */
.logo a {
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* ナビゲーション */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
}

.nav li {
  margin-left: 10px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 16px;

  padding: 8px 10px;
}

.nav a.active {
  background-color: #d0ebff;
  border-radius: 16px;
}

/* ホバー時 */
.nav a:hover {
  color: #007acc;
}

/* ロゴ全体を横並び */
.logo {
  display: flex;
  align-items: center;
}

/* 画像とテキストの間隔 */
.logo-img {
  margin-right: 10px;
}

/* テキストを縦並びに */
.logo-text {
  display: flex;
  flex-direction: column;
}

/* テキストの見た目 */
.logo-text a:first-child {
  font-size: 24px;
  color: #777;
  letter-spacing: 0.05em;
}

.logo-text a:last-child {
  font-size: 40px;
  color: #222;
  font-weight: 600;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 180px 20px 20px;
  font-size: 20px;
}

h2 {
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

h3 {
  border-left: 4px solid #333;
  padding-left: 10px;
  margin-left: 0;
}

h4 {
  margin-top: 20px;
  margin-bottom: 10px;

  font-size: 24px;
  font-weight: 600;
  color: #0F4761;

  /* padding-left: 8px; */
  /* border-left: 3px solid #999; */
}

h4::before {
  content: "■";
  font-size: 20px;
  margin-right: 8px;
  vertical-align: middle;
  color: #666;
}

.section-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 40px 0 30px;
}

/* 言語切替 */
.lang-switch {
  margin-top: 10px;
  text-align: right;
}

.lang-switch a {
  display: inline-block;
  padding: 6px 12px;
  margin-left: 6px;
  text-decoration: none;
  color: #333;
  border-radius: 12px;
}

/* ハイライト（薄緑） */
.lang-switch a.active {
  background-color: #d3f9d8;
}

.lab-introduction p {
  line-height: 1.5;
}

.lab-introduction ul {
  line-height: 1.5;
}

/* メンバーテーブル */
.member-table {
  width: 95%;
  border-collapse: collapse;
  margin: 20px auto;
}

.member-table th,
.member-table td {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

.member-table thead th {
  border-bottom: 2px solid #333;
  font-weight: bold;
}

.member-table tbody tr:last-child td {
  border-bottom: 2px solid #333;
}

/* 研究業績 */
details {
  margin-bottom: 20px;
}

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary h3 {
  display: inline;
  margin-left: 4px;
}

details summary::before {
  content: "▼ ";
  font-size: 12px;
}

details:not([open]) summary::before {
  content: "▶ ";
}

.publication-list {
  line-height: 1.25;
}

.publication-list li {
  margin-bottom: 18px;
}

.publication-title {
  font-style: italic;
}

.publication-authors {
  margin-top: 4px;
}

.publication-info {
  margin-top: 4px;
}

.publication-links {
  margin-top: 4px;
  font-size: 0.95em;
}

.publication-links .sep {
  margin: 0 6px;
  color: #999;
}

/* news */
.news-list {
  list-style: none;
  padding-left: 0;
}

.news-list li {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.news-date {
  display: inline-block;
  width: 110px;
  color: #666;
  font-weight: bold;
}

.more-link {
  text-align: right;
}

/* footer */
.site-footer {
  background-color: #f5f5f5;
  border-top: 1px solid #ccc;
  margin-top: 40px;
}

.footer-container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.last-updated {
  font-size: 13px;
  color: #777;
  text-align: right;
  margin-top: 30px;
}