@charset "utf-8";
/* =====================================================================
   hajimesato.work  —  site stylesheet
   モバイルファースト / ダークモード対応 / 外部フレームワーク非依存
   ===================================================================== */

/* ---------- 1. デザイントークン ---------- */
:root {
  --bg:            #ffffff;
  --surface:       #f5f8fa;
  --surface-2:     #eaeff3;
  --line:          #dde4ea;
  --ink:           #121a22;
  --ink-2:         #38485a;
  --muted:         #5f7183;
  --brand:         #15556f;
  --brand-2:       #0d3a4d;
  --brand-tint:    #e7f1f5;
  --accent:        #b9701f;
  --accent-tint:   #fbf1e2;
  --on-brand:      #ffffff;

  /* お知らせのタグ（1:研究費 / 2:論文・発表・講演会 / 3:受賞・表彰） */
  --tag-grant:     #1b6b48;
  --tag-grant-bg:  #e4f2ea;
  --tag-paper:     #15556f;
  --tag-paper-bg:  #e7f1f5;
  --tag-award:     #9c5715;
  --tag-award-bg:  #fbeedd;
  --tag-other:     #5f7183;
  --tag-other-bg:  #eceff3;

  --radius:   14px;
  --radius-s: 9px;
  --shadow-1: 0 1px 2px rgba(16, 34, 48, .06), 0 2px 8px rgba(16, 34, 48, .05);
  --shadow-2: 0 4px 12px rgba(16, 34, 48, .09), 0 14px 34px rgba(16, 34, 48, .09);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "Menlo", Consolas, monospace;

  --wrap: 1140px;
  --gut: 20px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gut: 32px; --header-h: 76px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0c1116;
    --surface:     #131b22;
    --surface-2:   #1a242d;
    --line:        #26333e;
    --ink:         #e7edf3;
    --ink-2:       #bfcbd6;
    --muted:       #93a3b2;
    --brand:       #5fb4d6;
    --brand-2:     #8ecde8;
    --brand-tint:  #12303d;
    --accent:      #e2a45c;
    --accent-tint: #2c2113;
    --on-brand:    #08131a;
    --tag-grant:   #6fd3a0;
    --tag-grant-bg: #10301f;
    --tag-paper:   #7cc6e4;
    --tag-paper-bg: #12303d;
    --tag-award:   #e9b06a;
    --tag-award-bg: #33250f;
    --tag-other:   #a3b2c0;
    --tag-other-bg: #1e2833;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 6px 26px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  --bg:          #0c1116;
  --surface:     #131b22;
  --surface-2:   #1a242d;
  --line:        #26333e;
  --ink:         #e7edf3;
  --ink-2:       #bfcbd6;
  --muted:       #93a3b2;
  --brand:       #5fb4d6;
  --brand-2:     #8ecde8;
  --brand-tint:  #12303d;
  --accent:      #e2a45c;
  --accent-tint: #2c2113;
  --on-brand:    #08131a;
  --tag-grant:   #6fd3a0;
  --tag-grant-bg: #10301f;
  --tag-paper:   #7cc6e4;
  --tag-paper-bg: #12303d;
  --tag-award:   #e9b06a;
  --tag-award-bg: #33250f;
  --tag-other:   #a3b2c0;
  --tag-other-bg: #1e2833;
}

/* ---------- 2. リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

img, svg, iframe, video { max-width: 100%; }
img { height: auto; display: block; border: 0; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: .01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- 3. レイアウト ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 860px; }
.measure { max-width: 880px; }

.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section--tint { background: var(--surface); }

.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .45rem;
}
.section-head h2 {
  font-size: clamp(1.45rem, 4.4vw, 2.05rem);
  letter-spacing: .02em;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: .7rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.section-head p { color: var(--muted); margin-top: .8rem; margin-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand:hover { color: inherit; }
.brand b { font-size: 1.08rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.brand span { font-size: .72rem; color: var(--muted); letter-spacing: .1em; white-space: nowrap; }
@media (max-width: 400px) { .brand span { display: none; } }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 9px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: block; padding: .5rem .85rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600; color: var(--ink-2); text-decoration: none;
  white-space: nowrap;
}
.nav a small { display: block; font-size: .62rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; text-transform: uppercase; line-height: 1.3; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none;
}
.lang a {
  padding: .3rem .6rem; font-size: .76rem; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.lang a + a { border-left: 1px solid var(--line); }
.lang a[aria-current="true"] { background: var(--brand); color: var(--on-brand); }
.lang a:not([aria-current="true"]):hover { background: var(--surface-2); color: var(--ink); }
/* 3言語ぶん並ぶので、狭い画面では詰める */
@media (max-width: 420px) {
  .lang a { padding: .3rem .44rem; font-size: .72rem; letter-spacing: 0; }
}

/* モバイル: ドロワー */
@media (max-width: 899px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: .7rem var(--gut) 1.1rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav a { padding: .8rem .9rem; font-size: 1rem; border-radius: 10px; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { gap: .1rem; }
}

/* ---------- 5. ヒーロー ---------- */
.hero {
  position: relative;
  color: #fff;
  background: #0b2836;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(13, 58, 77, .55) 0%, rgba(8, 26, 36, .93) 62%),
    linear-gradient(180deg, rgba(8, 26, 36, .74), rgba(8, 26, 36, .93));
}
.hero__inner {
  display: grid; gap: clamp(1.75rem, 5vw, 3rem);
  padding-block: clamp(2.5rem, 9vw, 5.5rem);
  align-items: center;
}
@media (min-width: 840px) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); }
}
.hero__kicker {
  font-size: .76rem; letter-spacing: .2em; text-transform: uppercase;
  color: #9fd4e8; font-weight: 700; margin-bottom: .9rem;
}
.hero h1 {
  font-size: clamp(2rem, 8vw, 3.35rem);
  line-height: 1.18; letter-spacing: .02em; margin-bottom: .35rem;
}
.hero h1 small {
  display: block; font-size: clamp(.9rem, 3vw, 1.15rem); font-weight: 600;
  letter-spacing: .22em; color: #bfe0ee; margin-top: .55rem; text-transform: uppercase;
}
.hero__role { font-size: clamp(.98rem, 2.6vw, 1.12rem); color: #e4f1f7; margin: 1.2rem 0 .3rem; font-weight: 600; }
.hero__affil { color: #a9c7d4; font-size: .93rem; margin-bottom: 1.6rem; }
.hero__affil a { color: #cfe8f3; }
.hero__portrait {
  position: relative; max-width: 330px; width: 100%; margin-inline: auto;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .18);
}
.hero__portrait img { width: 100%; }

.hero__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.6rem; }
.hero__tags span {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .11); border: 1px solid rgba(255, 255, 255, .2);
  color: #e2f0f6;
}

/* ---------- 5b. 下層ページの見出し帯 ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0b3040; color: #fff;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 140% at 88% -10%, rgba(95, 180, 214, .32), transparent 62%),
    linear-gradient(120deg, #0b3040 0%, #11475d 100%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .85) 1px, transparent 0);
  background-size: 22px 22px;
}
.page-hero__inner { padding-block: clamp(2.1rem, 6.5vw, 3.6rem); }
.page-hero .eyebrow { color: #92cfe6; }
.page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: .03em; }
.page-hero p { margin: .7rem 0 0; color: #b6d3e0; font-size: .96rem; }
.page-hero p strong { color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- 5c. プロフィールカード ---------- */
.profile-card {
  display: grid; gap: clamp(1.3rem, 4vw, 2.4rem);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1);
  padding: clamp(1.3rem, 4vw, 2.2rem);
}
@media (min-width: 760px) { .profile-card { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.profile-card__photo { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); max-width: 340px; }
.profile-card__photo img { width: 100%; }
.profile-card__name { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; margin-bottom: .2rem; letter-spacing: .04em; }
.profile-card__name span { display: block; font-size: .85rem; letter-spacing: .2em; color: var(--muted); font-weight: 600; margin-top: .25rem; }
.profile-card__role { font-weight: 700; color: var(--brand); margin-bottom: .2rem; }
.profile-card__affil { font-size: .92rem; color: var(--muted); margin-bottom: 1.1rem; }
.profile-card__lead { color: var(--ink-2); }
.profile-card__contact { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; margin-top: 1.2rem; }
.profile-card__contact small { color: var(--muted); font-size: .84em; }
.profile-card__contact a { font-weight: 600; }

/* ---------- 5d. 2カラム ---------- */
.two-col { display: grid; gap: clamp(2rem, 6vw, 3.5rem); }
@media (min-width: 900px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.two-col .section-head { margin-bottom: 1.4rem; }
.two-col .section-head h2 { font-size: clamp(1.25rem, 3.4vw, 1.5rem); }

/* ---------- 6. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.35rem; border-radius: 999px;
  font-size: .93rem; font-weight: 700; letter-spacing: .03em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-2); color: var(--on-brand); box-shadow: var(--shadow-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink-2); background: var(--bg); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- 7. カード / グリッド ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 680px)  { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 680px)  { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow-1);
}
.card h3 { font-size: 1.06rem; margin-bottom: .55rem; }
.card p  { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand); color: inherit; }
.card__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: .8rem;
  border-radius: 10px; background: var(--brand-tint); color: var(--brand);
  font-weight: 800; font-size: .95rem; font-family: var(--font-num);
}

/* ---------- 8. ニュース ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid; gap: .1rem .95rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line); margin: 0;
}
@media (min-width: 620px) { .news-list li { grid-template-columns: 9.5rem 1fr; } }
.news-list time {
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-top: .18rem;
}
.news-list .news-body { color: var(--ink-2); font-size: .96rem; }
.news-list .news-body a { font-weight: 600; }
.news-tag {
  display: inline-block;
  margin-right: .45rem;
  padding: .04rem .5rem;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  vertical-align: .05em;
}
.news-tag--grant { color: var(--tag-grant); background: var(--tag-grant-bg); }
.news-tag--paper { color: var(--tag-paper); background: var(--tag-paper-bg); }
.news-tag--award { color: var(--tag-award); background: var(--tag-award-bg); }
.news-tag--other { color: var(--tag-other); background: var(--tag-other-bg); }

.news-scroll { max-height: 26rem; overflow-y: auto; padding-right: .4rem; }
@media (min-width: 768px) { .news-scroll { max-height: 30rem; } }

/* ---------- 9. タイムライン（略歴・研究歴） ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline > li {
  position: relative; padding: 0 0 1.35rem 1.65rem; margin: 0;
  border-left: 2px solid var(--line);
}
.timeline > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -6px; top: .55rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
}
.timeline > li.is-current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.timeline .tl-when {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: .1rem;
}
.timeline .tl-what { color: var(--ink); font-size: .97rem; }
.timeline .tl-note { display: block; color: var(--muted); font-size: .86rem; }

/* ---------- 10. 受賞・研究費 ---------- */
.stack { list-style: none; margin: 0; padding: 0; }
.stack > li {
  display: grid; gap: .1rem .95rem; margin: 0;
  padding: .85rem 0; border-bottom: 1px dashed var(--line);
}
@media (min-width: 620px) { .stack > li { grid-template-columns: 5.5rem 1fr; } }
.stack .yr { font-size: .84rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: .2rem; }
.stack .ttl { color: var(--ink); font-size: .97rem; }
.stack .sub { display: block; color: var(--muted); font-size: .88rem; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .08rem .5rem; border-radius: 5px; margin-left: .4rem;
  background: var(--brand-tint); color: var(--brand); white-space: nowrap;
}
.tag--pi { background: var(--accent-tint); color: var(--accent); }

/* ---------- 11. 論文リスト ---------- */
.year-head {
  display: flex; align-items: center; gap: .9rem;
  margin: 2.4rem 0 1.1rem; font-size: 1.3rem; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.year-head:first-child { margin-top: 0; }

.pub {
  display: grid; gap: .3rem 1.4rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .pub.has-toc { grid-template-columns: minmax(0, 1fr) 210px; } }
.pub__no {
  display: inline-block; font-family: var(--font-num); font-size: .78rem; font-weight: 700;
  color: var(--muted); background: var(--surface-2); border-radius: 5px; padding: .05rem .4rem; margin-right: .45rem;
}
.pub__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.pub__authors { font-size: .9rem; color: var(--ink-2); margin-bottom: .25rem; }
.pub__cite { font-size: .92rem; color: var(--ink-2); margin-bottom: .45rem; }
.pub__meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.pub__meta a {
  font-size: .78rem; font-weight: 700; letter-spacing: .03em; text-decoration: none;
  padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
}
.pub__meta a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.pub__note { font-size: .88rem; color: var(--muted); margin-top: .35rem; }
.pub__note a { font-weight: 600; }
.pub__toc {
  border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden;
  background: #fff; padding: 6px; align-self: start;
}
.pub__toc img { width: 100%; }
@media (max-width: 759px) { .pub__toc { max-width: 260px; } }

/* ---------- 12. テーブル（学会発表・研究費） ---------- */
.table-tools {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem;
}
.table-tools input[type="search"] {
  flex: 1 1 15rem; min-width: 0;
  padding: .6rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem;
}
.table-tools input[type="search"]::placeholder { color: var(--muted); }
.table-tools .count { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.dtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dtable thead th {
  text-align: left; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
  font-size: .78rem; letter-spacing: .06em; font-weight: 700;
  padding: .7rem .8rem; border-bottom: 1px solid var(--line);
}
.dtable td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.dtable tbody tr:hover { background: var(--surface); }
.dtable .num { font-family: var(--font-num); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.dtable .nw { white-space: nowrap; }

/* 「招待講演」などの強調表示（文字色だけ） */
mark.hl {
  background: none;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* モバイル: 表をカード化 */
@media (max-width: 760px) {
  .table-scroll { border: 0; border-radius: 0; overflow: visible; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  /* 絞り込みで非表示にした行は確実に隠す（display:block が [hidden] を上書きするため） */
  .dtable tr[hidden] { display: none; }
  .dtable thead { display: none; }
  .dtable tr {
    border: 1px solid var(--line); border-radius: var(--radius-s);
    margin-bottom: .8rem; padding: .35rem .2rem; background: var(--bg);
  }
  .dtable td { border: 0; padding: .35rem .85rem; display: grid; grid-template-columns: 6.2rem 1fr; gap: .6rem; }
  .dtable td::before {
    content: attr(data-label); color: var(--muted); font-size: .76rem; font-weight: 700;
    letter-spacing: .04em; padding-top: .15rem;
  }
  .dtable td:empty { display: none; }
}

.empty-note {
  padding: 1.1rem 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: .92rem; background: var(--surface);
}

/* ---------- 13. 本文・figure ---------- */
.prose { font-size: 1rem; color: var(--ink-2); max-width: 74ch; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 2.2rem 0 .8rem; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { font-size: 1rem; color: var(--ink); margin: 1.6rem 0 .6rem; }
.prose strong { color: var(--ink); }
.prose > :last-child { margin-bottom: 0; }

figure { margin: 1.6rem 0; }
figure img {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 8px;
}
figcaption { font-size: .84rem; color: var(--muted); margin-top: .55rem; text-align: center; }

.ratio-16x9 { position: relative; padding-top: 56.25%; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.ratio-16x9 > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.covers { display: flex; flex-wrap: wrap; gap: .9rem; }
.covers a, .covers span {
  display: block; width: clamp(92px, 26vw, 128px);
  border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-1);
  transition: transform .15s, box-shadow .15s;
}
.covers a:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.anchor-nav a {
  font-size: .85rem; font-weight: 600; text-decoration: none;
  padding: .38rem .85rem; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
}
.anchor-nav a:hover { background: var(--brand); color: var(--on-brand); }

.back-top {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .84rem; font-weight: 600; text-decoration: none; color: var(--muted);
  margin-top: 1.4rem;
}
.back-top:hover { color: var(--brand); }

/* ---------- 14. フッター ---------- */
.site-footer { background: #0b1820; color: #b9cad4; margin-top: clamp(3rem, 8vw, 5rem); }
:root[data-theme="dark"] .site-footer,
.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-grid { display: grid; gap: 2rem; padding-block: clamp(2.2rem, 6vw, 3.2rem); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-footer h2 {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: #6f93a5; margin-bottom: .85rem; font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .92rem; }
.site-footer a { color: #d6e6ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 1.1rem; font-size: .8rem; color: #7b98a8;
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: space-between;
}

/* ---------- 15. reveal ----------
   以前はスクロールに合わせて薄く浮かび上がる演出を入れていましたが、
   長い表などで表示されない不具合があったため廃止しました。
   HTML 側に残っている class="reveal" は何もしません。 */
.reveal { opacity: 1; transform: none; }

/* ---------- 16. ユーティリティ ---------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
