/* =====================================================================
   構造創生研究室 — style.css（DN-Archi のサイトと共通の骨格）
   Palette
     --paper   #F2F3F1  コンクリートの明るいグレー（地）
     --sheet   #FFFFFF  紙面
     --ink     #17191B  文字
     --steel   #5C6369  補助文字
     --rule    #CDD1D2  罫線
     --force   #F18D00  荷重（図・強調線のみ。文字色には使わない）
   ===================================================================== */

:root {
  --paper: #F2F3F1;
  --sheet: #FFFFFF;
  --ink: #17191B;
  --steel: #5C6369;
  --rule: #CDD1D2;
  --force: #F18D00;

  --latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--force); color: #fff; }

.latin { font-family: var(--latin); letter-spacing: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.todo { color: var(--steel); border-bottom: 1px dashed var(--force); }

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-solid, body:not(.home) .site-header {
  background: rgba(242, 243, 241, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: baseline; gap: 14px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  font-family: var(--latin); font-weight: 650; font-stretch: 125%;
  font-size: 21px; letter-spacing: -.01em; line-height: 1;
}
.logo-img { height: 46px; width: auto; display: block; align-self: center; }
.foot-brand .logo-img { height: 56px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.logo-sub { font-size: 11px; color: var(--steel); letter-spacing: .12em; line-height: 1; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a {
  font-family: var(--latin); font-weight: 500; font-stretch: 112%;
  font-size: 14.5px; letter-spacing: .01em; padding: 6px 0; position: relative;
}
.nav a:hover { text-decoration: none; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--force);
  transition: right .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

.menu-btn { display: none; font-family: var(--latin); font-weight: 500; font-stretch: 112%; font-size: 15px; padding: 8px 0; }

@media (max-width: 860px) {
  .logo-sub { display: none; }
  .logo-img { height: 38px; }
  .menu-btn { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--paper);
    display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
    visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { font-size: clamp(36px, 11vw, 56px); font-weight: 400; font-stretch: 118%; line-height: 1.25; }
  body.menu-open .nav { visibility: visible; opacity: 1; transition: opacity .25s ease; }
  body.menu-open { overflow: hidden; }
}

/* ---------------------------------------------------------------------
   Hero（トップページ：シェル構造の応答解析アニメーション）
   --------------------------------------------------------------------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  background: var(--paper); overflow: hidden;
}
#hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
#hero-canvas.dragging { cursor: grabbing; }
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px);
  pointer-events: none;
}
.hero-copy h1 {
  margin: 0; font-weight: 500; font-size: clamp(27px, 4vw, 58px); line-height: 1.45; letter-spacing: .06em;
}
.hero-copy p {
  margin: 18px 0 0; font-family: var(--latin); font-stretch: 112%; font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: .005em; color: var(--steel); line-height: 1.5;
}
.readout {
  position: absolute; top: calc(var(--header-h) + 20px); right: var(--gutter); width: 290px;
  font-family: var(--latin); font-variant-numeric: tabular-nums; font-size: 12.5px; line-height: 1.75;
  color: var(--steel); text-align: right; pointer-events: none; letter-spacing: .01em;
  background: rgba(242, 243, 241, .9); padding: 10px 12px 12px; margin: -10px -12px 0 0; border-radius: 3px;
  border: 1px solid rgba(205, 209, 210, .8);
}
.readout > span, .readout > b { display: block; min-height: 1.75em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout b { display: block; font-family: var(--jp); font-weight: 500; color: var(--ink); letter-spacing: .06em; font-size: 13px; }
.readout #ro-l1 { font-family: var(--jp); letter-spacing: .04em; }
.readout .ro-scale { color: var(--steel); font-size: 11.5px; }
.colorbar { margin-top: 10px; opacity: 0; transition: opacity .3s ease; }
.cb-title { display: block; font-family: var(--jp); font-size: 11px; letter-spacing: .04em; margin-bottom: 4px; }
.cb-bar { display: flex; height: 9px; }
.cb-bar i { flex: 1; }
.cb-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink); margin-top: 2px; }
.amp-ctl { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; pointer-events: auto; font-family: var(--jp); font-size: 11.5px; letter-spacing: .04em; }
.amp-ctl input { width: 120px; accent-color: var(--ink); cursor: pointer; }
.amp-ctl output { min-width: 3.4em; text-align: right; font-family: var(--latin); font-variant-numeric: tabular-nums; color: var(--ink); }
.pd { margin-top: 12px; }
.pd canvas { display: block; width: 100%; height: 150px; }
.pd-title { display: block; font-family: var(--jp); font-size: 11px; letter-spacing: .02em; margin-bottom: 4px; }
.wave { margin-top: 12px; }
.wave[hidden] { display: none; }
.wave canvas { display: block; width: 100%; height: 44px; }
.wave span { display: block; font-family: var(--jp); font-size: 11px; letter-spacing: .04em; }
.eq-menu {
  position: absolute; z-index: 20; min-width: 248px; width: min(330px, calc(100% - 16px)); background: var(--sheet); border: 1px solid var(--ink);
  border-radius: 2px; padding: 6px 0; box-shadow: 0 8px 24px rgba(23, 25, 27, .12);
}
.eq-menu[hidden] { display: none; }
.eq-head { margin: 0; padding: 4px 14px 8px; font-size: 11.5px; color: var(--steel); letter-spacing: .06em; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.eq-menu button { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 14px; text-align: left; font-size: 14px; letter-spacing: .04em; }
.eq-menu button small { font-size: 11px; color: var(--steel); letter-spacing: .02em; white-space: nowrap; }
.eq-menu button:hover, .eq-menu button:focus-visible { background: var(--paper); outline: none; }
.eq-menu button:focus-visible span { text-decoration: underline; }
.eq-menu .eq-stop { border-top: 1px solid var(--rule); margin-top: 4px; color: var(--steel); }
.eq-mat { display: flex; align-items: center; gap: 6px; padding: 2px 14px 8px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; font-size: 11.5px; color: var(--steel); }
.eq-mat > span { margin-right: 4px; letter-spacing: .06em; }
.eq-menu .eq-mat button { display: inline-block; width: auto; padding: 4px 10px; font-size: 12.5px; border: 1px solid var(--rule); border-radius: 2px; letter-spacing: .02em; }
.eq-menu .eq-mat button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.eq-group { margin: 6px 0 0; padding: 6px 14px 2px; font-size: 11px; color: var(--steel); letter-spacing: .06em; border-top: 1px solid var(--rule); }
.eq-note { margin: -2px 0 4px; padding: 0 14px 6px; font-size: 11px; color: var(--steel); line-height: 1.5; }
#hero-canvas.grabbing { cursor: grabbing; }
.truss { position: absolute; z-index: 3; top: calc(var(--header-h) + 16px); left: var(--gutter); width: min(580px, 38vw); }
.truss canvas { display: block; width: 100%; height: min(290px, 32vh); touch-action: none; }
.truss-cap { margin: 2px 0 0; font-size: 11.5px; line-height: 1.65; color: var(--steel); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.truss-cap b { font-weight: 500; color: var(--ink); }
.truss-cap .tr-alert { color: #C62A1C; }
.tr-key i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin: 0 4px 0 0; }
.tr-key .k-t { background: rgb(31, 72, 210); }
.tr-key .k-c { background: rgb(225, 45, 35); margin-left: 8px; }
@media (max-width: 900px), (max-height: 680px) { .truss { display: none; } }
.hero-hint {
  position: absolute; right: var(--gutter); bottom: clamp(32px, 7vh, 72px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font-size: 12px; color: var(--steel); text-align: right; line-height: 1.6;
}
.eq-btn {
  font-size: 13px; letter-spacing: .06em; color: var(--ink); padding: 7px 14px;
  border: 1px solid var(--ink); border-radius: 999px; background: rgba(255, 255, 255, .6);
}
.eq-btn:hover { background: var(--ink); color: var(--paper); }
.hint-model { font-family: var(--latin); font-size: 11px; letter-spacing: 0; color: var(--steel); }
@media (max-width: 700px) {
  .readout { top: calc(var(--header-h) + 8px); font-size: 11px; width: 190px; line-height: 1.6; }
  .readout .wave, .readout #ro-l1, .pd-title { display: none !important; }
  .pd canvas { height: 110px; }
  .amp-ctl input { width: 84px; }
  .hint-text, .hint-model { display: none; }
  .hero-hint { bottom: auto; top: calc(var(--header-h) + 8px); left: var(--gutter); right: auto; align-items: flex-start; }
}

/* ---------------------------------------------------------------------
   Sections / headings
   --------------------------------------------------------------------- */
main { display: block; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section + .section { padding-top: 0; }
main > .section:last-child { padding-bottom: 0; }
.section.on-sheet { background: var(--sheet); padding-top: clamp(80px, 12vw, 160px); }

.sec-head { display: flex; align-items: baseline; gap: 18px; margin: 0 0 clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.sec-head h2 {
  margin: 0; font-family: var(--latin); font-weight: 400; font-stretch: 122%;
  font-size: clamp(36px, 5.2vw, 72px); letter-spacing: -.02em; line-height: 1;
}
.sec-head .ja { font-size: 13px; color: var(--steel); letter-spacing: .14em; }
.sec-head .more { margin-left: auto; font-size: 14px; }

/* page head（下層ページ） */
.page-head { padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 80px); }
.page-head h1 {
  margin: 0; font-family: var(--latin); font-weight: 300; font-stretch: 125%;
  font-size: clamp(54px, 10vw, 148px); letter-spacing: -.035em; line-height: .92;
}
.page-head .ja { display: block; margin-top: 18px; font-size: 14px; color: var(--steel); letter-spacing: .16em; }
.page-head .lead { max-width: 38em; margin: 28px 0 0; font-size: 16px; }

/* ---------------------------------------------------------------------
   Home: statement
   --------------------------------------------------------------------- */
.statement { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
.statement h2 {
  grid-column: 1 / 8; margin: 0; font-weight: 500;
  font-size: clamp(24px, 3vw, 42px); line-height: 1.6; letter-spacing: .06em;
}
.statement .body { grid-column: 8 / 13; padding-top: .6em; }
.statement .body p { margin: 0 0 1.4em; }
@media (max-width: 900px) {
  .statement h2, .statement .body { grid-column: 1 / -1; }
  .statement .body { padding-top: 28px; }
}

/* Home: capability matrix */
.capability { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
.capability h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--steel); letter-spacing: .14em; }
.capability h3 .latin { font-stretch: 112%; margin-right: 10px; color: var(--ink); font-size: 15px; }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.cap-list li {
  display: grid; grid-template-columns: 11em 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0 17px; border-bottom: 1px solid var(--rule);
}
.cap-list .name { font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.cap-list .desc { font-size: 13.5px; color: var(--steel); line-height: 1.8; }
@media (max-width: 900px) {
  .capability { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 520px) {
  .cap-list li { grid-template-columns: 1fr; gap: 2px; }
}

/* Home: research */
.research { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); align-items: end; }
.research .big {
  grid-column: 1 / 7; margin: 0; font-family: var(--latin); font-weight: 300; font-stretch: 125%;
  font-size: clamp(40px, 6vw, 92px); line-height: .95; letter-spacing: -.03em;
}
.research .body { grid-column: 7 / 13; }
.research .body p { margin: 0 0 1.2em; }
@media (max-width: 900px) { .research .big, .research .body { grid-column: 1 / -1; } .research .body { margin-top: 32px; } }

/* ---------------------------------------------------------------------
   Works grid
   --------------------------------------------------------------------- */
.works-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px);
}
@media (max-width: 1000px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .works-grid { grid-template-columns: 1fr; } }
.work-card a { display: block; }
.work-card a:hover { text-decoration: none; }
.work-card .ph { aspect-ratio: 4 / 3; background: #E1E4E3; overflow: hidden; }
.work-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.work-card .t { margin: 14px 0 2px; font-size: 16px; font-weight: 500; letter-spacing: .05em; line-height: 1.55; }
.work-card a:hover .t { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.work-card .meta { margin: 0; font-size: 12.5px; color: var(--steel); line-height: 1.7; }
.work-card .meta span + span::before { content: "／"; margin: 0 .2em; color: var(--rule); }

/* Works filter */
.filter { border-top: 1px solid var(--ink); margin-bottom: clamp(36px, 5vw, 56px); }
.filter-bar { display: flex; align-items: stretch; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.facet-tab {
  padding: 14px 22px 13px 0; margin-right: 22px; font-size: 14px; letter-spacing: .08em; position: relative;
  color: var(--steel);
}
.facet-tab .latin { font-stretch: 112%; color: var(--ink); margin-right: 8px; font-size: 14.5px; }
.facet-tab[aria-selected="true"] { color: var(--ink); }
.facet-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--force); }
.view-switch { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 13px; }
.view-switch button { color: var(--steel); padding: 6px 0; }
.view-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1px; }
.facet-values { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 18px 0 20px; border-bottom: 1px solid var(--rule); }
.facet-values[hidden] { display: none; }
.fv { font-size: 14px; letter-spacing: .05em; padding: 2px 0; color: var(--ink); }
.fv sup { font-family: var(--latin); font-size: 10.5px; color: var(--steel); margin-left: 3px; letter-spacing: 0; }
.fv:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.fv[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--force); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.filter-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 14px 0 0; font-size: 13px; color: var(--steel); min-height: 44px; }
.filter-status .count { font-family: var(--latin); font-variant-numeric: tabular-nums; color: var(--ink); font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 12.5px; color: var(--ink); }
.chip .k { color: var(--steel); }
.chip .x { font-family: var(--latin); font-size: 14px; line-height: 1; }
.chip:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.chip:hover .k { color: var(--rule); }
.clear-all { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
@media (max-width: 600px) {
  .facet-tab { margin-right: 18px; padding-right: 0; }
  .facet-tab .latin { display: none; }
}
.empty { padding: 64px 0; color: var(--steel); }

/* Works index (list view) */
.works-index { width: 100%; border-collapse: collapse; font-size: 14px; }
.works-index th { text-align: left; font-weight: 500; font-size: 12px; color: var(--steel); letter-spacing: .1em; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.works-index td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; line-height: 1.6; }
.works-index tbody tr { cursor: pointer; }
.works-index tbody tr:hover td { background: var(--sheet); }
.works-index .c-title a { font-weight: 500; }
.works-index .c-num { font-family: var(--latin); font-variant-numeric: tabular-nums; color: var(--steel); white-space: nowrap; }
@media (max-width: 760px) {
  .works-index .c-hide { display: none; }
}

/* ---------------------------------------------------------------------
   Work detail
   --------------------------------------------------------------------- */
.work-head { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(28px, 4vw, 44px); }
.crumbs { font-size: 13px; color: var(--steel); margin: 0 0 22px; }
.crumbs a { color: var(--ink); }
.crumbs span { margin: 0 .5em; color: var(--rule); }
.work-head h1 { margin: 0; font-weight: 500; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.3; letter-spacing: .05em; }
.work-head .en { margin: 10px 0 0; font-family: var(--latin); font-stretch: 112%; color: var(--steel); font-size: clamp(15px, 1.4vw, 19px); letter-spacing: 0; }

.work-cover { margin: 0 0 clamp(48px, 7vw, 96px); }
.work-cover img { width: 100%; max-height: 86vh; object-fit: cover; background: #E1E4E3; cursor: zoom-in; }

.work-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
.work-data { grid-column: 1 / 6; margin: 0; border-top: 1px solid var(--ink); }
.work-data > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.7; }
.work-data dt { color: var(--steel); font-size: 12.5px; letter-spacing: .1em; padding-top: .1em; }
.work-data dd { margin: 0; }
.work-data dd a.tag { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .3em; }
.work-data dd a.tag:hover { text-decoration-color: var(--force); }
.work-data dd a.tag + a.tag { margin-left: .9em; }
.work-text { grid-column: 7 / 13; font-size: 15.5px; }
.work-body.no-text .work-data { grid-column: 1 / 9; }
.work-body.no-text .work-text { display: none; }
.work-text p { margin: 0 0 1.5em; max-width: 34em; }
@media (max-width: 900px) { .work-data, .work-text { grid-column: 1 / -1; } .work-text { margin-top: 40px; } }

.gallery { margin: clamp(64px, 9vw, 128px) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.gallery figure { margin: 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; background: #E1E4E3; cursor: zoom-in; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(80px, 10vw, 140px); padding: 24px 0; border-top: 1px solid var(--ink); font-size: 14px; }
.pager .next { text-align: right; }
.pager .lbl { display: block; font-size: 12px; color: var(--steel); letter-spacing: .1em; }
.pager .mid { font-family: var(--latin); font-stretch: 112%; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(23, 25, 27, .96); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox button { position: absolute; color: #fff; font-family: var(--latin); font-stretch: 112%; font-size: 14px; padding: 14px; }
.lightbox .lb-close { top: 10px; right: calc(var(--gutter) - 14px); }
.lightbox .lb-prev { left: calc(var(--gutter) - 14px); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: calc(var(--gutter) - 14px); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #B9BEC1; font-family: var(--latin); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   Member
   --------------------------------------------------------------------- */
.principal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); padding-bottom: clamp(64px, 9vw, 120px); }
.principal .who { grid-column: 1 / 6; }
.principal .about { grid-column: 6 / 13; }
.person-name { margin: 0; font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: .14em; line-height: 1.3; }
.person-roman { margin: 6px 0 0; font-family: var(--latin); font-stretch: 112%; color: var(--steel); font-size: 15px; letter-spacing: 0; }
.person-role { margin: 18px 0 0; font-size: 13.5px; line-height: 1.9; }
.principal .about p { margin: 0 0 1.4em; font-size: 15.5px; max-width: 36em; }
.career { list-style: none; margin: 28px 0 0; padding: 0; font-size: 13.5px; border-top: 1px solid var(--rule); }
.career li { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); line-height: 1.65; }
.career time { font-family: var(--latin); font-variant-numeric: tabular-nums; color: var(--steel); letter-spacing: 0; }
@media (max-width: 900px) { .principal .who, .principal .about { grid-column: 1 / -1; } .principal .about { margin-top: 36px; } }

.corep { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); padding-bottom: clamp(64px, 9vw, 120px); }
.person-text { margin: 22px 0 0; font-size: 14.5px; line-height: 1.95; max-width: 34em; }
@media (max-width: 900px) { .corep { grid-template-columns: 1fr; gap: 64px; } }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(48px, 6vw, 80px) var(--gutter); border-top: 1px solid var(--ink); padding-top: clamp(40px, 5vw, 64px); }
.members .person-name { font-size: clamp(24px, 2.4vw, 32px); }
@media (max-width: 1000px) { .members { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .members { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Generic content (Company / Recruit / Software / Contact)
   --------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); }
.split > .side { grid-column: 1 / 4; }
.split > .main { grid-column: 4 / 13; }
.split + .split { margin-top: clamp(72px, 10vw, 128px); }
.split h2 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .12em; }
.split h2 .latin { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; font-stretch: 118%; letter-spacing: -.01em; margin-bottom: 6px; }
@media (max-width: 900px) { .split > .side, .split > .main { grid-column: 1 / -1; } .split > .side { margin-bottom: 28px; } }

.dl { margin: 0; border-top: 1px solid var(--ink); }
.dl > div { display: grid; grid-template-columns: 10em 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.dl dt { color: var(--steel); font-size: 13px; letter-spacing: .1em; padding-top: .15em; }
.dl dd { margin: 0; }
.dl dd p { margin: 0 0 .6em; }
.dl dd p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .dl > div { grid-template-columns: 1fr; gap: 2px; } }

.prose p { margin: 0 0 1.4em; max-width: 38em; font-size: 15.5px; }
.prose h3 { font-size: 17px; font-weight: 500; margin: 2.2em 0 .6em; letter-spacing: .06em; }

.map { margin-top: 28px; aspect-ratio: 16 / 8; background: #E1E4E3; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
@media (max-width: 600px) { .map { aspect-ratio: 4 / 3; } }

/* Software: analysis table */
.ana-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ana-table th, .ana-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.75; }
.ana-table thead th { font-size: 12px; font-weight: 500; color: var(--steel); letter-spacing: .1em; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.ana-table td:first-child { font-weight: 500; white-space: nowrap; }
.ana-table .en { display: block; font-family: var(--latin); font-weight: 400; font-stretch: 108%; font-size: 12px; color: var(--steel); letter-spacing: 0; }
@media (max-width: 640px) { .ana-table td:first-child { white-space: normal; } }

/* Contact form */
.form { display: grid; gap: 22px; max-width: 640px; }
.form label { display: block; font-size: 13px; color: var(--steel); letter-spacing: .1em; margin-bottom: 6px; }
.form label .req { color: var(--ink); margin-left: .5em; font-size: 11.5px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); letter-spacing: .03em;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 12px 14px;
}
.form textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--paper); padding: 15px 28px; border-radius: 2px; font-size: 14.5px; letter-spacing: .08em;
  justify-self: start;
}
.btn:hover { background: #000; text-decoration: none; }
.form-note { font-size: 12.5px; color: var(--steel); margin: 0; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C9CDD0; padding: clamp(64px, 8vw, 104px) 0 32px; margin-top: clamp(80px, 12vw, 160px); font-size: 13.5px; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--gutter); }
.foot-brand { grid-column: 1 / 6; }
.foot-brand .logo-mark { color: #fff; font-size: 30px; display: block; margin-bottom: 18px; }
.foot-brand p { margin: 0; line-height: 1.9; }
.foot-nav { grid-column: 7 / 10; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav a { font-family: var(--latin); font-stretch: 112%; font-size: 15px; line-height: 2.1; }
.foot-contact { grid-column: 10 / 13; line-height: 1.9; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); padding-top: 20px; border-top: 1px solid #3A3E42; font-family: var(--latin); font-size: 12px; color: #8E959A; letter-spacing: .01em; }
@media (max-width: 900px) {
  .foot-brand { grid-column: 1 / -1; }
  .foot-nav { grid-column: 1 / 7; }
  .foot-contact { grid-column: 7 / 13; }
}
@media (max-width: 520px) { .foot-nav, .foot-contact { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 弾塑性解析の凡例 */
.cb-legend { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--jp); font-size: 10.5px; letter-spacing: .02em; }
.cb-legend i { display: inline-block; margin-left: 8px; }
.cb-legend .lg-top { width: 14px; height: 0; border-top: 1.5px solid rgba(23,25,27,.85); }
.cb-legend .lg-bot { width: 14px; height: 0; border-top: 1.5px solid rgba(23,25,27,.3); }
.cb-legend .lg-yield { width: 6px; height: 6px; border-radius: 50%; background: var(--force); }


/* =====================================================================
   構造創生研究室 — ここから研究室サイト固有のスタイル
   ===================================================================== */

/* ロゴ（マーク＋文字） */
.logo { align-items: center; gap: 12px; }
.logo-mark { display: block; color: var(--ink); line-height: 0; font-size: 0; }
.logo-mark svg { display: block; }
.logo-mark .m-fill { fill: var(--ink); }
.logo-mark .m-grid { stroke: var(--paper); }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo-ja { font-size: 15.5px; font-weight: 500; letter-spacing: .16em; line-height: 1.1; }
.logo-en { font-family: var(--latin); font-size: 11px; font-stretch: 112%; color: var(--steel); letter-spacing: .01em; line-height: 1; }
.site-footer .logo { margin-bottom: 18px; }
.site-footer .logo:hover { text-decoration: none; }
.site-footer .logo-mark .m-fill { fill: var(--paper); }
.site-footer .logo-mark .m-grid { stroke: var(--ink); }
.site-footer .logo-mark svg { width: 76px; height: 44px; }
.site-footer .logo-ja { color: #fff; font-size: 17px; }
.site-footer .logo-en { color: #8E959A; }
.foot-links { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid #3A3E42; font-size: 12.5px; line-height: 1.9; }
@media (max-width: 860px) { .logo-ja { font-size: 14px; } .logo-mark svg { width: 48px; height: 28px; } }

/* ---------------------------------------------------------------------
   Hero：トポロジー最適化アプリ
   --------------------------------------------------------------------- */
#topo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
#topo-canvas.dragging { cursor: grabbing; }
.topo-panel { pointer-events: auto; width: 300px; }
.topo-panel .seg { display: flex; justify-content: flex-end; margin: 6px 0 8px; }
.topo-panel .seg button {
  font-family: var(--jp); font-size: 12.5px; letter-spacing: .04em; padding: 5px 11px;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); margin-left: -1px;
}
.topo-panel .seg button:first-child { border-radius: 2px 0 0 2px; }
.topo-panel .seg button:last-child { border-radius: 0 2px 2px 0; }
.topo-panel .seg button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); border-color: var(--ink); position: relative; }
.topo-panel .pd canvas { height: 64px; }
.topo-panel select {
  font: inherit; font-family: var(--latin); font-size: 12px; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 2px; padding: 2px 4px;
}
.topo-panel .amp-ctl output { min-width: 6.4em; font-family: var(--jp); font-size: 11px; color: var(--ink); }
.topo-panel .amp-ctl[hidden] { display: none; }
.ro-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ro-btns button {
  font-family: var(--jp); font-size: 12px; letter-spacing: .06em; padding: 4px 12px;
  border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: transparent;
}
.ro-btns button:hover { background: var(--ink); color: var(--paper); }
.ro-btns button:disabled { opacity: .35; pointer-events: none; }
.hero-copy h1 { font-size: clamp(26px, 3.6vw, 52px); }
.hero-copy .sub { margin-top: 14px; }
.hero-copy .aff { display: block; font-family: var(--jp); font-size: 12.5px; letter-spacing: .1em; color: var(--steel); margin-top: 6px; font-stretch: normal; }
@media (max-width: 700px) {
  .topo-panel { width: auto; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 6px); margin: 0; padding: 8px 10px; text-align: left; }
  .topo-panel > span, .topo-panel > b { white-space: normal; }
  .topo-panel .seg { justify-content: flex-start; margin: 4px 0; }
  .topo-panel #ro-l1, .topo-panel #ro-l3, .topo-panel .pd, .topo-panel .amp-ctl, .topo-panel .ro-btns { display: none !important; }
  .topo-panel b { display: inline-block; margin-right: 8px; }
  .hero.topo .hero-hint { top: auto; bottom: clamp(32px, 7vh, 72px); left: auto; right: var(--gutter); align-items: flex-end; }
  .hero.topo .hero-copy { bottom: calc(clamp(32px, 7vh, 72px) + 46px); }
}

/* Home：研究室紹介 */
.statement .body .sign { color: var(--steel); font-size: 13.5px; }
.news-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 4vw, 48px) clamp(16px, 2vw, 28px);
}
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .news-grid { grid-template-columns: 1fr; } }
.news-card a { display: block; }
.news-card a:hover { text-decoration: none; }
.news-card .ph { aspect-ratio: 4 / 3; background: #E1E4E3; overflow: hidden; display: flex; align-items: flex-end; }
.news-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card a:hover .ph img { transform: scale(1.03); }
.news-card .ph-empty span { font-size: 54px; font-weight: 300; font-stretch: 125%; color: #fff; padding: 0 12px 4px; line-height: 1; }
.news-card .meta { margin: 14px 0 2px; font-size: 12px; color: var(--steel); display: flex; gap: 12px; align-items: baseline; }
.news-card .meta time { font-size: 13px; color: var(--ink); }
.cat { font-size: 11.5px; letter-spacing: .08em; color: var(--steel); border: 1px solid var(--rule); border-radius: 999px; padding: 0 9px; line-height: 1.8; white-space: nowrap; }
.news-card .t { margin: 6px 0 0; font-size: 15px; font-weight: 500; letter-spacing: .04em; line-height: 1.65; }
.news-card a:hover .t { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }

/* News 一覧 */
.fv-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 14px 32px 14px 0; }
.fv-group .k { font-size: 12px; color: var(--steel); letter-spacing: .12em; margin-right: 4px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news-list li { border-bottom: 1px solid var(--rule); }
.news-list a { display: grid; grid-template-columns: 7.5em 8.5em 1fr 120px; gap: 20px; align-items: center; padding: 18px 0; }
.news-list a:hover { text-decoration: none; background: var(--sheet); }
.news-list time { font-size: 14px; color: var(--steel); font-variant-numeric: tabular-nums; padding-left: 4px; }
.news-list .cat { justify-self: start; }
.news-list .t { font-size: 16px; font-weight: 500; letter-spacing: .04em; line-height: 1.6; }
.news-list a:hover .t { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.news-list .th { width: 120px; aspect-ratio: 4 / 3; background: #E1E4E3; overflow: hidden; }
.news-list .th:empty { background: transparent; }
.news-list .th img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .news-list a { grid-template-columns: 1fr 88px; grid-template-areas: "d th" "t th"; gap: 4px 16px; }
  .news-list time { grid-area: d; padding: 0; }
  .news-list .cat { display: none; }
  .news-list .t { grid-area: t; font-size: 15px; }
  .news-list .th { grid-area: th; width: 88px; }
}

/* News 記事 */
.article-head { padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(28px, 4vw, 48px); max-width: 52em; }
.article-head .date { margin: 0 0 10px; font-size: 15px; color: var(--steel); font-variant-numeric: tabular-nums; }
.article-head h1 { margin: 0; font-weight: 500; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.5; letter-spacing: .05em; }
.article-body { max-width: 46em; font-size: 15.5px; border-top: 1px solid var(--ink); padding-top: clamp(28px, 4vw, 44px); }
.article-body p { margin: 0 0 1.5em; }
.article-body a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .25em; }
.article-body a:hover { text-decoration-color: var(--force); }
.a-fig { margin: 2.2em 0; }
.a-fig img { width: 100%; height: auto; background: #E1E4E3; cursor: zoom-in; }
.a-fig.multi { display: grid; gap: 12px; }
.a-fig.n2 { grid-template-columns: 1fr 1fr; }
.a-fig.n3 { grid-template-columns: 1fr 1fr 1fr; }
.a-fig.multi img { aspect-ratio: 4 / 3; object-fit: cover; }
.a-fig figcaption { grid-column: 1 / -1; margin-top: 8px; font-size: 12.5px; color: var(--steel); line-height: 1.7; }
@media (max-width: 560px) { .a-fig.n3 { grid-template-columns: 1fr 1fr; } }
.files { list-style: none; margin: 2em 0 0; padding: 0; border-top: 1px solid var(--rule); }
.files li { border-bottom: 1px solid var(--rule); }
.files a { display: flex; gap: 12px; align-items: center; padding: 12px 0; text-decoration: none !important; }
.files a:hover { background: var(--sheet); }
.ext { font-family: var(--latin); font-size: 10.5px; letter-spacing: .04em; color: var(--sheet); background: var(--ink); border-radius: 2px; padding: 0 5px; line-height: 1.7; font-weight: 500; }
.a-gallery { margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.a-gallery figure { margin: 0; }
.a-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #E1E4E3; cursor: zoom-in; }
@media (max-width: 640px) { .a-gallery { grid-template-columns: 1fr 1fr; } }

/* Member */
.faculty { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gutter); padding-bottom: clamp(64px, 9vw, 120px); }
.faculty .who { grid-column: 1 / 5; }
.faculty .about { grid-column: 5 / 13; }
.faculty .photo { width: min(260px, 100%); aspect-ratio: 35 / 26; object-fit: cover; background: #E1E4E3; margin-bottom: 26px; }
.faculty .links { list-style: none; margin: 20px 0 0; padding: 0; font-size: 13.5px; line-height: 2; }
.faculty .links a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .25em; }
.faculty .links a:hover { text-decoration-color: var(--force); }
.faculty .about > p { margin: 0 0 1.4em; font-size: 15.5px; max-width: 36em; }
.faculty .career { margin-top: 8px; }
@media (max-width: 900px) { .faculty .who, .faculty .about { grid-column: 1 / -1; } .faculty .about { margin-top: 36px; } }

.year-tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: clamp(32px, 4vw, 48px); }
.year-tabs button { padding: 12px 24px 11px 0; margin-right: 24px; font-family: var(--latin); font-size: 15px; font-stretch: 112%; color: var(--steel); position: relative; }
.year-tabs button[aria-selected="true"] { color: var(--ink); }
.year-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--force); }
.year-tabs .now { font-size: 10.5px; color: var(--sheet); background: var(--ink); border-radius: 999px; padding: 1px 7px; margin-left: 8px; vertical-align: 2px; letter-spacing: .04em; }
.mem-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 64px) var(--gutter); align-items: start; }
@media (max-width: 900px) { .mem-groups { grid-template-columns: 1fr; } }
.mem-group h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--steel); letter-spacing: .12em; display: flex; align-items: baseline; gap: 10px; }
.mem-group h3 .latin { font-size: clamp(26px, 2.6vw, 34px); font-weight: 400; font-stretch: 118%; color: var(--ink); letter-spacing: -.01em; }
.mem-group h3 .cnt { margin-left: auto; font-size: 12px; }
.mem-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: 14px; }
.mem-table th, .mem-table td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); line-height: 1.7; }
.mem-table tbody th { width: 9.5em; font-weight: 500; }
.mem-table .nm { display: block; font-size: 15px; letter-spacing: .1em; white-space: nowrap; }
.mem-table .rm { display: block; font-size: 11px; color: var(--steel); font-weight: 400; font-stretch: 108%; }
.mem-table .note { display: block; font-size: 11.5px; color: var(--steel); font-weight: 400; letter-spacing: .04em; }
.mem-table .tbd { color: var(--steel); }
.mem-table a.pdf { display: inline; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .28em; }
.mem-table a.pdf:hover { text-decoration-color: var(--force); }
.mem-table a.pdf .ext { margin-left: 8px; vertical-align: 1px; text-decoration: none; display: inline-block; }
.mem-table thead th { font-size: 12px; font-weight: 500; color: var(--steel); letter-spacing: .1em; padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.mem-table.themes { border-top: 0; }
.mem-table.themes .g { width: 4em; color: var(--steel); font-stretch: 112%; }
.mem-table.themes .n { width: 8em; white-space: nowrap; }
@media (max-width: 560px) { .mem-table tbody th { width: 7.5em; } .mem-table .nm { letter-spacing: .04em; } }
.mem-note { margin: 36px 0 0; font-size: 12.5px; color: var(--steel); }

/* Research */
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--gutter); border-top: 1px solid var(--ink); }
.theme { padding: 26px 0 34px; border-bottom: 1px solid var(--rule); }
.theme .no { font-family: var(--latin); font-size: 12px; color: var(--steel); font-variant-numeric: tabular-nums; }
.theme h3 { margin: 6px 0 2px; font-size: 19px; font-weight: 500; letter-spacing: .08em; line-height: 1.5; }
.theme .en { margin: 0 0 14px; font-family: var(--latin); font-stretch: 108%; font-size: 12.5px; color: var(--steel); letter-spacing: 0; }
.theme p { margin: 0 0 14px; font-size: 14px; line-height: 1.9; }
.theme .kw { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.theme .kw li { font-size: 12px; color: var(--steel); border: 1px solid var(--rule); border-radius: 999px; padding: 0 10px; line-height: 1.9; }
@media (max-width: 1000px) { .themes-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .themes-grid { grid-template-columns: 1fr; } }
.method-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); margin: 8px 0 36px; }
.method-figs figure { margin: 0; }
.method-figs svg { width: 100%; height: auto; display: block; background: var(--sheet); border: 1px solid var(--rule); }
.method-figs figcaption { margin-top: 8px; font-size: 12.5px; color: var(--steel); line-height: 1.7; }
@media (max-width: 760px) { .method-figs { grid-template-columns: 1fr; } }
.eq { font-family: "Times New Roman", serif; font-style: italic; font-size: 16px; letter-spacing: .02em; background: var(--sheet); border-left: 2px solid var(--ink); padding: 10px 16px; margin: 0 0 1.4em; overflow-x: auto; white-space: nowrap; }
.eq sub, .eq sup { font-size: 70%; }
.refs { margin: 0; padding-left: 1.2em; font-size: 12.5px; color: var(--steel); line-height: 1.85; }
.refs li { margin-bottom: 4px; }

/* Lab Life */
.lab-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); margin-top: 28px; }
.lab-photos figure { margin: 0; }
.lab-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #E1E4E3; cursor: zoom-in; }
.lab-photos figcaption { font-size: 12px; color: var(--steel); margin-top: 6px; }
@media (max-width: 640px) { .lab-photos { grid-template-columns: 1fr 1fr; } }
.links-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.links-list li { border-bottom: 1px solid var(--rule); }
.links-list a { display: block; padding: 14px 0; }
.links-list a::after { content: "↗"; font-family: var(--latin); color: var(--steel); margin-left: 10px; }
.ro-btns a.ro-help { font-family: var(--jp); font-size: 12px; letter-spacing: .06em; color: var(--steel); align-self: center; margin-right: auto; text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--rule); }
.ro-btns a.ro-help:hover { color: var(--ink); text-decoration-color: var(--force); }
.split > .side, .split > .main { min-width: 0; }
.eq { max-width: 100%; }
#news-app .filter { margin-bottom: 0; }
#news-app .filter-bar { border-bottom: 0; }
.topo-panel .amp-ctl input[type="checkbox"] { width: 14px; height: 14px; }
.ro-legend { display: flex !important; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 8px; font-family: var(--jp); font-size: 10.5px; color: var(--steel); white-space: normal !important; }
.ro-legend .lg-line { display: inline-block; width: 16px; height: 0; border-top: 1px solid #8E959A; }
@media (max-width: 700px) { .topo-panel .ro-legend { display: none !important; } }

/* メールアドレス（画像表示）とフォームの結果表示 */
.mail-img { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; vertical-align: middle; }
.mail-img canvas { display: block; }
.mail-copy {
  font: inherit; font-size: 11.5px; letter-spacing: .08em; color: var(--steel);
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  padding: 2px 10px; cursor: pointer; line-height: 1.6;
}
.mail-copy:hover { color: var(--ink); border-color: var(--ink); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-result { margin: 0; padding: 14px 16px; font-size: 14px; line-height: 1.8; border-left: 2px solid var(--ink); background: rgba(23,25,27,.04); }
.form-result.ng { border-left-color: #B3261E; }
.form-result .form-mail { display: inline-block; margin-top: 6px; }
.btn:disabled { opacity: .55; cursor: default; }
.site-footer .mail-copy { color: rgba(242,243,241,.7); border-color: rgba(242,243,241,.35); }
.site-footer .mail-copy:hover { color: var(--paper); border-color: var(--paper); }
