/* =========================
   Base
   - 色・余白・基本タイポグラフィ
========================= */
:root {
  --nav-height: 64px;
  --blue-main: #2b6cb0;
  --blue-soft: rgba(43, 108, 176, 0.08);
  --orange-main: #f08a24;
  --orange-soft: rgba(240, 138, 36, 0.1);
  --white-soft: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(0, 0, 0, 0.15);
  --text-main: #2f2f2f;
  --text-sub: #4b4037;
  --panel-border: rgba(201, 184, 165, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--text-main);
  background: #ffffff;
}

section {
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

/* =========================
   Navbar
========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
}

.nav-left {
  margin-left: 6%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 50px;
  height: 50px;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.lab-name {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Language switch */
.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 5%;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-switch a {
  text-decoration: none;
  color: #333;
}

.lang-switch a.active {
  font-weight: 700;
}

.lang-switch a:hover {
  opacity: 0.7;
}

/* ハンバーガーメニュー */
.hamburger {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================
   Overlay & Side Menu
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 120px 40px;
  background: #0f1115;
  transition: right 0.45s cubic-bezier(.77, 0, .18, 1);
  z-index: 2000;
}

.side-menu.active {
  right: 0;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(20px);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.side-menu.active a {
  opacity: 1;
  transform: translateX(0);
}

.side-menu.active a:nth-child(1) { transition-delay: 0.05s; }
.side-menu.active a:nth-child(2) { transition-delay: 0.10s; }
.side-menu.active a:nth-child(3) { transition-delay: 0.15s; }
.side-menu.active a:nth-child(4) { transition-delay: 0.20s; }
.side-menu.active a:nth-child(5) { transition-delay: 0.25s; }
.side-menu.active a:nth-child(6) { transition-delay: 0.30s; }
.side-menu.active a:nth-child(7) { transition-delay: 0.35s; }

/* =========================
   Shared layer / scroll UI
   - Hero と各セクション下部の Scroll 表示で共有
========================= */
.layer {
  position: absolute;
  inset: 0;
}

.layer-bg { z-index: 1; }
.layer-structure { z-index: 2; }
.layer-meaning { z-index: 3; }

.layer-action {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding-bottom: 40px;
  z-index: 5;
}

.scroll-cue {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #666;
  opacity: 0.8;
}

.scroll-cue--hero {
  margin-top: 150px;
  color: #000;
  display: inline-block;
  animation: scroll-float-y 2s infinite ease-in-out;
}

.scroll-cue--section {
  position: absolute;
  left: 50%;
  bottom: 36px;
  display: inline-block;
  animation: scroll-float-center 2s infinite ease-in-out;
}

.scroll-cue--project,
.scroll-cue--publication {
  color: #fff;
  position: absolute;
  left: 50%;
  bottom: 36px;
  display: inline-block;
  animation: scroll-float-center 2s infinite ease-in-out;
}

@keyframes scroll-float-y {
  0%   { transform: translateY(0); opacity: 0.6; }
  50%  { transform: translateY(8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.6; }
}

@keyframes scroll-float-center {
  0%   { transform: translate(-50%, 0); opacity: 0.6; }
  50%  { transform: translate(-50%, 8px); opacity: 1; }
  100% { transform: translate(-50%, 0); opacity: 0.6; }
}

/* =========================
   Hero section
========================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.layer-bg {
  background: radial-gradient(circle at 30% 30%, #eef3f9, #dfe7f2);
}

.layer-structure {
  background:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

.layer-meaning {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.layer-meaning h1 {
  margin-bottom: 24px;
  font-size: 38px;
  letter-spacing: 0.08em;
}

.layer-meaning p {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.9;
  color: #333;
}


/* =========================
   News Section
========================= */
.news-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 8vw 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-layout {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.news-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news-sticky-box {
  margin-left: 135px;
  margin-bottom: 24px;
}

.news-sticky-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
}

.news-visual {
  width: 100%;
}

.news-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* 円ノード */
.news-node {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.news-node circle {
  fill: #f6f4ef;
  stroke: #7f8c8d;
  stroke-width: 2px;
  transition: fill 0.25s ease, stroke 0.25s ease, transform 0.25s ease;
}

.news-node text {
  font-size: 0.95rem;
  font-weight: 600;
  fill: #2c3e50;
  pointer-events: none;
}

.news-node:hover,
.news-node:focus,
.news-node.is-active {
  transform: scale(1.05);
}

.news-node:hover circle,
.news-node:focus circle,
.news-node.is-active circle {
  fill: #dfeff6;
  stroke: #3f6b7a;
}

.news-node:focus {
  outline: none;
}

/* 右側パネル */
.news-panel {
  margin-top: 120px;
  min-height: 420px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(80, 80, 80, 0.12);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 28px 32px;
}

.news-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-panel-head h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.4;
}

#news-count {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f2f7;
  color: #2c4d5a;
  font-weight: 700;
}

.news-panel-body {
  min-height: 280px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.news-date {
  font-weight: 700;
  color: #567;
}

.news-text {
  line-height: 1.8;
  color: #222;
}

/* モバイル */
@media (max-width: 900px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .news-left {
    align-items: center;
  }

  .news-sticky-title {
    text-align: center;
  }

  .news-visual {
    max-width: 260px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* =========================
   Introduction / shared section card
   - introduction-box から section-card へ移行中
========================= */
.introduction-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  padding: 100px 20px;
  background: linear-gradient(180deg, #f8f5f1 0%, #f3ede6 100%);
}

.section-card,
.introduction-box {
  width: min(650px, 92%);
  height: min(700px);
  padding: 56px 48px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 184, 165, 0.45);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(80, 60, 40, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-label,
.intro-label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e7763;
}

.introduction-box h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.4;
  color: #3e3127;
}

.section-divider{
  width: 72px;
  height: 2px;
  margin: 22px auto 34px;
  border-radius: 999px;
  background: #c9b8a5;
}

.session-card .section-divider { 
  text-align: center; 
  margin-left: auto; 
  margin-right: auto; 
}

.section-card p,
.introduction-box p {
  text-align: left; 
  margin: 0 0 1.4em;
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--text-sub);
}

.section-card p:last-child,
.introduction-box p:last-child {
  margin-bottom: 0;
}

.section-card--en,
.section-card--cv,
.section-card--project,
.section-card--publication {
  width: min(1000px, 92%);
  height: min(1000px, 92%);
  text-align: left;
  word-break: normal;
}

.section-card--lab {
  width: min(500px, 92%);
  padding: 56px 48px;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 184, 165, 0.45);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(80, 60, 40, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 浮かび上がり */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* for lab */
.block-title {
  margin: 0;
  font-size: clamp(1.0rem, 2.0vw, 1.25rem);
  text-align: left;
  line-height: 1.45;
  color: #3e3127;
}

.cv-mini-line {
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: #c9b8a5;
}

.panel-card--lab {
  border-radius: 20px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 240, 0.92));
  border: 1px solid var(--panel-border);
  box-shadow: 0 14px 34px rgba(80, 60, 40, 0.06);
}

/* =========================
   Concept section
========================= */
.concept-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 10%;
  background: linear-gradient(120deg, #eef3f9, #ffffff);
}

.concept-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

#conceptSVG {
  width: 600px;
  max-width: 90vw;
  height: auto;
  display: block;
}

#conceptSVG text {
  font-weight: 500;
  dominant-baseline: middle;
}

/* 左上の説明ボックス */
#concept-sticky-box {
  position: fixed;
  top: 150px;
  left: 200px;
  z-index: 1500;
  max-width: 500px;
  max-height: 700px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#concept-sticky-box.active {
  opacity: 1;
  transform: translateY(0);
}

#concept-sticky-title {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #111;
}

#concept-sticky-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* 右側のホバー情報パネル */
#concept-info-panel {
  position: fixed;
  top: 450px;
  right: 200px;
  width: 320px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 2000;
}

#concept-info-panel.active {
  opacity: 1;
  transform: translateX(0);
}

#concept-info-panel h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #222;
}

#concept-info-panel p {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}

.hover-layer {
  cursor: pointer;
}

/* =========================
   CV section
========================= */
.cv-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background: linear-gradient(180deg, #eef7ff 0%, #e3f1ff 55%, #f3f9ff 100%);
}

.cv-box,
.cv-box-jp {
  text-align: left;
}

.cv-inline-link {
  color: var(--blue-main);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 108, 176, 0.25);
}

.cv-inline-link:hover {
  opacity: 0.8;
}

.cv-dual-panels {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 8px;
}

.cv-column-box {
  max-height: min(78vh, 920px);
  overflow-y: auto;
  padding: 24px 18px 18px;
  border: 1px solid rgba(201, 184, 165, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(250, 246, 241, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 34px rgba(80, 60, 40, 0.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 108, 176, 0.45) rgba(201, 184, 165, 0.18);
}

.cv-column-box::-webkit-scrollbar {
  width: 10px;
}

.cv-column-box::-webkit-scrollbar-track {
  background: rgba(201, 184, 165, 0.16);
  border-radius: 999px;
}

.cv-column-box::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(43, 108, 176, 0.58), rgba(240, 138, 36, 0.52));
  border-radius: 999px;
}

.cv-column {
  display: grid;
  gap: 26px;
}

.cv-block {
  display: grid;
  gap: 14px;
}

.cv-block-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1.45;
  color: #3e3127;
}

.cv-block-title2 {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  line-height: 1.45;
  color: #3e3127;
}

.cv-mini-line {
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: #c9b8a5;
}

.panel-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 245, 240, 0.92));
  border: 1px solid var(--panel-border);
  box-shadow: 0 14px 34px rgba(80, 60, 40, 0.06);
}

.panel-card--padded {
  padding: 22px 22px 24px;
}

.panel-card--compact {
  padding: 18px 20px;
}


.cv-item-row + .cv-item-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 184, 165, 0.26);
}

.cv-item-label {
  margin-bottom: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e7763;
}

.cv-item-body {
  line-height: 1.9;
  color: var(--text-sub);
}

.cv-sub-label {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.9rem;
  color: #8e7763;
}

.activity-card + .activity-card {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(201, 184, 165, 0.26);
}

.activity-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #3e3127;
}

.activity-card .cv-item-body + .cv-item-body {
  margin-top: 12px;
}

.achievement-card {
  padding: 22px 22px 24px;
}

.achievement-card + .achievement-card {
  margin-top: 18px;
}

.achievement-label {
  margin-bottom: 12px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: #8e7763;
}

.achievement-item {
  margin: 0;
  padding-left: 2.2em;
  text-indent: -2.2em;
  line-height: 1.8;
  word-break: break-word;
}

.achievement-item + .achievement-item {
  margin-top: 10px;
}

.grant-card {
  padding: 18px 20px;
}

.grant-card + .grant-card {
  margin-top: 14px;
}

.grant-period {
  margin-bottom: 6px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: #8e7763;
}

.grant-title {
  line-height: 1.85;
  color: var(--text-sub);
}

/* =========================
   Research section
========================= */
.research-section {
  position: relative;
  min-height: 100vh;
  padding: 120px 5% 80px;
  background: linear-gradient(120deg, #eef3f9, #ffffff);
}

.research-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.research-sticky-box {
  position: sticky;
  top: 150px;
  left: 200px;
  align-self: start;
  max-width: 480px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
}

.research-sticky-title {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #111;
}

.research-sticky-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

.research-sticky-desc--main {
  font-size: 20px;
  line-height: 1.5;
  color: #000;
}

.research-space {
  position: relative;
  min-height: 720px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#researchSVG {
  width: min(100%, 880px);
  height: auto;
  display: block;
}

.research-node {
  cursor: pointer;
}

.research-node text {
  fill: #223;
  font-size: 18px;
  font-weight: 500;
  dominant-baseline: middle;
}

.research-node circle {
  fill: rgba(255, 255, 255, 0.95);
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 1.4;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.45s cubic-bezier(.16, .84, .44, 1),
    filter 0.45s cubic-bezier(.16, .84, .44, 1),
    stroke 0.45s ease;
}

.research-node.behavioral-experiments circle {
  fill: rgba(240, 138, 36, 0.94);
  stroke: rgba(240, 138, 36, 0.55);
}

.research-node.behavioral-experiments text {
  fill: #c92121;
  font-size: 20px;
  font-weight: 600;
}

.research-node.multimodal-analysis circle {
  fill: rgba(76, 224, 101, 0.94);
  stroke: rgba(36, 240, 36, 0.55);
}

.research-node.applications circle {
  fill: rgba(76, 155, 224, 0.94);
  stroke: rgba(36, 240, 36, 0.55);
}

.research-node.human-agent-interaction circle {
  fill: rgba(144, 141, 240, 0.94);
  stroke: rgba(107, 36, 240, 0.55);
}

.research-node.xr-environments circle {
  fill: rgba(233, 185, 185, 0.94);
  stroke: rgba(255, 119, 128, 0.55);
}

.research-node:hover circle {
  transform: scale(1.18);
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.22));
  stroke: rgba(0, 0, 0, 0.18);
}

#research-tooltip {
  position: fixed;
  max-width: 380px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2000;
}

#research-tooltip.active {
  opacity: 1;
}

#research-tooltip h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

#research-tooltip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}


/* =========================
   Project section
   - Introduction の中央ボックス構成を継承
   - プロジェクトをカードで一覧化
========================= */
.project-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 35%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.project-box {
  width: min(1000px, 94%);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22);
}

.project-lead {
  max-width: 850px;
  margin: 0 auto 2.4rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 8px;
  text-align: left;
}

.project-card {
  padding: 24px 24px 22px;
  background: linear-gradient(180deg, rgba(248, 245, 241, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(201, 184, 165, 0.45);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(80, 60, 40, 0.08);
}

.project-card-label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8e7763;
}

.project-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.5;
  color: #3e3127;
}

.project-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text-sub);
}

.project-card li {
  margin-bottom: 0.7em;
  line-height: 1.95;
}

.project-card li:last-child {
  margin-bottom: 0;
}


/* =========================
   Publication section
========================= */
.publication-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.60), transparent 35%),
    linear-gradient(180deg, #111827 0%, #989ca7 100%);
}

.publication-box {
  width: min(1000px, 94%);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.22);
}

.publication-visual {
  display: flex;
  justify-content: center;
  margin: 28px 0 34px;
}

.publication-svg {
  width: min(960px, 100%);
  height: auto;
  overflow: visible;
}


.publication-group-label {
  fill: #8e7763;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.publication-connector {
  stroke: rgba(142, 119, 99, 0.58);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.publication-node {
  cursor: pointer;
  transition: transform 0.22s ease;
}

.publication-node circle {
  fill: rgba(255, 255, 255, 0.96);
  stroke: rgba(201, 184, 165, 0.62);
  stroke-width: 1.6;
  filter: drop-shadow(0 10px 18px rgba(80, 60, 40, 0.08));
  transition: stroke 0.22s ease, filter 0.22s ease, fill 0.22s ease;
  white-space: nowrap;
  overflow: visible;
  display: inline-block;
}

.publication-node text {
  fill: #5a4638;
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: none;
  dominant-baseline: middle;
}

.publication-node:hover,
.publication-node:focus,
.publication-node:focus-visible,
.publication-node.is-active {
  transform: scale(1.2);
  outline: none;
}

.publication-node:focus circle,
.publication-node:hover circle,
.publication-node:focus-visible circle,
.publication-node.is-active circle {
  stroke: rgba(142, 119, 99, 0.88);
  fill: rgba(250, 247, 243, 0.98);
  stroke-width: 2.4;
  filter: drop-shadow(0 14px 24px rgba(80, 60, 40, 0.14));
}

.publication-panel {
  width: min(820px, 100%);
  height: 400px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 245, 241, 0.92), rgba(255, 255, 255, 0.97));
  border: 1px solid rgba(201, 184, 165, 0.45);
  box-shadow: 0 12px 28px rgba(80, 60, 40, 0.08);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.publication-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(201, 184, 165, 0.35);
  flex-shrink: 0;
}

.publication-panel-head h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #3e3127;
}

#publication-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(142, 119, 99, 0.12);
  color: #7a6351;
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

.publication-panel-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.publication-list {
  margin: 0;
  padding-left: 1.4em;
}

.publication-item {
  margin-bottom: 0.95em;
  color: var(--text-main);
  line-height: 1.75;
}

.publication-item:last-child {
  margin-bottom: 0;
}

.publication-year {
  display: inline-block;
  min-width: 3.2em;
  margin-right: 0.55em;
  font-weight: 700;
  color: #8e7763;
}

.publication-text {
  color: var(--text-sub);
}

.publication-panel-body::-webkit-scrollbar {
  width: 6px;
}

.publication-panel-body::-webkit-scrollbar-thumb {
  background: rgba(142, 119, 99, 0.35);
  border-radius: 999px;
}

.scroll-cue--publication {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 18px;
}

@media (max-width: 900px) {
  .publication-panel {
    height: 320px;
  }

  .publication-panel-head h2 {
    font-size: 1rem;
  }
}

@media (max-width: 700px) {
  .publication-svg {
    width: 100%;
  }

  .publication-panel {
    height: 300px;
    padding: 18px 18px 14px;
  }
}

/* =========================
   Access section
========================= */

.access-contact {
  padding: 100px 20px;
  background: #faf8f5;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #3f3125;
}

.section-header p {
  color: #6f6258;
  font-size: 1rem;
}

.access-contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.access-box,
.contact-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.access-box h3,
.contact-box h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #3f3125;
}

.access-address,
.access-note {
  color: #5f544b;
  line-height: 1.8;
}

.access-address {
  margin-bottom: 14px;
}

.access-note {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.map-wrap iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 14px;
}

.contact-list {
  margin: 0;
}

.contact-list div {
  margin-bottom: 18px;
}

.contact-list dt {
  font-weight: 700;
  color: #7a6858;
  margin-bottom: 6px;
}

.contact-list dd {
  margin: 0;
  color: #3f3125;
  line-height: 1.7;
}

.contact-list a {
  color: #6c4f3d;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .access-contact-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================
   Responsive
========================= */
@media (max-width: 1200px) {
  #concept-sticky-box {
    left: 40px;
    max-width: 360px;
  }

  #concept-info-panel {
    right: 40px;
    width: 280px;
  }
}

@media (max-width: 1024px) {
  .cv-dual-panels,
  .research-layout {
    grid-template-columns: 1fr;
  }

  .cv-column-box {
    max-height: min(60vh, 760px);
  }

  .research-sticky-box {
    position: static;
    max-width: none;
  }
}

.site-copyright {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 999;

  padding: 8px 16px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #444;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  white-space: nowrap;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .lab-name {
    font-size: 15px;
  }

  .layer-meaning h1 {
    font-size: 28px;
  }

  .layer-meaning p {
    font-size: 15px;
    line-height: 1.8;
  }

  .introduction-section,
  .cv-section {
    padding: 72px 16px;
  }

  .introduction-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .section-card,
  .introduction-box,
  .section-card--lab {
    width: 100%;
    max-width: 680px;
    padding: 38px 22px;
    border-radius: 20px;
    text-align: left;
    box-sizing: border-box;
  }

  .section-card p,
  .introduction-box p,
  .section-card--lab p {
    margin: 0 auto 1.4em;
    max-width: 780px;
    text-align: left;
    line-height: 1.9;
  }

  .section-card h1,
  .section-card--lab h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.4;
  }

  #concept-sticky-box,
  #concept-info-panel {
    display: none;
  }

  .cv-column-box {
    max-height: none;
    overflow: visible;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .panel-card,
  .jp-info-card,
  .achievement-card,
  .grant-card {
    border-radius: 18px;
  }

  .research-section {
    padding: 100px 6% 72px;
  }

  .research-space {
    min-height: 440px;
  }

  #researchSVG {
    width: 100%;
  }

  .research-node text,
  .research-node.core text {
    font-size: 15px;
  }

  #research-tooltip {
    max-width: min(280px, calc(100vw - 32px));
  }

  

}
