
:root {
  color-scheme: light;
  --text: #191919;
  --muted: #6f6f6f;
  --soft: #969696;
  --line: #ececec;
  --surface: #f3f3f3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: p22-underground, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
.site {
  width: min(700px, calc(100% - 48px));
  margin: 0 auto;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: flex-end;
  padding: 30px 0 24px;
  font-size: 13px;
  color: #636363;
}
.top-nav a,
footer a,
.back-link,
.links a,
.section-foot a {
  position: relative;
  transition: color .22s ease, transform .22s ease, opacity .22s ease;
}
.top-nav a::after,
footer a::after,
.back-link::after,
.links a::after,
.section-foot a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s ease;
  opacity: .45;
}
.top-nav a:hover,
footer a:hover,
.back-link:hover,
.links a:hover,
.section-foot a:hover {
  color: #111;
  transform: translateY(-1px);
}
.top-nav a:hover::after,
footer a:hover::after,
.back-link:hover::after,
.links a:hover::after,
.section-foot a:hover::after {
  transform: scaleX(1);
}
.arrow {
  display: inline-block;
  transition: transform .22s ease;
  margin-left: 2px;
}
.animated-link:hover .arrow { transform: translate(2px, -1px); }
.language {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-left: 5px;
}
.language button {
  border: 0;
  background: none;
  font: inherit;
  color: #999;
  cursor: pointer;
  padding: 2px;
  transition: color .2s ease, opacity .2s ease;
}
.language button:hover { color: #333; }
.language button[aria-pressed="true"] { color: #181818; font-weight: 600; }
.profile-head {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 62px 0 76px;
}
.avatar,
.entry-thumb {
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ececec;
  color: #8a8a8a;
  letter-spacing: .02em;
  overflow: hidden;
}
.avatar {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  font-size: 22px;
}
.entry-thumb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.presentation-title {
  font-weight: 400;
  line-height: 1.6;
}

.presentation-authors {
  margin-top: 4px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.presentation-authors strong {
  font-weight: 600;
  color: #191919;
}

#presentations .entry-sub a.animated-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

#presentations .entry-sub a.animated-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

#presentations .entry-sub a.animated-link:hover {
  color: #111;
  transform: translateY(-1px);
}

#presentations .entry-sub a.animated-link:hover::after {
  transform: scaleX(1);
}

.publication-title {
  font-weight: 400;
  line-height: 1.6;
}

.publication-authors {
  margin-top: 4px;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.publication-authors strong {
  font-weight: 600;
  color: #191919;
}

.publication-authors + .entry-sub {
  margin-top: 4px;
}

#publications .entry-sub a.animated-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
}

#publications .entry-sub a.animated-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

#publications .entry-sub a.animated-link:hover {
  color: #111;
  transform: translateY(-1px);
}

#publications .entry-sub a.animated-link:hover::after {
  transform: scaleX(1);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: 5px;
}
.profile-meta { color: #5b5b5b; font-size: 15px; margin-bottom: 2px; }
.profile-detail { color: #959595; font-size: 13px; margin-bottom: 0; }
.section { margin-bottom: 64px; scroll-margin-top: 26px; }
.section-title {
  font-family: p22-underground, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 12px;
}
.intro-copy { color: #555; line-height: 1.9; font-size: 15px; margin: 0; }
.entry {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0 19px;
}
.entry-thumb-layout {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  padding: 10px 0 18px;
}
.entry-year {
  color: var(--soft);
  font-size: 14px;
  white-space: nowrap;
}
.entry-main { font-size: 15px; }
.entry-sub {
  margin-top: 4px;
  color: #717171;
  line-height: 1.7;
  font-size: 14px;
}
.mini-heading { font-size: 14px; font-weight: 600; margin: 24px 0 10px; }
.section-foot { margin: 8px 0 0 92px; font-size: 14px; }
.hint { color: #8a8a8a; font-size: 13px; margin-bottom: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 10px 0 16px; }
footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 42px;
  font-size: 12px;
  color: #999;
}
.footer-dot { padding: 0 8px; }
.activities-head { margin: 45px 0 70px; }
.activities-head h1 { font-size: 29px; margin: 14px 0 7px; }
.back-link { font-size: 13px; color: #777; }
.muted { color: #666; }
.activity-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 17px 0 30px;
  align-items: start;
}
.activity-entry h3 { font-size: 15px; margin: 0; font-weight: 600; }
.activity-entry .entry-sub { margin: 3px 0 14px; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo-placeholder {
  min-height: 145px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #a1a1a1;
  background: #f0f0f0;
  border-radius: 7px;
  font-size: 12px;
}
[data-i18n="ja"] { display: none; }
html[data-language="ja"] [data-i18n="en"] { display: none; }
html[data-language="ja"] [data-i18n="ja"] { display: revert; }
html[data-language="ja"] body {
  font-family: a-otf-gothic-mb101-pr6n, sans-serif;
  font-weight: 300;
}
html[data-language="ja"] h1 {
  font-family: dnp-shuei-mincho-pr6n, serif;
  font-weight: 400;
}
html[data-language="ja"] .section-title {
  font-family: dnp-shuei-mincho-pr6n, serif;
  font-weight: 500;
}
html[data-language="ja"] .mini-heading,
html[data-language="ja"] .activity-entry h3 {
  font-family: dnp-shuei-mincho-pr6n, serif;
  font-weight: 600;
}
/* html[data-language="en"] h1 {
  font-family: kepler-std-display, Georgia, serif;
} */
@media (max-width: 560px) {
  .site { width: calc(100% - 36px); }
  .top-nav { gap: 15px; padding-top: 17px; flex-wrap: wrap; }
  .profile-head { gap: 18px; margin: 36px 0 60px; }
  .avatar { width: 75px; height: 75px; }
  .entry-thumb { width: 62px; height: 62px; font-size: 11px; }
  h1 { font-size: 24px; }
  .entry, .activity-entry { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
  .entry-thumb-layout { grid-template-columns: 70px minmax(0, 1fr); }
  .entry-year { font-size: 12px; }
  .section { margin-bottom: 54px; }
  .section-foot { margin-left: 70px; }
  .photo-grid { gap: 8px; }
  .photo-placeholder { min-height: 100px; }
}

/* Activities entries use full-width text and photo galleries, without thumbnails. */
.activity-entry { display: block; padding: 17px 0 30px; }
.activity-entry .entry-main { width: 100%; }

/* Square photo gallery */
.activity-entry { display: block; padding: 17px 0 32px; }
.activity-entry > .entry-main { width: 100%; }
.photo-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.photo-link { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 5px; background: #efefef; cursor: zoom-in; isolation: isolate; }
.photo-thumb { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease, filter .28s ease; }
.photo-link:hover .photo-thumb, .photo-link:focus-visible .photo-thumb { transform: scale(1.055); filter: brightness(.76); }
.photo-zoom-icon { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.photo-zoom-icon svg { width: 27px; height: 27px; filter: drop-shadow(0 1px 2px #3339); }
.photo-link:hover .photo-zoom-icon, .photo-link:focus-visible .photo-zoom-icon { opacity: 1; }
.photo-link:focus-visible { outline: 2px solid #777; outline-offset: 3px; }
.photo-missing { display: grid; position: absolute; inset: 0; place-items: center; text-align: center; padding: 8px; background: #f1f1f1; color: #aaa; font-size: 12px; pointer-events: none; }
.photo-link.is-missing { cursor: default; }
.photo-link.is-missing .photo-zoom-icon { display: none; }
.photo-lightbox[hidden] { display: none; }
.photo-lightbox { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 28px; background: #101216eb; opacity: 0; transition: opacity .2s ease; }
.photo-lightbox.is-open { opacity: 1; }
.photo-lightbox-content { position: relative; max-width: min(100%, 1100px); display: grid; justify-items: center; gap: 12px; }
.photo-lightbox-image { max-width: 100%; max-height: min(82dvh, 900px); object-fit: contain; }
.photo-lightbox-caption { margin: 0; color: white; font-size: 13px; text-align: center; }
.photo-lightbox-close { position: fixed; right: 18px; top: 14px; border: none; background: transparent; color: #fff; font-size: 34px; line-height: 1; padding: 6px 10px; cursor: pointer; }
.photo-lightbox-close:hover { opacity: .65; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 560px) { .photo-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; } .photo-lightbox { padding: 14px; } }
@media (max-width: 360px) { .photo-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .photo-thumb, .photo-zoom-icon, .photo-lightbox { transition: none; } }

.photos-page .site {
  width: min(700px, calc(100% - 48px));
}
.photos-head {
  margin: 45px 0 38px;
}
.photos-head h1 {
  font-size: 29px;
  margin: 14px 0 7px;
}
.collage-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 6px;
  grid-auto-flow: dense;
  gap: 10px;
  margin-bottom: 80px;
}
.collage-item {
  display: block;
  position: relative;
  grid-column: span 1;
  align-self: start;
  overflow: hidden;
  border-radius: 2px;
  cursor: zoom-in;
}
.collage-item.large {
  grid-column: span 2;
}
.collage-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .35s ease, filter .35s ease;
}
.collage-item:hover img {
  transform: scale(1.04);
  filter: brightness(.88);
}
.collage-item:focus-visible {
  outline: 2px solid #555;
  outline-offset: 3px;
}
.collage-lightbox[hidden] {
  display: none;
}
.collage-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
  background: rgba(8, 10, 12, .94);
}
.collage-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 88dvh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.collage-close,
.collage-prev,
.collage-next {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease;
}
.collage-close:hover,
.collage-prev:hover,
.collage-next:hover {
  opacity: 1;
}
.collage-close {
  top: 16px;
  right: 22px;
  font-size: 30px;
}
.collage-prev,
.collage-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
}
.collage-prev { left: 15px; }
.collage-next { right: 15px; }
.collage-counter {
  position: absolute;
  bottom: 16px;
  color: #aaa;
  font-size: 12px;
}
body.lightbox-open {
  overflow: hidden;
}
@media (max-width: 560px) {
  .photos-page .site {
    width: calc(100% - 36px);
  }
  .collage-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .collage-lightbox {
    padding: 45px 18px;
  }
  .collage-prev { left: 4px; }
  .collage-next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .collage-item img,
  .collage-close,
  .collage-prev,
  .collage-next {
    transition: none;
  }
}
.collage-caption {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  color: #fff;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}