:root {
  --bg: #08090b;
  --bg-2: #121418;
  --fg: #ffffff;
  --fg-2: rgba(255, 255, 255, .72);
  --mute: rgba(255, 255, 255, .45);
  --line: rgba(255, 255, 255, .14);
  --accent: #3ddc84;
  /* レイアウトツールの層の色。タグや見出しの印に使う */
  --l-diff: #2fbf4a;
  --l-poly: #e5484d;
  --l-m1: #3d7bff;
  --l-m2: #e6b422;
  --l-m3: #b35cff;
  --l-m4: #22c3c3;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --en: "Space Grotesk", system-ui, sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--ja); color: var(--fg); background: var(--bg);
  line-height: 1.9; letter-spacing: .04em; -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 48px;
  padding: 22px var(--gutter);
  transition: background .4s, padding .4s;
}
.site-header.solid { background: rgba(8, 9, 11, .85); backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub { font-family: var(--en); font-size: 10px; letter-spacing: .04em; color: var(--fg-2); }
.brand-name { font-family: var(--en); font-weight: 600; font-size: 26px; letter-spacing: .08em; margin-top: 4px; }
.nav { margin-left: auto; display: flex; gap: 30px; font-family: var(--en); font-weight: 500; font-size: 15px; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent); }
.menu-btn { display: none; }

/* ---------- top hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
.chip-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, .85) 0, rgba(8, 9, 11, 0) 150px),
    linear-gradient(90deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .72) 42%, rgba(8, 9, 11, .1) 78%, rgba(8, 9, 11, 0) 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 1; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-body {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto;
  pointer-events: none;
}
.hero-lab {
  margin: 0 0 28px; display: flex; flex-direction: column; gap: 2px;
  font-size: 13px; letter-spacing: .12em; color: var(--fg-2);
  padding-left: 16px; border-left: 2px solid var(--accent);
  opacity: 0; animation: fade 1s .1s forwards;
}
.hero-lab strong { font-size: clamp(18px, 1.9vw, 24px); font-weight: 700; letter-spacing: .1em; color: var(--fg); }
.hero-title {
  margin: 0; font-family: var(--en); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(48px, 8.4vw, 128px); line-height: 1.12;
}
.hero-title .line { display: block; clip-path: inset(0 100% 0 0); animation: wipe 1.2s cubic-bezier(.7,0,.2,1) forwards; }
.hero-title .line:nth-child(2) { animation-delay: .25s; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.hero-sub { margin: 36px 0 0; font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .3em; font-weight: 500; opacity: 0; animation: fade 1.2s .9s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; pointer-events: auto; opacity: 0; animation: fade 1.2s 1.1s forwards; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 2px; font-size: 14px; font-weight: 500;
  background: rgba(8, 9, 11, .5); backdrop-filter: blur(4px); transition: background .3s, border-color .3s, color .3s;
}
.btn::after { content: "→"; font-family: var(--en); transition: transform .3s; }
.btn:hover { border-color: var(--accent); }
.btn:hover::after { transform: translateX(4px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.scroll-cue {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 0;
  font-family: var(--en); font-size: 12px; letter-spacing: .1em;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px;
}
.scroll-cue::after { content: ""; width: 1px; height: 96px; background: var(--fg); animation: drip 2.2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- page hero（下層ページの帯） ---------- */
.page-hero { position: relative; height: clamp(320px, 46vh, 460px); overflow: hidden; padding: 0; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, .85) 0, rgba(8, 9, 11, .2) 140px),
    linear-gradient(90deg, rgba(8, 9, 11, .92) 0%, rgba(8, 9, 11, .7) 45%, rgba(8, 9, 11, .2) 100%);
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; z-index: 1; height: 45%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.page-hero-body { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 40px; pointer-events: none; }
.crumb { color: var(--mute); margin: 0 0 16px; }
.crumb a { pointer-events: auto; }
.crumb a:hover { color: var(--accent); }
.page-title { font-family: var(--en); font-weight: 500; font-size: clamp(48px, 7vw, 96px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.page-ja { margin: 14px 0 0; font-size: 14px; color: var(--fg-2); letter-spacing: .12em; }

/* ---------- common ---------- */
section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec-en { font-family: var(--en); font-weight: 500; font-size: clamp(44px, 5.6vw, 76px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.sec-ja { margin: 10px 0 0; font-size: 13px; color: var(--fg-2); }
/* 「すべて見る」：四角い端子の中に矢印 */
.more-link {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.more-link::after {
  content: "→"; display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid var(--line); font-family: var(--en); font-size: 15px; transition: background .3s, color .3s, border-color .3s;
}
a:hover > .more-link::after, .more-link:hover::after { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.lead { font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; line-height: 1.9; max-width: 860px; margin: 0; }

/* 層の色のタグ */
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2); white-space: nowrap; }
.tag::before { content: ""; width: 9px; height: 9px; background: var(--c, var(--accent)); box-shadow: 0 0 0 1px var(--c, var(--accent)) inset; opacity: .9; }
.tag-paper { --c: var(--l-m1); }
.tag-talk { --c: var(--l-m2); }
.tag-info { --c: var(--l-diff); }

/* ---------- news list ---------- */
.news-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 160px 1fr auto; gap: 32px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.news-list .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.news-list .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.news-list a:hover .thumb img { transform: scale(1.08); }
.news-list .meta { display: flex; gap: 20px; align-items: center; margin-bottom: 6px; }
.news-list time { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.news-list .ttl { font-size: 15px; line-height: 1.7; }
.news-list a::after { content: "→"; font-family: var(--en); color: var(--mute); transition: transform .3s, color .3s; }
.news-list a:hover::after { color: var(--accent); transform: translateX(4px); }

/* ---------- about（トップ） ---------- */
.about { overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; }
.about-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,11,.94) 0%, rgba(8,9,11,.75) 50%, rgba(8,9,11,.45) 100%); }
.about-body { position: relative; }
.about-lead { font-size: clamp(22px, 2.8vw, 36px); font-weight: 700; line-height: 1.75; margin: 56px 0 32px; }
.about-text { max-width: 640px; color: var(--fg-2); font-size: 15px; margin: 0; }

/* ---------- research axes ---------- */
.sec-head { margin-bottom: 48px; }
.sec-head.row { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 24px; margin-bottom: 72px; }
.sec-head.row .sec-ja { margin: 0 0 6px; }
.sec-head.row .more-link { margin: 0; }
.axis {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.axis:nth-of-type(even) { grid-template-columns: 1fr 1.3fr; }
.axis:nth-of-type(even) .axis-media { order: 2; }
.axis-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.axis-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: brightness(.9); }
.axis:hover .axis-media img { transform: scale(1.05); filter: brightness(1); }
.axis-no { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.axis-no::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--accent); vertical-align: middle; margin-left: 12px; }
.axis-title { font-family: var(--en); font-weight: 500; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; margin: 16px 0 12px; }
.axis-sub { font-weight: 700; margin: 0 0 20px; }
.axis-text { color: var(--fg-2); font-size: 14px; margin: 0; }

/* ---------- link cards ---------- */
.links { padding-top: 0; }
.links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; isolation: isolate; border: 1px solid var(--line); }
.link-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(.7) brightness(.5) contrast(1.1); transition: transform 1s, filter .6s; }
.link-card:hover img { filter: grayscale(0) brightness(.6); transform: scale(1.06); }
.link-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 20%, rgba(8,9,11,.92)); transition: background .4s; }
.link-card:hover::before { background: linear-gradient(rgba(8,9,11,.2), rgba(8,9,11,.95)); }
.link-en { font-family: var(--en); font-weight: 500; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; }
.link-ja { font-size: 13px; color: var(--fg-2); margin-top: 6px; }
.link-card .arrow { position: absolute; right: 24px; bottom: 28px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; font-family: var(--en); transition: background .3s, border-color .3s, color .3s; }
.link-card .arrow::after { content: "→"; }
.link-card:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ---------- contact band ---------- */
.contact { background: var(--bg-2); padding: clamp(64px, 8vw, 110px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact-text { margin: 0; color: var(--fg-2); font-size: 14px; }

/* ---------- prose（本文） ---------- */
.prose { max-width: 860px; }
.prose h2 {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; margin: 72px 0 20px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.prose h2::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; transform: translateY(-3px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--fg-2); font-size: 15px; }
.prose strong { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; }
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 32px 0; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- research page ---------- */
.theme { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.theme-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.theme-head .axis-title { margin-top: 12px; }
.theme-head img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-2); }
.theme-desc { color: var(--fg-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border: 1px solid var(--line); color: var(--fg-2); }
.topics { margin: 48px 0 0; }
.topics h4 { font-size: 13px; color: var(--mute); margin: 0 0 12px; font-weight: 500; letter-spacing: .12em; }
.topics ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topics li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg-2); position: relative; }
.topics li::before { content: ""; position: absolute; left: 4px; top: 25px; width: 8px; height: 8px; border: 1px solid var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 48px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f3f4f6; }
.gallery figcaption { font-size: 12px; color: var(--mute); margin-top: 10px; line-height: 1.7; }

/* ---------- publications ---------- */
.pub-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 56px; position: sticky; top: 64px; z-index: 5; background: rgba(8, 9, 11, .92); backdrop-filter: blur(8px); padding: 14px 0; border-bottom: 1px solid var(--line); }
.pub-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pub-tab { font: 500 13px var(--ja); color: var(--fg-2); background: none; border: 1px solid var(--line); padding: 6px 14px; cursor: pointer; letter-spacing: .04em; }
.pub-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pub-tab span { font-family: var(--mono); font-size: 11px; opacity: .7; margin-left: 6px; }
.pub-search { flex: 1; min-width: 200px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: 14px var(--ja); padding: 8px 2px; outline: none; }
.pub-search:focus { border-bottom-color: var(--accent); }
.pub-total { color: var(--mute); }
.pub-group { margin-bottom: 96px; }
.pub-group > h2 { font-family: var(--en); font-weight: 500; font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; display: flex; align-items: baseline; gap: 16px; }
.pub-group > h2 .mono { color: var(--mute); }
.pub-year { display: grid; grid-template-columns: 120px 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.pub-year > h3 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 20px; color: var(--mute); position: sticky; top: 140px; align-self: start; }
.pub-year ol { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 0 0 22px; }
.pub-abbr { align-self: start; margin-top: 4px; font-family: var(--mono); font-size: 10px; text-align: center; padding: 3px 4px; border: 1px solid var(--c, var(--line)); color: var(--c, var(--fg-2)); overflow-wrap: anywhere; }
.pub[data-kind="journal"] { --c: var(--l-m1); }
.pub[data-kind="intl"] { --c: var(--l-diff); }
.pub[data-kind="invited"] { --c: var(--l-m2); }
.pub[data-kind="domestic"] { --c: var(--l-m3); }
.pub-title { font-weight: 700; font-size: 15px; line-height: 1.6; margin: 0 0 4px; }
.pub-authors { font-size: 13px; color: var(--fg-2); margin: 0; }
.pub-authors b { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.pub-venue { font-size: 13px; color: var(--mute); margin: 2px 0 0; }
.pub-venue em { font-style: normal; color: var(--fg-2); }
.pub-venue a { color: var(--accent); margin-left: 8px; font-family: var(--mono); font-size: 11px; }
.pub-note { color: var(--l-m2); margin-left: 8px; font-size: 12px; }

/* ---------- members ---------- */
.prof { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prof img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.2); }
.prof .role { color: var(--accent); }
.prof h2 { font-size: clamp(28px, 3vw, 40px); margin: 8px 0 0; letter-spacing: .08em; }
.prof .en { font-family: var(--en); color: var(--fg-2); margin: 4px 0 20px; font-size: 16px; }
.prof .degree { color: var(--mute); font-size: 13px; margin: 0 0 24px; }
.prof p { color: var(--fg-2); font-size: 14px; }
.prof dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 14px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.prof dt { color: var(--mute); }
.prof dd { margin: 0; }
.prof dd a { color: var(--accent); }
.member-group { margin-top: 96px; }
.member-group h3 { font-size: 13px; color: var(--mute); font-weight: 500; letter-spacing: .12em; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.member-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.member-cards li { padding: 18px 20px; border: 1px solid var(--line); }
.member-cards b { display: block; font-size: 17px; letter-spacing: .08em; }
.member-cards span { font-family: var(--en); font-size: 13px; color: var(--fg-2); }

/* ---------- company ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.area { border: 1px solid var(--line); padding: 24px; border-top: 2px solid var(--c); }
.area:nth-child(1) { --c: var(--l-m3); }
.area:nth-child(2) { --c: var(--l-m1); }
.area:nth-child(3) { --c: var(--l-diff); }
.area h3 { margin: 0; font-size: 18px; }
.area h3 a { color: var(--fg); text-decoration: none; }
.area h3 a:hover { color: var(--accent); }
.area .mono { color: var(--c); display: block; margin: 4px 0 12px; }
.area ul { padding-left: 1.2em; margin: 0; }
.area li { font-size: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--line); position: relative; margin: 0 !important; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--mono); color: var(--accent); font-size: 13px; }

/* ---------- access ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- news article ---------- */
.article-meta { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.article-meta time { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.article-title { font-size: clamp(24px, 3vw, 36px); line-height: 1.5; margin: 0 0 48px; max-width: 900px; }
.paper { border-left: 2px solid var(--l-m1); padding: 4px 0 4px 20px; margin: 24px 0; }
.paper b { display: block; color: var(--fg); font-size: 16px; line-height: 1.6; }
.paper span { font-size: 13px; color: var(--fg-2); }
.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- footer ---------- */
.site-footer { padding: 80px 0 32px; font-size: 13px; color: var(--fg-2); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 40px; }
.site-footer .brand-name { color: var(--fg); margin: 0 0 16px; }
.footer-org { color: var(--fg); font-weight: 700; margin: 0 0 16px; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; font-family: var(--en); font-size: 14px; }
.foot-nav a:hover { color: var(--accent); }
address { font-style: normal; }
.copy { font-family: var(--mono); font-size: 11px; color: var(--mute); margin: 64px 0 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; width: 8px; height: 8px; background: var(--c); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(10px); transition: opacity 1.1s, transform 1.1s cubic-bezier(.2,.7,.2,1), filter 1.1s; }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-title .line { clip-path: none; animation: none; }
  .hero-sub, .hero-lab, .hero-btns { opacity: 1; animation: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  .site-header { gap: 20px; }
  .menu-btn {
    margin-left: auto; display: flex; flex-direction: column; justify-content: center; gap: 8px;
    width: 44px; height: 44px; background: none; border: 0; color: var(--fg); cursor: pointer; z-index: 2;
  }
  .menu-btn span { display: block; height: 1.5px; background: currentColor; transition: transform .3s; }
  .nav {
    position: fixed; inset: 0; margin: 0; flex-direction: column; justify-content: center; align-items: center; gap: 22px;
    background: var(--bg); font-size: 28px; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
  body.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }
  .brand-name { font-size: 22px; }
  .news-grid, .links-grid, .foot-grid, .theme-head, .prof, .access-grid, .areas { grid-template-columns: 1fr; }
  .news-list a { grid-template-columns: 112px 1fr; gap: 4px 16px; }
  .news-list a::after { display: none; }
  .news-list .ttl { font-size: 14px; }
  .sec-head.row { grid-template-columns: 1fr auto; }
  .sec-head.row .sec-ja { grid-row: 2; }
  .sec-head.row .more-link { grid-row: 1 / 3; grid-column: 2; }
  .axis, .axis:nth-of-type(even) { grid-template-columns: 1fr; gap: 24px; }
  .axis:nth-of-type(even) .axis-media { order: 0; }
  .contact-row { grid-template-columns: 1fr; }
  .about-lead br { display: none; }
  .prof { max-width: 560px; }
  .prof img { max-width: 240px; }
  .pub-year { grid-template-columns: 1fr; gap: 8px; }
  .pub-year > h3 { position: static; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub-abbr { justify-self: start; }
  .pub-tools { top: 56px; }
}
@media (max-width: 860px) {
  /* スマホ：文字を下に寄せ、上半分はレイアウトをそのまま見せる */
  .hero-body { justify-content: flex-end; padding-bottom: 88px; }
  /* 暗くするのは文字のある下側だけ。文字の塊の高さ（約 460px）を下端から測る */
  .hero::before { background: linear-gradient(180deg, rgba(8, 9, 11, .8) 0, rgba(8, 9, 11, 0) 96px, rgba(8, 9, 11, 0) max(96px, calc(100% - 610px)), rgba(8, 9, 11, .85) max(150px, calc(100% - 500px)), rgba(8, 9, 11, .9) 100%); }
  .hero-lab, .hero-title, .hero-sub { text-shadow: 0 0 18px rgba(8, 9, 11, .9); }
  .hero::after { height: 12%; }
}
@media (max-width: 480px) {
  .hero-lab { font-size: 12px; letter-spacing: .06em; }
  .hero-lab strong { font-size: min(16px, 4.1vw); letter-spacing: .04em; white-space: nowrap; }
  .sec-head.row { grid-template-columns: 1fr; }
  .sec-head.row .more-link { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 16px; }
}

/* 写真のないニュースの札：斜線のハッチングに文字 */
.news-list .thumb.ph {
  display: grid; place-items: center; border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, rgba(61, 123, 255, .14) 0 1px, transparent 1px 7px);
}
.news-list .thumb.ph .mono { font-size: 10px; color: var(--fg-2); text-align: center; padding: 0 8px; }

.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* 下層ページ：帯の直後は詰める */
.page-hero + section { padding-top: clamp(40px, 5vw, 64px); }

/* 言語の切り替え */
.lang { font-family: var(--en); font-size: 13px; display: flex; gap: 8px; color: var(--mute); }
.lang a:hover, .lang .on { color: var(--accent); }
.nav-lang { display: none; }
@media (max-width: 960px) {
  .lang { display: none; }
  .nav-lang { display: inline; font-size: 18px; color: var(--mute); }
  html[lang="ja"] .nav-lang[hreflang="ja"], html[lang="en"] .nav-lang[hreflang="en"] { display: none; }
}

/* 英語ページ：日本語向けの広い字間を詰める */
html[lang="en"] body { letter-spacing: .01em; }
html[lang="en"] .hero-sub { letter-spacing: .04em; }
html[lang="en"] .hero-lab, html[lang="en"] .hero-lab strong, html[lang="en"] .page-ja { letter-spacing: .02em; }

/* トップのお知らせの帯（アドレス変更など。不要になったら index.html から外す） */
.hero-notice {
  align-self: flex-start; pointer-events: auto; margin: 0 0 36px;
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px;
  font-size: 13px; color: var(--fg); background: rgba(8, 9, 11, .7); backdrop-filter: blur(6px);
  border: 1px solid rgba(61, 220, 132, .5); opacity: 0; animation: fade 1s .2s forwards;
}
.hero-notice .mono { flex: none; background: var(--accent); color: var(--bg); padding: 2px 8px; font-weight: 500; }
.hero-notice-txt b { white-space: nowrap; }
.hero-notice b { font-family: var(--en); font-weight: 600; letter-spacing: .02em; }
.hero-notice::after { flex: none; content: "→"; font-family: var(--en); color: var(--accent); transition: transform .3s; }
.hero-notice:hover::after { transform: translateX(4px); }
@media (max-width: 480px) {
  .hero-notice { font-size: 12px; gap: 8px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-notice { opacity: 1; animation: none; } }
