/* Masayuki Tezuka — Classic Academic redesign */

:root {
  color-scheme: light;
  --bg: #fafaf8;
  --ink: #424d55;
  --heading: #26333e;
  --accent: #4c6579;
  --muted: #64717b;
  --quiet: #79848b;
  --line: #cbd1d3;
  --rule: #e2e5e5;
  --width: 860px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration-color: #9aaab6;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--accent);
  color: var(--heading);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.content-width {
  width: min(var(--width), calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  background: rgba(250, 250, 248, .97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  max-width: 1040px;
  padding: 0 28px;
  margin: auto;
  min-height: 69px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  color: #34495a;
  text-decoration: none;
  font-size: .92rem;
  letter-spacing: .075em;
  font-weight: 600;
  white-space: nowrap;
  margin-right: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  min-height: 69px;
  align-items: center;
  color: #52606d;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--heading);
  border-bottom-color: #6b8497;
}

.language-link {
  font-size: .9rem;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  white-space: nowrap;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  background: var(--heading);
  color: white;
  padding: .5rem .75rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
  color: white;
}

main {
  min-height: calc(100vh - 180px);
}

h1,
h2 {
  font-family: Georgia, "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: .015em;
  color: var(--heading);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.5rem, 5.9vw, 3.35rem);
  line-height: 1.32;
  margin: 0;
}

.eyebrow {
  font-family: Georgia, serif;
  color: #627689;
  font-size: .86rem;
  letter-spacing: .13em;
  font-weight: 600;
  margin: 0 0 12px;
}

.home-hero {
  padding: 95px 0 82px;
}

.home-hero h1 {
  margin: 0 0 16px;
}

.home-hero .english-name {
  letter-spacing: .01em;
}

.hero-affiliation {
  font-size: 1.08rem;
  color: #475867;
  margin: 0 0 2px;
}

.hero-affiliation-en {
  font-size: .96rem;
  color: #75818a;
  margin: 0 0 6px;
}

.hero-secondary {
  color: var(--muted);
  font-size: .95rem;
  margin: 12px 0 0;
}

.short-rule {
  display: block;
  width: 44px;
  height: 2px;
  background: #6b8497;
  margin-top: 27px;
}

.section-block {
  margin: 0 0 73px;
}

.section-title {
  font-size: 1.5rem;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
  padding: 0 0 13px;
  margin: 0 0 22px;
}

.section-block > p {
  margin: 0 0 14px;
}

.subtle-note {
  color: var(--quiet);
  font-size: .9rem;
}

.link-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  font-size: 1rem;
  margin-top: 20px !important;
}

.link-row a:not(:last-child)::after {
  content: "/";
  display: inline-block;
  padding: 0 12px;
  color: #a2adb4;
  pointer-events: none;
}

.interest-item + .interest-item {
  margin-top: 25px;
}

.interest-item h3 {
  font-size: 1.15rem;
  color: #2f3f4b;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: 0;
}

.interest-item h3 span {
  font-weight: 400;
}

.interest-item p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.contact-email {
  font-size: 1.04rem;
}

.site-footer {
  margin-top: 110px;
  border-top: 1px solid var(--line);
  padding: 19px 0 28px;
  color: var(--quiet);
  font-size: .85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a {
  color: var(--quiet);
  text-decoration: none;
}

.page-intro {
  padding: 78px 0 73px;
}

.page-intro h1 {
  margin: 0;
}

.page-intro .short-rule {
  margin-top: 26px;
}

.page-lede {
  font-size: 1.02rem;
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 45rem;
}

.cv-list,
.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-entry {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.cv-entry:first-child {
  padding-top: 3px;
}



.cv-period {
  color: #6e7b87;
  font-size: 1rem;
  line-height: 1.7;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}

.cv-detail p {
  margin: 0 0 3px;
  font-size: 1rem;
  line-height: 1.75;
}

.cv-entry.no-period .cv-detail {
  grid-column: 1 / -1;
}

.publication-list {
  counter-reset: pubcount;
}

.publication-list[reversed] {
  counter-reset: pubcount var(--item-count, 0);
}

.publication-list > li {
  border-bottom: 1px solid var(--rule);
  padding: 21px 0;
  position: relative;
  list-style: decimal;
  margin-left: 2.3rem;
  padding-left: .15rem;
}

.publication-list > li::marker {
  color: #81909d;
  font-size: .95rem;
}

.publication-list > li:first-child {
  padding-top: 2px;
}


.publication-entry .entry-title {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #293c4c;
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.55;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.publication-entry p {
  font-size: 1rem;
  margin: 0 0 4px;
  line-height: 1.68;
}

.publication-entry .entry-authors {
  color: #485561;
}

.publication-entry .entry-source {
  color: #6b7884;
}

.publication-entry .entry-meta {
  color: #79848b;
  font-size: 1rem;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 1rem;
}

.entry-links a {
  color: #496a88;
  text-decoration: underline;
  text-decoration-color: #b0bec9;
}

.notes-empty {
  border-top: 0;
  color: var(--muted);
  padding: 14px 0 35px;
}

.note-entry {
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
}

.note-entry h3 {
  color: var(--heading);
  margin: 0 0 8px;
}

.note-entry p {
  margin: 0;
}

.redirect-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.redirect-page main {
  min-height: unset;
  max-width: 45rem;
  padding: 32px;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 8.5rem;
  }

  .header-inner {
    padding: 12px 22px 0;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 3px;
  }

  .site-brand {
    font-size: .88rem;
  }

  .language-link {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav a {
    min-height: 44px;
    font-size: .95rem;
  }

  .content-width {
    width: min(var(--width), calc(100% - 44px));
  }

  .home-hero {
    padding: 68px 0 64px;
  }

  .page-intro {
    padding: 57px 0 56px;
  }

  .section-block {
    margin-bottom: 54px;
  }

  .cv-entry {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 15px 0;
  }

  .cv-period {
    font-size: 1rem;
  }

  .cv-entry.no-period .cv-detail {
    grid-column: auto;
  }

  .site-footer {
    margin-top: 60px;
  }
}

@media (max-width: 400px) {
  .header-inner {
    padding-left: 17px;
    padding-right: 17px;
  }

  .content-width {
    width: calc(100% - 36px);
  }

  h1 {
    font-size: clamp(2.1rem, 10vw, 2.5rem);
  }

  .site-nav a {
    font-size: .9rem;
  }

  .language-link {
    font-size: .84rem;
  }

  .home-hero {
    padding-top: 51px;
  }

  .section-title {
    font-size: 1.42rem;
  }

  .publication-list > li {
    margin-left: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
