@charset "UTF-8";
/*
 * 鶴田研究所 — 共通スタイル
 *
 * 書体と余白のスケール: デジタル庁デザインシステムβ版を抜粋・改変
 * 色と構成: 理化学研究所 / 東京大学物性研究所 / 松尾研究所 の3サイトから
 *           「色は3つ以下」「成果の一覧が主役」「数字は文に埋める」を取った
 * 一覧と見出し (2026-09-16): 国内外13の研究所・研究室・研究者のサイトを実測して、
 *           論文誌型（Distill / Transformer Circuits）の「日付を左の列」と
 *           MPI-IS / Janelia / 暦本研の「見出しは明朝、本文はゴシック」を取った
 *
 * 決まり
 *  - 色は 紙・墨・紺 の3系統だけ。教科色のような意味のある色はここには無い
 *  - 影を使わない。面の区別は罫線で出す
 *  - 角丸は 8px 一種類
 *  - 同じ大きさのカードを3枚横に並べない
 *  - 見出し(h1〜h3)と一覧の題名だけ明朝。本文・表・ナビはゴシック
 */

:root {
  --paper:      #fbfbfa;
  --surface:    #ffffff;
  --tint:       #f2f3f5;
  --ink:        #14161a;
  --ink-soft:   #5a5f6a;
  --rule:       #d5d7db;
  --rule-strong:#9aa0aa;
  --accent:     #1f3864;
  --accent-ink: #ffffff;

  --radius: 8px;
  --s-xs: 4px; --s-sm: 8px; --s-md: 16px; --s-lg: 24px; --s-xl: 64px;
  --measure: 720px;
  --page: 1040px;

  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #14161a;
    --surface:    #1b1e24;
    --tint:       #21252c;
    --ink:        #e9eaee;
    --ink-soft:   #a3a9b4;
    --rule:       #2f343c;
    --rule-strong:#555c68;
    --accent:     #9ab6e4;
    --accent-ink: #14161a;
  }
}
:root[data-theme="dark"] {
  --paper:#14161a; --surface:#1b1e24; --tint:#21252c;
  --ink:#e9eaee; --ink-soft:#a3a9b4;
  --rule:#2f343c; --rule-strong:#555c68;
  --accent:#9ab6e4; --accent-ink:#14161a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-text-size-adjust: 100%;
}

/* ---------------------------------------------------------- 骨格 */

.shell { max-width: var(--page); margin: 0 auto; padding: 0 var(--s-md); }
.prose { max-width: var(--measure); }
/* 読む列は真ん中に置く。見出しも同じ列に揃える */
.section > .prose, .section > h2 { margin-inline: auto; }
.section > h2 { max-width: var(--measure); }

/* ---------------------------------------------------------- 見出し */

h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: 36px; line-height: 1.4; letter-spacing: .01em; font-weight: 700; }
h2 { font-size: 28px; line-height: 1.5; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.5; font-weight: 700; }
h4 { font-size: 18px; line-height: 1.6; font-weight: 700; }

.section     { padding-block: var(--s-xl); border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section > h2 { margin-bottom: var(--s-lg); }

/* 一覧の節の見出し。本文の見出しではなく「ここから何の一覧か」の札。一覧と同じ左端に置く */
.section > .section__label {
  max-width: none; margin: 0; padding-bottom: var(--s-sm);
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.5;
  letter-spacing: .16em; color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
}
.section__label a { color: inherit; text-decoration: none; }
.section__label a:hover { color: var(--accent); }

p  { margin-bottom: var(--s-md); }
a  { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.lead { font-size: 18px; line-height: 1.8; }
.soft { color: var(--ink-soft); }
.meta { font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------- ヘッダー */

.head {
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.head__in {
  max-width: var(--page); margin: 0 auto; padding: var(--s-md);
  display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: baseline;
  justify-content: space-between;
}
.head__in { align-items: center; }

/* PCではヘッダーの中身を画面幅いっぱいに使う。ロゴが左端、ナビが右端に寄る。
   本文は --measure（行長）と --page（段幅）で読みやすさを保つので、広げるのは帯の中身だけ。
   左右の余白は画面が広いほど増やす。1100px 未満は従来どおり中央に 1040px で寄せる */
@media (min-width: 1100px) {
  .head__in { max-width: none; padding-inline: clamp(24px, 4vw, 72px); }
}
.head__name { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.head__mark { display: block; width: 36px; height: 36px; flex: none; }
.head__text { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; }
.head__en { display: block; font-family: 'Noto Sans JP', sans-serif; font-size: 11px; font-weight: 400;
            color: var(--ink-soft); letter-spacing: .18em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: var(--s-md); }
.nav a { font-size: 15px; text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--accent); }
.nav a[aria-current] { font-weight: 700; border-bottom: 2px solid var(--accent); }

/* ---------------------------------------------------------- 本文の組版 */

.prose h2 { margin: var(--s-xl) 0 var(--s-md); padding-top: var(--s-lg); border-top: 1px solid var(--rule); }
.prose h3 { margin: var(--s-lg) 0 var(--s-sm); }
.prose ul, .prose ol { margin: 0 0 var(--s-md) 1.4em; }
.prose li { margin-bottom: var(--s-sm); }
.prose strong { font-weight: 700; }

/* ---------------------------------------------------------- 表 */

.tablewrap { overflow-x: auto; margin-bottom: var(--s-md); }
.tablewrap th:first-child, .tablewrap td:first-child { position: sticky; left: 0; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: var(--s-sm) var(--s-md);
         border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-weight: 700; border-bottom: 2px solid var(--rule-strong); white-space: nowrap; }
tbody th { font-weight: 400; color: var(--ink-soft); white-space: nowrap; }

/* ---------------------------------------------------------- 成果の一覧 */

.feed { list-style: none; }
.feed > li { border-bottom: 1px solid var(--rule); padding: var(--s-lg) 0; }
.feed > li:first-child { padding-top: 0; }
.feed__date { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.feed__title { display: block; font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.55;
               text-decoration: none; color: var(--ink); margin: var(--s-xs) 0; }
.feed__title:hover { color: var(--accent); }
.feed__sub { display: block; font-size: 15px; color: var(--ink-soft); }
.feed__by  { display: block; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; margin-bottom: var(--s-xs); }
.byline    { margin-top: var(--s-xl); padding-top: var(--s-md); border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); }
.feed__summary { margin-bottom: 0; }
.feed + p { margin-top: var(--s-md); }

/* 一覧に図は置かない。本文のグラフを縮めると文字が2pxになって模様にしか見えず、図の無いノートで列が欠ける */

/* 1件の説明が長くても行の高さを揃える（全文はリンク先にある） */
.feed--compact .feed__sub {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.feed--compact .feed__title { font-size: 18px; }

/* 広い画面は論文誌の目次の形：日付の列 | 題名・著者・副題 */
@media (min-width: 760px) {
  .feed > li {
    display: grid; column-gap: var(--s-lg);
    grid-template-columns: 7.5em minmax(0, 1fr);
  }
  .feed > li > * { grid-column: 2; }
  .feed > li > .feed__date { grid-column: 1; grid-row: 1 / span 6; padding-top: 5px; }
}

/* 主役を1本だけ大きくする（同じ大きさで並べない） */
.feed > li.is-lead .feed__title { font-size: 26px; }
.feed > li.is-lead .feed__summary { margin-top: var(--s-sm); max-width: var(--measure); }

/* ---------------------------------------------------------- 箱 */

.note {
  border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-md); margin-bottom: var(--s-md);
}
.note > p:last-child { margin-bottom: 0; }

/* 調査ノートの要旨。枠で囲わず上下の罫線だけで区切る */
.abstract {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: var(--s-md) 0; margin-bottom: var(--s-lg);
}
.abstract > p:last-child { margin-bottom: 0; }
/* 迷惑送信よけ。人には見えない欄で、埋まっていたら弾く */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.abstract__label {
  display: block; font-size: 13px; color: var(--ink-soft);
  letter-spacing: .08em; margin-bottom: var(--s-xs);
}

.panel { background: var(--tint); border-radius: var(--radius); padding: var(--s-lg); }

.facts { list-style: none; }
.facts li { display: flex; flex-wrap: wrap; gap: var(--s-sm);
            padding: var(--s-sm) 0; border-bottom: 1px solid var(--rule); }
.facts dt, .facts b { color: var(--ink-soft); font-weight: 400; min-width: 9em; }

/* ---------------------------------------------------------- 図 */

/* SVGはページに直接埋める。CSS変数がそのまま効くので明暗どちらでも同じ図が使える */
.fig { margin: 0 0 var(--s-lg); max-width: var(--measure); }
/* 狭い画面では縮めずに横へ送る。縮めると図の文字が7pxになって読めない。
   表と同じ扱い（本文は横に流れない） */
.fig__scroll { overflow-x: auto; }
.figsvg { display: block; width: 100%; height: auto; min-width: 620px; }
.fig figcaption {
  font-size: 14px; color: var(--ink-soft); line-height: 1.7;
  padding-top: var(--s-sm); border-top: 1px solid var(--rule);
}

/* ---------------------------------------------------------- 部品 */

.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: var(--radius); padding: var(--s-md) var(--s-lg);
  font: inherit; font-weight: 700; cursor: pointer;
}
.btn--quiet {
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule);
}
label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: var(--s-xs); }
input[type=email], input[type=password], input[type=text], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: var(--s-sm) var(--s-md); margin-bottom: var(--s-md);
}
textarea { resize: vertical; line-height: 1.7; }
input:focus-visible, textarea:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.tabs { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-bottom: var(--s-lg); }
.tabs a { font-size: 14px; text-decoration: none; color: var(--ink);
          border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s-xs) var(--s-md); }
.tabs a[aria-current] { background: var(--tint); border-color: var(--rule-strong); font-weight: 700; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-md); top: var(--s-md); background: var(--surface);
              padding: var(--s-sm) var(--s-md); border: 1px solid var(--rule); border-radius: var(--radius); z-index: 10; }

/* ---------------------------------------------------------- 足 */

.foot { border-top: 1px solid var(--rule); margin-top: var(--s-xl); }
.foot__in { max-width: var(--page); margin: 0 auto; padding: var(--s-lg) var(--s-md) var(--s-xl);
            font-size: 14px; color: var(--ink-soft); }
.foot a { color: var(--ink-soft); }

/* ---------------------------------------------------------- 二段組 */

.split { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: var(--s-lg); } }

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .lead { font-size: 16px; }
  .feed > li.is-lead .feed__title { font-size: 20px; }
  .head__text { font-size: 18px; }
  .head__mark { width: 30px; height: 30px; }
  .feed__title { font-size: 18px; }
  .facts li { display: block; }
}

/* ノートの「方法・結果・知見・限界」。狭い画面で見出しの列が本文を1行18字まで狭めていたので、縦に積む */
@media (max-width: 600px) {
  .facts-table table, .facts-table tbody, .facts-table tr, .facts-table th, .facts-table td { display: block; }
  .facts-table th { position: static; padding: var(--s-sm) 0 0; border-bottom: 0; font-size: 13px; letter-spacing: .08em; }
  .facts-table td { padding: var(--s-xs) 0 var(--s-sm); }
}
