:root {
  --green: #183c32;
  --green-dark: #102d25;
  --paper: #f7f5ef;
  --white: #ffffff;
  --ink: #17221e;
  --muted: #67716c;
  --line: #d9d5ca;
  --accent: #a96143;
  --accent-light: #e3b099;
  --container: 1080px;
  --header-height: 60px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.72;
  -webkit-text-size-adjust: 100%;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

figure,
p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 16px;
}

.page {
  display: none;
  min-height: calc(100svh - var(--header-height));
}

.page.is-active {
  display: block;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 16px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: rgb(24 60 50 / 98%);
  color: var(--white);
}

.brand {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.brand strong {
  font: 600 24px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.brand span {
  overflow: hidden;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.75;
}

.menu-toggle {
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 29px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-menu {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 110;
  display: none;
  overflow-y: auto;
  padding: 18px 22px 42px;
  background: var(--green-dark);
  color: var(--white);
}

.site-menu.is-open {
  display: block;
}

.menu-kicker {
  margin: 5px 0 13px;
  color: var(--accent-light);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.menu-list {
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.menu-item[aria-current="page"] .menu-en {
  color: var(--accent-light);
}

.menu-en {
  font: 500 22px/1.1 Georgia, "Times New Roman", serif;
}

.menu-ja {
  color: rgb(255 255 255 / 64%);
  font-size: 10px;
  white-space: nowrap;
}

/* Shared text */
.eyebrow,
.kicker,
.page-ja,
.card-kicker,
.research-label {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker-light {
  color: var(--accent-light);
}

.text-muted,
.section-intro,
.page-head > p:last-child,
.info-card p,
.publication-featured p,
.publication-item p {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  padding: 6px 9px;
  border: 1px solid #bdbab1;
  border-radius: 999px;
  background: rgb(255 255 255 / 45%);
  font-size: 9px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
}

/* Images */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d7e0db, #b8c9c0);
}

.media::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 4%);
  pointer-events: none;
}

.photo-label {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  padding: 7px 10px;
  background: rgb(16 45 37 / 90%);
  color: var(--white);
  font-size: 8px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* Home */
.hero {
  padding-top: 20px;
  padding-bottom: 42px;
}

.hero-media {
  aspect-ratio: 4 / 3;
}

.hero-copy {
  padding-top: 28px;
}

.hero h1 {
  margin: 10px 0 15px;
  font: 500 clamp(44px, 13vw, 70px) / 0.94 Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin-bottom: 14px;
  font: 500 20px/1.45 Georgia, "Yu Mincho", serif;
}

.hero .text-muted {
  font-size: 11px;
}

.hero .chips {
  margin-top: 18px;
}

.section {
  padding-top: 46px;
  padding-bottom: 62px;
}

.section-title {
  margin: 7px 0 12px;
  font: 500 39px/1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 11px;
}

.card-grid {
  display: grid;
  gap: 14px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.card-media {
  aspect-ratio: 16 / 10;
}

.card-body {
  padding: 17px;
}

.card h3 {
  margin: 6px 0 8px;
  font: 500 25px/1.18 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.card-body > p:not(.card-kicker) {
  color: var(--muted);
  font-size: 10px;
}

.credit {
  margin-top: 18px;
  color: #828983;
  font-size: 8px;
  line-height: 1.6;
}

/* Page headings */
.page-head {
  padding-top: 38px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-head h2 {
  margin: 7px 0 10px;
  font: 500 clamp(40px, 12vw, 62px) / 0.95 Georgia, "Times New Roman", serif;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.page-head > p:last-child {
  max-width: 720px;
  font-size: 11px;
}

.content {
  padding-top: 28px;
  padding-bottom: 68px;
}

/* Research */
.research-list {
  display: grid;
  gap: 34px;
}

.research-card {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.research-media {
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
}

.research-card h3 {
  margin: 8px 0 10px;
  font: 500 30px/1.18 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.research-card .text-muted {
  font-size: 11px;
}

.meta-list,
.facts {
  margin-top: 17px;
  border-top: 1px solid var(--line);
}

.meta-list > div,
.facts > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.meta-list dt,
.facts dt {
  color: #4f5954;
  font-weight: 700;
}

.meta-list dd,
.facts dd {
  min-width: 0;
}

.method-box {
  margin-top: 32px;
  padding: 22px 18px;
  background: var(--green);
  color: var(--white);
}

.method-box h3 {
  margin: 6px 0 10px;
  font: 500 27px/1.1 Georgia, serif;
}

.method-box > p:last-of-type {
  color: #d4dfda;
  font-size: 10px;
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.method-tags span {
  padding: 5px 8px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  font-size: 8px;
}

/* Publications */
.publication-featured {
  margin-bottom: 24px;
  padding: 14px;
  background: #ece7dc;
}

.publication-media {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.publication-featured h3 {
  margin: 6px 0 7px;
  font: 500 25px/1.25 Georgia, serif;
}

.publication-featured p {
  font-size: 10px;
}

.publication-list {
  border-top: 1px solid var(--line);
}

.publication-item {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.publication-item time {
  color: var(--accent);
  font: 500 14px Georgia, serif;
}

.publication-item h3 {
  margin-bottom: 3px;
  font-size: 11px;
  line-height: 1.5;
}

.publication-item p {
  font-size: 9px;
}

.publication-item a {
  display: inline-block;
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-decoration: underline;
}

.link-chips {
  margin-top: 18px;
}

/* About */
.about-grid {
  display: grid;
  gap: 22px;
}

.about-media {
  aspect-ratio: 4 / 3;
}

.quote {
  margin-bottom: 14px;
  font: 500 24px/1.45 Georgia, "Yu Mincho", serif;
}

.about-grid .text-muted {
  font-size: 11px;
}

.facts {
  margin-top: 22px;
}

.facts > div {
  grid-template-columns: 106px minmax(0, 1fr);
}

.sub-title {
  margin: 34px 0 12px;
  font: 500 27px/1.2 Georgia, serif;
}

.timeline {
  padding-left: 21px;
  border-left: 1px solid #bbb8af;
}

.timeline article {
  position: relative;
  padding: 0 0 20px 5px;
}

.timeline article::before {
  position: absolute;
  top: 7px;
  left: -26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.timeline time {
  color: var(--accent);
  font: 500 12px Georgia, serif;
}

.timeline p {
  margin-top: 3px;
  font-size: 10px;
}

/* Teaching / News */
.info-grid {
  display: grid;
  gap: 12px;
}

.info-card {
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--white);
}

.info-card small,
.info-card time {
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}

.info-card h3 {
  margin: 6px 0 8px;
  font: 500 23px/1.2 Georgia, serif;
  overflow-wrap: anywhere;
}

.info-card p {
  font-size: 10px;
}

.news-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-decoration: underline;
}

/* Contact */
.contact-page {
  background: var(--green);
  color: var(--white);
}

.contact {
  min-height: calc(100svh - var(--header-height));
  padding-top: 48px;
  padding-bottom: 60px;
}

.contact h2 {
  margin: 10px 0 18px;
  font: 500 clamp(54px, 16vw, 88px) / 0.9 Georgia, serif;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.contact > p:last-of-type {
  color: #d0dbd6;
  font-size: 11px;
}

.contact-links {
  margin-top: 30px;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  font-size: 10px;
}

.contact-links a span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}

.contact address {
  margin-top: 28px;
  color: #d0dbd6;
  font-size: 10px;
  font-style: normal;
}

.contact address strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #78817c;
  font-size: 8px;
  letter-spacing: 0.08em;
}

@media (min-width: 760px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding-inline: 32px;
  }

  .site-header {
    padding-inline: 30px;
  }

  .site-menu {
    padding: 30px max(30px, calc((100vw - 960px) / 2));
  }

  .hero {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 42px;
    align-items: end;
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero-media {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 4 / 5;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 20px;
  }

  .hero h1 {
    font-size: 82px;
  }

  .hero-lead {
    font-size: 27px;
  }

  .card-grid,
  .info-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .research-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }

  .research-media {
    margin-bottom: 0;
  }

  .about-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 38px;
    align-items: start;
  }

  .contact {
    padding-top: 70px;
    padding-bottom: 80px;
  }

  .contact h2 {
    font-size: 96px;
  }
}

/* Motion only: preserve the original layout and navigation. */
@keyframes page-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page.is-active,
.site-menu.is-open {
  animation: page-enter 0.45s ease-out both;
}

.media img {
  transition: transform 0.6s ease-out;
}

.text-link,
.menu-item {
  transition: color 0.2s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .media:hover img { transform: scale(1.035); }
  .text-link:hover { color: var(--accent); }
  .menu-item:hover { color: var(--accent-light); }
}

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