/* ============================================================
   関屋・グエン研究室 新デザイン
   ============================================================ */

/* ---------- 色・共通設定（ここを変えると全体の雰囲気が変わる） ---------- */
:root {
  --navy:       #0b1f4b;   /* メインカラー（旧サイトの紺を少し落ち着かせた色） */
  --accent:     #1dafd3;   /* アクセント（旧サイトのホバー色を継承） */
  --text:       #222;
  --text-sub:   #666;
  --bg:         #ffffff;
  --bg-gray:    #f4f5f7;
  --line:       #e2e4e8;
  --max-width:  1100px;
  --header-h:   72px;
  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Noto Sans JP", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: var(--max-width);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  flex-shrink: 0;            /* 幅が狭くても研究室名を潰さない */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy);
  line-height: 1.2;
}
.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-sub);
}

.global-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  line-height: 1.3;
}
.global-nav a small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-sub);
}
.global-nav a:hover,
.global-nav a.is-current {
  border-bottom-color: var(--accent);
  color: var(--navy);
}
.global-nav a.lang {
  justify-content: center;
  margin-left: 8px;
  border: 1px solid var(--navy);
  border-radius: 4px;
}
.global-nav a.lang:hover {
  background: var(--navy);
  color: #fff;
}

.menu-toggle {
  display: none;
  padding: 8px 14px;
  font: 700 12px var(--font);
  letter-spacing: 0.15em;
  color: var(--navy);
  background: none;
  border: 1px solid var(--navy);
  border-radius: 4px;
  cursor: pointer;
}

/* ---------- メイン（キャッチコピー） ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}
.hero.has-photo .hero-pattern { display: none; }
.hero.has-photo::before {          /* 写真の上に暗い膜をかけて文字を読みやすくする */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 75, 0.85) 0%, rgba(11, 31, 75, 0.35) 100%);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-lines line { stroke: rgba(29, 175, 211, 0.28); stroke-width: 1; }
.hero-nodes circle { fill: rgba(29, 175, 211, 0.6); }

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 24px 110px;
}
.hero-label {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.hero-copy {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.hero-copy span { display: inline-block; }   /* 文節の途中で改行させない */
.hero-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .btn-light { color: var(--navy); background: #fff; border-color: #fff; }
.hero .btn-light:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.hero .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.6); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- 研究テーマ ---------- */
.research { padding-bottom: 72px; }
.research-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.research-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  transition: border-color 0.2s, transform 0.2s;
}
.research-card:hover {
  color: var(--text);
  border-top-color: var(--accent);
  transform: translateY(-4px);
}
.research-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.research-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  color: var(--navy);
}
.research-card p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  color: var(--text-sub);
}
.research-more {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- 研究室名 ---------- */
.lab-title {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 56px;
  text-align: center;
}
.lab-logo {
  width: 100%;
  max-width: min(520px, 100%);
  margin: 0 auto 24px;
}
.lab-affiliation {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.lab-affiliation-en {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-sub);
}
.lab-links {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-outline { color: var(--navy); background: transparent; }

/* ---------- お知らせバナー ---------- */
.notice {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 24px;
}
.notice a {
  display: block;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  background: #eaf7fb;
  border-left: 4px solid var(--accent);
  text-decoration: none;
}
.notice-label {
  margin-right: 12px;
  padding: 2px 8px;
  font-size: 11px;
  color: #fff;
  background: var(--accent);
  border-radius: 3px;
}

/* ---------- 見出し ---------- */
.section-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--navy);
}
.section-title span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-sub);
}

/* ---------- トピックス ＋ 動画 ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: 64px;
}

.topics-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-height: 520px;
  overflow-y: auto;
}
.topics-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.topics-list time {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.topic-body { font-size: 14px; }
.badge-new {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  color: #fff;
  background: #e5484d;
  border-radius: 3px;
  vertical-align: 1px;
}
.more { margin: 16px 0 0; text-align: right; font-size: 13px; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- アクセス ---------- */
.access {
  padding: 64px 0;
  background: var(--bg-gray);
}
.access-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
}
.access-list dt,
.access-list dd {
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.access-list dt {
  font-weight: 700;
  color: var(--navy);
  background: #fafbfc;
}
.access-list dt small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-sub);
}
.access-list dt:last-of-type,
.access-list dd:last-of-type { border-bottom: none; }
.access-list .en { font-size: 12px; color: var(--text-sub); }

.phone { border-collapse: collapse; }
.phone th, .phone td { padding: 2px 0; text-align: left; font-variant-numeric: tabular-nums; }
.phone th { padding-right: 24px; font-weight: 400; }

/* ---------- フッター ---------- */
.site-footer {
  color: #cfd6e4;
  background: var(--navy);
  padding-top: 48px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.site-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #fff;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; font-size: 13px; }
.site-footer li { margin-bottom: 6px; }
.site-footer .active { color: var(--accent); }
.copyright {
  margin: 48px 0 0;
  padding: 16px 24px;
  font-size: 11px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   スマホ・タブレット
   ============================================================ */
/* 幅が狭いとメニューが入りきらないので、1080px以下でMENUボタンに切り替える */
@media (max-width: 1080px) {
  .menu-toggle { display: block; }

  .global-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .global-nav a {
    flex-direction: row;
    gap: 12px;
    padding: 14px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .global-nav a:hover,
  .global-nav a.is-current { border-left-color: var(--accent); }
  .global-nav a.lang { margin: 8px 24px; justify-content: center; }
}

@media (max-width: 900px) {
  .hero-inner { padding: 72px 24px 64px; }
  .hero-label { letter-spacing: 0.15em; font-size: 11px; }
  .research-cards { grid-template-columns: 1fr; }

  .two-col { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .brand-title { font-size: 16px; }
  .lab-title { padding-top: 40px; }
  .topics-list li { grid-template-columns: 1fr; gap: 2px; }
  .access-list { grid-template-columns: 1fr; }
  .access-list dt { border-bottom: none; padding-bottom: 4px; }
  .access-list dd { padding-top: 4px; }
}

/* ============================================================
   下層ページ共通（研究紹介など）
   ============================================================ */
html { scroll-behavior: smooth; }

/* ---------- ページタイトル帯 ---------- */
.page-hero {
  color: #fff;
  background: var(--navy);
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 56px;
}
.page-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.page-lead {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 15px;
  color: #cfd6e4;
}
.page-lead strong { color: #fff; }

/* ---------- ページ内目次（スクロールしても上に残る） ---------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.subnav ul {
  display: flex;
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: block;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--navy); border-bottom-color: var(--accent); }

/* アンカーで飛んだとき、見出しがヘッダーに隠れないようにする */
.page-section { scroll-margin-top: calc(var(--header-h) + 56px); }

/* ---------- セクション ---------- */
.page-section { padding-top: 64px; padding-bottom: 64px; }
.page-section-gray { background: var(--bg-gray); }
.section-lead { max-width: 820px; margin: 0 0 32px; }
.em { color: #c0392b; font-weight: 700; }

/* ターゲット（3本柱） */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.pillar {
  padding-top: 20px;
  border-top: 3px solid var(--navy);
}
.pillar h3 { margin: 0 0 12px; font-size: 18px; color: var(--navy); }
.pillar p { margin: 0 0 12px; font-size: 14px; }
.pillar-links { font-size: 13px; font-weight: 700; }

/* キーテクノロジ */
.keytech-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.info-card h3 { margin: 12px 0 8px; font-size: 18px; color: var(--navy); }
.info-card p { margin: 0; font-size: 14px; }

/* ---------- 各研究テーマ ---------- */
.theme { border-top: 1px solid var(--line); }
.theme-head { margin-bottom: 32px; }
.theme-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.theme-head h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--navy);
}
.theme-en {
  margin: 4px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}
.theme-h3 {
  margin: 40px 0 12px;
  padding-left: 12px;
  font-size: 18px;
  color: var(--navy);
  border-left: 4px solid var(--accent);
}
.theme-h3 span {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sub);
}
.theme-h3.clear, .topic { clear: both; }
.theme p { margin: 0 0 14px; }

.topic {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--bg-gray);
  overflow: hidden;   /* 中の回り込み画像を枠内に収める */
}
.topic h4 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.topic p:last-child { margin-bottom: 0; }

/* 図 */
.theme figure { margin: 0; }
.theme figure img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.fig-right { float: right; width: 38%; margin: 4px 0 16px 28px !important; }
.fig-small { width: 26%; }
.fig-wide { clear: both; max-width: 800px; margin: 16px auto 24px !important; }
.fig-row {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 8px;
}
.fig-row figure img { height: 100%; object-fit: contain; }

.note { font-size: 13px; color: var(--text-sub); }

/* 参考文献（クリックで開閉） */
.refs {
  clear: both;
  margin-top: 24px;
  padding: 14px 20px;
  font-size: 13px;
  border: 1px solid var(--line);
}
.refs summary { font-weight: 700; color: var(--navy); cursor: pointer; }
.refs ol { margin: 12px 0 0; padding-left: 24px; }
.refs li { margin-bottom: 6px; }

.to-top { clear: both; margin-top: 24px !important; text-align: right; font-size: 13px; }

@media (max-width: 900px) {
  .pillars, .keytech-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .fig-right, .fig-small { float: none; width: 100%; margin: 8px 0 16px !important; }
  .fig-small img { max-width: 260px; margin: 0 auto; }
  .fig-row { grid-template-columns: 1fr; }
  .topic { padding: 16px; }
  .page-hero-inner { padding: 48px 24px 40px; }
}

/* ---------- 研究室の生活：世界地図 ---------- */
.map-figure {
  max-width: 600px;           /* 元画像の大きさ。拡大すると★のリンク位置がずれるため固定 */
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.map-figure img { width: 100%; height: auto; }

/* ---------- メンバー：教員・スタッフ ---------- */
.faculty-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.faculty-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  transition: border-color 0.2s, transform 0.2s;
}
a.faculty-card:hover { color: var(--text); border-top-color: var(--accent); transform: translateY(-4px); }
.faculty-card-staff { border-top-color: var(--line); }
.faculty-role { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.05em; }
.faculty-name { margin-top: 8px; font-size: 22px; font-weight: 800; color: var(--navy); }
.faculty-en { font-size: 13px; color: var(--text-sub); }
.faculty-card .research-more { margin-top: 16px; }

/* ---------- メンバー：学生 ---------- */
.student-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.student-group {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}
.student-group h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy);
}
.student-group h3 span { font-size: 12px; font-weight: 400; color: var(--text-sub); }
.student-group h3 .count {
  margin-left: auto;
  padding: 0 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}
.student-group h4 {
  margin: 16px 0 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.name-list { margin: 0; padding: 0; list-style: none; }
.name-list li {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.name-list li:last-child { border-bottom: none; }
.name-list li span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sub);
}

/* ---------- メンバー：共同研究者 ---------- */
.collab-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.collab-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.collab-list li > span:last-child { flex-shrink: 0; font-size: 13px; color: var(--text-sub); }
.obog-link { margin-top: 40px; text-align: center; }

@media (max-width: 900px) {
  .faculty-cards { grid-template-columns: 1fr; }
  .student-groups { grid-template-columns: repeat(2, 1fr); }
  .collab-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .student-groups { grid-template-columns: 1fr; }
  .collab-list li { flex-direction: column; gap: 2px; }
}

/* ---------- リンク集 ---------- */
.link-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}
.link-group {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
}
.link-group h3 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.link-group h3 a { color: var(--navy); }
.link-group h4 {
  margin: 16px 0 4px;
  font-size: 12px;
  color: var(--accent);
}
.link-group ul { margin: 0; padding: 0; list-style: none; }
.link-group li {
  padding: 10px 0 10px 16px;
  position: relative;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.link-group li:last-child { border-bottom: none; }
.link-group li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
}
.link-group li span {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
}

/* トップ：研究室名を一番上に置いたときの余白調整 */
.lab-title + .hero { margin-bottom: 64px; }

/* ============================================================
   動き（js/motion.js と組み合わせて使う）
   ============================================================ */

/* パケット（線の上を流れる光の点） */
.packet { fill: #8fe9ff; stroke: rgba(143, 233, 255, 0.35); stroke-width: 6; }

/* ノード（点）がゆっくり明滅する */
.hero-nodes circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 4s ease-in-out infinite;
}
.hero-nodes circle:nth-child(3n)   { animation-delay: -1.3s; }
.hero-nodes circle:nth-child(3n+1) { animation-delay: -2.6s; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.5); }
}

/* ページを開いたときにキャッチコピーとボタンが順番に現れる */
.hero-inner > * { animation: fade-up 0.9s ease-out both; }
.hero-inner > :nth-child(2) { animation-delay: 0.15s; }
.hero-inner > :nth-child(3) { animation-delay: 0.3s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* スクロールで現れる（JavaScriptが動いたときだけ隠すので、JSが無効でも内容は見える） */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.js-motion .reveal.is-visible { opacity: 1; transform: none; }
/* カードのホバー時の浮き上がりは、現れた後も効くようにする */
.js-motion .research-card.reveal.is-visible:hover { transform: translateY(-4px); transition-delay: 0s !important; }

/* 「視差効果を減らす」設定の人には動きを止める */
@media (prefers-reduced-motion: reduce) {
  .hero-nodes circle, .hero-inner > * { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 下層ページの帯にもネットワーク図（motion.js が自動で入れる） ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero .hero-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero-inner { position: relative; }
.page-hero-inner > * { animation: fade-up 0.9s ease-out both; }
.page-hero-inner > :nth-child(2) { animation-delay: 0.15s; }
.page-hero-inner > :nth-child(3) { animation-delay: 0.3s; }

/* ---------- 目次：今読んでいる項目を強調 ---------- */
.subnav a.is-active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-inner > * { animation: none; }
}

/* 英語版：キャッチコピーが長いので少し小さく、幅を広げる */
.hero-copy-en {
  max-width: 880px;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ============================================================
   トップ：ネットワーク図の帯の上に研究室名
   ============================================================ */
.hero-lab .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px 24px 80px;
}
/* ロゴは元画像の色をそのまま見せたいので、白いカードに載せる */
.lab-logo-card {
  width: min(560px, 100%);
  padding: 24px 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.lab-logo-card .lab-logo { width: 100%; max-width: 100%; margin: 0 auto; }
.hero-names {
  margin: 28px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.hero-names a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.5); }
.hero-names a:hover { color: var(--accent); }
.hero-affil {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #cfd6e4;
}
.hero-lab .hero-links { justify-content: center; margin-top: 28px; }
.hero-lab + .research { padding-top: 64px; }

/* RESEARCH の下のキャッチコピー（サブタイトル） */
.section-title .section-catch {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

/* メニューやサブメニューから飛んだとき、見出しがヘッダーに隠れないようにする */
:where(section[id]) { scroll-margin-top: calc(var(--header-h) + 24px); }

@media (max-width: 600px) {
  .hero-lab .hero-inner { padding: 56px 20px 52px; }
  .lab-logo-card { padding: 16px 18px; }
  .hero-names { font-size: 14px; }
}

/* ============================================================
   上部メニューのサブメニュー（マウスを乗せると順番にふわっと出る）
   ============================================================ */
.global-nav li { position: relative; }

.global-nav .sub-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 32px rgba(11, 31, 75, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
/* マウスを乗せたとき／キーボードで選んだとき */
.global-nav li.has-sub:hover > .sub-menu,
.global-nav li.has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 中の項目を上から1つずつ出す */
.global-nav .sub-menu li {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.global-nav li.has-sub:hover > .sub-menu li,
.global-nav li.has-sub:focus-within > .sub-menu li {
  opacity: 1;
  transform: none;
}
.global-nav li.has-sub:hover > .sub-menu li:nth-child(1) { transition-delay: 0.05s; }
.global-nav li.has-sub:hover > .sub-menu li:nth-child(2) { transition-delay: 0.10s; }
.global-nav li.has-sub:hover > .sub-menu li:nth-child(3) { transition-delay: 0.15s; }
.global-nav li.has-sub:hover > .sub-menu li:nth-child(4) { transition-delay: 0.20s; }
.global-nav li.has-sub:hover > .sub-menu li:nth-child(5) { transition-delay: 0.25s; }
.global-nav li.has-sub:hover > .sub-menu li:nth-child(6) { transition-delay: 0.30s; }
.global-nav li.has-sub:hover > .sub-menu li:nth-child(7) { transition-delay: 0.35s; }

.global-nav .sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
  color: var(--text);
  border-bottom: none;
  border-left: 3px solid transparent;
}
.global-nav .sub-menu a:hover {
  color: var(--navy);
  background: var(--bg-gray);
  border-left-color: var(--accent);
}

/* 右端のメニューは画面からはみ出さないよう右揃えにする */
.global-nav > ul > li:nth-last-child(2) > .sub-menu {
  left: auto;
  right: 0;
  transform: translateY(10px);
}
.global-nav > ul > li:nth-last-child(2).has-sub:hover > .sub-menu,
.global-nav > ul > li:nth-last-child(2).has-sub:focus-within > .sub-menu { transform: none; }

/* スマホ・タブレットのメニュー（MENUボタン）ではサブメニューを出さない */
@media (max-width: 1080px) {
  .global-nav .sub-menu { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .global-nav .sub-menu, .global-nav .sub-menu li { transition: none; }
}

/* ============================================================
   研究業績
   ============================================================ */
.pub-count {
  display: inline-block;
  margin-left: 10px;
  padding: 0 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  vertical-align: 1px;
}
.pub-empty { color: var(--text-sub); }

.pub-year {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.pub-year:first-of-type { border-top: none; padding-top: 0; }
.pub-year-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.pub-list { margin: 0; padding-left: 1.4em; }
.pub-list li { padding: 0 0 18px 4px; }
.pub-list li:last-child { padding-bottom: 0; }
.pub-list li::marker { color: var(--accent); font-weight: 700; }
.pub-list p { margin: 0; }
.pub-title { font-weight: 700; color: var(--navy); }
.pub-authors { font-size: 14px; }
.pub-venue { font-size: 13px; color: var(--text-sub); }

@media (max-width: 600px) {
  .pub-year { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================================
   留学生向けページ（english/join/join.htm）
   ============================================================ */
.page-lead .lead-link { color: #fff; }
.page-lead .lead-link:hover { color: var(--accent); }

.join-cards,
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.join-grid { margin-top: 32px; }
.join-cards .research-num { font-size: 22px; }
.info-card p + p { margin-top: 12px; }
.join-text { max-width: 820px; margin: 0; }
.join-h3 { margin: 0 0 16px; font-size: 18px; color: var(--navy); }

/* 手順：番号付きの縦のステップ */
.join-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.join-steps li {
  position: relative;
  padding: 0 0 28px 64px;
  counter-increment: step;
}
.join-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  font-weight: 800;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
}
.join-steps li:not(:last-child)::after {   /* ステップをつなぐ縦線 */
  content: "";
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}
.join-steps h4 { margin: 6px 0 6px; font-size: 16px; color: var(--navy); }
.join-steps p { margin: 0; }
.join-cta { margin: 24px 0 0; }

@media (max-width: 900px) {
  .join-cards, .join-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   教員の個人ページ（sekiya/index.html）
   ============================================================ */
.person {
  display: grid;
  grid-template-columns: 274px 1fr;
  gap: 48px;
  align-items: start;
}
.person-photo { margin: 0; }
.person-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(11, 31, 75, 0.15);
}
.person-menu { display: grid; gap: 12px; }
.person-link {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  transition: border-color 0.2s, transform 0.2s;
}
.person-link:hover { color: var(--text); border-left-color: var(--accent); transform: translateX(4px); }
.person-link::after { content: "→"; margin-left: auto; color: var(--accent); font-weight: 700; }
.person-link-en {
  min-width: 130px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.person-link-ja { font-size: 16px; font-weight: 700; color: var(--navy); }

.affil-list { margin: 0; padding: 0; list-style: none; }
.affil-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; gap: 28px; }
  .person-photo { max-width: 240px; margin: 0 auto; }
  .person-link { flex-wrap: wrap; gap: 4px 16px; }
  .person-link-en { min-width: 0; }
}

/* ---------- 個人ページ：略歴・研究分野・研究者情報 ---------- */
.timeline {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 0;
  border-left: 3px solid var(--navy);
}
.timeline dt,
.timeline dd {
  margin: 0;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line);
}
.timeline dt { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline dt:last-of-type, .timeline dd:last-of-type { border-bottom: none; }

.tag-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 10px 20px;
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 600px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline dt { padding-bottom: 0; border-bottom: none; }
  .timeline dd { padding-top: 4px; }
}

/* ===== 中文版フォント ===== */
html:lang(zh-CN) body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
}

/* ============================================================
   言語切り替え（マウスを乗せると English / 中文 などが出てくる）
   ============================================================ */
.lang-switch { margin-left: 8px; display: flex; align-items: center; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font: 700 13px var(--font);
  letter-spacing: 0.1em;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 4px;
  cursor: pointer;
}
.lang-btn::before {             /* 地球アイコン */
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E") center/contain no-repeat;
}
.lang-btn::after {              /* ▼ */
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
.lang-switch:hover .lang-btn,
.lang-switch:focus-within .lang-btn,
.lang-switch.is-open .lang-btn { background: var(--navy); color: #fff; }
.lang-switch:hover .lang-btn::after,
.lang-switch:focus-within .lang-btn::after,
.lang-switch.is-open .lang-btn::after { transform: translateY(1px) rotate(225deg); }

.global-nav .lang-menu {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  min-width: 140px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 32px rgba(11, 31, 75, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.lang-switch:hover .lang-menu,
.lang-switch:focus-within .lang-menu,
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.global-nav .lang-menu li { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.lang-switch:hover .lang-menu li,
.lang-switch:focus-within .lang-menu li,
.lang-switch.is-open .lang-menu li { opacity: 1; transform: none; }
.lang-switch .lang-menu li:nth-child(1) { transition-delay: 0.05s; }
.lang-switch .lang-menu li:nth-child(2) { transition-delay: 0.12s; }
.global-nav .lang-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: left;
  color: var(--text);
  border-bottom: none;
  border-left: 3px solid transparent;
}
.global-nav .lang-menu a:hover { color: var(--navy); background: var(--bg-gray); border-left-color: var(--accent); }

/* スマホ・タブレット：メニューの中で言語を横に並べて常に表示 */
@media (max-width: 1080px) {
  .lang-switch { margin: 8px 24px; gap: 8px; flex-wrap: wrap; }
  .lang-btn { pointer-events: none; }
  .lang-btn::after { display: none; }
  .global-nav .lang-menu,
  .global-nav .lang-menu li {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: flex; flex-direction: row; gap: 8px; padding: 0; border: none; box-shadow: none; min-width: 0; background: none;
  }
  .global-nav .lang-menu a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .global-nav .lang-menu, .global-nav .lang-menu li, .lang-btn::after { transition: none; }
}

/* ============================================================
   研究の詳細ページ（通信ネットワーク研究など）  rd- = research detail
   関屋先生の WiBIC 紹介ページの構成を参考にしたもの
   ============================================================ */
.rd-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  color: #fff;
  background: linear-gradient(132deg, #071433 0%, #0b1f4b 60%, #10306a 100%);
}
.rd-hero::before {               /* 点の模様 */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(127, 217, 238, 0.22) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 80%);
          mask-image: linear-gradient(90deg, transparent 10%, #000 80%);
}
.rd-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.rd-vision {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding-left: 12px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #b5c8e0;
  border-left: 2px solid var(--accent);
}
.rd-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.21em;
  color: #7fd9ee;
}
.rd-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.rd-hero h1 span { color: var(--accent); }
.rd-subtitle {
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #bcd0e6;
}
.rd-hero h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.55;
}
.rd-hero h2 em { font-style: normal; color: #7fd9ee; }
.rd-hero-copy { max-width: 560px; margin: 0 0 28px; line-height: 2; color: #c7d6e8; }
.rd-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rd-pills li {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #cdeef8;
  border: 1px solid #4f7bb0;
  border-radius: 100px;
}
.rd-hero-figure { margin: 0; min-width: 0; }
.rd-hero-visual {
  padding: 18px;
  background: linear-gradient(160deg, rgba(23, 52, 100, 0.55), rgba(7, 20, 51, 0.85));
  border: 1px solid rgba(111, 163, 216, 0.4);
  border-radius: 24px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}
.rd-hero-visual img { display: block; width: 100%; height: auto; }
.rd-hero-figure figcaption { margin-top: 12px; font-size: 12px; text-align: center; color: #93acc9; }

.rd-section { padding: 96px 0; }
.rd-section-gray { background: var(--bg-gray); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rd-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.17em; color: #127fa3; }
.rd-title { margin: 12px 0 18px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.45; color: var(--navy); }
.rd-lead { max-width: 820px; font-size: 17px; line-height: 2.05; color: var(--text-sub); }
.rd-center { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.rd-center .rd-lead { margin-inline: auto; }

.rd-intro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.rd-note { padding: 28px 30px; background: #eaf6fb; border: 1px solid #cfe9f3; border-radius: 18px; }
.rd-note strong { display: block; margin-bottom: 12px; font-size: 19px; color: var(--navy); }
.rd-note p { margin: 0 0 14px; color: #3f5670; }
.rd-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.rd-keywords li { padding: 4px 11px; font-size: 13px; font-weight: 700; color: #0b5c7c; background: #d2eef8; border-radius: 100px; }

.rd-concept {
  margin: 60px 0 0;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 15px 50px rgba(11, 31, 75, 0.06);
}
.rd-concept-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.rd-concept-head strong { font-size: 19px; color: var(--navy); }
.rd-concept-head span { font-size: 13px; color: var(--text-sub); }
.rd-concept img { display: block; width: 100%; height: auto; }
.rd-caption { margin: 14px 0 0; font-size: 13px; text-align: center; color: var(--text-sub); }

/* 研究テーマ（文章と図を左右交互に） */
.rd-topic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(11, 31, 75, 0.05);
}
.rd-topic:last-child { margin-bottom: 0; }
.rd-topic-text { min-width: 0; padding: 44px 48px; }
.rd-topic-index { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: #127fa3; }
.rd-topic h3 { margin: 0 0 8px; font-size: clamp(22px, 2.5vw, 29px); line-height: 1.55; color: var(--navy); }
.rd-topic .rd-en { margin: 0 0 20px; font-size: 13px; font-weight: 700; color: #3a86a6; }
.rd-topic p { margin: 0 0 16px; font-size: 15px; line-height: 2; color: #42566e; }
.rd-topic ul { margin: 0; padding-left: 20px; font-size: 14px; line-height: 2; color: #24395a; }
.rd-topic-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  margin: 0;
  padding: 28px;
  background: #eaf6fb;
}
.rd-topic-figure.is-dark { background: #0b1f4b; }
.rd-topic-figure.is-blue { background: #edf2fb; }
.rd-topic-figure > div { width: 100%; }
.rd-topic-figure img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.rd-topic-figure figcaption { margin-top: 12px; font-size: 12px; text-align: center; color: #5d7590; }
.rd-topic-figure.is-dark figcaption { color: #b9cbe2; }
.rd-topic:nth-child(even) .rd-topic-text { order: 2; }
.rd-topic:nth-child(even) .rd-topic-figure { order: 1; }
.rd-result {
  margin: 0 0 18px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.85;
  color: #0b4f73;
  background: #f0f9fc;
  border-left: 3px solid var(--accent);
}

/* なぜ大事か */
.rd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.rd-card { padding: 26px; background: var(--bg-gray); border: 1px solid var(--line); border-radius: 16px; }
.rd-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #127fa3;
  background: #e3f5fb;
  border: 1px solid #bfe3f0;
  border-radius: 12px;
}
.rd-card-icon svg { width: 24px; height: 24px; }
.rd-card strong { display: block; margin-bottom: 8px; font-size: 18px; color: var(--navy); }
.rd-card p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--text-sub); }

/* 関連論文 */
.rd-papers { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rd-paper {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.rd-paper-year { font-size: 14px; font-weight: 800; color: #127fa3; }
.rd-paper-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.6; color: var(--navy); text-decoration: none; }
a.rd-paper-title:hover { color: #127fa3; text-decoration: underline; }
.rd-paper-meta { display: block; margin-top: 6px; font-size: 13px; color: var(--text-sub); }
.rd-paper-tag { padding: 4px 12px; font-size: 12px; font-weight: 700; color: #4f6680; white-space: nowrap; border: 1px solid var(--line); border-radius: 100px; }
.rd-footnote { margin: 18px 0 0; font-size: 13px; color: var(--text-sub); }

.rd-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 96px;
  padding: 42px 48px;
  color: #fff;
  background: var(--navy);
  border-radius: 22px;
}
.rd-band h2 { margin: 8px 0 10px; font-size: 26px; line-height: 1.5; }
.rd-band p { max-width: 660px; margin: 0; font-size: 15px; line-height: 1.95; color: #c7d6e8; }
.rd-band-links { display: flex; flex-direction: column; gap: 10px; }
.rd-band-link {
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  color: #06213a;
  text-decoration: none;
  background: #7fd9ee;
  border-radius: 100px;
}
.rd-band-link:hover { background: #fff; }
.rd-band-link.is-ghost { color: #fff; background: none; border: 1px solid #7fd9ee; }
.rd-band-link.is-ghost:hover { color: #06213a; background: #fff; }

/* 研究紹介ページから詳細ページへのリンク */
.rd-more-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 8px;
  padding: 20px 24px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, #0b1f4b, #10306a);
  border-radius: 14px;
}
.rd-more-link strong { display: block; font-size: 17px; }
.rd-more-link small { font-size: 13px; color: #b9cbe2; }
.rd-more-link span { font-weight: 800; color: #7fd9ee; white-space: nowrap; }
.rd-more-link:hover span { text-decoration: underline; }

@media (max-width: 920px) {
  .rd-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .rd-hero-figure { width: 100%; max-width: 620px; margin: auto; }
  .rd-intro { grid-template-columns: 1fr; gap: 16px; }
  .rd-topic { grid-template-columns: 1fr; }
  .rd-topic:nth-child(even) .rd-topic-text,
  .rd-topic:nth-child(even) .rd-topic-figure { order: initial; }
  .rd-topic-figure { min-height: 280px; }
  .rd-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .rd-hero { padding: 60px 0 64px; }
  .rd-section { padding: 70px 0; }
  .rd-lead { font-size: 16px; }
  .rd-concept { margin-top: 36px; padding: 16px; }
  .rd-concept-head { display: block; }
  .rd-concept-head span { display: block; margin-top: 4px; }
  .rd-topic-text { padding: 28px 22px; }
  .rd-topic-figure { min-height: 220px; padding: 16px; }
  .rd-cards { grid-template-columns: 1fr; }
  .rd-paper { grid-template-columns: 56px 1fr; gap: 12px; }
  .rd-paper-tag { grid-column: 2; justify-self: start; }
  .rd-band { display: block; margin-bottom: 70px; padding: 28px; }
  .rd-band-links { margin-top: 22px; }
  .rd-more-link { display: block; }
  .rd-more-link span { display: block; margin-top: 8px; }
}
.rd-more-link:hover { color: #fff; }

/* 研究の詳細ページ：これまでの研究例 */
.rd-examples-title { margin: 24px 0 10px; font-size: 14px; letter-spacing: 0.08em; color: #127fa3; }
.rd-topic ul.rd-examples { margin: 0; padding: 0; list-style: none; }
.rd-examples li { padding: 12px 0 12px 16px; border-left: 3px solid #bfe3f0; margin-bottom: 8px; font-size: 13px; line-height: 1.8; color: var(--text-sub); background: #f6fbfd; }
.rd-examples strong { display: block; font-size: 14px; color: var(--navy); }

/* ============================================================
   研究室の生活：世界地図（lab_life/world_map.php が出力する）
   2026-11-27 追加（それまでの .map-figure の画像地図を置き換え）
   ============================================================ */
.map-summary { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0 0 20px; }
.map-summary p { margin: 0; font-size: 14px; font-weight: 700; color: var(--text-sub); }
.map-summary strong { margin-right: 4px; font-size: 32px; font-weight: 800; color: var(--navy); }
.map-summary p:last-child strong { margin: 0 2px; }

.map-figure.world-map {
  position: relative;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
}
.world-map-scroll {
  overflow-x: auto;
  background: var(--navy);
  border-radius: 8px;
  scrollbar-width: thin;
}
.world-map-svg { display: block; width: 100%; height: auto; min-width: 680px; }
.map-star { cursor: pointer; outline: none; }
.map-star-hit { fill: transparent; }
.map-star path {
  fill: #f5b83d;
  stroke: #0b1f4b;
  stroke-width: 0.8;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.15s, fill 0.15s;
  filter: drop-shadow(0 0 3px rgba(245, 184, 61, 0.55));
}
.map-star:hover path,
.map-star:focus-visible path,
.map-star.is-hot path { fill: #ffe08a; transform: scale(1.35); }
.map-star:focus-visible path { stroke: #fff; stroke-width: 1.5; }
.map-tip {
  position: absolute;
  z-index: 3;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--navy);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, calc(-100% - 8px));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.map-tip.is-on { opacity: 1; }
.map-note { margin-top: 12px; font-size: 12px; color: var(--text-sub); }

.map-list-title { margin: 48px 0 20px; font-size: 16px; font-weight: 800; letter-spacing: 0.05em; color: var(--navy); }
.map-regions { columns: 3 280px; column-gap: 40px; }
.map-region { break-inside: avoid; margin-bottom: 28px; }
.map-region h4 {
  margin: 0 0 6px;
  padding-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}
.map-places { margin: 0; padding: 0; list-style: none; }
.map-place {
  break-inside: avoid;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 6px;
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: background 0.2s;
}
.map-place:hover { background: rgba(11, 31, 75, 0.04); }
.map-place:target { background: #fff3d1; }
.map-place-name { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; color: var(--navy); }
.map-place-star { color: #d99a12; }
.map-place-count { margin-left: auto; font-size: 12px; color: var(--text-sub); white-space: nowrap; }
.map-trips { margin: 2px 0 0; padding: 0 0 0 20px; list-style: none; font-size: 13px; line-height: 1.75; }
.map-trips a { text-decoration: none; }
.map-trips a:hover { text-decoration: underline; }
.map-trips time { display: inline-block; min-width: 4.4em; margin-right: 6px; color: var(--text-sub); font-variant-numeric: tabular-nums; }

/* ============================================================
   学会発表旅行記（海外版・国内版）・研究室のイベント（lab_life/*/index.html）
   2026-11-27 追加
   ============================================================ */
.map-star.is-selected path { fill: #fff; transform: scale(1.4); }

/* ---------- 日本地図 ---------- */
.japan-map-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: center; }
.map-figure.japan-map { position: relative; max-width: 600px; margin: 0; padding: 0; background: var(--navy); border: none; border-radius: 8px; }
.japan-map-svg { display: block; width: 100%; height: auto; }
.map-home circle { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.map-home text { font-size: 14px; font-weight: 700; fill: #fff; }
.japan-map-legend { margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; color: var(--text-sub); }
.japan-map-legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.legend-star { font-size: 16px; color: #d99a12; }
.legend-home { width: 10px; height: 10px; margin: 0 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }

/* ---------- 旅行記カード ---------- */
#trips { scroll-margin-top: calc(var(--header-h) + 48px); }
.trip-filter { position: sticky; top: calc(var(--header-h) + 56px); z-index: 20; margin: 0 0 24px; }
.trip-filter p {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 0; padding: 12px 16px;
  font-weight: 700; color: var(--navy);
  background: #fff3d1; border: 1px solid #f0d58a; border-radius: 8px;
}
.trip-filter-reset {
  margin-left: auto; padding: 4px 14px;
  font: inherit; font-size: 13px; color: var(--navy);
  background: #fff; border: 1px solid var(--navy); border-radius: 999px; cursor: pointer;
}
.trip-filter-reset:hover { color: #fff; background: var(--navy); }
.trip-filter[hidden], .trip-year[hidden], .trip-card[hidden] { display: none !important; }
.trip-year { margin-bottom: 48px; }
.trip-year-title {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 16px; padding-bottom: 8px;
  font-size: 24px; font-weight: 800; color: var(--navy);
  border-bottom: 2px solid var(--navy);
}
.trip-year-title span { font-size: 12px; font-weight: 700; color: var(--text-sub); }
.trip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.trip-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 120px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trip-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(11, 31, 75, 0.1); }
.trip-main { display: flex; flex-direction: column; flex: 1; color: var(--text); text-decoration: none; }
a.trip-main:hover { color: var(--text); }
.trip-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-gray); }
.trip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trip-thumb.is-empty {
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 4l5.9 13.5 14.6 1.3-11 9.7 3.3 14.3L24 35.4 11.2 42.8l3.3-14.3-11-9.7 14.6-1.3z' fill='%23f5b83d'/%3E%3C/svg%3E") no-repeat center / 44px;
}
.trip-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 12px; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--text-sub); }
.trip-meta time { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.trip-title { font-size: 14px; font-weight: 700; line-height: 1.55; color: var(--navy); }
.trip-tag {
  align-self: flex-start; padding: 0 8px;
  font-size: 11px; font-weight: 700; line-height: 20px; color: var(--navy);
  background: var(--bg-gray); border-radius: 4px;
}
.trip-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px;
  margin: 0; padding: 10px 16px;
  font-size: 12px; color: var(--text-sub); border-top: 1px solid var(--line);
}
.trip-site { font-weight: 700; text-decoration: none; }
.trip-site::after { content: " \2197"; }
.trip-more { margin: 8px 0 0; font-size: 13px; color: var(--text-sub); }

/* ---------- 研究室のイベント ---------- */
.event-chips { margin-bottom: 32px; }
.event-year {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 64px);
}
.event-year:first-child { padding-top: 0; border-top: none; }
.event-year-title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--navy); }
.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.event-list a, .event-nolink { display: flex; gap: 12px; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.event-list a:hover { color: var(--navy); background: var(--bg-gray); }
.event-month { flex-shrink: 0; min-width: 3em; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.event-nolink, .event-nolink .event-month { color: var(--text-sub); }

@media (max-width: 900px) {
  .japan-map-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .trip-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trip-body { padding: 10px 12px; }
  .trip-title { font-size: 13px; }
  .trip-foot { padding: 8px 12px; }
  .event-year { grid-template-columns: 1fr; gap: 8px; }
  .event-list { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .trip-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   研究業績データベース（achievements/*.php, english/achievements_old/*.php）
   2026-11-27 追加
   ============================================================ */
/* 業績の種別の色（グラフ・凡例で共通。色覚の違いがあっても隣どうしを見分けられる組み合わせ） */
.pub-sw-PAP { background: #2370cd; }   /* 原著論文 */
.pub-sw-CON { background: #f47230; }   /* 国際会議論文 */
.pub-sw-WOR { background: #1dafd3; }   /* 国内研究会 */
.pub-sw-OTH { background: #f2a600; }   /* 講演・その他 */

.pub-sub-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.pub-note { margin: 8px 0 24px; font-size: 12px; color: var(--text-sub); }

/* ---------- 目次（一覧・検索結果ページ） ---------- */
.subnav a.subnav-back { color: var(--navy); }
.subnav-count {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
}

/* ---------- 業績数：累計（凡例を兼ねる）＋ グラフ ---------- */
.pub-overview {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 48px;
  align-items: start;
}
.pub-stat-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pub-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.pub-stat-label { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text); }
.pub-sw { flex-shrink: 0; display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.pub-stat-value { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.pub-stat-value small { margin-left: 2px; font-size: 13px; font-weight: 700; color: var(--text-sub); }

.pub-chart { margin: 0; }
.pub-chart-plot {
  position: relative;
  height: 240px;
  margin: 28px 0 32px 36px;   /* 上：合計の数字、下：年、左：目盛り */
}
.pub-chart-grid { position: absolute; inset: 0; }
.pub-chart-grid span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.pub-chart-grid span:first-child { border-top-color: #c3c9d3; }   /* 0 の線 */
.pub-chart-grid i {
  position: absolute;
  right: calc(100% + 8px);
  top: -0.75em;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.pub-chart-cols { position: absolute; inset: 0; display: flex; }
.pub-col {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 4px 4px 0 0;
  outline: none;
}
.pub-col:hover, .pub-col:focus-visible { background: rgba(11, 31, 75, 0.05); }
.pub-col:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.pub-col-bar {
  display: flex;
  flex-direction: column-reverse;   /* 先に書いた種別（原著論文）が一番下 */
  gap: 2px;                         /* 種別どうしのすき間 */
  width: 24px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.pub-seg { flex: 1 1 0; min-height: 1px; }
.pub-col-total {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-4px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
}
.pub-col-year {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
/* マウスを乗せる・タップすると内訳を表示 */
.pub-tip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  z-index: 5;
  min-width: 200px;
  margin-bottom: 10px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(11, 31, 75, 0.12);
  pointer-events: none;
}
.pub-col:nth-child(n+5) .pub-tip { left: auto; right: 0; }
.pub-col:hover .pub-tip, .pub-col:focus .pub-tip { display: block; }
.pub-tip strong { display: block; margin-bottom: 2px; font-size: 13px; color: var(--navy); }
.pub-tip span { display: flex; align-items: center; gap: 8px; }
.pub-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.pub-tip b { margin-left: auto; padding-left: 16px; font-variant-numeric: tabular-nums; }
.pub-tip .pub-tip-sum { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); font-weight: 700; }

.pub-chart-table { font-size: 13px; }
.pub-chart-table summary { display: inline-block; font-weight: 700; color: var(--navy); cursor: pointer; }
.pub-chart-table summary:hover { color: var(--accent); }
.pub-table-wrap { margin-top: 12px; overflow-x: auto; }
.pub-table-wrap table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pub-table-wrap th, .pub-table-wrap td { padding: 6px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.pub-table-wrap thead th { font-size: 12px; color: var(--text-sub); }
.pub-table-wrap tbody th { text-align: left; color: var(--navy); }

/* ---------- 一覧への入口 ---------- */
.research-cards.pub-browse-cards { grid-template-columns: repeat(2, 1fr); }
.pub-chips-block { margin-top: 40px; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.pub-chips a, .pub-chips span {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s;
}
.pub-chips a:hover { color: var(--navy); border-color: var(--accent); }
.pub-chips .is-current { color: #fff; background: var(--navy); border-color: var(--navy); }
.pub-filter-section { padding-top: 32px; padding-bottom: 8px; }
.pub-switch { margin: -12px 0 24px; font-size: 13px; font-weight: 700; }

/* ---------- 検索フォーム ---------- */
.pub-search {
  max-width: 860px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
}
.pub-search-help { margin: 0 0 24px; font-size: 14px; color: var(--text-sub); }
.pub-search-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.pub-field-wide { grid-column: 1 / -1; }
.pub-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.pub-field input,
.pub-field select {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid #c3c9d3;
  border-radius: 6px;
}
.pub-field select {
  appearance: none;
  padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b1f4b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.pub-field input:focus,
.pub-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.pub-search-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
button.btn { font-family: inherit; line-height: 1.5; cursor: pointer; }
.btn-outline:hover { color: #fff; }

/* ---------- 一覧・検索結果 ---------- */
.pub-results { }
.pub-group { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 56px); }
.pub-group-title {
  margin: 0 0 8px;
  padding-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}
.pub-group .pub-year:first-of-type { padding-top: 20px; }
.pub-venue .reference { font-style: italic; }
.pub-list p.pub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pub-link {
  display: inline-block;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pub-link:hover { color: var(--navy); border-color: var(--accent); }
.pub-result-head { margin-bottom: 24px; }
.pub-result-summary { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--navy); }
.pub-result-summary strong { font-size: 28px; }
.pub-conds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pub-conds div { display: flex; gap: 8px; padding: 4px 12px; font-size: 13px; background: var(--bg-gray); border-radius: 6px; }
.pub-conds dt { color: var(--text-sub); }
.pub-conds dd { margin: 0; font-weight: 700; }

/* ---------- アブストラクト ---------- */
.page-title-long { display: block; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.45; letter-spacing: 0.02em; }
.pub-back { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 24px; font-size: 13px; font-weight: 700; }
.pub-abst {
  max-width: 860px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
}
.pub-abst p { margin: 0; }
.pub-abst .pub-authors { font-size: 15px; font-weight: 700; }
.pub-abst .pub-venue { margin-top: 4px; font-size: 14px; }
.pub-abst .pub-links { display: flex; gap: 8px; margin-top: 12px; }
.pub-abst-title { margin: 28px 0 8px; font-size: 13px; letter-spacing: 0.15em; color: var(--navy); }
.pub-abst-body { line-height: 1.9; }

@media (max-width: 900px) {
  .pub-overview { grid-template-columns: 1fr; gap: 32px; }
  .pub-stat-list { grid-template-columns: 1fr 1fr; }
  .research-cards.pub-browse-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pub-stat { flex-direction: column; gap: 2px; padding: 12px 14px; }
  .pub-stat-label { font-size: 13px; }
  .pub-stat-value { font-size: 24px; }
  .pub-chart-plot { height: 200px; margin-left: 30px; }
  .pub-col-bar { width: 16px; }
  .pub-col-year { font-size: 10px; }
  .pub-col-total { font-size: 11px; }
  .pub-search, .pub-abst { padding: 20px; }
  .pub-search-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   研究紹介（study/target.htm）に追加した図と説明
   2026-11-27 追加
   ============================================================ */
.theme figcaption { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--text-sub); }
.theme figure a { display: block; cursor: zoom-in; }
.fig-pair { clear: both; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; margin: 16px 0 24px; }
.fig-pair figure img { height: auto; }
.fig-link { clear: both; font-size: 14px; font-weight: 700; }
@media (max-width: 600px) {
  .fig-pair { grid-template-columns: 1fr; }
}
