/* ==========================================================
   Hiromitsu Nishizaki — https://www.alps-lab.org/hn/
   素の CSS のみ。研究室サーバの CSP（インライン script 不可）に合わせ JS は使わない。
   ========================================================== */

:root {
  --bg: #f5f2eb;
  --bg-deep: #ece6da;
  --surface: #fffdf9;
  --ink: #18212b;
  --ink-soft: #46505c;
  --ink-faint: #7a828c;
  --rule: #dcd4c5;
  --accent: #b9432a;        /* 甲州の柿をイメージした朱 */
  --accent-ink: #9c3620;
  --accent-soft: #f2dfd6;
  --navy: #1f3442;

  /* ヒーロー（富士・南アルプス・音声波形） */
  --sky-1: #f5f2eb;
  --sky-2: #e8e1d2;
  --fuji-1: #b7c4cd;
  --fuji-2: #dde2e1;
  --snow: #fbfaf6;
  --ridge-1a: #5d7a8b;
  --ridge-1b: #9db0ba;
  --ridge-2a: #1d3240;
  --ridge-2b: #2a4555;

  --font-sans: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Inter", system-ui, sans-serif;
  --font-display: "Fraunces", "Shippori Mincho", Georgia, serif;
  --font-mincho: "Shippori Mincho", "Fraunces", serif;

  --wrap: 1120px;
  --gutter: 32px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171e;
    --bg-deep: #0c1117;
    --surface: #18212b;
    --ink: #ebe6db;
    --ink-soft: #b4b9bf;
    --ink-faint: #848b94;
    --rule: #2b3541;
    --accent: #ec7d5e;
    --accent-ink: #f39a80;
    --accent-soft: #3a241e;
    --navy: #9dbacb;

    --sky-1: #11171e;
    --sky-2: #1a2531;
    --fuji-1: #3f5464;
    --fuji-2: #2a3a47;
    --snow: #c9d3d9;
    --ridge-1a: #2c4252;
    --ridge-1b: #22323e;
    --ridge-2a: #0b1219;
    --ridge-2b: #1a2d39;      /* hero-dark.webp の下端 */
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { font-family: var(--font-jp); line-height: 1.9; }  /* 日英とも同じ書体 */

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }

img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 6px 12px;
}
.skip:focus { left: 8px; }

/* ---------- 上部バー ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .02em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; }

.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--accent); }

.lang {
  display: flex; align-items: center; gap: 2px;
  font-size: 12px; letter-spacing: .04em;
  border: 1px solid var(--rule); border-radius: 999px; padding: 2px;
}
.lang a, .lang span { padding: 2px 10px; border-radius: 999px; text-decoration: none; line-height: 1.6; }
.lang a { color: var(--ink-faint); }
.lang a:hover { color: var(--ink); }
.lang [aria-current="true"] { background: var(--ink); color: var(--bg); }

/* ---------- ヒーロー ---------- */

.hero { position: relative; }

/* 生成画像（明暗2枚）。下端の色は .intro の背景（--ridge-2b）と同じ */
.hero-art, .pl-art { display: block; }
.hero-art img, .pl-art img { display: block; width: 100%; object-fit: cover; }
.hero-art img { height: clamp(200px, 28.5vw, 400px); object-position: 50% 100%; }  /* 上端 2% ほど切って暗い版の縁を隠す */
.pl-art img { height: clamp(96px, 18.3vw, 220px); object-position: 50% 100%; }

.intro {
  background: var(--ridge-2b);
  color: #eef1f2;
  padding-bottom: 56px;
}
.intro a { color: #ffd9cc; }
.intro a:hover { color: #fff; }

.intro-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 40px;
  align-items: end;
}

.portrait {
  width: 168px; height: 168px;
  margin-top: -96px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--ridge-2b);
  background: var(--ridge-2b);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  position: relative;
}

.who { padding-top: 20px; }

.name {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.2;
  letter-spacing: .12em;
}

.name-alt {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: .18em;
  color: #a9b8c1;
  text-transform: uppercase;
}

.position { margin: 14px 0 0; font-size: 15px; color: #d6dde1; line-height: 1.7; }
.position strong { color: #fff; font-weight: 600; }
.position strong a { color: inherit; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.position strong a:hover { text-decoration-color: currentColor; }

.tagline {
  grid-column: 1 / -1;
  margin: 40px 0 0;
  font-family: var(--font-mincho);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .04em;
  max-width: 28em;
  color: #fff;
}

.lead {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  max-width: 46em;
  color: #c9d2d7;
  font-size: 15px;
}

.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips a {
  font-size: 12.5px;
  text-decoration: none;
  color: #e7ecee;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 4px 14px;
  transition: background .15s, border-color .15s;
}
.xi { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.14em; margin-right: .4em; }
.chips a:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.stat { padding: 18px 16px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.16); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: lining-nums;
}
.stat span { font-size: 12.5px; color: #a9b8c1; letter-spacing: .04em; }
.stats-note { grid-column: 1 / -1; margin: 10px 0 0; font-size: 11.5px; color: #8b9ba5; }

/* ---------- セクション ---------- */

.section { padding: 88px 0 24px; }
.section + .section { border-top: 1px solid var(--rule); padding-top: 72px; }

.sec-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px 56px;
}

.sec-head { position: sticky; top: 84px; align-self: start; }
.sec-num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .1em;
}
.sec-title {
  margin: 6px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}
.sec-en {
  display: block; margin-top: 6px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-faint);
}

.sec-body > :first-child { margin-top: 0; }

.prose { max-width: 40em; color: var(--ink-soft); }
.prose p { margin: 0 0 1em; }

h3.sub {
  margin: 44px 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px;
}
h3.sub::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
h3.sub { letter-spacing: .1em; font-size: 14px; text-transform: none; color: var(--ink); }

/* 経歴タイムライン */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
}
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--ink-faint); font-size: 13.5px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline .now time { color: var(--accent-ink); font-weight: 600; }
.timeline small { display: block; color: var(--ink-faint); font-size: 13px; line-height: 1.6; margin-top: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tags li {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 2px 10px;
}

/* 研究テーマ */
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.theme {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 26px 26px 22px;
  display: flex; flex-direction: column;
}
.theme-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.theme-icon { width: 52px; height: 52px; }
.theme-icon img { display: block; width: 32px; height: 32px; }
.theme h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.5; }
.theme p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.tags li.senior { border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }  /* シニア会員 */
.tags li a { color: inherit; text-decoration: none; }
.tags li a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.theme .tags { margin-top: auto; padding-top: 16px; }
.theme .tags li { background: var(--bg); border-color: transparent; font-size: 12px; }

.grants { list-style: none; margin: 0; padding: 0; }
.grants li { padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 14.5px; }
.grants li:last-child { border-bottom: 0; }
.grants span { color: var(--ink-faint); font-size: 13px; margin-left: 8px; white-space: nowrap; }

/* 業績 */
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr);  /* 年月（2025.10）が入る幅 */
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.7;
}
.pubs li:last-child { border-bottom: 0; }
.pubs .yr {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-faint);
  font-variant-numeric: lining-nums tabular-nums;
}
.pubs .t { display: block; font-weight: 600; color: var(--ink); }
.pubs .au { display: block; color: var(--ink-soft); }
.pubs .au b { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pubs .v { display: block; color: var(--ink-faint); font-style: italic; }
.pubs .v { font-style: normal; }
.pubs .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; align-items: center; }
.pubs .doi { font-size: 12.5px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 4px;
  padding: 1px 8px;
}

.jif {  /* 論文誌のインパクトファクター */
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 4px; padding: 0 7px;
}
.jif.q1 { color: var(--accent-ink); border-color: var(--accent); }  /* SCImago 四分位 Q1 だけ強調 */

.more { margin: 22px 0 0; font-size: 14px; color: var(--ink-soft); }

/* 受賞 */
.awards li { grid-template-columns: 6.5em minmax(0, 1fr); }

/* 授業 */
.teach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }  /* 4区分を2×2で */
.teach-col {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 22px 16px;
}
.teach-col h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; color: var(--accent-ink); }
.teach-col ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.teach-col li { padding: 5px 0; border-top: 1px dashed var(--rule); }
.teach-col li:first-child { border-top: 0; }

/* 連絡先 */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 26px;
}
.dl { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: 14.5px; }
.dl dt { color: var(--ink-faint); font-size: 13px; padding-top: 1px; }
.dl dd { margin: 0; }
.mail { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; }
.idlist { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.idlist li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px dashed var(--rule); }
.idlist li:first-child { border-top: 0; padding-top: 0; }
.idlist span { color: var(--ink-faint); }

/* ---------- フッター ---------- */

.footer {
  margin-top: 96px;
  background: var(--ridge-2b);
  color: #a9b8c1;
  font-size: 12.5px;
}
.footer-ridge { width: 100%; height: 48px; background: var(--bg); }
.footer-ridge path { fill: var(--ridge-2b); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 36px; }
.footer a { color: #d6dde1; }

/* ---------- タブレット・スマホ ---------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sec-head { position: static; }
  .teach { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-top: 56px; }
  .section + .section { padding-top: 48px; }
  .intro { padding-bottom: 40px; }
  .intro-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { width: 116px; height: 116px; margin-top: -70px; border-width: 4px; }
  .who { padding-top: 4px; }
  .tagline { margin-top: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 12px; }
  .themes { grid-template-columns: minmax(0, 1fr); }
  .timeline li, .awards li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pubs li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .dl dd { margin-bottom: 10px; }
  .brand-name-full { display: none; }
}

@media print {
  .topbar, .hero-art, .pl-art, .footer-ridge { display: none; }
  .intro, .footer { background: none; color: #000; }
  .intro *, .footer * { color: #000 !important; }
  .portrait { margin-top: 0; box-shadow: none; }
  .sec-head { position: static; }
}
.sub-first { margin-top: 0 !important; }

/* ---------- 業績の概要 ---------- */

:root { --s1: #2f7aa8; --s2: #c9502f; }   /* グラフ系列色（色覚・コントラスト検証済み） */
@media (prefers-color-scheme: dark) { :root { --s1: #4a98d4; --s2: #e0694a; } }

.metrics { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 16px; }
.m-group {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 18px 20px 20px;
}
.m-group h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; color: var(--accent-ink); font-weight: 600; }
.m-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.m-group:not(:first-child) .m-tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.m-group:first-child .m-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.m-tile b {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.m-tile span { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.m-tile small { display: block; font-size: 11.5px; color: var(--ink-faint); line-height: 1.5; }
.m-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-faint); line-height: 1.7; }

.chart { margin: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.c-legend { display: flex; gap: 18px; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.c-legend span { display: inline-flex; align-items: center; gap: 6px; }
.c-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.c-sw1, .c-s1 { background: var(--s1); fill: var(--s1); }
.c-sw2, .c-s2 { background: var(--s2); fill: var(--s2); }
.c-grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 3; }
.c-axis { stroke: var(--ink-faint); stroke-width: 1; }
.c-tick { font-size: 11px; fill: var(--ink-faint); font-family: var(--font-sans); }
.c-hit { fill: transparent; }
.c-col:hover .c-hit { fill: var(--bg-deep); }
.c-table { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.c-table summary { cursor: pointer; color: var(--accent-ink); }
.c-table table { margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.c-table th, .c-table td { padding: 2px 16px 2px 0; text-align: right; border-bottom: 1px dashed var(--rule); }
.c-table th:first-child, .c-table td:first-child { text-align: left; }

/* 科研費 */
.grants .g-title { color: var(--ink); text-decoration: none; font-weight: 500; }
.grants .g-title:hover { color: var(--accent); text-decoration: underline; }
.grants .g-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 0; }
.grants .g-meta span { margin: 0; white-space: nowrap; }
.grants .g-meta .badge { color: var(--accent-ink); font-size: 11.5px; }

/* 授業 */
.prose-note { margin: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; }
.teach-col a, .teach-col .tname { color: var(--ink); text-decoration: none; font-weight: inherit; }
.teach-col a:hover { color: var(--accent); text-decoration: underline; }
.teach-col li span { display: block; font-size: 12px; color: var(--ink-faint); line-height: 1.4; }

@media (max-width: 960px) {
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .m-group:not(:first-child) .m-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .m-tiles, .m-group:not(:first-child) .m-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-tile b { font-size: 26px; }
}
@media (max-width: 640px) { .c-tick { font-size: 17px; } }
.c-partial { opacity: .55; }
.c-label { font-size: 11px; fill: var(--ink-soft); font-family: var(--font-sans); }
@media (max-width: 640px) { .c-label { font-size: 17px; } }

/* ---------- 研究トピック（カテゴリ色: dataviz 参照パレットの順で割当） ---------- */

:root {
  --t-asr: #2a78d6; --t-audio: #eb6834; --t-sdr: #1baf7a; --t-nlp: #eda100;
  --t-edu: #e87ba4; --t-vision: #008300; --t-agri: #4a3aa7; --t-health: #e34948; --t-general: #898781;
}
@media (prefers-color-scheme: dark) {
  :root {
    --t-asr: #3987e5; --t-audio: #d95926; --t-sdr: #199e70; --t-nlp: #c98500;
    --t-edu: #d55181; --t-vision: #008300; --t-agri: #9085e9; --t-health: #e66767; --t-general: #898781;
  }
}
.tp-asr { --tc: var(--t-asr); }   .tp-audio { --tc: var(--t-audio); } .tp-sdr { --tc: var(--t-sdr); }
.tp-nlp { --tc: var(--t-nlp); }   .tp-edu { --tc: var(--t-edu); }     .tp-vision { --tc: var(--t-vision); }
.tp-agri { --tc: var(--t-agri); } .tp-health { --tc: var(--t-health); } .tp-general { --tc: var(--t-general); }
.theme-asr { --tc: var(--t-asr); } .theme-audio { --tc: var(--t-audio); } .theme-sdr { --tc: var(--t-sdr); }
.theme-nlp { --tc: var(--t-nlp); } .theme-edu { --tc: var(--t-edu); } .theme-vision { --tc: var(--t-vision); }
.theme-agri { --tc: var(--t-agri); } .theme-health { --tc: var(--t-health); }

/* トピックタグ: 色の点＋文字（色だけに頼らない） */
.tp {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; line-height: 1.5;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--tc) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tc) 28%, var(--rule));
  border-radius: 999px;
  padding: 0 9px 0 7px;
  text-decoration: none;
  white-space: nowrap;
}
.tp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tc); flex: none; }
a.tp:hover { color: var(--ink); border-color: var(--tc); }

/* 研究カード（8トピック） */
.themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.theme { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.theme:hover { border-color: var(--tc); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.06); color: inherit; }
.theme .theme-icon { background: color-mix(in srgb, var(--tc) 14%, var(--surface)); color: var(--tc); }
.theme-n {
  margin-top: auto; padding-top: 14px;
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--accent-ink);
}

.all-pubs {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 28px 0 4px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.all-pubs:hover { background: var(--accent); color: #fff; }
.nav .nav-list { color: var(--accent-ink); font-weight: 600; }

/* ---------- 業績一覧ページ ---------- */

.pl-head { padding: 48px 0 28px; border-bottom: 1px solid var(--rule); background: var(--bg-deep); }
.pl-back { font-size: 13px; color: var(--ink-faint); text-decoration: none; }
.pl-back:hover { color: var(--accent); }
.pl-head h1 { margin: 10px 0 6px; font-size: 34px; letter-spacing: .04em; }
.pl-lead { margin: 0; max-width: 46em; color: var(--ink-soft); font-size: 15px; }

.pl-filters { display: none; margin-top: 24px; }
.js .pl-filters { display: grid; gap: 10px; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.flabel { width: 8.5em; font-size: 12px; color: var(--ink-faint); letter-spacing: .08em; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
  padding: 3px 12px; cursor: pointer;
}
.fchip.tp { padding: 3px 12px 3px 9px; font-size: 13px; }
.fchip:hover { border-color: var(--ink-faint); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip.tp[aria-pressed="true"] { background: var(--tc); border-color: var(--tc); color: #fff; }
.fchip.tp[aria-pressed="true"]::before { background: #fff; }
.fchip-n { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.fsearch {
  flex: 1 1 260px; max-width: 420px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 6px 12px;
}
.fsearch:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fcount { font-size: 13px; color: var(--ink-faint); margin-left: 6px; }
.fcount b { color: var(--ink); font-size: 15px; }

.pl-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 32px; padding-top: 32px; }
.pl-years {
  position: sticky; top: 76px; align-self: start;
  display: flex; flex-direction: column; gap: 1px;
  max-height: calc(100vh - 96px); overflow-y: auto;
  font-family: var(--font-display); font-size: 14px;
}
.pl-years a { color: var(--ink-faint); text-decoration: none; white-space: nowrap; padding: 2px 0 2px 10px; border-left: 2px solid var(--rule); }
.pl-years a:hover { color: var(--accent); border-left-color: var(--accent); }

.pl-year { padding-bottom: 20px; }
.pl-year h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0; padding: 18px 0 8px;
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 56px; background: var(--bg); z-index: 2;
}
.pl-year h2 span { font-family: var(--font-display); font-weight: 500; font-size: 28px; }
.pl-year h2 small { font-size: 13px; color: var(--ink-faint); font-weight: 400; }

.plist li { grid-template-columns: 7.2em minmax(0, 1fr); }
.ptype {
  align-self: start; justify-self: start;
  font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.6;
  padding: 1px 8px; border-radius: 4px;
  color: var(--ink-soft); background: var(--bg-deep);
  margin-top: 3px;
}
.ptype-journal { color: #fff; background: var(--s1); }
.pside { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pd {  /* 発表年月 */
  font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em;
}
.ptype-conference { color: #fff; background: var(--s2); }
.ptype-invited { color: var(--accent-ink); background: var(--accent-soft); }
.pl-item[hidden], .pl-year[hidden], .pl-years a[hidden] { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
}
@media (max-width: 760px) {
  .pl-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pl-years {
    position: sticky; top: 56px; z-index: 3;
    flex-direction: row; overflow-x: auto; max-height: none;
    background: var(--bg); padding: 8px 0; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter);
    border-bottom: 1px solid var(--rule);
  }
  .pl-years a { border-left: 0; padding: 2px 8px; white-space: nowrap; }
  .pl-year h2 { top: 96px; }
  .plist li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pside { flex-direction: row; align-items: center; gap: 8px; }
  .pside .ptype { margin-top: 0; }
  .flabel { width: 100%; }
  .themes { grid-template-columns: minmax(0, 1fr); }
}
/* 英字は和文用の字間だと間延びするので、字間だけ詰める（書体・サイズは日英共通） */
html[lang="en"] .name { letter-spacing: .03em; }
html[lang="en"] .tagline { letter-spacing: .01em; }

/* 中国語（簡体字）ページ：簡体字の書体を優先し、日本語の題目などは日本語書体で表示 */
html[lang="zh-Hans"] {
  --font-sans: "Inter", "Noto Sans SC", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-jp: "Noto Sans SC", "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-display: "Fraunces", "Noto Serif SC", "Shippori Mincho", Georgia, serif;
  --font-mincho: "Noto Serif SC", "Shippori Mincho", "Fraunces", serif;
}
html[lang="zh-Hans"] [lang="ja"] { font-family: "Zen Kaku Gothic New", "Inter", system-ui, sans-serif; }

/* 韓国語ページ：ハングルの書体を優先し、日本語の題目などは日本語書体で表示。改行は単語（分かち書き）の切れ目で */
html[lang="ko"] {
  --font-sans: "Inter", "Noto Sans KR", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-jp: "Noto Sans KR", "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-display: "Fraunces", "Noto Serif KR", "Shippori Mincho", Georgia, serif;
  --font-mincho: "Noto Serif KR", "Shippori Mincho", "Fraunces", serif;
}
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
html[lang="ko"] [lang="ja"] { font-family: "Zen Kaku Gothic New", "Inter", system-ui, sans-serif; word-break: normal; }
html[lang="ko"] .name-alt [lang="ja"] { font-family: inherit; }


@media (max-width: 640px) {
  .hero-art img { height: 220px; object-position: 76% 100%; }  /* スマホでは富士山を中心に */
}

/* 言語切替が4つになったので、狭い画面では詰める */
@media (max-width: 480px) {
  .lang { letter-spacing: 0; }
  .lang a, .lang span { padding: 2px 7px; white-space: nowrap; }
  .brand { min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
