@charset "UTF-8";
/* Mikouchi Lab. — shared stylesheet for every page: a quiet, dark museum-catalogue design.
   Depth comes from light and spacing, never from boxes: each section is a soft pool of light, sections are separated
   by space and at most one hairline that fades at both ends. default.css is no longer used.
   Sections: 1 tokens & base / 2 background layers / 3 logo / 4 header & navigation / 5 home hero / 6 page title band /
   7 light pools & exhibit headings / 8 home sections / 9 footer / 10 legacy page content / 11 glow /
   12 responsive / 13 reduced motion, forced colours, print */

/* ---------- 1. Tokens & base ---------- */
:root {
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --latin: Jost, Futura, "Century Gothic", "Zen Kaku Gothic New", sans-serif;
  --serif: "EB Garamond", Georgia, serif;
  --bg: #07090d;
  --bg-2: #0a0d13;
  --raised: #121721;
  --text: #e6e3dc;          /* headings, strong text */
  --body: #d9d6cf;          /* running text */
  --text-2: #a6aab1;        /* secondary text */
  --muted-serif: #cdc6b6;   /* publication titles */
  --hair: rgba(230, 227, 220, .10);
  --hair-2: rgba(230, 227, 220, .18);
  --accent: #d5bd8d;        /* champagne gold: labels, years, active nav */
  --link: #a9c0dc;
  --night: #05070b;
  --night-text: #ebe9e3;
  --night-sub: #9fa3aa;
  --night-hair: rgba(235, 233, 227, .14);
  --bar-h: 92px;
  /* A hairline that fades at both ends, and the soft pool of light behind each section */
  --fade-line: linear-gradient(90deg, transparent, rgba(230, 227, 220, .12) 15% 85%, transparent);
  --pool: radial-gradient(closest-side, rgba(230, 227, 220, .04), transparent) 0 0 / min(960px, 100%) 100% no-repeat;   /* a full background layer: fades out inside its tile, so no edge */
  --photo-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; color-scheme: dark; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--body); font-family: var(--sans); font-size: 15px; line-height: 2; letter-spacing: .03em; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(213, 189, 141, .3); color: var(--text); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arrow::after { content: "→"; font-family: var(--latin); margin-left: .5em; display: inline-block; transition: transform .2s; }
a:hover .arrow::after, a.arrow:hover::after { transform: translateX(3px); }
.text-link { font-size: 14px; color: var(--text); border-bottom: 1px solid var(--hair-2); padding-bottom: 2px; }
.text-link:hover { color: var(--accent); border-color: currentColor; }

/* ---------- 2. Background layers: gradient (on html), nebula glow, fixed star field, film grain ---------- */
body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1600px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 55% 42% at 72% 4%, rgba(110, 132, 186, .10), transparent 72%),
              radial-gradient(ellipse 42% 30% at 18% 12%, rgba(213, 189, 141, .05), transparent 70%); }
canvas.starfield { position: fixed; left: 0; top: 0; width: 100%; height: calc(100% + 80px); z-index: -1; pointer-events: none; display: block; }
body::after { content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- 3. Logo: Mikouchi / hairline / LABORATORY, with 三河内研究室 set vertically beside it ---------- */
.w5 { display: inline-grid; justify-items: stretch; text-align: left; letter-spacing: 0; }
.w5 .name { font: 400 1em/.95 var(--latin); letter-spacing: -.01em; }
.w5 .line { display: block; height: 1px; background: currentColor; margin: .21em 0 .16em; }
.w5 .lab { display: flex; justify-content: space-between; font: 400 .227em/1 var(--latin); }
.w5 i, .vja i { font-style: normal; }
.lockup { display: inline-flex; align-items: stretch; gap: .3em; }
.lockup .vrule { width: 1px; background: currentColor; opacity: .55; }
.lockup .vja { writing-mode: vertical-rl; display: flex; justify-content: space-between; font: 400 .205em/1 "Shippori Antique", var(--sans); letter-spacing: 0; padding: .15em 0; }

/* ---------- 4. Night bands, header bar, navigation ---------- */
.night { position: relative; isolation: isolate; background: var(--night); color: var(--night-text); }
.night > canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: var(--bar-h); }
.brand { display: block; color: var(--night-text); }
.brand:hover { color: var(--night-text); }
.brand .w5 { font-size: 27px; }
.brand .w5 .lab { font-size: .29em; }
/* Bilingual items: English (Jost) on top, Japanese small below. The markup is Japanese-first for screen readers. */
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.site-nav a { position: relative; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 4px; padding: 4px 0; white-space: nowrap; color: rgba(235, 233, 227, .84); }
.site-nav .en { font: 400 13.5px/1.1 var(--latin); letter-spacing: .04em; }
.site-nav .ja { font-size: 10.5px; line-height: 1.2; letter-spacing: .12em; color: var(--night-sub); transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right .25s ease; }
.site-nav a:hover { color: var(--night-text); }
.site-nav a:hover .ja { color: rgba(235, 233, 227, .78); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { right: 0; }
.site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current] .ja { color: rgba(213, 189, 141, .8); }
.menu-button { display: none; font: inherit; font-family: var(--latin); font-size: 14px; letter-spacing: .14em; color: var(--night-text); background: none; border: 0; border-bottom: 1px solid var(--hair-2); padding: 4px 0 3px; cursor: pointer; transition: color .2s, border-color .2s; }
.menu-button:hover, .menu-button[aria-expanded="true"] { color: var(--accent); border-color: currentColor; }

/* ---------- 5. Home hero (unchanged) ---------- */
.hero { min-height: max(640px, 100svh); display: flex; flex-direction: column; overflow: hidden; background: var(--night); }
.hero-bg { position: absolute; inset: -3%; z-index: -3; background: url(../../img/space/web/milkyway-eso0932a-band.jpg) center 50% / cover no-repeat; animation: drift 70s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.6%, .8%, 0); } }
canvas.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(5, 7, 11, .45), rgba(5, 7, 11, .2) 70%), linear-gradient(180deg, rgba(5, 7, 11, .75), rgba(5, 7, 11, 0) 22%, rgba(5, 7, 11, 0) 70%, rgba(7, 9, 13, 1)); }
.hero-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 0 40px; will-change: opacity, transform; }
.hero-title { margin: 0; font-size: clamp(56px, 10.5vw, 140px); font-weight: 400; line-height: 1; color: var(--night-text); }
.hero-sub { margin: 48px 0 0; display: flex; align-items: center; gap: 18px; font-size: 13.5px; letter-spacing: .32em; color: rgba(235, 233, 227, .82); }
.hero-sub span { padding-left: .32em; }
.hero-sub i { width: 28px; height: 1px; background: rgba(235, 233, 227, .4); }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 0 22px; font-size: 11px; color: rgba(235, 233, 227, .5); letter-spacing: .04em; }
.hero-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Intro: the name rises, the hairlines draw, LABORATORY appears, then 三河内研究室 is written top to bottom. */
.hero-title .name { animation: rise 1.4s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-title .line { transform-origin: left; animation: grow-x 1.2s .7s cubic-bezier(.6, 0, .2, 1) both; }
.hero-title .lab { animation: fade 1.2s 1.2s ease both; }
.hero-title .vrule { transform-origin: top; animation: grow-y 1s 1.2s cubic-bezier(.6, 0, .2, 1) both; }
.hero-title .vja i { animation: ink .9s ease both; }
.hero-title .vja i:nth-child(1) { animation-delay: 1.5s; }
.hero-title .vja i:nth-child(2) { animation-delay: 1.62s; }
.hero-title .vja i:nth-child(3) { animation-delay: 1.74s; }
.hero-title .vja i:nth-child(4) { animation-delay: 1.86s; }
.hero-title .vja i:nth-child(5) { animation-delay: 1.98s; }
.hero-title .vja i:nth-child(6) { animation-delay: 2.1s; }
.hero-sub { animation: rise 1.1s 2.3s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes ink { from { opacity: 0; transform: translateY(-.3em); } }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 6. Page title band (all pages except the home page): stars, one orbit arc, a horizon glow ---------- */
.page-head { z-index: 10; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(213, 189, 141, .09), transparent 72%); }
.page-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(213, 189, 141, .32) 30%, rgba(213, 189, 141, .32) 70%, transparent); }
.band-orbit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.band-orbit ellipse { fill: none; stroke: var(--night-text); stroke-opacity: .1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.band-orbit circle { fill: var(--accent); fill-opacity: .6; }
.page-title { padding: 52px 0 64px; }
.page-title h1 { margin: 0; font-weight: 400; }
.page-title .en { display: block; font: 300 clamp(40px, 5vw, 60px)/1.05 var(--latin); letter-spacing: .005em; color: var(--night-text); }
.page-title .ja { display: block; margin-top: 16px; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--accent); }
.page-title .ja a { color: inherit; }
.page-title .ja a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-title .ja .sep { margin: 0 .7em; color: var(--night-sub); }

/* ---------- 7. Light pools and exhibit headings ---------- */
/* Each section is lit, not boxed: one soft radial surface, no border, no hard edge. */
main > .row, .legacy #content, .legacy #content:has(> #pickup_left) > #pickup_right { background: var(--pool); }
/* Exhibit headings: a gold number with a hairline above the heading, and a faint spotlight behind it. */
main, .legacy { counter-reset: exhibit; }
.label h2, .legacy #news_h, .legacy #pickup_right > h2, .legacy #content > h2:not(#news_h) { counter-increment: exhibit; }
.label h2::before, .legacy #news_h::before, .legacy #pickup_right > h2::before, .legacy #content > h2:not(#news_h)::before {
  content: counter(exhibit, decimal-leading-zero); display: block; margin-bottom: 10px; padding-right: 44px; width: max-content;
  font: 400 11.5px/1 var(--latin); letter-spacing: .16em; color: var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat right 50% / 30px 1px; }
.label h2, .legacy #news_h, .legacy #pickup_right > h2, .legacy #content > h2:not(#news_h) {
  background: radial-gradient(closest-side, rgba(213, 189, 141, .07), transparent) 0 50% / min(440px, 100%) 100% no-repeat; } /* fades out inside its tile: no visible edge */

/* ---------- 8. Home sections ---------- */
main > .row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; padding: 64px 0 56px; }
main > .row:first-child { margin-top: 56px; }
main > .row + .row, main > .research + .row, main > .admissions { background: var(--fade-line) top / 100% 1px no-repeat, var(--pool); }
.label h2 { margin: 0 0 0 -20px; padding: 6px 20px 4px; font-family: var(--latin); font-weight: 400; font-size: 30px; line-height: 1.1; letter-spacing: .01em; color: var(--text); }
.label p { margin: 10px 0 0; font-size: 12.5px; font-weight: 500; letter-spacing: .18em; color: var(--accent); }
.label .text-link { display: inline-block; margin-top: 26px; font-size: 13px; }
.statement { margin: 0; font-size: clamp(18px, 1.9vw, 22px); line-height: 2.1; letter-spacing: .04em; font-weight: 400; color: var(--text); }
.statement-link { display: inline-block; margin-top: 30px; }
.research { margin: 64px 0; padding-bottom: 96px; }
.research .row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; padding-top: 96px; }
.research-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.orbit { width: 100%; height: auto; display: block; overflow: visible; }
.orbit .o-orbits { fill: none; stroke: rgba(235, 233, 227, .22); stroke-width: 1; }
.orbit .o-jupiter { stroke-dasharray: 2 5; stroke: rgba(235, 233, 227, .15); }
.orbit .o-minor { stroke: rgba(235, 233, 227, .17); stroke-dasharray: 3 3; }
.orbit .o-belt { fill: rgba(222, 214, 200, .36); }
.orbit .o-sun { fill: #ffd9a0; }
.orbit .o-earth { fill: #8fb3d9; }
.orbit .o-moon { fill: #c9c9c4; }
.orbit .o-mars { fill: #d0805e; }
.orbit .o-asteroid { fill: #cbbfae; }
.orbit .o-comet { fill: #e6eef2; }
.orbit .o-tail { stroke: rgba(230, 238, 242, .45); stroke-width: 1.4; stroke-linecap: round; }
.orbit text { font-family: var(--sans); fill: var(--night-text); paint-order: stroke; stroke: var(--night); stroke-width: 3px; stroke-linejoin: round; }
.orbit .o-name { font-size: 15px; font-weight: 500; }
.orbit .o-sub { font-size: 12px; fill: var(--night-sub); }
.orbit .o-note-label { font-size: 12px; fill: var(--night-sub); }
.orbit .o-caption { font-size: 10.5px; fill: #8a8f97; }
.orbit .o-body { transition: opacity .2s; }
.orbit.has-hot .o-body:not(.is-hot) { opacity: .28; }
.orbit .o-body.is-hot .o-name { fill: var(--accent); }
.targets { list-style: none; margin: 0; padding: 0; }
.targets li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; }
.t-img { width: 44px; height: 44px; object-fit: contain; background: #000; display: block; }
.t-img.t-photo { object-fit: cover; }
.targets strong { display: block; font-weight: 500; font-size: 15px; letter-spacing: .08em; color: var(--night-text); }
.targets span { display: block; font-size: 12.5px; color: var(--night-sub); line-height: 1.6; }
.targets li.is-hot strong { color: var(--accent); }
.research-lead { margin: 0 0 28px; font-size: 15px; line-height: 2; color: rgba(235, 233, 227, .84); max-width: 44em; }
.credits { margin: 28px 0 0; font-size: 10.5px; line-height: 1.7; color: #8a8f97; letter-spacing: .02em; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 24px; padding: 18px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; }
.news b { font-weight: inherit; }
.date { font-family: var(--latin); font-size: 14.5px; color: var(--accent); letter-spacing: .06em; font-variant-numeric: tabular-nums; line-height: 1.9; }
.news a:hover, .schedule a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 過去のNEWS: a text toggle with an underline hairline; gold with a glow on hover or when open; ＋ turns into × */
.more { margin-top: 32px; }
.more summary { display: inline-flex; align-items: baseline; gap: .5em; cursor: pointer; list-style: none; padding-bottom: 3px; border-bottom: 1px solid var(--hair-2); font-size: 13.5px; letter-spacing: .06em; color: var(--text); transition: color .25s, border-color .25s, text-shadow .25s; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "＋"; display: inline-block; font-size: 13px; line-height: 1; color: var(--accent); transition: transform .3s ease; }
.more summary:hover, .more summary:focus-visible, .more[open] summary { color: var(--accent); border-color: rgba(213, 189, 141, .55); }
.more[open] summary::after { transform: rotate(45deg); }
.more .news { margin-top: 22px; }
.more .news li { padding: 12px 0; font-size: 14px; }
.more .news .date { font-size: 13.5px; }
.schedule { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.schedule li { padding-top: 16px; background: linear-gradient(90deg, rgba(213, 189, 141, .5), rgba(213, 189, 141, .08)) top / 100% 1px no-repeat; }
.schedule .date { display: block; margin-bottom: 6px; }
.schedule a { color: var(--text); font-size: 15px; line-height: 1.75; }
.schedule a:hover { color: var(--accent); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.a-photo { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--raised); outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px; box-shadow: var(--photo-shadow); }
.a-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease, filter .4s ease; }
.acts a:hover .a-photo img { transform: scale(1.03); filter: brightness(1.08); }
.acts .date { display: block; margin-top: 14px; font-size: 12.5px; letter-spacing: .14em; }
.a-title { display: block; font-size: 12.5px; line-height: 1.75; letter-spacing: .08em; color: var(--text-2); }
.acts a:hover .a-title { color: var(--accent); }
.papers { list-style: none; margin: 0; padding: 0; }
.papers li { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 24px; padding: 20px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; }
.p-title { margin: 0 0 4px; font-family: var(--serif); font-size: 19px; line-height: 1.45; letter-spacing: 0; color: var(--muted-serif); }
.p-meta { font-size: 12.5px; color: var(--text-2); letter-spacing: .02em; }
.p-meta i { font-family: var(--serif); font-size: 14px; }
main > .admissions { margin-top: 0; margin-bottom: 120px; }
.admissions a { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; align-items: center; padding: 64px 0 56px; color: var(--text); }
.admissions h2 { margin: 0; font-family: var(--latin); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--text); }
.admissions h2 small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .18em; color: var(--accent); }
.adm-text { display: flex; justify-content: space-between; align-items: center; gap: 32px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.9; }
.adm-text .arrow::after { font-size: 26px; color: var(--accent); }
.admissions a:hover .adm-text > span:first-child { color: var(--accent); }

/* ---------- 9. Footer ---------- */
.site-footer { font-size: 13px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--fade-line); }
.foot { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; padding: 72px 0 48px; }
.foot-brand { display: inline-block; color: var(--night-text); }
.foot-brand:hover { color: var(--night-text); }
.foot-brand .lockup { font-size: 54px; }
.foot address { margin-top: 26px; font-style: normal; color: var(--night-sub); line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; } /* break long lines at the space, not inside a word */
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols h3 { margin: 0 0 10px; font-family: var(--latin); font-weight: 400; font-size: 13px; letter-spacing: .14em; color: var(--night-sub); }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a { color: var(--night-text); }
.foot-cols a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0 22px; background: var(--fade-line) top / 100% 1px no-repeat; font-family: var(--latin); font-size: 12px; color: #8e939b; letter-spacing: .04em; }
.foot-bottom .credit { font-family: var(--sans); letter-spacing: .08em; }

/* ---------- 10. Legacy page content ----------
   The original pages' content is kept exactly as written; these rules restyle its old classes
   (#news_h, .news_row, .pickup_*, #pickup_left/right, .faq_row, .li_q/.li_a, .page_up, dl, tables, <center>, <font>). */
.legacy { padding: 64px 0 120px; font-size: 15px; line-height: 2; overflow-wrap: anywhere; color: var(--body); }
.legacy > br, .legacy #content > br:first-child { display: none; }
.legacy #content { width: auto; margin: 0; padding: 0; }
.legacy #content::after, .legacy .news_row::after, .legacy .pickup_text2::after { content: ""; display: block; clear: both; }
.legacy #content + #content { margin-top: 120px; padding-top: 64px; background: var(--fade-line) top / 100% 1px no-repeat, var(--pool); }
.legacy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legacy p { margin: 0 0 .6em; padding: 0; line-height: 2; }
.legacy b, .legacy strong { font-weight: 500; color: var(--text); }
.legacy a b, .legacy a strong { color: inherit; }
.legacy img { max-width: 100%; height: auto; vertical-align: top; }
.legacy :is(iframe, embed, object, video) { max-width: 100%; } /* e.g. the Tabelog badges inject 370 px frames */
.legacy center { text-align: inherit; }
/* Old colours (<font color>, inline colours such as #444 or maroon) are neutralised to readable tokens. */
.legacy font, .legacy [color] { color: inherit !important; font-size: inherit; }
.legacy [style*="color"] { color: var(--text-2) !important; }
.legacy .clear_both { clear: both; }
.legacy ul, .legacy ol { padding-left: 1.4em; }
.legacy a[name]:empty { position: absolute; } /* jump targets (#01 …): kept in place but never take a grid cell */
.legacy a[name] + h2 { scroll-margin-top: 16px; }

/* Photos: a faint inner hairline and a very soft drop (no frame); a slight lift on hover */
.legacy img { outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px; box-shadow: var(--photo-shadow); background: var(--raised); }
.legacy img:hover { filter: brightness(1.07); }

/* Headings */
.legacy #news_h { margin: 0 0 48px -24px; padding: 8px 24px 6px; height: auto; border: 0; color: var(--text); font: 500 clamp(19px, 2vw, 23px)/1.55 var(--sans); letter-spacing: .06em; }
.legacy #news_h a { color: var(--link); border-bottom: 1px solid currentColor; }
.legacy h1 { margin: 120px 0 12px; padding-top: 56px; background: var(--fade-line) top / 100% 1px no-repeat; font: 500 22px/1.55 var(--sans); letter-spacing: .06em; color: var(--text); }
.legacy h2 { margin: 72px 0 20px; font: 500 19px/1.65 var(--sans); letter-spacing: .05em; color: var(--text); }
.legacy #pickup_right > h2, .legacy #content > h2:not(#news_h) { margin-left: -24px; padding: 8px 24px 6px; }
.legacy h3 { margin: 0 0 12px; font: 500 16.5px/1.7 var(--sans); letter-spacing: .05em; color: var(--text); }
.legacy h4 { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .14em; color: var(--accent); }
.legacy #news_h + h2, .legacy #pickup_right > h2:first-of-type { margin-top: 0; }
.legacy :is(h1, h2, h3) a { color: var(--link); }
.legacy :is(h1, h2, h3) a:hover { color: var(--accent); }

/* Two columns: in-page index (#pickup_left) | main (#pickup_right) */
.legacy #content:has(> #pickup_left) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; align-items: start; background: none; }
.legacy #content:has(> #pickup_left) > * { grid-column: 1 / -1; }
.legacy #content:has(> #pickup_left) > #pickup_left { grid-column: 1; }
.legacy #content:has(> #pickup_left) > #pickup_right { grid-column: 2; padding-top: 6px; }
/* The index: no box — a faint vertical hairline; the current or hovered item turns gold with a gold segment on the line */
.legacy #pickup_left { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; padding: 4px 8px 4px 0; scrollbar-width: thin; scrollbar-color: rgba(230, 227, 220, .16) transparent; }
.legacy #pickup_left ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(230, 227, 220, .12); }
.legacy #pickup_left li { padding: 0; background: none; }
.legacy #pickup_left li a { position: relative; display: block; padding: 5px 0 5px 16px; font-size: 13px; line-height: 1.6; letter-spacing: .04em; color: var(--text-2); transition: color .2s; }
.legacy #pickup_left li a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 1px; background: var(--accent); opacity: 0; transition: opacity .2s; }
.legacy #pickup_left li a:hover, .legacy #pickup_left li a.is-current { color: var(--accent); text-decoration: none; }
.legacy #pickup_left li a:hover::before, .legacy #pickup_left li a.is-current::before { opacity: 1; }
.legacy #pickup_left h2 { margin: 22px 0 4px; padding: 0 0 0 16px; font-size: 11px; font-weight: 500; letter-spacing: .22em; color: var(--accent); background: none; }
.legacy #pickup_left ul > h2:first-child { margin-top: 0; }
.legacy #pickup_right { float: none; width: auto; }
.legacy #pickup_right h2 { border: 0; text-align: left; color: var(--text); }

/* Rows, photos, text blocks */
.legacy .news_row { border: 0; padding: 0; margin: 0 0 8px; }
.legacy .news_date, .legacy .news_pic, .legacy .news_text { float: none; width: auto; }
.legacy .news_row:has(> .news_pic) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.legacy .news_row:is(:has(> .news_pic), :has(> .pickup_pic))::after { display: none; }
.legacy .news_row:has(> .news_pic) > .clear_both { display: none; }
.legacy .news_pic > br { display: none; }
.legacy .pickup_pic { float: none; width: auto; font-size: 0; line-height: 0; } /* photo cells hold only images; leftover spaces add no height */
.legacy .pickup_pic img { display: block; }
.legacy .news_row:has(> .pickup_pic) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; padding: 32px 0; }
.legacy .news_row:has(> .pickup_pic) > .clear_both, .legacy .news_row:has(> .pickup_pic) > .pickup_pic > br { display: none; }
.legacy .pickup_text, .legacy .pickup_text2 { float: none; width: auto; }
.legacy .pickup_text p { margin: 0; line-height: 1.9; }
.legacy .pickup_text > br { display: none; }
.legacy .pickup_text2 { line-height: 1.9; }
/* Photo sets (activities, food map): a responsive grid; the <br> runs that used to clear the floats are not needed */
.legacy .pickup_text2:has(> .pickup_pic) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; align-items: start; margin: 8px 0 0; }
.legacy .pickup_text2:has(> .pickup_pic)::after { display: none; }
.legacy .pickup_text2:has(> .pickup_pic) > br { display: none; }
.legacy .pickup_text2 > .pickup_pic img { width: 100%; height: auto; }
.legacy center:has(> .pickup_pic) .pickup_pic { display: inline-block; }
.legacy .page_up { margin: 20px 0 0 !important; padding: 0; text-align: right; font: 400 11px/1.6 var(--latin); letter-spacing: .16em; }
.legacy .page_up a { color: var(--text-2); background: none; padding: 0; }
.legacy .page_up a:hover { color: var(--accent); text-decoration: none; }
.legacy .page_up a::before { content: "↑"; margin-right: .5em; }
.legacy .page_up + br, .legacy .page_up + br + br, .legacy .page_up + br + br + br, .legacy .page_up + br + br + br + br { display: none; }

/* Q&A and grouped lists (進学案内, 共同研究実績, LINK): groups separated by space and a fading hairline */
.legacy .faq_row { margin: 0; padding: 0; }
.legacy .faq_row > h3 { margin-bottom: 32px; font-weight: 400; font-size: 16px; }
.legacy .faq_row ul { list-style: none; margin: 0; padding: 36px 0; background: var(--fade-line) top / 100% 1px no-repeat; line-height: 2; }
.legacy .faq_row ul:first-of-type { background: none; padding-top: 8px; }
.legacy .li_q, .legacy .li_a { background: none; padding: 0; margin: 0 0 10px; color: inherit; }
.legacy .li_q { margin-top: 6px; font-weight: 500; font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.legacy .li_a { margin-bottom: 22px; }
.p-singaku .legacy .li_q { font-size: 15.5px; letter-spacing: .05em; color: var(--text); }
.p-singaku .legacy .li_q, .p-singaku .legacy .li_a { position: relative; padding-left: 2.2em; }
.p-singaku .legacy .li_q::before, .p-singaku .legacy .li_a::before { position: absolute; left: 0; top: 0; font: 400 16px/1.8 var(--latin); }
.p-singaku .legacy .li_q::before { content: "Q"; color: var(--accent); }
.p-singaku .legacy .li_a::before { content: "A"; color: var(--text-2); }
.p-singaku .legacy .li_a { margin-bottom: 40px; }
.p-singaku .legacy .faq_row ul { padding-top: 0; background: none; }
.p-singaku .legacy .faq_row ul > br { display: none; }

/* Date lists (更新履歴) */
.legacy dl { margin: 0; padding: 0; }
.legacy dt { float: left; clear: both; width: 7em; padding: 10px 0; color: var(--accent); font-family: var(--latin); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.legacy dd { margin: 0; padding: 10px 0 10px 7.6em; background: var(--fade-line) bottom / 100% 1px no-repeat; }

/* Tables (default) */
.legacy table { border-collapse: collapse; max-width: 100%; }
.legacy td { padding: 24px 36px 24px 0; vertical-align: middle; }
.legacy img[align="left"] { float: left; margin: 6px 28px 16px 0; max-width: 42%; }
.legacy img[align="right"] { float: right; margin: 6px 0 16px 28px; max-width: 42%; }

/* 使用装置: a catalogue grid — photo at 4:3, then the caption below it (gold numeral, name, muted model and notes) */
.p-souti .legacy table, .p-souti .legacy tbody { display: block; width: 100%; }
.p-souti .legacy tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; counter-reset: equip; }
.p-souti .legacy tr { display: flex; flex-direction: column; counter-increment: equip; }
.p-souti .legacy td { display: block; padding: 0; }
.p-souti .legacy td img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.p-souti .legacy td:has(> h2) { padding-top: 18px; }
.p-souti .legacy td:has(> h2)::before { content: counter(equip, decimal-leading-zero); display: block; margin-bottom: 6px; font: 400 12px/1 var(--latin); letter-spacing: .16em; color: var(--accent); }
.p-souti .legacy td h2 { margin: 0; padding: 0; background: none; font-size: 13px; font-weight: 400; line-height: 1.85; letter-spacing: .04em; color: var(--text-2); }
.p-souti .legacy td h2::first-line { font-size: 16px; font-weight: 500; letter-spacing: .05em; color: var(--text); }

/* メンバー: no cards — a catalogue row: square photo, then a gold number, the name line, a short gold hairline, the theme, muted details */
.p-member .legacy #pickup_right { counter-reset: specimen; }
.p-member .legacy #pickup_right > h2 { margin-top: 96px; }
.p-member .legacy #pickup_right > h2:first-of-type { margin-top: 0; }
.p-member .legacy .news_row:has(> .pickup_pic) { counter-increment: specimen; grid-template-columns: 180px minmax(0, 1fr); gap: 44px; margin: 0; padding: 32px 0; }
.p-member .legacy .news_row:has(> .pickup_pic) + .news_row:has(> .pickup_pic) { margin-top: 32px; padding-top: 64px; background: var(--fade-line) top / 100% 1px no-repeat; }
.p-member .legacy .news_row > .pickup_pic img { width: 180px; height: 180px; object-fit: cover; object-position: center 30%; }
.p-member .legacy .pickup_text::before { content: "No. " counter(specimen, decimal-leading-zero); display: block; margin-bottom: 8px; font: 400 11px/1 var(--latin); letter-spacing: .2em; color: var(--accent); }
.p-member .legacy .pickup_text h3 { margin: 0 0 14px; font-size: 17px; font-weight: 500; line-height: 1.6; }
.p-member .legacy .pickup_text h3::after { content: ""; display: block; width: 24px; height: 1px; margin-top: 14px; background: var(--accent); opacity: .8; }
.p-member .legacy .pickup_text p { font-size: 13px; line-height: 1.75; letter-spacing: .05em; color: var(--text-2); }
.p-member .legacy .pickup_text p.m-theme { margin-bottom: 10px; font-size: 14.5px; line-height: 1.9; color: var(--body); }
.p-member .legacy .pickup_text p a { color: var(--link); }

/* 研究成果: year jump index (no box) and entries with the number and year in gold, title in a muted serif */
.legacy .year-index { margin: -12px 0 64px; }
.legacy .yi-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; padding: 16px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; }
.legacy .yi-label { font-size: 12px; font-weight: 500; letter-spacing: .2em; color: var(--accent); }
.legacy .yi-label:hover { color: var(--accent); text-decoration: none; }
.legacy .yi-years { display: flex; flex-wrap: wrap; gap: 2px 18px; font: 400 14px/1.9 var(--latin); font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.legacy .yi-years a { color: var(--text-2); transition: color .2s, text-shadow .2s; }
.legacy .yi-years a:hover { color: var(--accent); text-decoration: none; }
.legacy .year-mark { scroll-margin-top: 20px; }
.p-seika .legacy .pickup_text2 > br { display: none; }
.p-seika .legacy .pub { display: block; padding: 16px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; font-size: 14px; line-height: 1.85; color: var(--text-2); letter-spacing: .02em; }
.p-seika .legacy .p-no { color: var(--accent); font: 400 13px var(--latin); letter-spacing: .06em; margin-right: .2em; }
.p-seika .legacy .p-yr { color: var(--accent); font-family: var(--latin); }
.p-seika .legacy .p-ti { font: 400 16.5px/1.6 var(--serif); letter-spacing: .005em; color: var(--muted-serif); }

/* Activities, food map, mineral archive: entries separated by space and a fading hairline */
.p-activity .legacy #pickup_right > h2 > br:nth-of-type(2):last-of-type { display: none; }
.p-activity .legacy #pickup_right > h2 { margin-top: 96px; padding-top: 56px;
  background: var(--fade-line) top / 100% 1px no-repeat, radial-gradient(closest-side, rgba(213, 189, 141, .07), transparent) 0 70% / min(440px, 100%) 70% no-repeat; }
.p-activity .legacy #pickup_right > h2:first-of-type { margin-top: 0; padding-top: 8px; background: radial-gradient(closest-side, rgba(213, 189, 141, .07), transparent) 0 50% / min(440px, 100%) 100% no-repeat; }
.p-activity .legacy #pickup_right > .news_row { margin-bottom: 0; }
.p-mineral .legacy .pickup_pic img { width: 320px; }
.p-mineral .legacy h1 + h2 { margin: 0; font: 400 18px/1.5 var(--serif); letter-spacing: 0; color: var(--muted-serif); }
.p-mineral .legacy h4 { margin-top: 4px; }
.p-mineral .legacy center { display: block; margin-top: 120px; padding-top: 64px; background: var(--fade-line) top / 100% 1px no-repeat; }
.p-mineral .legacy center + .clear_both + h1 { margin-top: 24px; padding-top: 0; background: none; }
.p-mineral .legacy .faq_row > center:first-of-type { margin-top: 0; padding-top: 0; background: none; }
.p-poster .legacy .pickup_pic img { width: 100%; max-width: 900px; }
.p-profile .legacy .pickup_pic img { max-width: 480px; width: 100%; }
.p-profile .legacy #news_h ~ #news_h { margin-top: 96px; }

/* ---------- 11. Glow (微光) — values from the owner's personal site (dark theme). Running text never glows. ---------- */
:root {
  --glow-heading: 0 0 2px rgba(255, 255, 255, .35), 0 0 18px rgba(236, 226, 206, .2), 0 0 42px rgba(216, 208, 193, .066);
  --glow-sub: 0 0 12px rgba(221, 214, 198, .176);
  --glow-gold: 0 0 9px rgba(217, 192, 144, .3), 0 0 18px rgba(217, 192, 144, .07);
  --glow-photo: 0 16px 32px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .12), 0 0 24px rgba(216, 208, 193, .055);
}
/* Headings and the logo */
.brand .w5, .foot-brand .lockup, .hero-title .lockup, .page-title .en, .label h2, .admissions h2,
.legacy #news_h, .legacy h1, .legacy #pickup_right > h2, .legacy #content > h2:not(#news_h) { text-shadow: var(--glow-heading); }
/* Subheadings and caption labels */
.legacy h2, .legacy h3, .targets strong, .a-title, .p-seika .legacy .p-ti, .p-member .legacy .pickup_text h3, .p-souti .legacy td h2::first-line { text-shadow: var(--glow-sub); }
/* Gold accents: active nav, years and dates, numbered labels, small gold labels */
.site-nav a[aria-current] .en, .date, .label p, .page-title .ja, .admissions h2 small, .legacy h4, .legacy dt, .legacy .yi-label,
.legacy .li_q, .legacy #pickup_left h2, .p-seika .legacy .p-no, .p-seika .legacy .p-yr, .p-member .legacy .pickup_text::before, .p-souti .legacy td:has(> h2)::before,
.label h2::before, .legacy #news_h::before, .legacy #pickup_right > h2::before, .legacy #content > h2:not(#news_h)::before { text-shadow: var(--glow-gold); }
.p-singaku .legacy .li_q { text-shadow: var(--glow-sub); }
.p-singaku .legacy .li_q::before { text-shadow: var(--glow-gold); }
/* Toggles and links that turn gold: glow on hover, current or open */
.more summary:hover, .more summary:focus-visible, .more[open] summary, .menu-button:hover, .menu-button[aria-expanded="true"],
.legacy .yi-years a:hover, .legacy #pickup_left li a:hover, .legacy #pickup_left li a.is-current { text-shadow: var(--glow-gold); }
/* Photos: a soft lift on hover */
.legacy img, .a-photo { transition: filter .3s ease, box-shadow .3s ease; }
.legacy img:hover { box-shadow: var(--glow-photo), var(--photo-shadow); }
.acts a:hover .a-photo { box-shadow: var(--glow-photo), var(--photo-shadow); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav ul { gap: 18px; }
  .site-nav .en { font-size: 13px; letter-spacing: .02em; }
  .site-nav .ja { letter-spacing: .06em; }
}
@media (max-width: 1060px) {
  .menu-button { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: var(--bar-h); z-index: 20; background: var(--bg); padding: 8px 24px 20px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8); }
  .site-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--fade-line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; width: min(1160px, 100%); margin: 0 auto; }
  .site-nav a { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; }
  .site-nav .en { font-size: 16px; }
  .site-nav .ja { font-size: 11.5px; letter-spacing: .12em; }
  .site-nav a::after { display: none; }
}
@media (max-width: 900px) {
  main > .row, .research .row, .admissions a, .foot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  main > .row { padding: 56px 0 48px; }
  .research .row { padding-top: 72px; }
  .research-body { grid-template-columns: minmax(0, 1fr); }
  .schedule { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .label .text-link { margin-top: 14px; }
  .legacy #content:has(> #pickup_left) { display: block; }
  .legacy #pickup_left { position: static; max-height: 240px; margin: 0 0 56px; padding: 0 8px 0 0; }
  .legacy #pickup_left ul { display: flex; flex-wrap: wrap; gap: 0 4px; border-left: 0; }
  .legacy #pickup_left li a { padding: 4px 10px 4px 0; font-size: 13px; }
  .legacy #pickup_left li a::before { display: none; }
  .legacy #pickup_left h2 { flex-basis: 100%; margin: 12px 0 2px; padding: 0; }
  .legacy .news_row:has(> .news_pic) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legacy .yi-row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
}
@media (max-width: 640px) {
  .legacy .news_row:has(> .pickup_pic) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .legacy .news_row:has(> .pickup_pic) > .pickup_pic img { width: 160px; }
  .p-member .legacy .news_row:has(> .pickup_pic) { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .p-member .legacy .news_row > .pickup_pic img { width: 140px; height: 140px; }
  .legacy .pickup_text2:has(> .pickup_pic) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .legacy table, .legacy tbody, .legacy tr, .legacy td { display: block; width: auto; }
  .legacy td { padding: 16px 0 0; }
  .legacy tr { padding-bottom: 24px; }
  .p-souti .legacy tbody { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .p-souti .legacy tr { padding-bottom: 0; }
  .p-souti .legacy td { padding: 0; }
  .p-souti .legacy td:has(> h2) { padding-top: 16px; }
  .legacy img[align="left"], .legacy img[align="right"] { float: none; display: block; margin: 0 0 12px; max-width: 100%; }
  .legacy dt { float: none; width: auto; padding: 12px 0 0; }
  .legacy dd { padding: 0 0 12px; }
}
@media (max-width: 560px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .hero-sub { margin-top: 36px; gap: 12px; letter-spacing: .24em; }
  .hero-sub span { padding-left: .24em; }
  .hero-sub i { width: 18px; }
  main > .row { padding: 48px 0 40px; }
  .news li, .papers li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-bottom { flex-direction: column; gap: 4px; }
  .page-title { padding: 36px 0 48px; }
  .legacy { padding: 48px 0 96px; }
  .legacy #news_h, .legacy #pickup_right > h2, .legacy #content > h2:not(#news_h) { margin-left: -12px; padding-left: 12px; padding-right: 12px; }
  .legacy h2 { margin-top: 56px; }
  .p-activity .legacy #pickup_right > h2 { margin-top: 72px; padding-top: 44px; }
}

/* ---------- 13. Reduced motion, forced colours, print ---------- */
@media (prefers-reduced-motion: reduce) {
  a, .a-photo img, .orbit .o-body, .site-nav a::after, .arrow::after, .legacy img, .more summary, .more summary::after,
  .legacy #pickup_left li a, .legacy #pickup_left li a::before, .legacy .yi-years a { transition: none; }
  .hero-bg { animation: none; }
  .hero-title .name, .hero-title .line, .hero-title .lab, .hero-title .vrule, .hero-title .vja i, .hero-sub { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (forced-colors: active) { *, *::before, *::after { text-shadow: none !important; } }
@media print { *, *::before, *::after { text-shadow: none !important; } }

/* ---------- 14. Re-laid-out pages (main.page): shared components ---------- */
.page { padding: 64px 0 120px; counter-reset: exhibit; }
.page-h { margin: 0 0 28px; font: 500 clamp(20px, 2.1vw, 24px)/1.55 var(--sans); letter-spacing: .06em; color: var(--text); text-shadow: var(--glow-heading); }
.sec-h { counter-increment: exhibit; margin: 0 0 40px -24px; padding: 8px 24px 6px; font: 500 21px/1.6 var(--sans); letter-spacing: .06em; color: var(--text); text-shadow: var(--glow-heading);
  background: radial-gradient(closest-side, rgba(213, 189, 141, .07), transparent) 0 50% / min(440px, 100%) 100% no-repeat; }
.sec-h::before { content: counter(exhibit, decimal-leading-zero); display: block; width: max-content; margin-bottom: 10px; padding-right: 44px; font: 400 11.5px/1 var(--latin); letter-spacing: .16em; color: var(--accent); text-shadow: var(--glow-gold);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat right 50% / 30px 1px; }
.sub-h { margin: 56px 0 24px; font: 500 16px/1.6 var(--sans); letter-spacing: .08em; color: var(--text); text-shadow: var(--glow-sub); }
.to-top { margin: 40px 0 0; text-align: right; font: 400 11px/1.6 var(--latin); letter-spacing: .16em; }
.to-top a { color: var(--text-2); }
.to-top a::before { content: "↑"; margin-right: .5em; }
.to-top a:hover { color: var(--accent); }
.inpage { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 72px; font-size: 13px; letter-spacing: .08em; }
.inpage a { color: var(--text-2); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.inpage a:hover { color: var(--accent); border-color: rgba(213, 189, 141, .5); text-shadow: var(--glow-gold); }
.page img { display: block; max-width: 100%; height: auto; outline: 1px solid rgba(255, 255, 255, .06); outline-offset: -1px; box-shadow: var(--photo-shadow); background: var(--raised); transition: filter .3s ease, box-shadow .3s ease; }
.page a:hover > img { filter: brightness(1.07); box-shadow: var(--glow-photo), var(--photo-shadow); }
/* Sub-navigation for page families, under the title band */
.subnav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: -36px; padding: 0 0 26px; font-size: 12.5px; letter-spacing: .1em; }
.subnav a { color: var(--night-sub); }
.subnav a:hover { color: var(--night-text); }
.subnav a[aria-current] { color: var(--accent); text-shadow: var(--glow-gold); }
/* Page with a sticky rail (index by year) on the left */
.with-rail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 48px; align-items: start; }
.rail { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; padding: 2px 8px 2px 0; scrollbar-width: thin; scrollbar-color: rgba(230, 227, 220, .16) transparent; }
.rail-label { margin: 0 0 8px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; color: var(--accent); text-shadow: var(--glow-gold); }
.rail-label a { color: inherit; }
.rail-year { margin: 18px 0 2px 16px; font: 400 12px/1 var(--latin); letter-spacing: .18em; color: var(--text-2); }
.rail ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(230, 227, 220, .12); }
.rail li a { position: relative; display: block; padding: 4px 0 4px 16px; font-size: 13px; line-height: 1.6; letter-spacing: .04em; color: var(--text-2); transition: color .2s; }
.rail li a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 1px; background: var(--accent); opacity: 0; transition: opacity .2s; }
.rail li a:hover, .rail li a.is-current { color: var(--accent); text-shadow: var(--glow-gold); }
.rail li a:hover::before, .rail li a.is-current::before { opacity: 1; }
.rail-back { margin: 24px 0 0 16px; font-size: 12.5px; }
.rail-back a { color: var(--text-2); }
.rail-back a:hover { color: var(--accent); }
.rail-main { min-width: 0; background: var(--pool); }
/* Photo galleries and mosaics (each photo opens in the lightbox) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.gallery img, .mosaic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-2 { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 270px)); margin-bottom: 8px; }

/* メンバー */
.m-sec + .m-sec { margin-top: 120px; padding-top: 72px; background: var(--fade-line) top / 100% 1px no-repeat, var(--pool); }
.m-feature { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.m-feature .m-photo img { width: 280px; aspect-ratio: 1; object-fit: cover; object-position: center 30%; }
.m-role { margin: 0 0 6px; font: 500 12px/1.5 var(--sans); letter-spacing: .18em; color: var(--accent); text-shadow: var(--glow-gold); }
.m-name { margin: 0; font: 500 17px/1.6 var(--sans); letter-spacing: .06em; color: var(--text); text-shadow: var(--glow-sub); }
.m-name::after { content: ""; display: block; width: 24px; height: 1px; margin: 14px 0 16px; background: var(--accent); opacity: .8; }
.m-feature .m-name { font-size: 24px; }
.m-feature .m-name::after { margin: 20px 0 22px; }
.m-meta { margin: 0; display: grid; gap: 2px; font-size: 13px; line-height: 1.75; color: var(--text-2); }
.m-meta > div { display: flex; flex-wrap: wrap; gap: 0 .4em; }
.m-meta dt { color: var(--text-2); }
.m-meta dd { margin: 0; }
.m-feature .m-meta { gap: 6px; font-size: 14px; }
.m-feature .m-meta dd { color: var(--body); }
.m-links { display: flex; flex-direction: column; gap: 2px; }
.m-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 64px 40px; }
.m-card .m-photo { max-width: 220px; margin-bottom: 22px; }
.m-card .m-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 30%; }
.m-theme { margin: 0 0 12px; font-size: 14.5px; line-height: 1.85; color: var(--body); }
.m-theme span { display: block; font-size: 11.5px; letter-spacing: .14em; color: var(--text-2); }
.m-card .m-meta { font-size: 12.5px; line-height: 1.7; }
.m-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.m-list li { padding: 14px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; }
.ml-name { display: block; font-size: 15.5px; letter-spacing: .08em; color: var(--text); }
.ml-role { display: block; font-size: 13px; color: var(--text-2); }
.alumni { margin-top: 8px; }
.alum-year { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 32px; padding: 26px 0; background: var(--fade-line) top / 100% 1px no-repeat; }
.alum-y { margin: 0; position: sticky; top: 24px; align-self: start; font: 300 26px/1.2 var(--latin); letter-spacing: .02em; color: rgba(230, 227, 220, .32); }
.alum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.a-head { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--text); letter-spacing: .06em; }
.a-deg { font-size: 13px; color: var(--text-2); }
.a-dest { display: block; font-size: 13px; color: var(--accent); }
.a-thesis { margin: 4px 0 0; font-size: 13.5px; line-height: 1.85; color: var(--text-2); }
.alum-early { padding: 28px 0 0; background: var(--fade-line) top / 100% 1px no-repeat; }
.alum-early summary { display: inline-flex; gap: .5em; cursor: pointer; list-style: none; padding-bottom: 3px; border-bottom: 1px solid var(--hair-2); font-size: 13.5px; letter-spacing: .06em; color: var(--text); transition: color .25s, border-color .25s; }
.alum-early summary::-webkit-details-marker { display: none; }
.alum-early summary::after { content: "＋"; color: var(--accent); transition: transform .3s ease; }
.alum-early summary:hover, .alum-early[open] summary { color: var(--accent); border-color: rgba(213, 189, 141, .55); text-shadow: var(--glow-gold); }
.alum-early[open] summary::after { transform: rotate(45deg); }
.alum-early .alum-list { margin-top: 24px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 32px; }

/* 使用装置: catalogue grid */
.catalogue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 48px; counter-reset: equip; }
.eq { margin: 0; counter-increment: equip; }
.eq img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eq figcaption { padding-top: 18px; }
.eq figcaption::before { content: counter(equip, decimal-leading-zero); display: block; margin-bottom: 6px; font: 400 12px/1 var(--latin); letter-spacing: .16em; color: var(--accent); text-shadow: var(--glow-gold); }
.eq-name { display: block; font-size: 16px; font-weight: 500; letter-spacing: .05em; line-height: 1.7; color: var(--text); text-shadow: var(--glow-sub); }
.eq-sub { display: block; font-size: 13px; line-height: 1.8; letter-spacing: .04em; color: var(--text-2); }

/* 研究成果: grouped by year, large faint year numerals, sticky year rail */
.rail .rail-years { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; margin-bottom: 22px; }
.rail .rail-years a { padding: 2px 0; font: 400 13px/1.7 var(--latin); font-variant-numeric: tabular-nums; }
.rail .rail-years a::before { display: none; }
.pub-sec + .pub-sec { margin-top: 120px; padding-top: 64px; background: var(--fade-line) top / 100% 1px no-repeat; }
.pub-year { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 8px 0 24px; scroll-margin-top: 16px; }
.year-num { margin: 6px 0 0; position: sticky; top: 24px; align-self: start; font: 300 38px/1 var(--latin); letter-spacing: -.01em; color: rgba(230, 227, 220, .16); }
.pubs { list-style: none; margin: 0; padding: 0; }
.pubs li { padding: 14px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; font-size: 13.5px; line-height: 1.8; letter-spacing: .02em; color: var(--text-2); }
.p-no { margin-right: .3em; font: 400 12.5px var(--latin); letter-spacing: .06em; color: var(--accent); }
.p-yr { font-family: var(--latin); color: var(--text-2); }
.pubs cite { display: block; margin: 2px 0; font: 400 17px/1.55 var(--serif); font-style: normal; letter-spacing: .005em; color: var(--muted-serif); text-shadow: var(--glow-sub); }
.p-jo { font-style: italic; color: var(--text-2); }
.p-jo a { font-style: normal; }

/* 研究室の活動: each event a chapter */
.event { margin-top: 96px; padding-top: 56px; background: var(--fade-line) top / 100% 1px no-repeat; scroll-margin-top: 8px; }
.rail-main > .sec-h + .event { margin-top: 0; padding-top: 0; background: none; }
.ev-head { margin-bottom: 22px; }
.ev-title { margin: 0; font: 500 20px/1.6 var(--sans); letter-spacing: .05em; color: var(--text); text-shadow: var(--glow-heading); }
.ev-meta { margin: 4px 0 0; font-size: 13px; letter-spacing: .1em; color: var(--accent); text-shadow: var(--glow-gold); }
.ev-sub { margin: 28px 0 14px; font: 500 14.5px/1.6 var(--sans); letter-spacing: .08em; color: var(--text); }
.ev-note { margin: 14px 0; font-size: 14.5px; color: var(--body); }
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.mosaic img { aspect-ratio: 4 / 3; }

/* Lightbox (site.js): a native <dialog>, keyboard and Esc, focus returns to the photo */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 7, 11, .94); color: var(--text); }
.lightbox::backdrop { background: rgba(5, 7, 11, .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; width: auto; height: auto; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); }
.lightbox figcaption { font-size: 12.5px; letter-spacing: .1em; color: var(--text-2); }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: var(--text); font: 300 30px/1 var(--latin); cursor: pointer; transition: color .2s, text-shadow .2s; }
.lightbox button:hover, .lightbox button:focus-visible { color: var(--accent); text-shadow: var(--glow-gold); }
.lb-close { top: 16px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 24px; top: 26px; margin: 0; font: 400 12px var(--latin); letter-spacing: .18em; color: var(--text-2); }

@media (max-width: 900px) {
  .subnav { margin-top: -28px; }
  .with-rail { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rail { position: static; max-height: 220px; padding: 0; }
  .rail ul { display: flex; flex-wrap: wrap; gap: 0 4px; border-left: 0; }
  .rail li a { padding: 3px 12px 3px 0; }
  .rail li a::before { display: none; }
  .rail-year { margin: 10px 0 2px; }
  .rail .rail-years { display: flex; flex-wrap: wrap; gap: 0 12px; margin-bottom: 12px; }
  .rail-back { margin: 12px 0 0; }
  .m-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .m-feature .m-photo img { width: min(280px, 100%); }
  .m-list { grid-template-columns: minmax(0, 1fr); }
  .alum-year { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .alum-y { position: static; font-size: 22px; }
  .pub-year { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .year-num { position: static; font-size: 30px; }
}
@media (max-width: 640px) {
  .catalogue { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; }
  .m-card .m-photo { margin-bottom: 16px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .event { margin-top: 72px; padding-top: 44px; }
  .sec-h { margin-left: -12px; padding-left: 12px; padding-right: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
}
@media (max-width: 420px) {
  .m-grid { grid-template-columns: minmax(0, 1fr); }
  .m-card .m-photo { max-width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  .page img, .rail li a, .rail li a::before, .alum-early summary, .alum-early summary::after, .lightbox button { transition: none; }
}
@media (forced-colors: active) { .lightbox { border: 1px solid CanvasText; } }

/* ---------- 15. Shared system ---------- */
:root {
  --gold-line: linear-gradient(90deg, rgba(213, 189, 141, .5), rgba(213, 189, 141, .08));   /* one-way gold hairline above schedule items */
  --ghost: rgba(230, 227, 220, .16);      /* large decorative numerals (aria-hidden) */
  --ghost-2: rgba(230, 227, 220, .40);    /* large numerals that are real headings: about 3:1 on --bg */
}
a.lb { cursor: zoom-in; }
.page :is(iframe, video, embed, object) { max-width: 100%; }
.scroll-x { max-width: 100%; overflow-x: auto; }      /* wrap any future wide table in <div class="scroll-x"> */

/* Page heading, lead and note */
.page-h { word-break: keep-all; overflow-wrap: anywhere; }      /* long Japanese headings break at the 　 */
.page-h:has(+ :is(.page-lead, .page-note)) { margin-bottom: 20px; }
.page-lead { margin: 0 0 72px; max-width: 40em; font-size: 15px; line-height: 2; letter-spacing: .03em; color: var(--body); }
.page-note { margin: 0 0 48px; max-width: 40em; font-size: 13px; line-height: 1.9; letter-spacing: .06em; color: var(--text-2); }

/* Section caption with an optional English word on the numeral line (01 —— JAPAN), Japanese heading below.
   <h2 class="sec-h"><span class="sec-ja">国内</span> <span class="sec-en" lang="en">Japan</span></h2> */
.sec-h:has(> .sec-en) { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; column-gap: 14px; }
.sec-h:has(> .sec-en)::before { grid-area: 1 / 1; margin-bottom: 0; }
.sec-en { grid-area: 1 / 2; font: 400 11.5px/1 var(--latin); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); text-shadow: none; }
.sec-ja { grid-area: 2 / 1 / 3 / 3; margin-top: 10px; }

/* Sections: .sec (caption above the body) and .sec-row (caption column beside the body). One pool each;
   between two sections 120px of space, a fading hairline, 64px. Never clip overflow here (it would cut the caption glow). */
.sec, .sec-row { background: var(--pool); }
:is(.sec, .sec-row) + :is(.sec, .sec-row) { margin-top: 120px; padding-top: 64px; background: var(--fade-line) top / 100% 1px no-repeat, var(--pool); }
:is(.sec, .sec-row)[id] { scroll-margin-top: 16px; }
.rail-main:has(> .sec) { background: none; }          /* its sections carry their own pools */
.sec-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 48px; align-items: start; }
.sec-side { position: sticky; top: 24px; }
.sec-side .sec-h { margin-bottom: 0; }
.sec-body { min-width: 0; padding-top: 30px; overflow-wrap: anywhere; }     /* 30px: the first line sits level with the Japanese heading */
.sec-body > p:not([class]), .sec-body > .statement { max-width: 42em; margin: 0 0 1.5em; }
.sec-body p:not([class]) a { text-decoration: underline; text-decoration-color: rgba(169, 192, 220, .35); text-underline-offset: 3px; }
.sec-body p:not([class]) a:hover { text-decoration-color: currentColor; }
.sec-note { margin: 20px 0 0; font-size: 13px; line-height: 1.9; letter-spacing: .06em; color: var(--text-2); }
.sec-more { margin: 40px 0 0; }
.sec-side .sec-more { margin-top: 16px; }

/* Rail: a label per group (food, seika); on phones the whole index sits above the content (see the 900px query) */
.rail ul:not(.rail-years) + .rail-label { margin-top: 24px; }

/* Plates: one photo or sheet at its own aspect ratio; never cropped, never shown wider than its pixels */
.plate { margin: 0; max-width: 100%; }
.plate a.lb { display: block; }
.plate figcaption { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12.5px; line-height: 1.6; letter-spacing: .14em; color: var(--text-2); }
.plate figcaption::before { content: ""; flex: none; width: 24px; height: 1px; background: var(--accent); opacity: .8; }
.plate-lit { position: relative; isolation: isolate; }
.plate-lit::before { content: ""; position: absolute; inset: -40px -48px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(230, 227, 220, .07), transparent); }

/* Mosaics: 4:3 crops keep the upper part (faces); small tiles at a fixed 2 (or 3) columns; the 準備中 placeholder dimmed */
.mosaic img { object-position: 50% 35%; }
.mosaic picture { display: block; }
.mosaic-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mosaic-sm:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mosaic .ph-pending { filter: invert(1) grayscale(1) brightness(.55); opacity: .32; box-shadow: none; outline: 0; }

/* Hub plates (研究室の活動・食事マップ): photo, the English word large, the Japanese name small in gold, optional latest line */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.page > .cat-grid { max-width: 834px; }      /* outside a .sec-row: never wider than the 9fr column, so 270px photos are not enlarged */
.cat { display: block; color: var(--text); }
.cat:hover { color: var(--text); }
.cat-photo { display: block; }
.cat-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; }   /* .page img gives hairline + shadow */
.cat:hover .cat-photo img { filter: brightness(1.07); box-shadow: var(--glow-photo), var(--photo-shadow); }
.cat-name { display: flex; flex-direction: column; margin-top: 18px; }
.cat-name .en { order: 0; font: 300 24px/1.15 var(--latin); letter-spacing: .01em; color: var(--text); text-shadow: var(--glow-sub); transition: color .2s, text-shadow .2s; }
.cat-name .ja { order: 1; margin-top: 8px; font-size: 12.5px; font-weight: 500; line-height: 1.7; letter-spacing: .18em; color: var(--accent); text-shadow: var(--glow-gold); }
.cat:hover .cat-name .en, .cat:focus-visible .cat-name .en { color: var(--accent); text-shadow: var(--glow-gold); }
.cat-latest { display: block; margin-top: 14px; font-size: 12.5px; line-height: 1.75; letter-spacing: .04em; color: var(--text-2); }
.cat-latest .date { display: block; font-size: 12.5px; line-height: 1.6; letter-spacing: .14em; }

/* Sub-navigation of a page family: bilingual (English shown first; Japanese first in the markup) */
.subnav a { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: .7em; }
.subnav .en { font: 400 13px/1.4 var(--latin); letter-spacing: .04em; color: rgba(235, 233, 227, .78); }
.subnav .ja { font-size: 11px; letter-spacing: .12em; }
.subnav a:hover .en { color: var(--night-text); }
.subnav a[aria-current] .en, .subnav a[aria-current] .ja { color: var(--accent); }

@media (max-width: 900px) {
  .sec-row { grid-template-columns: minmax(0, 1fr); }
  .sec-side { position: static; }
  .sec-body { padding-top: 28px; }
  .plate-lit::before { inset: -24px -16px; }          /* never wider than the page gutter: no sideways scroll */
  /* The index sits above the content, whole: no inner scroll box (long pages use .rail-strip, minerals .rail-cols) */
  .rail { max-height: none; overflow: visible; padding-bottom: 24px; background: var(--fade-line) bottom / 100% 1px no-repeat; }
}
@media (max-width: 640px) {
  :is(.sec, .sec-row) + :is(.sec, .sec-row) { margin-top: 88px; padding-top: 48px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cat { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .cat-photo { grid-row: span 2; }
  .cat-name { margin-top: 0; }
  .cat-name .en { font-size: 20px; }
  .cat-latest { margin-top: 8px; font-size: 12px; }
}
@media (max-width: 560px) {
  .page-lead { margin-bottom: 56px; }
  .subnav a { flex-direction: column-reverse; align-items: flex-start; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .cat-name .en, .cat-photo img { transition: none; } }
@media print { .sec-side { position: static; } }
@media (forced-colors: active) { :is(.sec, .sec-row) + :is(.sec, .sec-row) { border-top: 1px solid CanvasText; } }

/* ---------- 18. Activities family (研究室の活動: hub, 学会など, 研究など, その他, 時系列順) ---------- */
/* Rail: each year label links to that year's first event */
.rail-year a { color: inherit; transition: color .2s; }
.rail-year a:hover, .rail-year a.is-current { color: var(--accent); text-shadow: var(--glow-gold); }
/* Long photo sets: the rest behind a text toggle (the home page's .more) */
.mosaic-more { margin-top: 14px; }
.mosaic-more > .mosaic { margin-top: 10px; }
.mosaic-more summary .count { font-family: var(--latin); color: var(--text-2); }
.ev-head { overflow-wrap: anywhere; }
.ev-note { line-height: 2; max-width: 40em; }

/* Hub: seminar schedule (two entries, the gold hairline on top like the home schedule) */
.seminars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.seminar { display: grid; grid-template-columns: minmax(0, 1fr) 168px; grid-template-areas: "when photo" "name photo"; column-gap: 24px; align-content: start;
  padding-top: 16px; background: var(--gold-line) top / 100% 1px no-repeat; }
.seminar-when { grid-area: when; margin: 0; font: 400 15px/1.8 var(--latin); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: var(--glow-gold); }
.seminar-day { margin-right: .7em; font-family: var(--sans); font-size: 12.5px; letter-spacing: .16em; }
.seminar-name { grid-area: name; margin: 6px 0 0; font: 500 16.5px/1.7 var(--sans); letter-spacing: .05em; color: var(--text); text-shadow: var(--glow-sub); }
.seminar-photo { grid-area: photo; display: block; }
.seminar-photo img { width: 168px; aspect-ratio: 4 / 3; object-fit: cover; }

@media (max-width: 900px) {
  /* The rail becomes a sticky strip of years (block layout, so the strip can stay stuck down the whole page).
     Hook: .rail-strip only. Food rails also carry other rail classes and must keep their full lists. */
  .with-rail:has(> .rail-strip) { display: block; }
  .with-rail:has(> .rail-strip) > .rail-main { margin-top: 32px; }
  .rail.rail-strip { position: sticky; top: 0; z-index: 5; display: flex; align-items: baseline; gap: 0 20px; max-height: none; margin: 0 -24px; padding: 12px 24px;
    overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; overscroll-behavior-x: contain;
    background: var(--fade-line) bottom / 100% 1px no-repeat, rgba(7, 9, 13, .96); }   /* no backdrop blur: quieter, and cheap to scroll over 1,000 photos */
  .rail.rail-strip::-webkit-scrollbar { display: none; }
  .rail.rail-strip ul { display: none; }
  .rail.rail-strip .rail-label, .rail.rail-strip .rail-year, .rail.rail-strip .rail-back { flex: none; margin: 0; }
  .rail.rail-strip .rail-year { font-size: 13.5px; letter-spacing: .1em; }
  .rail.rail-strip .rail-back { font-size: 12px; }
  .with-rail:has(> .rail-strip) .event { scroll-margin-top: 60px; }
  .seminars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .seminar { grid-template-columns: minmax(0, 1fr) 120px; column-gap: 16px; }
  .seminar-photo img { width: 120px; }
}
@media (max-width: 560px) {
  .rail.rail-strip { margin: 0 -16px; padding: 11px 16px; }
  .ev-title { font-size: 18px; }
  .ev-meta { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-year a { transition: none; }
}
@media print {
  .rail.rail-strip { display: none; }
  .with-rail:has(> .rail-strip) { display: block; }
}

/* ---------- 16. Research family (研究概要・研究内容・ポスター): numbered exhibits, the side photo, the poster ---------- */
.exhibit p a { text-decoration: underline; text-decoration-color: rgba(169, 192, 220, .35); text-underline-offset: 3px; }
.exhibit p a:hover { text-decoration-color: currentColor; }
.sec-body sub { font-size: .72em; line-height: 0; position: relative; bottom: -.2em; vertical-align: baseline; }
/* Plates in this family: the 328px photo in the caption column, the poster hung in light */
.sec-side .plate { margin-top: 32px; max-width: 328px; }
.plate-poster { max-width: 560px; }
.plate-poster img { width: 100%; filter: brightness(.92); } /* soften the white sheet; phase 1's a:hover > img lifts it */
/* Numbered exhibits: CSS numbers them 01, 02 …; the text itself carries no number */
.ex-lead { margin: 56px 0 4px; font-size: 13.5px; line-height: 1.9; letter-spacing: .08em; color: var(--text-2); }
.exhibits { list-style: none; margin: 0; padding: 0; counter-reset: ex; }
.exhibit { position: relative; counter-increment: ex; padding: 36px 0 36px 96px; background: var(--fade-line) top / 100% 1px no-repeat; }
.exhibit:first-child { padding-top: 20px; background: none; }
.exhibit::before { content: counter(ex, decimal-leading-zero); position: absolute; left: 0; top: 30px; font: 300 44px/1 var(--latin); letter-spacing: .01em; font-variant-numeric: tabular-nums; color: var(--accent); opacity: .9; text-shadow: var(--glow-gold); transition: opacity .6s ease; }
.exhibit:first-child::before { top: 14px; }
.exhibit p { margin: 0; max-width: 40em; line-height: 2.05; color: var(--body); }
.exhibit p + p { margin-top: .8em; }
.exhibit .ex-source { margin-top: .6em; font-size: 12.5px; line-height: 1.8; color: var(--text-2); } /* only if the owner wants the draft's 出典 lines shown (Q1) */
.exhibits.is-spot .exhibit::before { opacity: .5; }   /* 00-system S20: at .38 the numerals looked disabled */
.exhibits.is-spot .exhibit.is-lit::before { opacity: 1; }
@media (max-width: 900px) {
  .sec-side .plate { margin-top: 28px; }   /* the row itself, the sticky column and .plate-lit's inset are handled in section 15 */
}
@media (max-width: 640px) {
  .exhibit, .exhibit:first-child { padding: 28px 0; }
  .exhibit:first-child { padding-top: 12px; }
  .exhibit::before { position: static; display: block; margin-bottom: 10px; font-size: 32px; }
  .ex-lead { margin-top: 44px; }
}
@media (max-width: 560px) { .sec-body .statement { font-size: 18px; line-height: 2; } }
@media (prefers-reduced-motion: reduce) { .exhibit::before, .plate-poster img { transition: none; } }
@media print { .exhibit::before { opacity: 1 !important; } .plate-poster img { filter: none; } }

/* ---------- 17. Directory pages (共同研究実績・LINK) ----------
   Rows of a register inside the shared .sec-row: every row sits on its own fading hairline.
   No boxes, icons, badges or counts. */
.sec-body > .dir-list:first-child { margin-top: -13px; }   /* the first name sits level with the Japanese heading */
.sec-body > .dir-links:first-child { margin-top: -15px; }
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list > li { padding: 13px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; font-size: 15px; line-height: 1.75; color: var(--body); word-break: keep-all; overflow-wrap: anywhere; }
.dir-list:lang(en) > li, .dir-name:lang(en) { font-family: var(--serif); font-size: 17px; line-height: 1.6; letter-spacing: .01em; }
.dir-list:lang(en) > li { color: var(--text); }
.dir-meta { font: 400 12px/1.6 var(--latin); letter-spacing: .04em; color: var(--text-2); }
.dir-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.dir-links > li { padding: 0; }
.dir-links a { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: 32px; align-items: baseline; padding: 15px 0; color: var(--link); }
.dir-links a:hover { color: var(--accent); }
.dir-links .dir-meta { text-align: right; }
@media (max-width: 900px) {
  .sec-body > .dir-list:first-child, .sec-body > .dir-links:first-child { margin-top: 0; }
}
@media (max-width: 640px) {
  .dir-cols { grid-template-columns: minmax(0, 1fr); }
  .dir-links a { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 14px 0; }
  .dir-links .dir-meta { text-align: left; font-size: 11.5px; }
}

/* ---------- 19. Food map (食事マップ): shop catalogue ---------- */
/* 「（現在工事中）」 stays in the heading, set quietly (generic: any status note inside a heading) */
.h-note { margin-left: .4em; font-size: 13px; font-weight: 400; letter-spacing: .1em; color: var(--text-2); text-shadow: none; white-space: nowrap; }

/* One shop: text left, photo plates right. No box; shops separated by a fading hairline */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 40%, 336px); grid-template-rows: auto auto 1fr auto;
  grid-template-areas: "head plates" "note plates" "facts plates" "top top"; column-gap: 40px; padding: 48px 0 40px; scroll-margin-top: 24px; }
.shop + .shop { background: var(--fade-line) top / 100% 1px no-repeat; }
.sec-h + .shop { padding-top: 36px; }
.shop-head { grid-area: head; }
.shop > .mosaic { grid-area: plates; align-self: start; }
.shop > .shop-note { grid-area: note; }
.shop > .facts { grid-area: facts; align-self: start; }
.shop > .to-top { grid-area: top; }
.shop-name { margin: 0; font: 500 18px/1.6 var(--sans); letter-spacing: .05em; color: var(--text); text-shadow: var(--glow-sub); }
.shop-name:lang(en) { font: 400 21px/1.4 var(--serif); letter-spacing: .01em; }
.shop-name a { color: inherit; border-bottom: 1px solid var(--hair-2); transition: color .2s, border-color .2s; }
.shop-name a:hover { color: var(--accent); border-color: currentColor; }
.shop-sub { display: block; margin-top: 2px; font: 400 12.5px/1.7 var(--sans); letter-spacing: .06em; color: var(--text-2); text-shadow: none; }
.shop-addr { margin: 6px 0 0; font-size: 12.5px; line-height: 1.8; letter-spacing: .04em; color: var(--text-2); }
.shop-note { margin: 20px 0 0; max-width: 34em; font-size: 15px; line-height: 2; color: var(--body); }
.note-label { margin-right: .5em; font-size: 12.5px; letter-spacing: .12em; color: var(--text-2); }
.facts { margin: 18px 0 0; display: grid; row-gap: 6px; font-size: 13px; line-height: 1.85; }
.facts > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); column-gap: 12px; }
.facts dt { font-size: 12px; letter-spacing: .1em; color: var(--text-2); }
.facts dd { margin: 0; color: var(--body); }
.shop-addr, .shop-note, .facts dd { overflow-wrap: anywhere; }

/* Photo tiles: the shared .mosaic.mosaic-sm (4:3, 2 across; 3 across with 5 or more; the 準備中 slot dimmed).
   Hover = phase 1's brightness + photo glow; no zoom (00-system S11). Nothing to add here. */

@media (max-width: 640px) {
  .shop { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "plates" "note" "facts" "top"; padding: 40px 0 32px; }
  .shop > .mosaic { margin-top: 16px; }
  .shop-name { font-size: 17px; }
  .shop-name:lang(en) { font-size: 20px; }
  .facts > div { grid-template-columns: 5.6em minmax(0, 1fr); column-gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-name a { transition: none; }
}

/* Bilingual rail label: Japanese first in the markup; the English word (Jost, uppercase) is shown first */
.rail-label:has(> .en) { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: .9em; }
.rail-label .en { font-family: var(--latin); font-weight: 400; letter-spacing: .2em; text-transform: uppercase; }
.rail-no { display: inline-block; min-width: 3.4em; font-family: var(--latin); letter-spacing: .04em; }

/* 更新履歴: year groups (a faint year numeral beside its rows) and the dated one-line log */
.year-group { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; padding: 40px 0 44px; scroll-margin-top: 16px; }
.year-group:first-child { padding-top: 0; }
.year-group + .year-group { background: var(--fade-line) top / 100% 1px no-repeat; }
.year-group .year-num { margin: 2px 0 0; color: var(--ghost-2); text-shadow: var(--glow-sub); }   /* a real heading: about 3:1 on --bg */
.log { list-style: none; margin: 0; padding: 0; max-width: 36em; }
.log li { display: grid; grid-template-columns: 6.8em minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 5px 0; font-size: 14.5px; line-height: 1.85; letter-spacing: .04em; color: var(--body); overflow-wrap: anywhere; }
.log .date { font-size: 13.5px; line-height: inherit; letter-spacing: .06em; color: var(--text-2); text-shadow: none; }
.log a:hover { text-decoration: underline; text-underline-offset: 3px; }
.log-gap { color: var(--text-2); }

/* 鉱物アーカイブ: specimen catalogue grid — plate, museum label, essay; no frames. The grid itself is phase 1's .catalogue */
.specimens { gap: 88px 48px; align-items: start; }
.specimen { min-width: 0; scroll-margin-top: 16px; }
.sp-plate { max-width: 440px; margin-bottom: 22px; }
.sp-plate a { display: block; }
.sp-plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sp-plate:has(> a + a) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sp-name { margin: 0; display: flex; flex-direction: column; gap: 2px; font-weight: 400; text-shadow: var(--glow-sub); }
.sp-no { margin-bottom: 8px; font: 400 12px/1 var(--latin); letter-spacing: .16em; color: var(--accent); text-shadow: var(--glow-gold); }
.sp-ja { font: 500 19px/1.5 var(--sans); letter-spacing: .06em; color: var(--text); }
.sp-en { font: italic 400 17px/1.4 var(--serif); letter-spacing: .01em; color: var(--muted-serif); }
.sp-formula { margin: 10px 0 0; font: 400 15.5px/1.6 var(--serif); letter-spacing: .02em; color: var(--text-2); overflow-wrap: anywhere; }
.sp-loc { margin: 2px 0 0; font-size: 12.5px; line-height: 1.7; letter-spacing: .12em; color: var(--text-2); }
.sp-text { margin: 18px 0 0; font-size: 14.5px; line-height: 2; letter-spacing: .03em; color: var(--body); text-align: justify; line-break: strict; overflow-wrap: anywhere; }
.sp-date { margin: 12px 0 0; font: 400 12px/1.6 var(--latin); letter-spacing: .1em; color: var(--text-2); }
.specimen :is(sub, sup) { font-size: .72em; line-height: 0; }

@media (max-width: 900px) {
  .year-group { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 32px 0 36px; }
  .year-group .year-num { position: static; font-size: 30px; }
  .rail-cols { max-height: none; overflow: visible; }
  .rail-cols ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .rail-cols li a { padding-right: 0; }
}
@media (max-width: 640px) {
  .log li { grid-template-columns: 6.2em minmax(0, 1fr); gap: 12px; font-size: 14px; }
  .log .date { font-size: 13px; }
  .specimens { gap: 64px; }   /* .catalogue is already one column here */
  .sp-text { font-size: 14px; line-height: 1.95; }
}

/* ---------- 21. Short pages: 進学案内 (FAQ), news articles, profile photos ---------- */
/* .sec and the section break (120 · hairline · 64) are in the shared section 15 */

/* 進学案内: lead, next steps, closing line */
.p-singaku .sec, .p-singaku .page > .to-top { max-width: 760px; }
.lede-actions { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 20px; font-size: 14.5px; line-height: 1.9; letter-spacing: .04em; color: var(--text-2); }
.lede-actions li { padding-left: 1em; text-indent: -1em; }            /* the "・" hangs; wrapped lines align under the text */
.cta-link { display: table; margin-top: 8px; padding-bottom: 4px; text-indent: 0; border-bottom: 1px solid var(--hair-2); font-size: 18px; line-height: 1.7; letter-spacing: .05em; color: var(--text); transition: color .2s, border-color .2s; }
.cta-link::after { content: "→"; content: "→" / ""; display: inline-block; margin-left: .6em; font-family: var(--latin); color: var(--accent); transition: transform .2s; }
.cta-link:hover { color: var(--accent); border-color: rgba(213, 189, 141, .55); }
.cta-link:hover::after { transform: translateX(3px); }
.coda { margin: 0; max-width: 36em; font-size: clamp(16.5px, 1.6vw, 18px); line-height: 2.1; letter-spacing: .04em; color: var(--text); }

/* FAQ accordion: gold Q numerals, a fading hairline under each item, ＋ turns into × */
.faq { counter-reset: faq; background: var(--fade-line) top / 100% 1px no-repeat; }
.faq-item { counter-increment: faq; background: var(--fade-line) bottom / 100% 1px no-repeat; }
.faq-q { position: relative; display: block; padding: 22px 48px 22px 64px; list-style: none; cursor: pointer; font: 500 16px/28px var(--sans); letter-spacing: .05em; color: var(--text); text-shadow: var(--glow-sub); transition: color .25s; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before { content: "Q" counter(faq, decimal-leading-zero); content: "Q" counter(faq, decimal-leading-zero) / ""; position: absolute; left: 0; top: 22px; font: 400 12.5px/28px var(--latin); letter-spacing: .16em; color: var(--accent); text-shadow: var(--glow-gold); }
.faq-q::after { content: "＋"; content: "＋" / ""; position: absolute; right: 6px; top: 22px; font-size: 14px; line-height: 28px; color: var(--accent); transition: transform .3s ease; }
.faq-q:hover, .faq-q:focus-visible { color: var(--accent); }
.faq-item[open] > .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 48px 36px 64px; font-size: 15px; line-height: 2.05; letter-spacing: .03em; color: var(--body); }
.faq-a p { margin: 0 0 1.2em; }
.faq-a p:last-child { margin-bottom: 0; }
.pt { padding-left: 1em; text-indent: -1em; }

/* News article */
.article { max-width: 840px; background: var(--pool); }
.article + .page-end { max-width: 840px; }
.art-head { margin: 0 0 40px; }
.art-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 16px; }
.art-kicker > [lang="en"] { display: inline-flex; align-items: center; gap: 14px; font: 400 11.5px/1 var(--latin); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); text-shadow: var(--glow-gold); }
.art-kicker > [lang="en"]::after { content: ""; width: 30px; height: 1px; background: var(--accent); }
.art-key { font-size: 12.5px; letter-spacing: .08em; color: var(--text-2); }
.art-title { margin: 0; font: 500 clamp(20px, 2.1vw, 24px)/1.55 var(--sans); letter-spacing: .06em; color: var(--text); text-shadow: var(--glow-heading); }
.art-date { display: block; margin-top: 10px; font: 400 13px/1.6 var(--latin); letter-spacing: .12em; color: var(--accent); text-shadow: var(--glow-gold); }
.art-body { max-width: 40em; font-size: 15px; line-height: 2.05; letter-spacing: .03em; color: var(--body); overflow-wrap: anywhere; }
.art-body p { margin: 0 0 1.4em; }
.art-quote { padding-left: 1.4em; font-size: 14.5px; color: var(--text-2); }
.art-q-label { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .2em; color: var(--accent); text-shadow: var(--glow-gold); }
.art-links { list-style: none; margin: 0 0 1.4em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }

/* Plates: the base .plate, its caption and its 24px gold rule are in the shared section 15. The arrangements: */
.plates { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 40px; }
.page > .plates { padding-top: 8px; background: var(--pool); }
.plates > .plate { flex: 0 1 auto; }
.plates > .plate img { width: auto; height: auto; max-width: 100%; max-height: min(72vh, 640px); }   /* scoped to sets: research's side photo and poster are single plates outside .plates */
.page > .plates:has(> .plate + .plate) img { max-height: 360px; }      /* several photos: hung at one height */
.article .plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.article .plate img { width: 100%; max-height: none; }

/* End of page: back link (English on top, Japanese under it) and PAGE TOP */
.page-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-top: 96px; padding-top: 28px; background: var(--fade-line) top / 100% 1px no-repeat; }
.page-end .to-top { margin: 0 0 0 auto; }
.page-back { margin: 0; }
.page-back a { position: relative; display: inline-flex; flex-direction: column-reverse; gap: 5px; padding-left: 26px; color: var(--text); }
.page-back a::before { content: "←"; content: "←" / ""; position: absolute; left: 0; top: 0; font: 400 13.5px/1.1 var(--latin); color: var(--accent); transition: transform .2s; }
.page-back .en { font: 400 13.5px/1.1 var(--latin); letter-spacing: .06em; }
.page-back .ja { font-size: 11px; line-height: 1.2; letter-spacing: .12em; color: var(--text-2); transition: color .2s; }
.page-back a:hover { color: var(--accent); }
.page-back a:hover .en { text-shadow: var(--glow-gold); }
.page-back a:hover .ja { color: rgba(213, 189, 141, .8); }
.page-back a:hover::before { transform: translateX(-3px); }

@media (max-width: 640px) {
  .plates { gap: 40px; }
  .plates > .plate { flex: 1 1 100%; }
  .plates > .plate img, .page > .plates:has(> .plate + .plate) img { max-height: 70vh; }
  .page-end { margin-top: 72px; }
}
@media (max-width: 560px) {
  .lede-actions { margin-top: 32px; }
  .cta-link { font-size: 16.5px; }
  .faq-q { padding: 18px 36px 18px 48px; font-size: 15.5px; }
  .faq-q::before, .faq-q::after { top: 18px; }
  .faq-a { padding: 0 0 30px 48px; }
  .art-head { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-q, .faq-q::after, .cta-link, .cta-link::after, .page-back a::before, .page-back .ja { transition: none; }
}
@media (forced-colors: active) {
  .faq-item { border-bottom: 1px solid CanvasText; }
  .page-end { border-top: 1px solid CanvasText; }   /* the section breaks get theirs in section 15 */
}

/* ---------- 22. Japanese headings break between phrases, never mid-word (e.g. 「研究室の活動一覧（カテゴリ別）」) ----------
   keep-all first for browsers without auto-phrase; overflow-wrap: anywhere stays the fallback for long Latin strings. */
.page-h, .sec-h, .sec-ja, .sub-h, .label h2, .label p, .ev-title, .ev-sub, .m-name, .m-role, .eq-name, .page-title .ja,
.cat-name .ja, .seminar-name, .shop-name, .sp-name, .faq-q, .art-title, .admissions h2, .alum-y, .rail-label, .a-head {
  word-break: keep-all; word-break: auto-phrase; text-wrap: balance; line-break: strict; overflow-wrap: anywhere;
}
/* Seminar names are single phrases (「地球惑星物質科学セミナー」): give them room so they never split mid-word */
@media (min-width: 901px) {
  .seminar { grid-template-columns: minmax(0, 1fr) 140px; }
  .seminar-photo img { width: 140px; }
}

/* ---------- 23. 年表 (katudoujikei.html): an automatic chronicle, one light row per event; and the footer credit ---------- */
.chron-year { grid-template-columns: 112px minmax(0, 1fr); }
.chron { list-style: none; margin: 0; padding: 0; }
.chron-row { display: grid; grid-template-columns: 72px 7.5em minmax(0, 1fr) max-content; column-gap: 20px; align-items: center; padding: 10px 0; background: var(--fade-line) bottom / 100% 1px no-repeat; color: var(--text); }
.chron-thumb { display: block; width: 72px; aspect-ratio: 4 / 3; background: var(--raised); }
.chron-thumb img { width: 72px; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 35%; box-shadow: none; }
.chron-row .date { font-size: 13.5px; }
.chron-title { font-size: 14.5px; line-height: 1.7; letter-spacing: .03em; overflow-wrap: anywhere; transition: color .2s; }
.chron-cat { font-size: 12px; letter-spacing: .12em; color: var(--text-2); white-space: nowrap; }
.chron-row:hover .chron-title, .chron-row:focus-visible .chron-title { color: var(--accent); }
.chron-row:hover .chron-thumb img { filter: brightness(1.07); }
.foot-credit { margin: 14px 0 0; font: 400 12.5px/1.7 var(--latin); letter-spacing: .04em; color: var(--night-sub); }
.foot-credit-name { color: var(--accent); }
@media (max-width: 900px) { .chron-year { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .chron-row { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "thumb date" "thumb title" "thumb cat"; column-gap: 14px; row-gap: 0; align-items: start; }
  .chron-thumb { grid-area: thumb; width: 64px; } .chron-thumb img { width: 64px; }
  .chron-row .date { grid-area: date; } .chron-title { grid-area: title; } .chron-cat { grid-area: cat; }
}
@media (prefers-reduced-motion: reduce) { .chron-title { transition: none; } }

/* ---------- 24. Archive grid: faint graph paper with registration crosses, shown in patches that fade in and out ----------
   Minor lines every 12px, major every 60px, a small cross every 120px. The layer scrolls with the content, above the
   fixed atlas engraving. Only on archive-like pages: body.has-grid (seika, 更新履歴, 鉱物アーカイブ, 使用装置, 共同研究実績,
   関連リンク, 年表) and the home sections marked .grid-sec (News, Schedule). Static: nothing to change for reduced motion. */
:root {
  --grid-minor: rgba(31, 35, 43, .032);
  --grid-major: rgba(31, 35, 43, .065);
  --grid-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M54 60h12M60 54v12' stroke='%231f232b' stroke-opacity='.26' stroke-width='1'/%3E%3C/svg%3E");
}
body.has-grid, body:has(.grid-sec) { overflow-x: clip; }   /* the layer reaches the viewport edges (100vw): never a sideways scroll */
.has-grid main, main > .grid-sec { position: relative; isolation: isolate; }
.has-grid main::after, main > .grid-sec::after {
  content: ""; position: absolute; inset: -32px calc(50% - 50vw); z-index: -1; pointer-events: none;
  background:
    var(--grid-mark) -60px -60px / 120px 120px,
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px;
  /* Patches: rounded, soft-edged, in the margins, one pair every 1200px down the page; no straight edge ever shows */
  -webkit-mask-image: radial-gradient(ellipse 400px 320px at 5% 320px, #000, transparent 100%),
                      radial-gradient(ellipse 360px 300px at 97% 920px, rgba(0, 0, 0, .8), transparent 100%);
          mask-image: radial-gradient(ellipse 400px 320px at 5% 320px, #000, transparent 100%),
                      radial-gradient(ellipse 360px 300px at 97% 920px, rgba(0, 0, 0, .8), transparent 100%);
  -webkit-mask-size: 100% 1200px; mask-size: 100% 1200px;
  -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y;
}
/* Home sections are short: one patch each side, sized to the section so it fades before its top and bottom */
main > .grid-sec::after {
  inset: 0 calc(50% - 50vw);
  -webkit-mask-image: radial-gradient(ellipse 380px 46% at 5% 50%, #000, transparent 100%),
                      radial-gradient(ellipse 340px 42% at 97% 55%, rgba(0, 0, 0, .75), transparent 100%);
          mask-image: radial-gradient(ellipse 380px 46% at 5% 50%, #000, transparent 100%),
                      radial-gradient(ellipse 340px 42% at 97% 55%, rgba(0, 0, 0, .75), transparent 100%);
  -webkit-mask-size: auto; mask-size: auto;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
@media (max-width: 640px) { :root { --grid-minor: rgba(31, 35, 43, .025); --grid-major: rgba(31, 35, 43, .05); } }
@media (forced-colors: active) { .has-grid main::after, main > .grid-sec::after { display: none; } }
@media print { .has-grid main::after, main > .grid-sec::after { display: none; } }

/* ---------- 24b. Margin grid on every other page (owner, 2026-11-26: "the background and both sides are still empty") ----------
   The same graph paper, but only in the outer margins: a band mask keeps it outside the content column (it fades out
   40px before the column), intersected with soft patches that repeat every 1100px, so it still comes and goes.
   On narrow windows the margins vanish and so does this layer. The home page uses it instead of its .grid-sec patches. */
:root { --wrap-half: 580px; }
body:not(.has-grid) { overflow-x: clip; }
body:not(.has-grid) main { position: relative; isolation: isolate; }
body:not(.has-grid) main::before {
  content: ""; position: absolute; inset: -32px calc(50% - 50vw) 0; z-index: -1; pointer-events: none;
  background:
    var(--grid-mark) -60px -60px / 120px 120px,
    linear-gradient(var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px,
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px) 0 0 / 12px 12px;
  -webkit-mask-image:
    linear-gradient(90deg, #000, #000 calc(50% - var(--wrap-half) - 40px), transparent calc(50% - var(--wrap-half) + 24px), transparent calc(50% + var(--wrap-half) - 24px), #000 calc(50% + var(--wrap-half) + 40px)),
    radial-gradient(ellipse 34% 380px at 6% 300px, #000, transparent 100%), radial-gradient(ellipse 34% 360px at 94% 820px, rgba(0, 0, 0, .85), transparent 100%);
  -webkit-mask-size: 100% 100%, 100% 1100px, 100% 1100px;
  -webkit-mask-repeat: no-repeat, repeat-y, repeat-y;
  -webkit-mask-composite: source-in, source-over;
          mask-image:
    linear-gradient(90deg, #000, #000 calc(50% - var(--wrap-half) - 40px), transparent calc(50% - var(--wrap-half) + 24px), transparent calc(50% + var(--wrap-half) - 24px), #000 calc(50% + var(--wrap-half) + 40px)),
    radial-gradient(ellipse 34% 380px at 6% 300px, #000, transparent 100%), radial-gradient(ellipse 34% 360px at 94% 820px, rgba(0, 0, 0, .85), transparent 100%);
          mask-size: 100% 100%, 100% 1100px, 100% 1100px;
          mask-repeat: no-repeat, repeat-y, repeat-y;
          mask-composite: intersect, add;
}
main > .grid-sec::after { content: none; }   /* the home page's margins now come from 24b */
@media (forced-colors: active), print { body:not(.has-grid) main::before { display: none; } }

/* Wide windows: a slightly wider column, so the margins don't dominate (1160 → 1280px from 1600px wide) */
@media (min-width: 1600px) {
  :root { --wrap-half: 640px; }
  .wrap { width: min(1280px, 100% - 96px); }
}

/* Lead and intro paragraphs: no single character (「す。」) left alone on the last line */
.page-lead, .page-note, .sec-note, .ex-lead, .research-lead, .statement, .coda, .lede-actions li, .art-body p, .ev-note { text-wrap: pretty; }
/* The credit's name stays whole (「I. Mads Lieu」 never splits after 「I.」) */
.foot-credit-name { white-space: nowrap; font-weight: 500; }   /* the thin stem of 「I.」 at 400 reads grey at 1x; 500 keeps the whole name gold */

/* ---------- 25. Floating header, nav beam, orbit trace, menu motion, page transitions ----------
   One easing everywhere. From 761 × 600 px the bar floats (fixed) above the page: transparent over the hero or title
   band, then a night band (fading in as a pseudo-element) once the band has scrolled under it, compacting to 64 px. */
:root { --ease: cubic-bezier(.22, 1, .36, 1); --bar-compact: 64px; }
.site-bar { position: relative; z-index: 50; view-transition-name: site-header; }
.site-bar .bar { position: relative; z-index: 1; transition: height 320ms var(--ease); }
.site-bar::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 320ms var(--ease);
  background: linear-gradient(90deg, transparent, rgba(213, 189, 141, .42) 22% 78%, transparent) bottom / 100% 1px no-repeat, rgba(7, 9, 13, .92);
  box-shadow: 0 1px 18px rgba(236, 226, 206, .12); }
.brand { transform-origin: left center; transition: transform 320ms var(--ease); }
.bar-trace { position: absolute; left: 0; bottom: 0; width: 160px; height: 1px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(143, 163, 184, .75) 35%, rgba(213, 189, 141, .95) 70%, transparent); }
@keyframes orbit-trace { 0% { transform: translateX(-160px); opacity: 0; } 12%, 82% { opacity: .85; } 100% { transform: translateX(100vw); opacity: 0; } }
@media (min-width: 761px) and (min-height: 600px) and (forced-colors: none) {
  .site-bar { position: fixed; top: 0; left: 0; right: 0; overflow-x: clip; }
  .hero, .page-head { padding-top: var(--bar-h); }          /* the bar's space stays reserved: no layout jump */
  .hero { z-index: 10; }
  .site-bar.is-band::before { opacity: 1; }
  .site-bar.is-band .bar { height: var(--bar-compact); }
  .site-bar.is-band .brand { transform: scale(.86); }
  .site-bar.no-anim, .site-bar.no-anim *, .site-bar.no-anim::before { transition: none !important; }
  html { scroll-padding-top: calc(var(--bar-compact) + 16px); }
  .rail, .sec-side, .legacy #pickup_left, .alum-y, .year-num { top: calc(var(--bar-compact) + 24px); }
  .rail { max-height: calc(100vh - var(--bar-compact) - 48px); }
  .rail.rail-strip { top: var(--bar-compact); }
}
@media (min-width: 761px) and (min-height: 600px) and (forced-colors: none) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-bar.is-band .bar-trace { animation: orbit-trace 12s linear infinite; }
  html.page-hidden .bar-trace { animation-play-state: paused; }
}
/* Nav: one gold beam glides under the hovered or focused item and rests under the current page (site.js part 12) */
.site-nav { position: relative; }
.site-nav a { transition: color 200ms var(--ease), transform 180ms var(--ease); }
.site-nav .ja { transition: color 200ms var(--ease); }
.site-nav a:hover .ja, .site-nav a:focus-visible .ja { color: rgba(235, 233, 227, .92); }
.nav-beam { position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; pointer-events: none; background: var(--accent);
  box-shadow: 0 0 9px rgba(217, 192, 144, .3), 0 0 3px var(--accent); transition: transform 300ms var(--ease), width 300ms var(--ease); }
.site-nav.beam-ready a::after { display: none; }
@media (min-width: 1061px) and (hover: hover) and (prefers-reduced-motion: no-preference) { .site-nav a:hover { transform: translateY(-1px); } }
/* MENU ⇄ 閉じる, and the menu sliding in with its items staggered */
.menu-button { display: none; }
.menu-button .mb-open, .menu-button .mb-close { grid-area: 1 / 1; transition: opacity 200ms var(--ease); }
.menu-button .mb-close { opacity: 0; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; }
.menu-button[aria-expanded="true"] .mb-open { opacity: 0; }
.menu-button[aria-expanded="true"] .mb-close { opacity: 1; }
@media (max-width: 1060px) {
  .menu-button { display: inline-grid; justify-items: end; }
  .site-nav { position: absolute; top: 100%; display: block; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s; }
  .site-nav li { opacity: 0; transform: translateY(-4px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
  .site-nav.is-open li { opacity: 1; transform: none; }
  .site-nav.is-open li:nth-child(2) { transition-delay: 30ms; } .site-nav.is-open li:nth-child(3) { transition-delay: 60ms; }
  .site-nav.is-open li:nth-child(4) { transition-delay: 90ms; } .site-nav.is-open li:nth-child(5) { transition-delay: 120ms; }
  .site-nav.is-open li:nth-child(6) { transition-delay: 150ms; } .site-nav.is-open li:nth-child(7) { transition-delay: 180ms; }
  .site-nav.is-open li:nth-child(8) { transition-delay: 210ms; }
  .site-bar .bar { position: static; }      /* the dropdown hangs from the whole bar (full width) */
}
/* Page-to-page: the header stays still while the page crossfades */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .site-bar .bar, .site-bar::before, .brand, .nav-beam, .site-nav, .site-nav a, .site-nav li, .menu-button span { transition: none !important; }
  .bar-trace { animation: none !important; }
}
@media print { .site-bar { position: static; } .site-bar::before, .bar-trace, .nav-beam { display: none; } }
/* The hero's bottom row: the tagline with the site credit under it (static; it fades only with the row) */
.hero-tag { display: flex; flex-direction: column; gap: 4px; }
.hero-credit { font: 400 11px/1.6 var(--latin); letter-spacing: .04em; color: inherit; }
.hero-credit-name { color: var(--accent); font-weight: 500; white-space: nowrap; }
@media (max-width: 640px) { .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; } }
/* A member without a photo: the square keeps its size and shows only a faint field of engraved star dots and one gold bead */
/* No photo: a small engraved plate (a faint paper tone, two orbits, a few stars), no border, so the gap reads as intentional */
.m-photo-none { aspect-ratio: 1; background: radial-gradient(closest-side, rgba(31, 35, 43, .045), rgba(31, 35, 43, .025)); }
.m-photo-none svg { display: block; width: 100%; height: 100%; }
.m-photo-none .orbit { fill: none; stroke: var(--text); stroke-opacity: .16; stroke-width: .35; }
.m-photo-none .orbit-2 { stroke-opacity: .11; stroke-dasharray: .6 1.6; }
.m-photo-none .dots circle { fill: var(--text); opacity: .2; }
.m-photo-none .sun { fill: var(--accent); opacity: .55; }
.m-photo-none .bead { fill: var(--accent); opacity: .85; }
/* The credit's name links to the maker's own site: gold at rest; on hover a 1px underline and the gold glow */
a.foot-credit-name, a.hero-credit-name { color: var(--accent); text-decoration: underline 1px transparent; text-underline-offset: 3px; transition: text-decoration-color 200ms var(--ease), text-shadow 200ms var(--ease); }
a.foot-credit-name:hover, a.foot-credit-name:focus-visible, a.hero-credit-name:hover, a.hero-credit-name:focus-visible { color: var(--accent); text-decoration-color: currentColor; text-shadow: var(--glow-gold); }
@media (prefers-reduced-motion: reduce) { a.foot-credit-name, a.hero-credit-name { transition: none; } }

/* Member meta values (所属・進学予定 …) break between phrases too, never mid-word (「修士課程」) */
.m-meta dd { word-break: keep-all; word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }
