/* ---------- Base ---------- */

:root {
  --text: #222;
  --subtext: #666;
  --border: #d9d9d9;
  --background: #fff;
  --header-background: #f7f7f7;
  --link: #1f4f82;
  --max-width: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    YuGothic,
    Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}


/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--header-background);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 100px;
}

.site-title h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.name-en {
  margin: 2px 0 0;
  color: var(--subtext);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
}


/* ---------- Main ---------- */

main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.intro {
  margin-bottom: 56px;
}

.intro h2 {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 600;
}

.intro h2 span {
  margin-left: 0.6em;
  color: var(--subtext);
  font-size: 1rem;
  font-weight: 400;
}

.intro p {
  margin: 4px 0;
}

.content-section {
  margin-top: 56px;
  scroll-margin-top: 24px;
}

.content-section > h2 {
  margin: 0 0 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 1.45rem;
  font-weight: 600;
}

.content-section h3 {
  margin: 34px 0 14px;
  font-size: 1.08rem;
  font-weight: 600;
}


/* ---------- Profile ---------- */

.profile-list {
  margin: 0;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 9px 0;
}

.profile-list dt {
  font-weight: 600;
}

.profile-list dd {
  margin: 0;
}


/* ---------- Career ---------- */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 6px 0;
}

.timeline .date {
  white-space: nowrap;
  color: var(--subtext);
}


/* ---------- Publications ---------- */

.publication-list {
  margin: 0;
  padding-left: 2em;
}

.publication-list li {
  margin-bottom: 12px;
  padding-left: 0.3em;
}


/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--subtext);
  font-size: 0.85rem;
}

.site-footer .container {
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer p {
  margin: 0;
}


/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .site-nav {
    gap: 14px 20px;
  }

  main {
    padding-top: 36px;
  }

  .intro h2 {
    font-size: 1.65rem;
  }

  .intro h2 span {
    display: block;
    margin: 2px 0 0;
  }

  .profile-list > div,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-list > div {
    padding: 10px 0;
  }

  .profile-list dt {
    margin-bottom: 2px;
  }

  .timeline li {
    margin-bottom: 10px;
  }
}
