:root {
  color-scheme: light;
  --bg: #f6f1ee;
  --bg-elevated: #fffaf7;
  --text: #282527;
  --muted: #6d6466;
  --line: rgba(70, 56, 60, 0.16);
  --accent: #d94f6d;
  --accent-soft: rgba(217, 79, 109, 0.13);
  --accent-strong: #aa2c49;
  --laser-line: rgba(217, 79, 109, 0.16);
  --laser-glow: rgba(217, 79, 109, 0.07);
  --laser-core: rgba(217, 79, 109, 0.34);
  --shadow: 0 18px 44px rgba(76, 43, 51, 0.1);
  --header: rgba(246, 241, 238, 0.82);
  --radius: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111821;
  --bg-elevated: #17212c;
  --text: #e8edf0;
  --muted: #a9b5bf;
  --line: rgba(190, 208, 220, 0.16);
  --accent: #4f9fd9;
  --accent-soft: rgba(79, 159, 217, 0.14);
  --accent-strong: #8cc8ef;
  --laser-line: rgba(79, 159, 217, 0.18);
  --laser-glow: rgba(79, 159, 217, 0.08);
  --laser-core: rgba(79, 159, 217, 0.38);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --header: rgba(17, 24, 33, 0.84);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  font-size: var(--font-sentence, 0.95rem);
  letter-spacing: 0;
  overflow-x: hidden;
}

.laser-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 0 24%, transparent 38% 62%, #000 76% 100%);
  mask-image: linear-gradient(90deg, #000 0 24%, transparent 38% 62%, #000 76% 100%);
}

.laser-field span {
  position: absolute;
  left: var(--laser-x);
  top: var(--laser-y);
  width: 260vmax;
  height: max(2px, calc(var(--laser-base-thickness, 4px) * (1 + var(--laser-thickness-variance, 0.9) * var(--laser-thickness-factor, 0))));
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0 7%, var(--laser-line) 13%, var(--laser-core) 28% 72%, var(--laser-line) 87%, transparent 93% 100%);
  box-shadow: 0 0 7px var(--laser-glow);
  opacity: 0;
  transform: rotate(var(--laser-angle)) translate3d(var(--laser-travel), 0, 0);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.laser-field span:nth-child(1) {
  --laser-x: -32vw;
  --laser-y: 14vh;
  --laser-length: 30vw;
  --laser-angle: -58deg;
  --laser-start-vw: -10;
  --laser-end-vw: 148;
  --laser-offset: 0;
  --laser-travel: -10vw;
  --laser-thickness-factor: -0.55;
}

.laser-field span:nth-child(2) {
  --laser-x: 94vw;
  --laser-y: 26vh;
  --laser-length: 36vw;
  --laser-angle: 122deg;
  --laser-start-vw: -12;
  --laser-end-vw: 142;
  --laser-offset: 0.17;
  --laser-travel: -12vw;
  --laser-thickness-factor: 1.25;
}

.laser-field span:nth-child(3) {
  --laser-x: -36vw;
  --laser-y: 82vh;
  --laser-length: 44vw;
  --laser-angle: 66deg;
  --laser-start-vw: -18;
  --laser-end-vw: 136;
  --laser-offset: 0.34;
  --laser-travel: -18vw;
  --laser-thickness-factor: 0.35;
}

.laser-field span:nth-child(4) {
  --laser-x: 96vw;
  --laser-y: 84vh;
  --laser-length: 32vw;
  --laser-angle: -118deg;
  --laser-start-vw: -12;
  --laser-end-vw: 150;
  --laser-offset: 0.51;
  --laser-travel: -12vw;
  --laser-thickness-factor: -0.25;
}

.laser-field span:nth-child(5) {
  --laser-x: -30vw;
  --laser-y: 48vh;
  --laser-length: 26vw;
  --laser-angle: -72deg;
  --laser-start-vw: -18;
  --laser-end-vw: 154;
  --laser-offset: 0.68;
  --laser-travel: -18vw;
  --laser-thickness-factor: 1.7;
}

.laser-field span:nth-child(6) {
  --laser-x: 98vw;
  --laser-y: 6vh;
  --laser-length: 25vw;
  --laser-angle: 104deg;
  --laser-start-vw: -18;
  --laser-end-vw: 145;
  --laser-offset: 0.85;
  --laser-travel: -18vw;
  --laser-thickness-factor: 0.8;
}

.laser-field span:nth-child(7) {
  --laser-x: -34vw;
  --laser-y: 28vh;
  --laser-length: 34vw;
  --laser-angle: 74deg;
  --laser-start-vw: -16;
  --laser-end-vw: 146;
  --laser-offset: 0.08;
  --laser-travel: -16vw;
  --laser-thickness-factor: -0.75;
}

.laser-field span:nth-child(8) {
  --laser-x: 96vw;
  --laser-y: 58vh;
  --laser-length: 40vw;
  --laser-angle: -126deg;
  --laser-start-vw: -14;
  --laser-end-vw: 152;
  --laser-offset: 0.25;
  --laser-travel: -14vw;
  --laser-thickness-factor: 1.45;
}

.laser-field span:nth-child(9) {
  --laser-x: -32vw;
  --laser-y: 62vh;
  --laser-length: 22vw;
  --laser-angle: -64deg;
  --laser-start-vw: -12;
  --laser-end-vw: 140;
  --laser-offset: 0.42;
  --laser-travel: -12vw;
  --laser-thickness-factor: 0.05;
}

.laser-field span:nth-child(10) {
  --laser-x: 100vw;
  --laser-y: 16vh;
  --laser-length: 30vw;
  --laser-angle: 112deg;
  --laser-start-vw: -20;
  --laser-end-vw: 148;
  --laser-offset: 0.61;
  --laser-travel: -20vw;
  --laser-thickness-factor: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
}

.section-index {
  display: inline-block;
  color: var(--accent-strong);
  font-size: var(--font-section-title, 2.7rem);
  font-weight: 800;
  line-height: 1.08;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: var(--font-nav, 0.9rem);
}

.brand small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: var(--font-small, 0.82rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a,
.nav-menu > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--font-nav, 0.9rem);
  cursor: pointer;
}

.site-nav a:hover,
.nav-menu > button:hover,
.site-nav a:focus-visible,
.nav-menu > button:focus-visible {
  border-color: var(--line);
  color: var(--text);
  outline: none;
}

.nav-menu {
  position: relative;
}

.nav-menu::after {
  position: absolute;
  right: 0;
  top: 100%;
  width: min(22rem, 84vw);
  height: 0.65rem;
  content: "";
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  display: none;
  width: min(22rem, 84vw);
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  display: grid;
  gap: 0.25rem;
}

.nav-dropdown a {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.55rem;
  align-items: baseline;
  height: auto;
  padding: 0.58rem 0.62rem;
  white-space: normal;
  line-height: 1.35;
}

.nav-dropdown small {
  display: block;
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: var(--font-small, 0.82rem);
}

.theme-toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  min-height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.theme-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.36;
  transition: opacity 160ms ease, color 160ms ease, transform 160ms ease;
}

:root[data-theme="light"] .theme-icon-sun,
:root[data-theme="dark"] .theme-icon-moon {
  color: var(--accent-strong);
  opacity: 1;
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.36fr);
  gap: clamp(1.8rem, 5vw, 3.5rem);
  align-items: center;
  min-height: min(36rem, calc(100vh - 4.2rem));
  padding: clamp(2.8rem, 7vw, 5rem) 0 clamp(2.8rem, 7vw, 4.5rem);
}

.hero-copy {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: var(--font-small, 0.82rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, var(--font-title, 5.2rem));
  line-height: 1;
}

h2 {
  margin: 0;
  font-size: var(--font-section-title, 2.7rem);
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: var(--font-subtitle, 1.08rem);
  line-height: 1.35;
}

.affiliation {
  max-width: 38rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: var(--font-subtitle, 1.08rem);
  line-height: 1.7;
}

.affiliation span {
  display: block;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.45rem;
  color: var(--accent-strong);
  font-size: var(--font-sentence, 0.95rem);
  font-weight: 700;
}

.hero-links a {
  border-bottom: 1px solid currentColor;
}

.portrait-panel {
  position: relative;
  margin: 0;
  width: clamp(8.5rem, 24vw, 14rem);
  aspect-ratio: 1;
  justify-self: center;
  overflow: hidden;
  border: 2px solid var(--bg-elevated);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.portrait-panel::after {
  content: none;
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.content-section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 1.25rem;
  align-items: baseline;
  margin-bottom: 2rem;
}

.section-title {
  color: var(--text);
  font-size: var(--font-section-title, 2.7rem);
  line-height: 1.08;
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.keyword-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: var(--font-sentence, 0.95rem);
  font-weight: 800;
  text-align: center;
}

.publication-status {
  color: var(--muted);
}

.publication-list {
  display: grid;
  gap: 2rem;
}

.publication-group {
  display: block;
  padding-top: 0.25rem;
}

.publication-group-title {
  margin: 0 0 0.85rem;
  padding: 0 0 0.45rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: var(--font-subtitle, 1.08rem);
  font-weight: 800;
}

.publication-items {
  display: grid;
  gap: 0.95rem;
}

.publication-item {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0;
  background: transparent;
}

.publication-number {
  color: var(--accent-strong);
  font-weight: 800;
}

.publication-subtitle {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: var(--font-sentence, 0.95rem);
  font-weight: 650;
  line-height: 1.45;
}

.publication-subtitle + .publication-meta {
  margin-top: 0.45rem;
}

.publication-meta {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: var(--font-sentence, 0.95rem);
  line-height: 1.55;
}

.publication-meta a {
  color: var(--accent-strong);
  font-weight: 700;
}

.publication-project-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  border-bottom: 1px solid currentColor;
}

.coming-soon {
  display: inline;
  color: var(--text);
  font-size: var(--font-sentence, 0.95rem);
  font-weight: 800;
}

.contact-section {
  min-height: auto;
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.contact-section h2 {
  margin: 0;
  font-size: var(--font-section-title, 2.7rem);
}

.contact-section .section-heading {
  margin-bottom: 0;
}

.contact-lines {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--font-sentence, 0.95rem);
  line-height: 1.6;
}

.contact-lines p {
  margin: 0;
}

.contact-lines a {
  color: var(--accent-strong);
  font-weight: 700;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .laser-field span {
    display: none;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .portrait-panel {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 1.25rem, 1120px);
  }

  .site-header {
    padding: 0.7rem;
  }

  .brand small {
    display: none;
  }

  .keyword-grid,
  .publication-item {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .publication-number {
    width: 3.4rem;
  }
}
