:root {
  --background: #f5f7f9;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #66717d;
  --line: #dfe5ea;
  --accent: #245779;
  --accent-dark: #173f5a;
  --shadow: 0 10px 30px rgba(31, 41, 51, 0.07);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid rgba(36, 87, 121, 0.25);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.header-inner,
.page-shell,
.footer-inner {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
}

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

.site-name {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  background: #edf3f7;
  color: var(--accent-dark);
}

.language-link {
  border: 1px solid var(--line);
  background: var(--surface);
}

.page-shell {
  flex: 1;
  padding-block: 52px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 52px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.35rem);
}

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

.contact-line {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-photo {
  width: min(100%, 230px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.12);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.menu-card {
  display: block;
  min-height: 88px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.menu-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-2px);
  border-color: #b9c9d5;
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.07);
  color: var(--accent-dark);
  text-decoration: none;
}

.menu-card.is-disabled {
  color: var(--muted);
  background: #fafbfc;
  cursor: default;
}

.menu-card.is-disabled:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.page-heading {
  margin-bottom: 26px;
}

.page-title {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
}

.page-lead {
  margin: 8px 0 0;
  color: var(--muted);
}

.content-card {
  padding: clamp(24px, 5vw, 42px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-card + .content-card {
  margin-top: 18px;
}

.section-title {
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  line-height: 1.4;
}

.research-field {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 30px;
}

.research-field dt {
  color: var(--muted);
  font-weight: 600;
}

.research-field dd {
  margin: 0;
  font-weight: 650;
}

.research-text {
  max-width: 760px;
}

.research-text p {
  margin: 0 0 1.1em;
}

.research-text p:last-child {
  margin-bottom: 0;
}

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

.timeline li,
.numbered-list li {
  position: relative;
  padding-left: 1.3rem;
}

.timeline li::before,
.numbered-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline li + li,
.numbered-list li + li {
  margin-top: 14px;
}

.note {
  margin: 20px 0 0;
  padding: 15px 17px;
  background: #f3f7fa;
  border-left: 3px solid #9bb4c5;
  border-radius: 0 8px 8px 0;
  color: #4d5a65;
  font-size: 0.92rem;
}

.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 720px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .header-nav {
    justify-content: flex-start;
  }

  .page-shell {
    padding-block: 30px 46px;
  }

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

  .profile-photo {
    grid-row: 1;
    width: 150px;
  }

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

  .research-field {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 14px;
  }
}

@media (max-width: 440px) {
  .header-inner,
  .page-shell,
  .footer-inner {
    width: min(100% - 28px, 980px);
  }

  .header-nav a {
    padding-inline: 9px;
  }
}

.verification-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
