:root {
  --bg: #f5efe3;
  --bg-strong: #efe2cb;
  --panel: rgba(255, 250, 241, 0.8);
  --panel-solid: #fff8ee;
  --panel-strong: rgba(255, 244, 224, 0.95);
  --text: #172126;
  --muted: #5f6368;
  --line: rgba(23, 33, 38, 0.12);
  --accent: #ef5b2a;
  --accent-strong: #b53a12;
  --accent-alt: #0f766e;
  --accent-soft: #ffd166;
  --focus: #1d4ed8;
  --shadow: 0 28px 60px rgba(23, 33, 38, 0.12);
  --radius: 28px;
  --wrap: min(1160px, calc(100vw - 2rem));
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 91, 42, 0.26), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(15, 118, 110, 0.18), transparent 24%),
    radial-gradient(circle at 78% 78%, rgba(255, 209, 102, 0.28), transparent 24%),
    linear-gradient(180deg, #fbf6ed 0%, var(--bg) 46%, var(--bg-strong) 100%);
  font-family: "Avenir Next", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 33, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 38, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.58), transparent 82%);
  pointer-events: none;
  z-index: -1;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

.wrap { width: var(--wrap); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--text);
  z-index: 100;
}

.skip-link:focus { top: 1rem; outline: 3px solid var(--focus); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 246, 237, 0.78);
  border-bottom: 1px solid rgba(23, 33, 38, 0.08);
}

.header-inner,
.footer-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.header-inner { gap: 0.8rem; }

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-affiliation { color: var(--muted); font-size: 0.92rem; }

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a,
.lang-switch,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-list a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(23, 33, 38, 0.08);
  padding: 0.62rem 0.85rem;
  font-size: 0.94rem;
  white-space: nowrap;
}

.nav-list a:hover,
.lang-switch:hover,
.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 33, 38, 0.08);
}

.nav-list a:hover { background: rgba(255, 255, 255, 0.78); }

.nav-list a:focus-visible,
.lang-switch:focus-visible,
.button-link:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.lang-switch,
.button-link {
  background: linear-gradient(135deg, var(--accent) 0%, #ff855c 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(181, 58, 18, 0.25);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid rgba(23, 33, 38, 0.12);
}

.panel,
.card,
.publication-list,
.selector-main,
.map-panel {
  position: relative;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before,
.card::before,
.publication-list::before,
.selector-main::before,
.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.hero,
.section { padding: 4.75rem 0; }

.hero {
  position: relative;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: 3rem;
  width: min(38vw, 460px);
  aspect-ratio: 1;
  border-radius: 32% 68% 66% 34% / 34% 39% 61% 66%;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(255, 209, 102, 0.18)),
    rgba(255, 255, 255, 0.28);
  filter: blur(10px);
  z-index: -1;
}

.hero-grid,
.section-grid,
.access-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.section-grid,
.access-grid { grid-template-columns: 0.9fr 1.1fr; }

.hero-copy {
  border-radius: calc(var(--radius) + 8px);
  padding: 1.75rem;
  background-position: 0 0, 300px center;
  background-size: auto, cover;
  background-repeat: repeat, no-repeat;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(78svh, 760px);
}

.prototype-content {
  display: grid;
  gap: 1.25rem;
}

.card-index {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent-alt);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-alt);
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
  max-width: 11ch;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  letter-spacing: -0.03em;
}

h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

.hero-tagline,
.lead {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.hero-tagline {
  max-width: 40rem;
  color: #26343b;
  margin-bottom: 1.2rem;
}

.hero-copy > p:not(.eyebrow):not(.section-kicker):not(.hero-tagline) {
  font-size: clamp(1.05rem, 1.45vw, 1.18rem);
}

.hero-kicker {
  margin-bottom: 0.9rem;
}

.image-note,
.section-meta,
.contact-note {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

.visual-callout {
  width: 100%;
  padding: 1.1rem 1.2rem 0.2rem;
  border-radius: 24px;
  background: rgba(255, 249, 238, 0.82);
  border: 1px solid rgba(23, 33, 38, 0.08);
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 248, 238, 0.48));
  border-top: 1px solid rgba(23, 33, 38, 0.05);
  border-bottom: 1px solid rgba(23, 33, 38, 0.05);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 238, 0.9)),
    var(--panel);
}

.research-card h3,
.member-card h3 { margin-top: 0.35rem; }

.member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 100%;
}

.member-photo-frame {
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(255, 209, 102, 0.18)),
    rgba(255, 249, 238, 0.92);
  border: 1px solid rgba(23, 33, 38, 0.08);
}

.member-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.member-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-details h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.section-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
}

.publication-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 235, 0.88));
}

.publication-year-group + .publication-year-group {
  margin-top: 1.5rem;
}

.publication-group-title {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.publication-item {
  display: grid;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(23, 33, 38, 0.08);
}

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

.publication-title {
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.link-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.link-list li + li { margin-top: 0.8rem; }

.map-panel {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: rgba(255, 249, 238, 0.72);
}

.map-embed {
  width: 100%;
  min-height: 360px;
  border: 0;
  background: var(--panel-solid);
}

.site-footer {
  padding: 0.5rem 0 2rem;
  color: var(--muted);
}

.selector-body {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.selector-main {
  width: min(42rem, calc(100vw - 2rem));
  padding: 2.25rem;
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 224, 0.88));
}

.selector-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .header-inner,
  .footer-inner,
  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .hero-grid,
  .section-grid,
  .access-grid,
  .three-up,
  .two-up {
    grid-template-columns: 1fr;
  }

  .member-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  h1 { max-width: none; }
}

@media (max-width: 720px) {
  .hero,
  .section { padding: 3.5rem 0; }

  .hero-copy,
  .selector-main,
  .card,
  .publication-list {
    padding: 1.25rem;
  }

  .nav-list { gap: 0.5rem; }
}
