:root {
  --bg: #f9f7f2;
  --paper: #ffffff;
  --ink: #1b1b1b;
  --muted: #5e605d;
  --accent: #1f4b6e;
  --line: #d9d3c8;
  --soft: rgba(31, 75, 110, 0.08);
  --radius: 14px;
  --footer-height: 56px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 68px 48px 0px;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 64px;
}

.profile {
  position: sticky;
  top: 48px;
  align-self: start;
  display: grid;
  gap: 15px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.profile-top h1 {
  font-family: "Noto Serif JP", "Times New Roman", serif;
  font-size: 2.2rem;
  margin: 12px 0 8px;
  letter-spacing: 0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.role {
  margin: 0;
  font-weight: 500;
}

.org {
  margin: 6px 0 0;
  color: var(--muted);
}

.profile-actions {
  display: grid;
  gap: 0px;
  justify-items: start;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn:hover {
  background: var(--soft);
}

.btn.icon-btn {
  padding: 4px 0;
  border: none;
  background: transparent;
  color: var(--accent);
  gap: 8px;
}

.btn.icon-btn span {
  font-size: 0.95rem;
}

.btn.icon-btn:hover {
  background: transparent;
}

.profile-stats {
  display: grid;
  gap: 14px;
}

.metric-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
}

.metric-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.profile-note {
  padding-left: 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.content {
  display: grid;
  gap: 68px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  margin: 0 0 12px;
  color: var(--muted);
}

.hero-text h2 {
  font-family: "Noto Serif JP", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-lede {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
}

.hero-panel {
  background: var(--paper);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-panel h3 {
  margin-top: 0;
  font-family: "Noto Serif JP", "Times New Roman", serif;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid var(--line);
  background: transparent;
}

.section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  font-family: "Noto Serif JP", "Times New Roman", serif;
  font-size: 2rem;
  margin: 0 0 10px;
}

.section-heading p {
  margin: 0 0 28px;
  max-width: 680px;
  color: var(--muted);
}

.about-grid,
.research-grid,
.teaching-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.about-card,
.research-card,
.teaching-card,
.contact-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
}

.about-card h3,
.research-card h3,
.teaching-card h3,
.contact-card h3 {
  margin-top: 0;
  font-family: "Noto Serif JP", "Times New Roman", serif;
}

.pub-list {
  display: grid;
  gap: 16px;
}

.pub-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.pub-year {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent);
}

.pub-details h3 {
  margin: 0 0 6px;
  font-family: "Noto Serif JP", "Times New Roman", serif;
}

.pub-details p {
  margin: 0 0 12px;
  color: var(--muted);
}

.pub-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
  margin-right: 12px;
}

.site-footer {
  padding: 20px 48px 10px;
  color: var(--muted);
  max-width: 1120px;
  margin: 0 auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .page {
    grid-template-columns: 1fr;
    padding: 56px 28px 80px;
  }

  .profile {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
  }

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

@media (max-width: 720px) {
  .page {
    padding: 42px 20px 70px;
  }

  .pub-item {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0px;
  padding: 10px 48px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  z-index: 2;
  font-size: 0.85rem;

}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-footer {
    padding: 0 28px;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 0 20px;
  }
}

.text-link {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.text-link:hover {
  text-decoration: none;
}