body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  /* font-variant-numeric: tabular-nums; */
  color: #000000;
  font-size: 95%;
  line-height: 120%;
  margin-left: 10px;
  margin-right: 10px;
}
a {
  color: #0033ff;
  text-decoration: none;
}
a:hover {
  color: #ffffff;
  text-decoration: none;
  background: #9999ff;
}

ul {
  list-style: disc;
  margin: 0 0 1em 2em;
  padding: 0;
}
ol {
  margin: 0 0 1em 2em;
  padding: 0;
}

li {
  line-height: 1.1;
  margin-bottom: 0.8em;
}
ul.tight-list li {
  margin-bottom: 0.2em;
}

/* ============================================= */
/* 共通外枠：ブランドヘッダー、サイドナビゲーション、本文 */
:root {
  --shell-navy: #1f2d5a;
  --shell-navy-dark: #162246;
  --shell-teal: #197984;
  --shell-teal-soft: #e2f1f2;
  --shell-bg: #edf1f6;
  --shell-sidebar: #e9eef4;
  --shell-border: #cbd4df;
  --shell-text: #1d2b45;
  --shell-muted: #5d6878;
  --shell-max-width: 1180px;
  --shell-sidebar-width: 220px;
}

body {
  margin: 0;
  background: var(--shell-bg);
}

#wrapper {
  width: min(var(--shell-max-width), calc(100% - 24px));
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(31, 45, 90, 0.08);
}

#header-container {
  width: 100%;
  border-bottom: 1px solid var(--shell-border);
  background: #fff;
}

.site-topbar {
  width: 100%;
  height: 5px;
  background: var(--shell-navy);
}

.site-header {
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  padding: 9px 20px;
  background: #f8fafc;
}

.site-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--shell-text);
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus-visible {
  color: var(--shell-text);
  background: transparent;
}

.site-brand:focus-visible,
.site-language-switch:focus-visible,
.site-menu-toggle:focus-visible,
.site-navigation a:focus-visible {
  outline: 3px solid rgba(25, 121, 132, 0.45);
  outline-offset: 2px;
}

.site-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.site-brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
  line-height: 1.16;
}

.site-brand-short {
  color: var(--shell-navy-dark);
  font-size: 20px;
  line-height: 1.1;
}

.site-brand-full {
  color: var(--shell-text);
  font-size: 13px;
  font-weight: 650;
}

.site-brand-jp {
  color: var(--shell-text);
  font-size: 12px;
  font-weight: 650;
}

.site-brand-university {
  color: var(--shell-muted);
  font-size: 11px;
}

.site-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-language-switch {
  min-width: 44px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #aebbc9;
  border-radius: 6px;
  color: var(--shell-navy);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.site-language-switch:hover {
  color: var(--shell-navy-dark);
  border-color: var(--shell-teal);
  background: var(--shell-teal-soft);
}

.site-menu-toggle {
  min-width: 46px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #aebbc9;
  border-radius: 6px;
  color: var(--shell-navy);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.site-menu-toggle:hover,
.site-menu-toggle.is-open {
  border-color: var(--shell-teal);
  background: var(--shell-teal-soft);
}

.site-menu-icon {
  width: 18px;
  display: grid;
  gap: 3px;
}

.site-menu-icon span {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-menu-toggle.is-open .site-menu-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-menu-toggle.is-open .site-menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-menu-toggle.is-open .site-menu-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-mobile-navigation {
  border-top: 1px solid var(--shell-border);
  border-bottom: 1px solid var(--shell-border);
  background: #f5f8fb;
  box-shadow: 0 8px 18px rgba(31, 45, 90, 0.08);
}

.site-mobile-navigation[hidden] {
  display: none;
}

/* 2カラムレイアウト */
#container {
  width: 100%;
  display: grid;
  grid-template-columns: var(--shell-sidebar-width) minmax(0, 1fr);
  align-items: stretch;
  box-sizing: border-box;
}

#sidebar {
  min-width: 0;
  box-sizing: border-box;
  padding: 20px 14px;
  background: var(--shell-sidebar);
  border-right: 1px solid var(--shell-border);
  color: var(--shell-text);
  font-size: 14px;
}

#sidebar #menu-container {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 122px);
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: #9ba9b8 transparent;
  scrollbar-width: thin;
}

.site-navigation {
  color: var(--shell-text);
}

.site-nav-section + .site-nav-section {
  margin-top: 16px;
}

.site-nav-heading {
  margin: 0 8px 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--shell-navy-dark);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.site-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-list li {
  margin: 0;
  line-height: 1.3;
}

.site-navigation a {
  min-height: 34px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 1px 0;
  padding: 6px 10px;
  border-left: 4px solid transparent;
  border-radius: 0 5px 5px 0;
  color: #253553;
  background: transparent;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-navigation a:hover {
  color: var(--shell-navy-dark);
  background: rgba(255, 255, 255, 0.72);
}

.site-navigation a[aria-current="page"] {
  border-left-color: var(--shell-teal);
  color: var(--shell-navy-dark);
  background: var(--shell-teal-soft);
  font-weight: 750;
}

.site-navigation a[aria-current="page"]:hover,
.site-navigation a[aria-current="page"]:focus-visible {
  color: var(--shell-navy-dark);
  background: #d2e8ea;
}

.external-link-mark {
  margin-left: 0.35em;
  font-size: 0.85em;
}

#content {
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 20px;
  background: #fff;
}

.site-footer {
  width: 100%;
  min-height: 76px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 13px 20px 14px;
  border-top: 4px solid var(--shell-navy);
  background: #f3f6fa;
  color: var(--shell-muted);
  line-height: 1.4;
}

.site-footer-branding {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 12px;
}

.site-footer-brand {
  width: fit-content;
  color: var(--shell-navy-dark);
  font-size: 17px;
  font-weight: 800;
}

.site-footer-brand:hover,
.site-footer-brand:focus-visible,
.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--shell-teal);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer-meta {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 7px;
  text-align: right;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.site-footer-links a {
  color: var(--shell-navy);
}

.site-footer small {
  font-size: 11px;
}

@media (min-width: 841px) {
  .site-mobile-navigation {
    display: none !important;
  }
}

@media (max-width: 840px) {
  body {
    width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
  }

  #wrapper,
  #header-container,
  .site-header,
  .footer-container,
  #container,
  #content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  #wrapper {
    box-shadow: none;
  }

  #header-container {
    position: relative;
    z-index: 50;
  }

  .site-topbar {
    height: 4px;
  }

  .site-header {
    min-height: 64px;
    gap: 8px;
    padding: 7px 10px;
  }

  .site-brand {
    gap: 8px;
  }

  .site-logo {
    width: 46px;
    height: 46px;
  }

  .site-brand-copy {
    gap: 2px;
  }

  .site-brand-short {
    font-size: 17px;
    white-space: nowrap;
  }

  .site-brand-full,
  .site-brand-jp {
    display: none;
  }

  .site-brand-university {
    font-size: 0;
    line-height: 1;
  }

  .site-brand-university::after {
    content: "TUAT";
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.06em;
  }

  .site-header-actions {
    gap: 6px;
  }

  .site-language-switch {
    min-height: 44px;
    padding: 0 9px;
    background: #f3f6fa;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  #container {
    display: block;
  }

  #sidebar {
    display: none;
  }

  #content {
    padding: 16px;
  }

  .site-mobile-navigation {
    position: absolute;
    z-index: 100;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100vh - 68px);
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-color: #9ba9b8 transparent;
    scrollbar-width: thin;
  }

  #mobile-menu-container {
    padding: 8px 10px 10px;
  }

  #mobile-menu-container .site-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 10px 8px;
    border: 1px solid var(--shell-border);
    border-radius: 8px;
    background: #fff;
  }

  #mobile-menu-container .site-nav-section + .site-nav-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid var(--shell-border);
  }

  #mobile-menu-container .site-nav-heading {
    margin: 0 8px 3px;
    line-height: 1.25;
  }

  #mobile-menu-container .site-navigation a {
    min-height: 42px;
    margin: 0;
    padding: 7px 10px;
    border-bottom: 1px solid #e4e9ef;
    border-radius: 0;
    line-height: 1.35;
  }

  #mobile-menu-container .site-nav-list li:last-child a {
    border-bottom-color: transparent;
  }

  #mobile-menu-container .site-navigation a[aria-current="page"] {
    border-radius: 0 4px 4px 0;
  }

  #mobile-menu-container .site-nav-accordion-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    margin: 0;
    padding: 7px 10px;
    border: 0;
    border-left: 4px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--shell-navy-dark);
    font: inherit;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
  }

  #mobile-menu-container .site-nav-accordion-toggle::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--shell-teal);
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1;
  }

  #mobile-menu-container .site-nav-accordion-toggle[aria-expanded="true"]::after {
    content: "−";
  }

  #mobile-menu-container .site-nav-accordion-toggle:hover,
  #mobile-menu-container .site-nav-accordion-toggle:focus-visible,
  #mobile-menu-container .site-nav-accordion-toggle[aria-expanded="true"] {
    background: #f3f7fa;
    color: var(--shell-navy-dark);
  }

  #mobile-menu-container .site-nav-accordion-toggle:focus-visible {
    outline: 3px solid rgba(25, 121, 132, 0.35);
    outline-offset: -3px;
  }

  #mobile-menu-container .site-nav-accordion-toggle.contains-current {
    border-left-color: var(--shell-teal);
    background: var(--shell-teal-soft);
  }

  #mobile-menu-container .site-nav-accordion-toggle + .site-nav-list {
    padding-left: 10px;
    background: #f8fafc;
  }

  .site-footer {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px 16px;
  }

  .site-footer-meta {
    width: 100%;
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 540px) {
  #mobile-menu-container .site-navigation a,
  #mobile-menu-container .site-nav-accordion-toggle {
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-right: 8px;
    padding-left: 8px;
  }

  .site-brand {
    gap: 6px;
  }

  .site-logo {
    width: 42px;
    height: 42px;
  }

  .site-brand-short {
    font-size: 16px;
  }

  .site-language-switch {
    min-width: 42px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 13px;
  }

  .site-menu-toggle {
    min-width: 44px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .site-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.products-container {
  margin-top: 20px;
  padding-top: 10px;
}
.products-container ul {
  list-style-type: none;
}
.products-container ol {
  margin-left: 0em;
  text-indent: -1em;
}
#products-container ol li::marker {
  font-size: 0.95em;
}

.publication-summary {
  display: flex;
  align-items: flex-start;
  gap: 1.2em;
  margin: 0.5em 0 0.2em 0;
}

.publication-summary-table {
  border-collapse: collapse;
  flex-shrink: 0;
  font-size: 0.95em;
}

.publication-summary-table th,
.publication-summary-table td {
  border: 1px solid #b8b8b8;
  padding: 0.3em 0.55em;
}

.publication-summary-table th {
  background-color: #f3f4f8;
  font-weight: normal;
  text-align: center;
}

.publication-summary-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.publication-summary-total th,
.publication-summary-total td {
  background-color: #f8f8f8;
  font-weight: bold;
}

.publication-links {
  list-style: none;
  margin: 0;
  padding: 0.15em 0 0 0;
  line-height: 1.35;
}

.publication-links li {
  margin-bottom: 0.2em;
}

/* ===== Diary page: match top-news look (content unchanged) ===== */
#diary-container .news-item h5 {
  background: none !important;
  border: none !important;
  border-left: none !important;
  padding: 0 !important;
  margin: 0 0 0.15em 0 !important;

  font-weight: 700;
  font-size: 1em;
  line-height: 1.35;
  color: inherit;
}

#diary-container .news-item {
  padding: 0.2em 0 0.8em 0;
  border-bottom: none !important;
  margin-bottom: 0.8em;
  max-width: 98%;
}

#diary-container .news-item h5 {
  font-weight: 700;
  margin: 0 0 0.15em 0;
}

#diary-container .news-summary {
  color: #555;
  font-size: 0.95em;
  margin: 0.2em 0 0.4em 0;
  line-height: 1.45;
}

/* 本文（要約以外）は現状維持のまま、余白だけ整える */
#diary-container .news-item p:not(.news-summary) {
  margin: 0.25em 0;
}

/* リストがある場合も詰まりすぎないように */
#diary-container .news-item ul {
  margin: 0.25em 0 0.35em 1.2em;
}

.news-search-input {
  width: 100%;
  max-width: 520px;
}

/* ===== Top page: News block ===== */
.news-summary {
  color: #555;
  font-size: 0.95em;
  margin: 0.2em 0 0.4em 0;
  line-height: 1.45;
}

#top-news .top-news-all {
  text-align: right;
  margin: 0.6em 0;
}

/* ============================================= */

.img-right {
  float: right; /* 画像を右寄せ */
  margin-left: 15px; /* 左に余白をつけてテキストとの間隔を確保 */
  margin-bottom: 10px;
  width: 240px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ============================================= */
.update {
  text-align: right;
  font-size: 0.9em;
  color: #666;
  margin: 0 0 10px auto; /* ← 右寄せの要 */
  padding: 0 0 2px 0;
  border-bottom: 1px solid #aab7e0;
  max-width: 420px; /* ← 好みで調整 */
}

/* ============================================= */
h2 {
  font-weight: bold;
  padding: 20px 0px 12px 15px;
  margin: 8px 0em 0.5em 0em;
  background: #5669a2;
  color: white;
  font-size: 1.5em;
  border-radius: 4px; /* 角を丸く */
}
h3 {
  color: #333333;
  font-weight: bold;
  font-size: 1.2em;
  border-left: 15px solid #1f274f;
  padding: 20px 0px 8px 12px;
  margin: 2em 0 0.5em 0em;
  background-color: #ced4e5; /* 見出しを少し目立たせる */
  border-radius: 4px; /* 角を丸く */
}

h4 {
  color: #333333;
  font-size: 1.1em; /* 少し大きく */
  font-weight: bold;
  color: #2d3e74;
  margin-top: 1.2em;
  margin-right: 1em;
  padding-bottom: 4px;
  border-bottom: 2px solid #2d3e74; /* 下線を追加 */
}

h5 {
  color: #333333;
  border: solid #5669a2;
  border-width: 0 0 0 12px;
  margin: 6px 1em 0.5em 0;
  padding: 0.9em 0 0.3em 0.5em;
  font-weight: bolder;
  background-color: #e5ecfe;
  font-size: 1em;
}
h6 {
  border: solid #aab7e0;
  border-width: 0 0 0 8px;
  margin: 6px 0;
  padding: 0.3em 1em 0.1em 0.5em;
  font-weight: bolder;
  font-size: 0.95em;
}

hr {
  width: 98%; /* 水平線の幅を98%に設定 */
  border: none; /* デフォルトのボーダーを削除 */
  border-top: 2px solid #ccc; /* 水平方向の線を追加 */
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ============================================= */
.framebox_leftbelt {
  border: solid #aab7e0;
  border-width: 0 0 6px 6px;
  padding: 2px 0 0 1em;
  margin: 0 0 2em 1em;
  overflow: hidden; /* はみ出しを防ぐ */
}

.framebox_dash {
  border: dashed #aab7e0;
  border-width: 0 0 3px 3px;
  padding: 2px 0 0.5em 1em;
  margin: 0 0 2em 1em;
  overflow: hidden; /* はみ出しを防ぐ */
}
.framebox_dash p {
  margin: 0.5em 0 1em 0;
}

.notice-box {
  border-left: 6px solid #d29a22;
  background: #fff7df;
  padding: 0.7em 1em;
  margin: 0 0 2em 1em;
}

.notice-box p {
  margin: 0;
}

.deadline-callout {
  display: inline-block;
  border: 1px solid #d29a22;
  background: #fff7df;
  color: #6d4100;
  font-weight: 700;
  padding: 0.35em 0.7em;
  margin: 0.4em 0 0.8em 0 !important;
}

.rss-link {
  text-align: right;
  margin: -0.4em 0 0.8em 0;
  font-size: 0.9em;
}

.diarylist p {
  padding: 0 0 0 4em;
  margin: 0.2em 0;
  text-indent: -4em;
}

.h5-boxless {
  margin: 0 0 0 0.5em;
  padding: 4px;
  overflow: hidden;
}
.h5-boxless p {
  margin: 0 0 1em 0;
}

.framebox_edgeless {
  padding: 0.5em;
  margin: 1em;
  background: #eeeeee;
}
.framebox_edgeless ul {
  list-style: disc outside;
  margin-left: 1.5em;
  margin-bottom: 0px;
}
.framebox_edgeless ul li {
  margin-bottom: 3px;
}

.presentation-nav,
.publication-nav {
  margin: 1em 0 1.5em 1em;
  padding: 0;
}
.presentation-nav ul,
.publication-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.presentation-nav a,
.publication-nav a {
  display: inline-block;
  border: 1px solid #aab7e0;
  border-radius: 4px;
  background: #f4f7ff;
  color: #0033ff;
  padding: 0.35em 0.75em;
  text-decoration: none;
}
.presentation-nav a:hover,
.publication-nav a:hover {
  background: #e5ecfe;
  color: #0033ff;
}
.presentation-note {
  border-left: 4px solid #5669a2;
  background: #f4f7ff;
  padding: 0.5em 0.8em;
}
.presentation-list {
  line-height: 1.55;
  margin: 0 0 1em 1em;
  padding-left: 1.25em;
}
.presentation-list li {
  margin-bottom: 0.55em;
}

.profile-nav {
  margin: 1em 0 1.5em 1em;
  padding: 0;
}
.profile-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  list-style: none;
  margin: 0;
  padding: 0;
}
.profile-nav a {
  display: inline-block;
  border: 1px solid #aab7e0;
  border-radius: 4px;
  background: #f4f7ff;
  color: #0033ff;
  padding: 0.35em 0.75em;
  text-decoration: none;
}
.profile-nav a:hover {
  background: #e5ecfe;
  color: #0033ff;
}
.profile-photo {
  margin: 0.2em 2.4em 1em 1em;
}
.profile-summary {
  margin: 0.2em 0 1em 0;
}
.profile-name {
  color: #1e2a50;
  font-weight: 700;
  font-size: 1.1em;
}
.profile-cv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border: 1px solid #aab7e0;
  border-radius: 4px;
  background: #f4f7ff;
  color: #0033ff;
  padding: 0.25em 0.6em;
  margin-right: 0.5em;
}
.profile-cv-link:hover {
  background: #e5ecfe;
  color: #0033ff;
}
.profile-muted {
  color: #666;
  font-size: 0.9em;
}
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  list-style: none;
  margin: 0.5em 0 1em 0;
  padding: 0;
}
.profile-links li {
  margin: 0;
}
.profile-links a {
  display: inline-block;
  border: 1px solid #c6cde5;
  border-radius: 4px;
  background: #ffffff;
  color: #0033ff;
  padding: 0.25em 0.55em;
}
.profile-links a:hover {
  background: #e5ecfe;
  color: #0033ff;
}
.profile-grants ul {
  list-style: none;
  margin: 0.4em 0 1.2em 0.8em;
  padding: 0;
}
.profile-grants li {
  border-left: 4px solid #c6cde5;
  background: #f8f9fd;
  padding: 0.5em 0.8em 0.5em 1em;
  margin-bottom: 0.55em;
  line-height: 1.35;
}
/* ============================================= */
/* メンバー一覧のセクション */
.professor,
.students,
.alumni {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
}

/* 各セクションの見出し */
.professor h4,
.students h4,
.alumni h4 {
  margin-bottom: 10px;
  color: #333;
}

/* ============================================= */
/* 研究紹介ページの画像配置（右寄せ） */
.research-img {
  float: right; /* 画像を右寄せ */
  margin-left: 15px; /* 左に余白をつけてテキストとの間隔を確保 */
  margin-bottom: 10px;
  width: 240px;
  max-width: 100%;
}

/* セクションタイトル（リストの見出し） */
.section-title {
  font-weight: bold;
  background-color: #e0e0e0;
  padding: 8px 10px;
  margin: 20px 0 10px 0;
  border-left: 4px solid #666;
  font-size: 16px;
  clear: both; /* 画像と見出しが重ならないように */
}

/* ============================================= */
/* アクセスページのセクション */
.access-section {
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
}

/* 視認性向上のための見出し */
.section-title {
  font-weight: bold;
  background-color: #e0e0e0;
  padding: 8px 10px;
  margin: 20px 0 10px 0;
  border-left: 4px solid #666;
  font-size: 16px;
}

/* アクセスページのリンク */
.access-section a {
  color: #0033ff;
  text-decoration: none;
  font-weight: bold;
}

.access-section a:hover {
  color: #ffffff;
  background: #9999ff;
  text-decoration: none;
  padding: 2px 5px;
  border-radius: 3px;
}

/* ============================================= */
/* ===== JP Diary (recent30/archive) header-only card override ===== */
#diary-container .news-item h5 {
  display: block;
  margin: 0 !important;
  padding: 0.55em 0.7em 0.15em 0.7em !important;
  border-left: 4px solid rgba(0, 0, 0, 0.12) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  border-radius: 8px 8px 0 0 !important;
  border-bottom: none !important;
  border-right: none !important;
  border-top: none !important;
}

#diary-container .news-item .news-summary {
  margin: 0 !important;
  padding: 0.15em 0.7em 0.55em 0.7em !important;
  border-left: 4px solid rgba(0, 0, 0, 0.12) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  border-radius: 0 0 8px 8px !important;
  border-bottom: 3px solid rgba(0, 0, 0, 0.12) !important;
}

/* 本文ぶら下げ（必要なら） */
#diary-container .news-item p:not(.news-summary) {
  margin: 0.55em 0 0 0;
  padding-left: 0.7em;
}
#diary-container .news-item p:not(.news-summary) + p:not(.news-summary) {
  margin-top: 0.45em;
}

/* 1記事の下線はカード運用だと不要なら消す（任意） */
#diary-container .news-item {
  border-bottom: none !important;
  padding-bottom: 0.2em; /* 好み */
  margin-bottom: 1em; /* 好み */
}

/* ===== Top page (Latest 8): header-only card ===== */
#top-news .top-news-item h5 {
  display: block;
  margin: 0 !important;
  padding: 0.55em 0.7em 0.15em 0.7em !important;
  border-left: 4px solid rgba(0, 0, 0, 0.12) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  border-radius: 8px 8px 0 0 !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

#top-news .top-news-item .news-summary {
  margin: 0 !important;
  padding: 0.15em 0.7em 0.55em 0.7em !important;
  border-left: 4px solid rgba(0, 0, 0, 0.12) !important;
  border-bottom: 3px solid rgba(0, 0, 0, 0.12) !important;
  background: rgba(0, 0, 0, 0.02) !important;
  border-radius: 0 0 8px 8px !important;
}

#top-news .top-news-item {
  border-bottom: none !important;
  margin: 0.9em 0 1.1em 0;
}

/* ===== EN News cards (shared) ===== */
.en-news-list {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  padding: 0.2em 0;
}

.en-news-item {
  padding: 0.55em 0.7em;
  border-left: 4px solid rgba(0, 0, 0, 0.12);
  border-bottom: 3px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

.en-news-date {
  font-size: 0.92em;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.15em;
}

.en-news-title {
  font-weight: 600;
  line-height: 1.35;
}

/* EN news title links (optional) */
.en-news-title a {
  text-decoration: none;
}
.en-news-title a:hover {
  text-decoration: underline;
}
/* ============================================= */
