/* ==========================================================
   熊本大学 研究開発戦略本部 学術研究企画部門（URA） 暫定サイト共通スタイル
   方針：シンプル・ニュートラル、余白を活かした落ち着いた印象。
   参考イメージ：濃紺の帯＋白い見出し＋金のアクセント＋区切り線入りの暗いナビ。
   本文領域は読みやすさ優先で明るいベース色のままにしています。

   配色（指定色）
     Prussian Blue  #0b3c5d   ヘッダー・ヒーロー帯・見出し
     Sky Blue       #328cc1   各ページ冒頭のヒーロー帯・線・ホバー（小さな文字の色には使わない）
                              上部バナーは #328cc1 を18%に薄めた #daeaf4
     Gold Leaf      #d9b310   アクセント線・ナビ現在地（暗い面の上でのみ文字に使用）
     Ivory Black    #1d2731   本文文字・ナビ帯・フッター
     ベース         #F9F9F8   ページ背景
   導出色
     リンク青 #1b6a9c / 補助文字 #4b5866 / 淡い青 #d6e9f5 /
     淡い黄 #fbf3cf / 罫線 #e0dfdb / タグ緑 #17574a など
   ========================================================== */

:root {
  /* --- 指定色 --- */
  --hl-dark: #0b3c5d;
  --hl-mid: #328cc1;
  --hl-gold: #d9b310;
  --color-ink: #1d2731;
  --color-text: #1d2731;
  --color-bg: #f9f9f8;

  /* --- 導出色（面・罫線・補助文字） --- */
  --color-surface: #ffffff;
  --color-bg-soft: #dcdee0;
  --color-text-muted: #4b5866;
  --color-border: #e0dfdb;

  /* --- アクセント --- */
  --color-accent: var(--hl-dark);
  --color-accent-light: var(--hl-mid);
  --color-accent-soft: #d6e9f5;
  --color-link: #1b6a9c;

  /* --- 暗い面（ヘッダー・ナビ・ヒーロー・フッター）の上の文字 --- */
  --on-dark: #ffffff;
  --on-dark-muted: #c9d4db;
  --on-dark-lead: #dbe6ee;
  --on-ink-muted: #c5cdd5;
  --divider-on-dark: rgba(255, 255, 255, 0.28);

  /* --- 空色（#328cc1）の面の上の文字（ヒーロー） --- */
  --on-sky: #ffffff;          /* 大きい見出し用 */

  /* --- ヒーローの説明文：背景は敷かず白文字（#328cc1 の上でコントラスト比 3.7） --- */
  --lead-text: #ffffff;

  /* --- 上部バナー：空色 #328cc1 を18%に薄めた色 --- */
  --banner-bg: #daeaf4;
  --banner-border: var(--hl-mid);
  --banner-text: var(--hl-dark);

  /* --- お知らせ・要更新（黄系） --- */
  --color-notice-bg: #fbf3cf;
  --color-notice-border: #e3cf73;
  --color-notice-text: #5c4a00;

  /* --- タグ --- */
  --tag-seminar-bg: #d6e9f5;
  --tag-seminar-text: #0b3c5d;
  --tag-kaken-bg: #f6ebb8;
  --tag-kaken-text: #5c4a00;
  --tag-paper-bg: #d4ece6;
  --tag-paper-text: #17574a;
  --tag-default-bg: #dcdee0;
  --tag-default-text: #3a4652;

  --max-width: 1040px;
  --header-pad: clamp(18px, 3vw, 56px);  /* ヘッダー左右の余白（サイト名を左端、ロゴを右端に寄せる） */
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ---------- 移行期間バナー ---------- */
.interim-banner {
  background: var(--banner-bg);
  border-bottom: 2px solid var(--banner-border);
  color: var(--banner-text);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px 16px;
}

/* ---------- ヘッダー（濃紺の帯） ---------- */
.site-header {
  background: var(--hl-dark);
  color: var(--on-dark);
}
.site-header :focus-visible {
  outline-color: var(--hl-gold);
}
.site-header__inner {
  padding: 26px var(--header-pad) 18px;
}
.site-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.site-title {
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--on-dark);
}
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; opacity: 0.8; }
.site-title__line { display: block; }   /* 「研究開発戦略本部」の後ろで改行して2行表示 */
.site-title small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--hl-gold);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
.lang-switch { font-size: 13px; color: var(--on-dark-muted); }
.lang-switch a { color: var(--on-dark-muted); }
.lang-switch a:hover { color: var(--on-dark); }

/* ヘッダー右側：熊大ロゴ ＋ Xへのリンク */
.header-tools {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 0;
}
/* 熊大ロゴ（カラー版）：白い枠を足して、濃紺のヘッダー上で余白に余裕を持たせる */
.header-logo {
  display: block;
  line-height: 0;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
}
.header-logo img { display: block; height: 48px; width: auto; }
.header-logo:hover { opacity: 0.88; }
.header-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--divider-on-dark);
  border-radius: 50%;
  color: var(--on-dark);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.header-x svg { width: 18px; height: 18px; fill: currentColor; }
.header-x:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

/* パンくず（ナビの下。本文と同じ位置にそろえる） */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px 0;
  font-size: 15px;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb + main { padding-top: 20px; }

/* ---------- グローバルナビ（暗い帯＋区切り線） ---------- */
.gnav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  background: var(--color-ink);
  /* 帯を画面幅いっぱいに広げる（コンテンツ幅は変えない） */
  box-shadow: 0 0 0 100vmax var(--color-ink);
  clip-path: inset(0 -100vmax);
}
.gnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: 16px;
}
.gnav li { margin: 0; }
.gnav li + li a { border-left: 1px solid var(--divider-on-dark); }
.gnav a {
  display: block;
  color: var(--on-dark);
  padding: 16px 16px 14px;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gnav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--hl-mid);
  text-decoration: none;
}
.gnav a[aria-current="page"] {
  color: var(--hl-gold);
  border-bottom-color: var(--hl-gold);
  font-weight: 700;
}

/* ---------- メイン ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ヒーロー帯（各ページ冒頭の空色パネル） */
.hero {
  background: var(--hl-mid);
  color: var(--on-sky);
  border-radius: 10px;
  padding: 40px 44px 38px;
  margin-bottom: 12px;
}

h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--color-accent);
  color: var(--color-accent);
}
.hero h1 {
  color: var(--on-sky);
  border-bottom: none;
  padding-bottom: 0;
  margin: 0 0 20px;
}
.hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--hl-dark);
  margin-top: 16px;
}
.hero h1:last-child { margin-bottom: 0; }

h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 56px 0 18px;
  padding-left: 12px;
  border-left: 5px solid var(--hl-gold);
  color: var(--color-accent);
}
main > h2:first-of-type,
.hero + h2 { margin-top: 44px; }
h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--color-accent);
}
p { margin: 0 0 16px; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 8px; }

.lead {
  font-size: 16.5px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 42em;
}
.hero .lead {
  color: var(--lead-text);
  font-weight: 500;
  margin-bottom: 0;
  max-width: 44em;
}

/* ---------- カード / グリッド ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}
.card {
  border: 1px solid var(--hl-dark);
  border-top: 3px solid var(--hl-dark);
  border-radius: 10px;
  padding: 22px 24px;
  background: var(--color-surface);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--hl-dark);
  box-shadow: 0 6px 20px rgba(11, 60, 93, 0.14);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; font-size: 19px; line-height: 1.5; }
.card p { margin-bottom: 0; font-size: 14px; color: var(--color-text-muted); }

/* ---------- 学内限定バッジ（サイト共通） ----------
   使い方：見出し・リンク名の直後に <span class="badge-internal">学内限定</span> */
.badge-internal {
  display: inline-block;
  margin-left: 0.6em;
  padding: 1px 9px;
  border: 1px solid var(--hl-gold);
  border-radius: 999px;
  background: var(--hl-gold);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: middle;
}

/* ---------- ピックアップ・リンクバナー（トップ） ---------- */
.pickup {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 18px 0 0;
}
.banner {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 12px;
  border-radius: 8px;
  border-bottom: 3px solid var(--hl-gold);
  color: var(--on-dark);
  line-height: 1.45;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.banner:hover {
  color: var(--on-dark);
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(11, 60, 93, 0.3);
  transform: translateY(-2px);
}
.banner:focus-visible { outline-offset: 4px; }
.banner--paperpal { background: var(--hl-dark); }
.banner--koryu { background: var(--color-ink); }
.banner__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(217, 179, 16, 0.7);
  color: var(--hl-gold);
}
.banner__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.banner__body { min-width: 0; }
.banner__title {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.banner__text {
  display: block;
  font-size: 12.5px;
  color: var(--on-dark-lead);
}
.banner__arrow {
  flex: none;
  margin-left: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--hl-gold);
  transition: transform 0.15s ease;
}
.banner:hover .banner__arrow { transform: translateX(3px); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- お知らせリスト ---------- */
.news-list { list-style: none; padding: 0; margin: 0 0 24px; }
.news-list li {
  display: flex;
  gap: 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
  align-items: baseline;
}
.news-list time {
  flex: 0 0 92px;
  color: var(--color-text-muted);
  font-size: 13px;
  padding-top: 2px;
}
.news-list .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  background: var(--tag-default-bg);
  color: var(--tag-default-text);
  border: none;
  border-radius: 4px;
  padding: 3px 8px;
  margin-right: 8px;
  white-space: nowrap;
  vertical-align: 1px;
}
.news-list .tag--seminar { background: var(--tag-seminar-bg); color: var(--tag-seminar-text); }
.news-list .tag--kaken { background: var(--tag-kaken-bg); color: var(--tag-kaken-text); }
.news-list .tag--paper { background: var(--tag-paper-bg); color: var(--tag-paper-text); }

/* ---------- テーブル ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 14.5px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}
th, td {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--hl-dark);
  color: var(--on-dark);
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- メンバーカード ---------- */
.member {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 18px;
  background: var(--color-surface);
}
.member h3 { margin: 0 0 10px; }
.member__en { font-size: 14px; font-weight: 500; color: var(--color-text-muted); margin-left: 1em; }
.member dl { margin: 0 0 0 2em; font-size: 14px; }   /* 職名・学位は名前より右へ */
.member dt { font-weight: 700; color: var(--color-text-muted); float: left; width: 5.5em; clear: left; }
.member dd { margin: 0 0 8px 5.5em; }
@media (max-width: 480px) { .member dl { margin-left: 1em; } .member dt { width: 4em; } .member dd { margin-left: 4em; } }

/* ---------- 連絡先ボックス ---------- */
.contact-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--hl-gold);
  border-radius: 8px;
  padding: 22px 26px;
  margin: 22px 0;
  font-size: 14.5px;
}

/* ---------- アイコン（Google Fonts: Material Symbols Outlined） ---------- */
.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 1.25em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
  vertical-align: -0.2em;
  margin-right: 0.35em;
  color: var(--hl-dark);
}

/* ---------- 情報パネル（要点を並べる） ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.info-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 18px 20px;
}
.info-item .info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.info-item .info-label .icon { margin-right: 0; font-size: 22px; }
.info-item .info-value { margin: 0; font-size: 17px; font-weight: 700; color: var(--hl-dark); line-height: 1.5; }
.info-item .info-note { margin: 4px 0 0; font-size: 13px; color: var(--color-text-muted); }

/* ---------- 状態表示（終了・受付中など） ---------- */
.status {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--color-text-muted);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 0.5em;
}

/* ---------- イベント（セミナー等）ボックス ---------- */
.event {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--hl-mid);
  border-radius: 8px;
  padding: 18px 24px;
  margin: 16px 0;
}
.event h3 { margin: 0 0 8px; font-size: 17px; }
.event ul.icon-list { margin-bottom: 0; }

/* アイコン付きリスト */
.icon-list { list-style: none; padding-left: 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; }
.icon-list li .icon { margin-right: 0; flex: none; margin-top: 0.1em; }

/* ---------- placeholder(要更新)表示 ---------- */
.tbd {
  background: var(--color-notice-bg);
  border: 1px dashed var(--color-notice-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-notice-text);
}

/* ---------- フッター（暗い帯） ---------- */
.site-footer {
  border-top: 3px solid var(--hl-gold);
  background: var(--color-ink);
  margin-top: 48px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px;
  font-size: 15px;
  color: var(--on-ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: var(--on-ink-muted); }
.site-footer a:hover { color: var(--hl-gold); }
.site-footer a:focus-visible { outline-color: var(--hl-gold); }
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.copyright { width: 100%; margin-top: 16px; font-size: 13px; }

@media (max-width: 640px) {
  .banner { flex: 1 1 100%; }
  .site-header__inner { padding: 22px 18px 18px; }
  .gnav { padding: 0 18px; }
  .gnav ul { font-size: 15px; }
  .gnav a { padding: 12px 14px 10px; }
  .breadcrumb { padding: 12px 18px 0; }
  .header-tools { margin-left: 0; gap: 14px; }
  .header-logo { padding: 6px 10px; }
  .header-logo img { height: 34px; }
  .header-x { width: 40px; height: 40px; }
  main { padding: 28px 18px 64px; }
  .hero { padding: 28px 22px 26px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; margin: 44px 0 14px; }
  .site-header__top { flex-direction: column; align-items: flex-start; }
  .news-list li { flex-direction: column; gap: 4px; }
  .news-list time { flex: none; }
}

/* ---------- 融合研究促進（yugo/） ---------- */
/* 全学研究交流会の大きなリンクカード */
.event-feature {
  display: flex;
  gap: 28px;
  align-items: stretch;
  margin: 20px 0 8px;
  background: var(--color-surface);
  border: 1px solid var(--hl-dark);
  border-top: 3px solid var(--hl-dark);
  border-radius: 10px;
  overflow: hidden;
  color: var(--color-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.event-feature:hover { box-shadow: 0 6px 20px rgba(11, 60, 93, 0.14); transform: translateY(-2px); text-decoration: none; }
.event-feature:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 3px; }
.event-feature__img { flex: 0 0 220px; background: var(--color-bg-soft); }
.event-feature__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-feature__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px 22px 0; min-width: 0; }
.event-feature__img[hidden] + .event-feature__body { padding-left: 26px; }
.event-feature__label {
  align-self: flex-start;
  font-size: 12px; font-weight: 700;
  background: var(--tag-kaken-bg); color: var(--tag-kaken-text);
  border-radius: 999px; padding: 2px 12px;
}
.event-feature__title { font-size: 22px; font-weight: 800; line-height: 1.4; color: var(--hl-dark); }
.event-feature__catch { font-size: 15px; font-weight: 500; }
.event-feature__meta { font-size: 14px; color: var(--color-text-muted); }
.event-feature__more { margin-top: 6px; font-weight: 700; color: var(--color-link); }

/* セミナーのカード一覧（左に画像・右に文字、2列） */
.seminar-grid {
  list-style: none; padding: 0; margin: 16px 0 36px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.seminar-card { margin: 0; }
.seminar-card a {
  display: flex; align-items: stretch; height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-top: 3px solid var(--hl-mid);
  border-radius: 10px; overflow: hidden;
  color: var(--color-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.seminar-card a:hover { box-shadow: 0 6px 20px rgba(11, 60, 93, 0.14); transform: translateY(-2px); text-decoration: none; }
.seminar-card a:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 3px; }
.seminar-card__img { flex: 0 0 150px; background: var(--color-bg-soft); }
.seminar-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.seminar-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; flex: 1; min-width: 0; }
.seminar-card__no { font-size: 13px; font-weight: 700; color: var(--hl-dark); }
.seminar-card__title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.seminar-card__sub { font-size: 12.5px; color: var(--color-text-muted); line-height: 1.6; }
.seminar-card time { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--color-text-muted); }

/* 個別セミナーページ */
.poster { margin: 28px 0 8px; }
.poster img { display: block; max-width: 420px; width: 100%; border: 1px solid var(--color-border); border-radius: 6px; }
.poster figcaption { margin-top: 10px; font-size: 14px; }
.poster figcaption a { display: inline-flex; align-items: center; gap: 6px; }
.svg-icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* KNOW-HOW融合（講演者からの融合ポイント） */
.knowhow {
  margin: 28px 0 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--hl-gold);
  border-radius: 8px;
  padding: 20px 26px 12px;
}
.knowhow h2 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin: 0 0 14px; padding: 0; border: none; background: none;
  font-size: 20px; color: var(--hl-dark);
}
.knowhow h2 .svg-icon { width: 1.4em; height: 1.4em; }
.knowhow__sub { font-size: 15px; font-weight: 500; color: var(--color-text-muted); }
.knowhow ul { margin: 0; padding-left: 1.3em; }
.knowhow li { margin-bottom: 10px; line-height: 1.85; font-size: 16px; }

/* 項目（日時・タイトル・講演者…） */
.detail-list {
  margin: 28px 0 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}
.detail-list dt {
  padding: 18px 24px 0;
  font-size: 18px; font-weight: 800; color: var(--hl-dark);
}
.detail-list dt::before {
  content: ""; display: inline-block; width: 6px; height: 1em;
  background: var(--hl-gold); border-radius: 2px; margin-right: 10px; vertical-align: -0.12em;
}
.detail-list dd {
  margin: 0; padding: 6px 24px 18px 40px;
  border-bottom: 1px solid var(--color-border);
  font-size: 17px; line-height: 1.85;
}
.detail-list dd:last-child { border-bottom: none; }

/* 接続先ボタン（開催が近い回のみ掲載） */
.btn-connect {
  display: inline-flex; align-items: center; gap: 14px;
  max-width: 100%;
  background: var(--hl-dark); color: var(--on-dark);
  border-radius: 10px; padding: 14px 24px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-connect:hover { background: #124f78; text-decoration: none; transform: translateY(-1px); color: var(--on-dark); }
.btn-connect:focus-visible { outline: 3px solid var(--hl-gold); outline-offset: 3px; }
.btn-connect .svg-icon { width: 30px; height: 30px; }
.btn-connect__text { display: flex; flex-direction: column; min-width: 0; }
.btn-connect__label { font-size: 18px; font-weight: 800; }
.btn-connect__url { font-size: 14px; color: var(--on-dark-lead); overflow-wrap: anywhere; }
.connect-note { margin: 12px 0 0; font-size: 15px; }
.connect-note strong { font-size: 17px; letter-spacing: 0.04em; }
.back-link { margin-top: 28px; }

/* 配付資料（学内限定） */
.knowhow h3.knowhow__doc-h { margin: 22px 0 10px; font-size: 16px; color: var(--hl-dark); display: flex; align-items: center; gap: 10px; }
.knowhow ul.doc-links { list-style: none; padding-left: 0; margin-bottom: 10px; }
.knowhow ul.doc-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }

/* 100人論文 */
[hidden] { display: none !important; }
.past-link { margin: 8px 0 0; font-size: 15px; }
.note { font-size: 14px; color: var(--color-text-muted); }
.poster--wide img { max-width: 720px; }
.poster-pair { display: flex; flex-wrap: wrap; gap: 20px; margin: 16px 0; }
.poster-pair a { display: block; flex: 0 1 300px; }
.poster-pair img { display: block; width: 100%; border: 1px solid var(--color-border); border-radius: 6px; }
.title-table td.num { width: 4.5em; text-align: right; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.title-table td { font-size: 15.5px; }

@media (max-width: 760px) {
  .seminar-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 640px) {
  .event-feature { flex-direction: column; gap: 0; }
  .event-feature__img { flex: none; }
  .event-feature__img img { height: auto; }
  .event-feature__body, .event-feature__img[hidden] + .event-feature__body { padding: 18px 20px 20px; }
  .seminar-card__img { flex-basis: 110px; }
  .detail-list dt { padding: 16px 18px 0; font-size: 17px; }
  .detail-list dd { padding: 6px 18px 16px 30px; font-size: 16px; }
  .knowhow { padding: 16px 18px 8px; }
}

/* ---------- 概要（about/） ---------- */
.ura-intro { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; margin: 20px 0 28px; }
.ura-acronym { background: var(--color-surface); border: 2px dashed var(--hl-mid); border-radius: 12px; padding: 18px 28px; font-size: 26px; line-height: 1.5; color: var(--color-text-muted); }
.ura-acronym p { margin: 0; }
.ura-acronym span { font-size: 46px; font-weight: 800; color: var(--hl-dark); margin-right: 1px; }
.ura-def { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 5px solid var(--hl-mid); border-radius: 10px; padding: 18px 24px 8px; }
.ura-def__tag { display: inline-block; margin: 0 0 4px; padding: 2px 14px; border-radius: 999px; background: var(--hl-mid); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.8; }
.ura-def h3 { margin: 6px 0 6px; }
.ura-def p:last-child { font-size: 15.5px; }

.org-figure { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--color-accent-soft); border-radius: 12px; padding: 24px 28px; margin: 0 0 12px; }
.org-figure__title { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--hl-dark); }
.org-tree { display: flex; align-items: center; gap: 18px; }
.org-head { flex: none; margin: 0; padding: 12px 14px; background: var(--color-surface); border: 1px solid var(--hl-dark); text-align: center; font-weight: 700; line-height: 1.5; }
.org-head small { display: block; font-size: 12px; font-weight: 500; color: var(--color-text-muted); }
.org-depts { list-style: none; margin: 0; padding: 0 0 0 18px; flex: 1; border-left: 2px solid var(--hl-dark); }
.org-depts li { margin: 0 0 6px; padding: 5px 12px; background: var(--color-surface); border: 1px solid var(--hl-dark); text-align: center; font-size: 14.5px; font-weight: 500; line-height: 1.6; position: relative; }
.org-depts li:last-child { margin-bottom: 0; }
.org-depts li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 18px; border-top: 2px solid var(--hl-dark); }
.org-depts li.is-current { background: var(--hl-gold); border-color: var(--hl-dark); font-weight: 800; }
.org-figure__rmo p { font-size: 15px; margin-bottom: 0; }
.rmo-box { background: var(--hl-dark); color: #fff; text-align: center; padding: 18px 16px; margin: 0 0 14px !important; border-radius: 6px; line-height: 1.6; }
.rmo-box strong { display: block; font-size: 17px; }

.duty-list { list-style: none; margin: 16px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.duty-list li { margin: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-top: 4px solid var(--hl-gold); border-radius: 10px; padding: 18px 20px; font-size: 17px; font-weight: 700; color: var(--hl-dark); line-height: 1.6; }

@media (max-width: 760px) {
  .ura-intro, .org-figure { grid-template-columns: minmax(0, 1fr); }
  .org-figure { padding: 20px; }
}
@media (max-width: 480px) {
  .org-tree { flex-direction: column; align-items: stretch; }
  .org-depts { padding-left: 14px; margin-left: 20px; }
}

/* リンクページ（link/） */
.link-list li{margin-bottom:1em}
.link-list .link-desc{font-size:.9em;color:#4b5866}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- 研究者Top10（internal/analysis/） ---------- */
.top10-nav { display: grid; gap: 18px; margin: 28px 0 8px; padding: 18px 22px; background: var(--color-surface); border: 1px solid var(--color-border); border-left: 4px solid var(--hl-gold); border-radius: 8px; }
.top10-nav__label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--color-text-muted); }
.year-switch, .anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.year-switch li, .anchor-nav li { margin: 0; }
.year-switch a, .anchor-nav a { display: inline-block; padding: 6px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg); font-size: 15px; font-weight: 500; text-decoration: none; }
.year-switch a:hover, .anchor-nav a:hover { background: var(--color-accent-soft); }
.year-switch a[aria-current="page"] { background: var(--hl-dark); border-color: var(--hl-dark); color: var(--on-dark); font-weight: 700; }
.top10-section { margin-top: 8px; scroll-margin-top: 16px; }
.top10-sub { font-size: 15px; font-weight: 500; color: var(--color-text-muted); margin-left: 0.4em; }
.note-list { margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--color-text-muted); }
.note-list li { margin-bottom: 4px; padding-left: 1.2em; text-indent: -1.2em; }
.note-list li::before { content: "※ "; }
/* position:relative は、表の中の .visually-hidden（絶対配置）が枠の外にはみ出して、ページ全体の横スクロールを生むのを防ぐため */
.table-scroll { position: relative; overflow-x: auto; margin: 0 0 28px; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; background: var(--color-surface); }
.data-table--narrow { max-width: 760px; min-width: 560px; }
.data-table th { padding: 9px 10px; background: var(--hl-dark); color: var(--on-dark); font-weight: 700; text-align: left; white-space: nowrap; }
.data-table th.col-author { min-width: 190px; }
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--color-border); vertical-align: top; line-height: 1.6; }
.data-table td.kgaku { text-align: center; white-space: nowrap; }
.data-table .journal { font-weight: 500; }
.data-table sub { font-size: 12.5px; color: var(--color-text-muted); vertical-align: baseline; }
.data-table tr.warning > td, .data-table td.warning { background: var(--color-notice-bg); }
.analysis-cond { margin: 4px 0 32px; padding: 14px 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; font-size: 13.5px; color: var(--color-text-muted); }
.analysis-cond__title { margin: 0 0 6px; font-weight: 700; }
.analysis-cond ul { margin: 0; padding-left: 1.2em; }
.analysis-cond li { margin-bottom: 2px; overflow-wrap: anywhere; }
/* Top10ページは表が見やすいよう、本文幅を画面いっぱいまで広げる（冒頭の年切替・項目リストは通常幅） */
main.main--wide { max-width: 1840px; }
.main--wide > .hero,
.main--wide > .top10-nav { max-width: calc(var(--max-width) - 48px); margin-left: auto; margin-right: auto; }
.main--wide .data-table { min-width: 900px; font-size: 15px; }
.main--wide .data-table--narrow { max-width: 760px; min-width: 560px; font-size: 14px; margin-left: auto; margin-right: auto; }
.main--wide .data-table th.col-author { min-width: 260px; }

/* ---------- ときめきスーパープレゼンテーション（seminar/tokimeki/） ----------
   リンクを2つ持つ回のカード（ポスター画像・ポスターPDF・学内限定の発表スライド） */
.talk-grid { list-style: none; padding: 0; margin: 16px 0 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.talk-card { margin: 0; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--hl-mid); border-radius: 10px; overflow: hidden; }
.talk-card__img { display: block; background: var(--color-bg-soft); }
.talk-card__img img { display: block; width: 100%; height: auto; }
.talk-card__img:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: -3px; }
.talk-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px; flex: 1; min-width: 0; }
.talk-card__body p { margin: 0; }
.talk-card__no { font-size: 13px; font-weight: 700; color: var(--hl-dark); }
.talk-card__title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.6; }
.talk-card__sub { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }
.talk-card__who { font-size: 15px; line-height: 1.6; }
.talk-card__aff { display: block; font-size: 13px; color: var(--color-text-muted); }
.talk-card time { padding-top: 4px; font-size: 13.5px; color: var(--color-text-muted); }
.talk-card__links { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.btn-doc { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid var(--hl-dark); border-radius: 999px; background: var(--color-surface); color: var(--hl-dark); font-size: 14px; font-weight: 700; line-height: 1.7; }
.btn-doc:hover { background: var(--color-accent-soft); text-decoration: none; }
.btn-doc:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 2px; }
.btn-doc .svg-icon { width: 1.1em; height: 1.1em; }
.btn-doc .badge-internal { margin-left: 0.1em; }
.talk-card--digest { flex-direction: row; margin: 16px 0 36px; }
.talk-card--digest .talk-card__img { flex: 0 0 200px; }
.talk-card--digest .talk-card__img img { height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .talk-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .talk-card--digest { flex-direction: column; }
  .talk-card--digest .talk-card__img { flex-basis: auto; }
  .talk-card--digest .talk-card__img img { height: auto; max-height: 360px; object-fit: contain; }
}

/* ---------- セミナー一覧（seminar/seminar.html・seminar/tag/） ---------- */
.tag-nav { list-style: none; margin: 12px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid var(--hl-dark); border-radius: 999px; background: var(--color-surface); color: var(--hl-dark); font-size: 14.5px; font-weight: 700; line-height: 1.7; }
.tag-nav a:hover { background: var(--color-accent-soft); text-decoration: none; }
.tag-nav a[aria-current="page"] { background: var(--hl-dark); color: #fff; }
.tag-nav a:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 2px; }
.tag-nav .count { font-size: 12.5px; font-weight: 500; opacity: 0.8; }
.tag-desc { margin: 0 0 6px; color: var(--color-text-muted); }
.ev-filter { margin: 18px 0 4px; max-width: 560px; }
.ev-filter label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 700; color: var(--hl-dark); }
.ev-filter input { width: 100%; box-sizing: border-box; padding: 9px 14px; font: inherit; border: 1px solid #8a96a3; border-radius: 8px; background: var(--color-surface); color: var(--color-text); }
.ev-filter input:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 1px; }
.ev-filter__msg { margin: 6px 0 0; min-height: 1.6em; font-size: 14px; color: var(--color-text-muted); }
.ev-year > h3 { margin: 30px 0 0; padding-bottom: 4px; font-size: 19px; color: var(--hl-dark); border-bottom: 2px solid var(--color-border); }
.ev-grid { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ev-card { margin: 0; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-top: 3px solid var(--hl-mid); border-radius: 10px; overflow: hidden; }
.ev-card__img { display: block; aspect-ratio: 4 / 3; background: var(--color-bg-soft); overflow: hidden; }
.ev-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ev-card__img--none { display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--color-text-muted); }
.ev-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; min-width: 0; }
.ev-card__body p { margin: 0; }
.ev-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tag { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.7; background: var(--tag-default-bg); color: var(--tag-default-text); }
.ev-tag:hover { text-decoration: underline; }
.ev-tag--kaken { background: var(--tag-kaken-bg); color: var(--tag-kaken-text); }
.ev-tag--paper { background: var(--tag-paper-bg); color: var(--tag-paper-text); }
.ev-card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.6; }
.ev-card__sub { font-size: 14px; font-weight: 500; line-height: 1.6; }
.ev-card__who { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.6; }
.ev-card__date { font-size: 13.5px; color: var(--color-text-muted); }
.ev-card__changed { display: block; font-size: 12.5px; }
.ev-card__links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.ev-docs { flex-basis: 100%; font-size: 14px; }
.ev-docs summary { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid var(--hl-dark); border-radius: 999px; background: var(--color-surface); color: var(--hl-dark); font-weight: 700; line-height: 1.7; cursor: pointer; list-style-position: inside; }
.ev-docs summary:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 2px; }
.ev-docs summary .svg-icon { width: 1.1em; height: 1.1em; }
.ev-docs ul { margin: 8px 0 0; padding-left: 1.4em; }
.ev-docs li { margin-bottom: 2px; overflow-wrap: anywhere; }
@media (max-width: 960px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ev-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ev-card { flex-direction: row; }
  .ev-card__img { flex: 0 0 112px; aspect-ratio: auto; }
  .ev-card__img img { height: 100%; }
  .ev-card__body { padding: 12px 14px 14px; }
}

/* リンクページ カテゴリ（link/） */
.link-cat{margin:0 0 2em}
.link-cat__head{display:flex;align-items:center;gap:14px;margin:0 0 .8em;padding-bottom:.5em;border-bottom:2px solid var(--hl-gold)}
.link-cat__icon{flex:none;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#daeaf4;color:#0b3c5d}
.link-cat__icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.link-cat__head h3{margin:0;padding:0;border:0;background:none;font-size:1.15em;line-height:1.4}
.link-list{list-style:none;padding-left:0}
.link-list .link-ic{width:1em;height:1em;margin-right:.4em;vertical-align:-.12em;color:#1b6a9c}

/* ==========================================================
   科研費（funding/kaken/ ・ internal/kaken/）専用の部品
   2026-10-09 追記。クラス名はすべて k- で始まる。
   色・余白は :root の変数を使う。リンクの鎖アイコン（.link-ic）、
   カテゴリ見出し（.link-cat）、学内限定（.badge-internal）は既存の部品をそのまま使用。
   ========================================================== */

[hidden] { display: none !important; }

/* ---------- 共通の小さな部品 ---------- */
.k-note { margin: 20px 0 0; font-size: 14px; color: var(--color-text-muted); }
.k-note .badge-internal { margin: 0 0.4em 0 0; }
.k-tag {
  display: inline-block;
  margin-left: 0.6em;
  padding: 0 9px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
  vertical-align: middle;
}
.k-ic {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.k-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 20px 0;
}
.k-panel--accent { border-left: 5px solid var(--hl-gold); }
.k-panel h3 { margin-top: 0; }
.k-panel > :last-child { margin-bottom: 0; }
.k-notice {
  background: var(--color-accent-soft);
  border-radius: 10px;
  padding: 18px 24px;
  margin: 24px 0;
  font-size: 15.5px;
}
.k-notice h3 { margin: 0 0 6px; font-size: 16px; }
.k-notice p { margin: 0 0 8px; }
.k-notice ul { margin: 0; padding-left: 1.3em; }
.k-notice li { margin-bottom: 4px; }
.k-notice > :last-child { margin-bottom: 0; }

/* ---------- ボタン ---------- */
.k-btn-row { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 20px 0; }
.k-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border: 2px solid var(--hl-dark);
  border-radius: 10px;
  font-size: 16px; font-weight: 800; line-height: 1.45;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.k-btn:hover { text-decoration: none; transform: translateY(-1px); }
.k-btn:focus-visible { outline: 3px solid var(--hl-gold); outline-offset: 3px; }
.k-btn .k-ic { width: 1.3em; height: 1.3em; }
.k-btn--primary { background: var(--hl-dark); color: var(--on-dark); }
.k-btn--primary:hover { background: #124f78; color: var(--on-dark); }
.k-btn--ghost { background: var(--color-surface); color: var(--hl-dark); }
.k-btn--ghost:hover { background: var(--color-accent-soft); color: var(--hl-dark); }
.k-btn--lg { padding: 16px 34px; font-size: 18px; }
.k-btn-row .badge-internal { align-self: center; margin-left: 0; }
.k-btn small { display: block; font-size: 12.5px; font-weight: 500; opacity: 0.85; }

/* ---------- 科研費トップ：応募の流れ ---------- */
.k-group { margin: 0 0 8px; }
.k-group h2 {
  display: flex; align-items: center; gap: 14px;
  margin: 48px 0 8px; padding-left: 0; border-left: none;
}
.k-step {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--hl-dark); color: var(--on-dark);
  font-size: 18px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--hl-gold);
}
.k-group__lead { margin: 0 0 18px 50px; font-size: 15px; color: var(--color-text-muted); }
.k-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.k-cards > li { margin: 0; }
.k-card {
  display: flex; align-items: center; gap: 16px;
  height: 100%;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--hl-mid);
  border-radius: 10px;
  color: var(--color-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-left-color 0.15s ease;
}
.k-card:hover {
  text-decoration: none;
  border-left-color: var(--hl-gold);
  box-shadow: 0 6px 20px rgba(11, 60, 93, 0.14);
  transform: translateY(-2px);
}
.k-card:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 3px; }
.k-card__icon {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--hl-dark);
}
.k-card__icon .k-ic { width: 28px; height: 28px; stroke-width: 1.7; }
.k-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.k-card__title { font-size: 17px; font-weight: 800; line-height: 1.5; color: var(--hl-dark); }
.k-card__text { font-size: 14px; line-height: 1.7; color: var(--color-text-muted); }
.k-card__go {
  flex: none; font-size: 20px; font-weight: 700; color: var(--hl-mid);
  transition: transform 0.15s ease;
}
.k-card:hover .k-card__go { transform: translateX(3px); }

/* ---------- 番号つきリスト（誓約事項・変更点） ---------- */
.k-numlist { list-style: none; counter-reset: knum; margin: 20px 0; padding: 0; }
.k-numlist > li {
  counter-increment: knum;
  position: relative;
  margin: 0 0 12px;
  padding: 18px 22px 18px 76px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 16.5px; line-height: 1.9;
}
.k-numlist > li::before {
  content: counter(knum);
  position: absolute; left: 20px; top: 20px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hl-dark); color: var(--on-dark);
  font-size: 20px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--hl-gold);
}
.k-numlist--oath > li { display: flex; align-items: center; min-height: 80px; font-size: 17px; }
.k-numlist--oath > li::before { top: 50%; transform: translateY(-50%); }
.k-numlist__title { display: block; margin-bottom: 2px; font-size: 17.5px; font-weight: 800; color: var(--hl-dark); }
.k-numlist__body { display: block; font-size: 15.5px; }

/* ---------- 同意ボックス（調書公開の入口） ---------- */
.k-consent {
  margin: 28px 0;
  padding: 30px 24px 26px;
  text-align: center;
  background: var(--color-surface);
  border: 2px solid var(--hl-dark);
  border-radius: 12px;
}
.k-consent__q { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: var(--hl-dark); }
.k-consent__note { margin: 0; font-size: 14px; color: var(--color-text-muted); }
.k-consent .k-btn-row { justify-content: center; margin: 18px 0 14px; }

/* ---------- ガイドブック ---------- */
.k-guide { display: flex; gap: 32px; align-items: flex-start; margin: 24px 0; }
.k-cover { flex: none; width: 230px; margin: 0; }
.k-cover img {
  display: block; width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(11, 60, 93, 0.18);
}
.k-guide__body { flex: 1; min-width: 0; }
.k-toc { margin: 0 0 8px; padding: 0; list-style: none; }
.k-toc > li {
  position: relative; margin: 0 0 8px; padding-left: 1.4em;
  font-size: 16px; font-weight: 700; line-height: 1.7;
}
.k-toc > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.65em; height: 0.65em;
  background: var(--hl-gold); border-radius: 2px;
}
.k-toc ul { margin: 6px 0 4px; padding-left: 1.2em; list-style: disc; font-weight: 500; font-size: 15px; }
.k-toc ul li { margin-bottom: 3px; }

/* ---------- 定義リスト（申請の要点） ---------- */
.k-def {
  display: grid; grid-template-columns: 13em minmax(0, 1fr);
  margin: 0; border-top: 1px solid var(--color-border);
}
.k-def dt, .k-def dd { margin: 0; padding: 14px 6px; border-bottom: 1px solid var(--color-border); }
.k-def dt { font-weight: 700; color: var(--hl-dark); }
.k-def dd > :last-child { margin-bottom: 0; }

/* ---------- 調書チェック（支援の種類） ---------- */
.k-program {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--hl-mid);
  border-radius: 10px;
  padding: 22px 26px 12px;
  margin: 20px 0;
}
.k-program h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font-size: 19px; }
.k-program .status { margin-left: 0; }
.k-program .k-def { margin: 14px 0 12px; }

/* ---------- 左右2列 ---------- */
.k-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; }
.k-two .k-panel { margin: 0; }
.k-check { list-style: none; margin: 14px 0; padding: 0; }
.k-check li { position: relative; margin: 0 0 10px; padding-left: 1.8em; }
.k-check li::before {
  content: ""; position: absolute; left: 0.45em; top: 0.4em;
  width: 0.38em; height: 0.8em;
  border: solid var(--hl-gold); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* ---------- 説明資料カード（Tips） ---------- */
.k-resources { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 20px; }
.k-resource {
  margin: 0;
  display: flex; gap: 26px; align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--hl-mid);
  border-radius: 10px;
  overflow: hidden;
}
/* スライド画像は切らずに全体を見せる（枠線つき） */
.k-resource__thumb {
  flex: 0 0 280px; display: block; margin: 20px 0 20px 22px;
  border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(11, 60, 93, 0.12);
}
.k-resource__thumb img { display: block; width: 100%; height: auto; }
.k-resource__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 22px 26px 22px 0; align-self: stretch; }
.k-resource__meta { margin: 0; font-size: 13px; color: var(--color-text-muted); }
.k-resource__title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.5; color: var(--hl-dark); }
.k-resource__lead { margin: 0; font-size: 14px; font-weight: 700; color: var(--hl-mid); }
.k-resource__points { margin: 0; padding-left: 1.3em; font-size: 15px; }
.k-resource__points li { margin-bottom: 3px; }
.k-resource .k-btn { align-self: flex-start; margin-top: auto; padding: 9px 20px; font-size: 15px; }

/* ---------- 参考図書 ---------- */
.k-books { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 12px; }
.k-books > li { margin: 0; }
.k-book {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.k-book:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(11, 60, 93, 0.14); transform: translateY(-2px); }
.k-book:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 3px; }
.k-book__icon {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 8px;
  background: var(--color-accent-soft); color: var(--hl-dark);
}
.k-book__icon .k-ic { width: 24px; height: 24px; }
.k-book__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.k-book__title { font-size: 16.5px; font-weight: 800; line-height: 1.6; color: var(--color-link); }
.k-book__meta { font-size: 14px; color: var(--color-text-muted); }
.k-book__go { flex: none; font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }

/* ---------- 表（過去の実施要領など） ---------- */
/* position:relative は、表の中の .visually-hidden（絶対配置）が枠の外にはみ出して横スクロールを生むのを防ぐため */
.k-table-wrap { position: relative; overflow-x: auto; margin: 20px 0 32px; -webkit-overflow-scrolling: touch; }
.k-table-wrap table { margin: 0; min-width: 560px; }
.k-past td, .k-past th { font-size: 14.5px; }
.k-past td:first-child { white-space: nowrap; font-weight: 700; }
.k-sep { color: var(--color-border); margin: 0 0.5em; }

@media (max-width: 760px) {
  .k-cards, .k-two { grid-template-columns: minmax(0, 1fr); }
  .k-group__lead { margin-left: 0; }
  .k-guide { flex-direction: column; }
  .k-cover { width: 180px; }
  .k-resource { flex-direction: column; gap: 0; }
  .k-resource { align-items: stretch; }
  .k-resource__thumb { flex: none; margin: 16px 16px 0; }
  .k-resource__body { padding: 16px 20px 20px; }
  .k-def { grid-template-columns: minmax(0, 1fr); }
  .k-def dt { border-bottom: none; padding-bottom: 0; }
  .k-numlist > li { padding: 16px 16px 16px 66px; }
  .k-numlist > li::before { left: 14px; }
  .k-book { flex-wrap: wrap; }
  .k-book__go { width: 100%; padding-left: 64px; }
}

/* ==========================================================
   2026-10-09 追記：締切の赤字（.k-deadline）、大きめのポスター画像（.k-cover--lg）
   ========================================================== */
.k-deadline { color: #b3261e; font-weight: 700; }
.k-cover--lg { position: relative; width: 280px; }
.k-cover figcaption { margin-top: 8px; font-size: 13px; color: var(--color-text-muted); }
@media (max-width: 760px) {
  .k-cover--lg { width: 220px; }
}

/* ---------- Paperpal（publication/・internal/publication/） ---------- */
.k-btn .icon { margin-right: 0; font-size: 1.4em; color: inherit; }
.pp-steps details { margin-top: 10px; font-size: 15.5px; line-height: 1.8; }
.pp-steps summary { display: inline-block; padding: 3px 0; cursor: pointer; font-weight: 700; color: var(--color-link); }
.pp-steps summary:hover { text-decoration: underline; }
.pp-steps summary:focus-visible { outline: 3px solid var(--hl-mid); outline-offset: 3px; }
.pp-steps details ol { margin: 8px 0 0; padding-left: 1.5em; }
.pp-steps details li { margin-bottom: 6px; }
.pp-tip {
  margin: 12px 0 0; padding: 10px 14px;
  background: var(--color-accent-soft);
  border-left: 3px solid var(--hl-mid);
  border-radius: 0 6px 6px 0;
  font-size: 14.5px; line-height: 1.7;
}
.pp-contact-mail { font-weight: 700; word-break: break-all; }
/* 操作手順：2列で表示（縦を短縮）。開いた詳細で隣の高さが伸びないよう start 揃え */
.pp-steps.k-numlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.pp-steps.k-numlist > li { margin: 0; padding: 18px 20px 18px 70px; }
.pp-steps .k-numlist__title { font-size: 17px; }
.pp-steps .k-numlist__body { font-size: 15px; line-height: 1.8; }
@media (max-width: 760px) {
  .pp-steps.k-numlist { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pp-steps.k-numlist > li { padding-left: 64px; }
}

.hero + .k-cards { margin-top: 24px; }

/* ---------- お知らせ（news.js 用） ---------- */
:root {
  --tag-funds-bg: #f9dfc9;
  --tag-funds-text: #6b3410;
  --tag-analysis-bg: #e4dcf3;
  --tag-analysis-text: #42306c;
  --tag-yugo-bg: #f5d9e4;
  --tag-yugo-text: #6b2145;
}
.news-list .tag--funds { background: var(--tag-funds-bg); color: var(--tag-funds-text); }
.news-list .tag--analysis { background: var(--tag-analysis-bg); color: var(--tag-analysis-text); }
.news-list .tag--yugo { background: var(--tag-yugo-bg); color: var(--tag-yugo-text); }
.news-list .tag--info { background: var(--tag-default-bg); color: var(--tag-default-text); }
.news-list .badge-internal { margin-left: 6px; }
.news-block[hidden] { display: none; }
.news-more { margin: 10px 0 0; text-align: right; font-size: 14px; }

/* ---------- 熊本地震まとめ（news/kumamoto_jishin2026.html） ---------- */
.jishin-st { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid; font-size: 13px; font-weight: 700; white-space: nowrap; }
.jishin-st--ok { background: #e7f3ea; color: #276b3f; border-color: #bfe0c8; }
.jishin-st--wait { background: #fdf1de; color: #7a4e0e; border-color: #f0d4a3; }
.jishin-st--none { background: #eef0f2; color: #4b5866; border-color: #dadfe4; }
.jishin-table td:nth-child(4) { min-width: 320px; }
.jishin-history summary { cursor: pointer; font-weight: 700; color: var(--hl-dark); }
.jishin-history__list { margin: 12px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--color-text-muted); }
.jishin-history__list li { margin-bottom: 8px; }
.jishin-history__list time { color: var(--color-text); font-weight: 700; }

/* ---------- 項目見出しのアイコン（souhatsu.html / yugo/index.html など） ---------- */
h3.has-ic, .k-def dt.has-ic { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.h-ic {
  width: 2em; height: 2em; flex: none; box-sizing: border-box; padding: .42em;
  border-radius: 50%; background: var(--color-accent-soft); color: var(--hl-dark);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.k-def dt.has-ic { flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
.k-def dt.has-ic .h-ic { width: 1.8em; height: 1.8em; margin-top: -.15em; }
.k-def dt.k-deadline .h-ic { background: #f6dad7; color: #b3261e; }
.seminar-year { margin: 28px 0 10px; padding-left: 10px; border-left: 3px solid var(--hl-gold); font-size: 16px; font-weight: 700; color: var(--color-text); }
kbd { display: inline-block; padding: 0 .45em; border: 1px solid var(--color-border); border-bottom-width: 2px; border-radius: 4px; background: var(--color-surface); font: inherit; font-size: .88em; line-height: 1.5; }

/* ---------- 科研費の変更点アーカイブ（funding/kaken/changes/） ---------- */
.arc-log { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--color-border); }
.arc-log li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 12px; margin: 0; padding: 12px 6px; border-bottom: 1px solid var(--color-border); }
.arc-log li > span:only-child { grid-column: 1 / -1; }
.arc-log time { font-weight: 700; color: var(--hl-dark); font-variant-numeric: tabular-nums; }
.arc-toc { margin: 0 0 8px; padding-left: 1.6em; }
.arc-toc li { margin-bottom: 6px; }
.arc-fig { margin: 16px 0 24px; }
.arc-fig a { display: inline-block; }
.arc-fig img { display: block; max-width: 100%; height: auto; border: 1px solid var(--color-border); background: #fff; }
.arc-panel-title { margin: 0 0 8px; font-weight: 800; color: var(--hl-dark); }
.year-switch [aria-current="page"] { background: var(--hl-dark); border-color: var(--hl-dark); color: #fff; }
.k-table-wrap tbody th[scope="row"] { background: transparent; color: var(--hl-dark); text-align: left; font-weight: 700; }
.arc-index td ul { margin: 0; padding-left: 1.2em; }
.arc-index td li { margin-bottom: 4px; }
@media (max-width: 560px) { .arc-log li { grid-template-columns: minmax(0, 1fr); } }
/* 下位項目（dt）のアイコンは金色系で、見出し（h3）の青系と区別する */
.k-def dt.has-ic--sub .h-ic { background: #f6ebbd; color: #7a5f00; }
