:root {
  --paper: #eff8ff;
  --surface: #ffffff;
  --ink: #1e3a8a;
  --muted: #52657a;
  --line: #cbddeb;
  --blue: #0ea5e9;
  --blue-dark: #1e3a8a;
  --yellow: #fbbf24;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%) fixed;
  font-family: "Avenir Next", "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

.container {
  width: min(100%, 1440px);
  max-width: none;
  margin: 0 auto;
  padding: 24px 32px 48px;
}

.lang-switcher {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(30, 58, 138, 0.14);
  border-radius: 8px;
  color: rgba(30, 58, 138, 0.42);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.18);
  backdrop-filter: blur(12px);
}

.lang-btn {
  min-width: 42px;
  min-height: 38px;
  padding: 7px 9px;
  border-radius: 4px;
  color: rgba(30, 58, 138, 0.68);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.lang-btn:hover,
.lang-btn.active {
  color: #fff;
  background: var(--blue-dark);
  text-decoration: none;
}

.container > .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: clamp(36px, 5vw, 84px);
  min-height: 720px;
  margin: 0;
  padding: clamp(54px, 7vw, 96px);
  border: 1px solid rgba(30, 58, 138, 0.13);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 60px rgba(3, 42, 91, 0.18);
  text-align: left;
  transition: none;
}

.container > .hero:hover {
  transform: none;
  box-shadow: 0 18px 60px rgba(3, 42, 91, 0.18);
}

.container > .hero::after {
  display: none;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  margin: 0 0 30px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

#main-title {
  max-width: 8em;
  margin: 0 0 22px;
  color: var(--blue-dark);
  font-size: clamp(58px, 7.8vw, 116px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.96;
  animation: none;
}

.container > .hero .subtitle {
  margin: 0;
  color: #0284c7;
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 650;
  letter-spacing: 0.02em;
  animation: none;
}

.hero-lead {
  max-width: 33em;
  margin: 30px 0 0;
  color: #40566c;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.85;
}

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

.hero-primary,
.hero-secondary {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid var(--blue-dark);
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.hero-primary:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.hero-secondary {
  color: var(--blue-dark);
  background: transparent;
}

.hero-secondary:hover {
  color: #fff;
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
}

.hero-facts > div {
  padding-top: 16px;
  border-top: 1px solid #cfe6f5;
}

.hero-facts dt {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 480px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #26334c;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(5, 10, 20, 0.82) 100%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.9) contrast(1.04);
}

.hero-visual figcaption {
  position: absolute;
  right: 26px;
  bottom: 24px;
  left: 26px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}

.hero-visual figcaption span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-visual figcaption strong {
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.navigation {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid #cfe6f5;
}

.nav-link {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #bae6fd;
  border-radius: 4px;
  color: var(--blue-dark);
  background: #f0f9ff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
}

.nav-link:hover {
  color: #fff;
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  box-shadow: none;
  transform: none;
}

main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.section {
  min-width: 0;
  margin: 0;
  padding: clamp(30px, 3.3vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(15, 62, 115, 0.12);
  transition: none;
}

.section-wide { grid-column: span 12; }
.section-eight { grid-column: span 8; }
.section-seven { grid-column: span 7; }
.section-six { grid-column: span 6; }
.section-five { grid-column: span 5; }
.section-four { grid-column: span 4; }

.section h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-icon {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  animation: none;
}

.section p,
.section ul {
  color: #344054;
  font-size: 16px;
}

.section ul {
  margin: 0;
}

.section li {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.section li:hover {
  padding-left: 0;
  border-radius: 0;
  background: transparent;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.7fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}

.profile-image {
  width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 5px;
  object-fit: cover;
  object-position: center 24%;
  box-shadow: none;
}

.profile-name {
  margin: 0 0 28px;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.045em;
}

.profile-name-en {
  display: inline-block;
  margin-left: 18px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

#news-section .news-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 12px;
  align-items: center;
  padding: 22px 0;
}

#news-section .news-date {
  min-width: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

#news-section .news-tag {
  justify-self: end;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#news-section .news-link,
#news-section .news-list li > div {
  grid-column: 1 / -1;
}

.pinned-item {
  border-left: 0 !important;
  background: transparent;
}

#news-section .news-list .pinned-item {
  padding-right: 14px;
  padding-left: 14px;
}

.pinned-icon {
  display: none;
}

.news-link {
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.news-link:hover {
  color: var(--blue);
}

.archive-link-row {
  margin-top: 24px;
  text-align: right;
}

.archive-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.archive-link:hover {
  border-color: var(--blue);
  background: var(--blue);
}

#career-section li {
  position: relative;
  padding-left: 30px;
}

#career-section li::before {
  position: absolute;
  top: 28px;
  left: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  content: "";
}

#publications-section > ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

#publications-section > ul > li {
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

#publications-section > ul > li:first-child { padding-left: 0; }
#publications-section > ul > li:last-child { padding-right: 0; border-right: 0; }

.tag-badge,
a.tag-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 7px 10px !important;
  border: 1px solid #b7bdc8 !important;
  border-radius: 4px;
  color: #344054 !important;
  background: transparent;
  font-size: 12px;
  font-weight: 750 !important;
  text-decoration: none;
}

a.tag-badge:hover {
  color: #fff !important;
  border-color: var(--blue) !important;
  background: var(--blue);
  box-shadow: none;
  transform: none;
}

.filter-nav {
  justify-content: flex-start;
  gap: 8px;
  margin: -4px 0 26px;
}

.filter-btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b7bdc8;
  border-radius: 4px;
  color: #344054;
  background: transparent;
  font-size: 13px;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
}

#awards-section > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#awards-section .award-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  background: #fff;
}

.award-badge {
  padding: 7px 10px;
  border-radius: 3px;
  color: #6a4a00;
  background: #fff2b8;
  box-shadow: none;
  font-size: 12px;
  animation: none;
}

.section-image-container {
  margin-top: 26px;
}

.section-image {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: none;
}

.section-image:hover {
  transform: none;
}

.sns-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.sns-button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  justify-content: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.sns-button:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: none;
  transform: none;
}

.sns-icon {
  width: 30px;
  font-size: 20px;
  text-align: center;
}

.slideshow-container {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 5px;
  background: var(--ink);
  box-shadow: none;
}

.mySlides,
.mySlides img {
  width: 100%;
  height: 100%;
}

.mySlides img {
  object-fit: contain;
}

.fade {
  animation-duration: 0.8s;
}

.gallery-controls {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.gallery-button {
  width: 52px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.gallery-button:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.gallery-counter {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }

footer {
  margin-top: 24px;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.86);
  text-align: left;
}

@media (max-width: 1080px) {
  .container > .hero {
    grid-template-columns: 1fr 0.8fr;
    min-height: 650px;
    padding: 60px 48px;
  }

  .section-five,
  .section-seven,
  .section-four,
  .section-eight {
    grid-column: span 6;
  }

  #publications-section > ul {
    grid-template-columns: 1fr;
  }

  #publications-section > ul > li,
  #publications-section > ul > li:first-child,
  #publications-section > ul > li:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  #publications-section > ul > li:last-child { border-bottom: 0; }
}

@media (max-width: 780px) {
  .container {
    padding: 12px 12px 30px;
  }

  .lang-switcher {
    top: 16px;
    right: 16px;
  }

  .container > .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding: 74px 22px 28px;
    border-radius: 7px;
  }

  #main-title {
    font-size: clamp(50px, 17vw, 78px);
  }

  .hero-lead {
    margin-top: 24px;
  }

  .hero-actions > a {
    flex: 1 1 100%;
  }

  .hero-facts {
    margin-top: 36px;
  }

  .hero-visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

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

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

  main {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .section-wide,
  .section-eight,
  .section-seven,
  .section-six,
  .section-five,
  .section-four {
    grid-column: 1;
  }

  .section {
    padding: 28px 21px;
  }

  .section h2 {
    margin-bottom: 24px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-image {
    max-height: none;
    aspect-ratio: 4 / 4.5;
  }

  .profile-name-en {
    display: block;
    margin: 7px 0 0;
  }

  #awards-section > ul {
    grid-template-columns: 1fr;
  }

  #awards-section .award-item {
    padding: 21px 18px;
  }

  .slideshow-container {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
