:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --text: #111827;
  --muted: #5f6b7a;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-strong: #1e3a8a;
  --soft-accent: #ffffff;
  --shadow: 0 14px 40px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

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

.site-shell {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 72px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: 1.65rem;
  line-height: 1.25;
}

.publications-section h2 {
  margin-bottom: 14px;
}

.experience-section {
  margin-top: 18px;
  padding-top: 18px;
}

.experience-section h2 {
  margin-bottom: 12px;
}

h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  line-height: 1.38;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 34px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1f2937;
  line-height: 0;
  text-decoration: none;
}

.icon-link:hover,
.icon-link:focus-visible {
  color: var(--accent-strong);
}

.icon-link svg {
  display: block;
  width: 46px;
  height: 46px;
  fill: currentColor;
  flex: 0 0 auto;
}

.intro-text {
  max-width: 720px;
  font-size: 1.12rem;
}

.intro-text p {
  margin-bottom: 18px;
}

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

.portrait {
  margin: 0;
  justify-self: end;
}

.portrait img {
  display: block;
  width: min(100%, 310px);
  height: 430px;
  max-height: none;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center 58%;
}

.section {
  padding: 48px 0 0;
}

.news-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 2.2rem;
  font-size: 1.08rem;
  list-style: disc;
}

.news-list li {
  padding-left: 4px;
}

.news-list time,
.venue,
.muted,
.experience-entry p {
  color: var(--muted);
}

.news-list time {
  display: inline-block;
  margin-right: 10px;
  font-weight: 650;
}

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

.publication {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 16px 0;
}

.publication-thumbnail {
  width: 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
}

.publication-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.publication h3,
.project-body h3 {
  max-width: 760px;
  font-size: 1.28rem;
}

.authors {
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.08rem;
}

.venue {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 650;
}

.venue-strong {
  color: var(--text);
  font-weight: 760;
}

.venue-dark {
  color: var(--text);
  font-weight: 400;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  align-items: baseline;
}

.publication-links a {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 400;
  text-decoration: none;
}

.publication-links span {
  margin: 0;
  color: var(--muted);
  font-size: 1.34rem;
  line-height: 1;
}

.publication-links a:hover,
.publication-links a:focus-visible {
  color: var(--accent);
}

.project-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 10px 0;
}

.project-media {
  display: grid;
  gap: 10px;
  transform: translateY(18px);
}

.project-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: contain;
}

.project-media .project-sync-gif {
  aspect-ratio: auto;
  height: auto;
}

.project-body p {
  margin-bottom: 0;
  font-size: 1.12rem;
}

.simple-entry,
.experience-entry,
.education-entry {
  padding: 14px 0 10px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.simple-entry p,
.experience-entry p,
.education-entry p {
  margin-bottom: 0;
}

.experience-entry {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.experience-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.experience-date {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.experience-heading h3,
.experience-heading p {
  margin-bottom: 0;
  font-size: 1.24rem;
}

.experience-heading span {
  margin: 0 -2px;
  color: var(--muted);
  font-size: 1.48rem;
  line-height: 1;
}

.experience-heading a {
  color: var(--accent);
  font-size: 1.24rem;
  font-weight: 400;
  text-decoration: none;
}

.experience-body {
  padding-left: 1.1rem;
}

.experience-heading a:hover,
.experience-heading a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.experience-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.experience-logo-wrap img {
  display: block;
  width: 72px;
  height: auto;
  object-fit: contain;
}

.education-entry {
  display: grid;
  gap: 14px;
  padding-left: 1.1rem;
}

.education-item {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.education-item h3 {
  margin-bottom: 2px;
  font-size: 1.24rem;
}

.education-item p {
  color: var(--text);
  font-size: 1.04rem;
}

.education-logo {
  display: block;
  width: 72px;
  height: auto;
  object-fit: contain;
  transform: translateY(14px);
}

.education-logo-kogakuin {
  width: 86px;
  transform: translateY(26px);
}

.section-intro {
  max-width: none;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.12rem;
  white-space: nowrap;
}

.quotes-entry {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.quote-list {
  display: grid;
  gap: 8px;
}

.quote-entry {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.5rem;
  align-items: baseline;
  padding: 6px 0;
  width: 100%;
}

.quote-entry blockquote {
  margin: 0;
  min-width: 0;
  text-align: center;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-style: italic;
}

.quote-entry p {
  margin: 0;
}

.quote-entry cite {
  color: var(--muted);
  font-size: 1.12rem;
  font-style: italic;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
}

.quote-dot {
  display: inline-block;
  margin: 0 0.18em;
  font-size: 0.78em;
  line-height: 1;
  vertical-align: 0.06em;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 1040px);
    padding: 44px 0 56px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
    padding-bottom: 42px;
  }

  .portrait {
    justify-self: center;
  }

  .portrait img {
    width: min(100%, 300px);
    height: 418px;
  }

  .news-list li,
  .publication,
  .project-entry {
    grid-template-columns: 1fr;
  }

  .publication-thumbnail {
    width: min(100%, 280px);
    justify-self: center;
  }

  .project-media {
    width: min(100%, 280px);
    justify-self: center;
    transform: none;
  }

  .section-intro {
    white-space: normal;
  }

  .experience-entry {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .experience-logo-wrap {
    align-items: flex-end;
    white-space: normal;
  }

  .education-logo-ucdavis {
    transform: translateY(20px);
  }

  .education-logo-kogakuin {
    transform: translateY(20px);
  }
}

@media (max-width: 460px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .icon-link {
    padding: 0;
  }
}
