/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

h2 {
  margin: 0;
  font-weight: normal;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.news-image-link {
  margin-left: 4px;
  border-bottom: 1px solid #d8d8d8;
  color: #777777;
  font-size: 11px;
  line-height: 1.2;
}

.news-image-link:focus,
.news-image-link:hover {
  border-bottom-color: #f09228;
}

.news-lightbox {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 7px;
  background: transparent;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.news-lightbox::backdrop {
  background: rgba(18, 18, 18, 0.52);
}

.news-lightbox-frame {
  position: relative;
  padding: 7px;
  border-radius: 7px;
  background: #ffffff;
}

.news-lightbox img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 3px;
}

.news-lightbox-close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  cursor: pointer;
  font: 400 20px/1 Arial, sans-serif;
}

.news-lightbox-close:focus,
.news-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.78);
}

.colored-box {
    color: black;
    padding: 20px;
    display: inline-block;
    border-radius: 10px;
}

.lang-toggle {
  width: 100%;
  max-width: 800px;
  margin: 16px auto 0 auto;
  text-align: right;
}

.lang-btn {
  background: #ffffff;
  border: 1px solid #cccccc;
  color: #333333;
  border-radius: 16px;
  padding: 4px 12px;
  margin-left: 6px;
  cursor: pointer;
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 12px;
}

.lang-btn:hover {
  border-color: #1772d0;
  color: #1772d0;
}

.lang-btn.active {
  background: #1772d0;
  border-color: #1772d0;
  color: #ffffff;
}

.lang-ja,
.lang-zh-hans,
.lang-zh-hant {
  display: none;
}

.profile-copy {
  box-sizing: border-box;
  width: 63%;
  padding: 2.5%;
  vertical-align: middle;
}

.profile-photo {
  box-sizing: border-box;
  width: 37%;
  max-width: 37%;
  padding: 2.5%;
  vertical-align: middle;
}

.profile-image {
  display: block;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
}

.profile-photo-mobile {
  display: none;
}

.internship-callout {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 16px 18px;
  color: #b42318;
  text-align: left;
  line-height: 1.5;
}

.internship-callout p {
  margin: 0;
}

.internship-callout a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.internship-callout a:hover,
.internship-callout a:focus {
  color: #7a1812;
}

.internship-term {
  white-space: nowrap;
}

.education-list {
  padding: 0 10px 4px;
}

.education-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid #eeeeee;
}

.education-item:last-child {
  border-bottom: 0;
}

.education-logo-link {
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
}

.education-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.education-content {
  min-width: 0;
}

.education-heading {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.education-school {
  font-size: 16px;
  font-weight: 700;
}

.education-date {
  flex: 0 0 auto;
  color: #555555;
  font-size: 13px;
  white-space: nowrap;
}

.education-role {
  margin-top: 5px;
  font-weight: 700;
  line-height: 1.45;
}

.education-detail {
  margin-top: 3px;
  color: #444444;
  line-height: 1.45;
}

.education-support {
  margin-top: 3px;
  color: #444444;
  line-height: 1.45;
}

.collaborators-intro {
  margin-top: 0;
}

.personal-section-copy p {
  margin: 0 0 10px;
  line-height: 1.55;
}

.personal-section-copy p:last-child {
  margin-bottom: 2px;
}

.visitor-stats {
  padding: 12px 10px 26px;
  text-align: center;
}

.visitor-map {
  width: 100%;
  max-width: 560px;
  min-height: 150px;
  margin: 0 auto;
}

.visitor-map:empty {
  min-height: 0;
}

body[data-lang="ja"] .lang-en,
body[data-lang="ja"] .lang-zh-hans,
body[data-lang="ja"] .lang-zh-hant {
  display: none !important;
}

body[data-lang="ja"] .lang-ja {
  display: revert !important;
}

body[data-lang="zh-hans"] .lang-en,
body[data-lang="zh-hans"] .lang-ja,
body[data-lang="zh-hans"] .lang-zh-hant {
  display: none !important;
}

body[data-lang="zh-hans"] .lang-zh-hans {
  display: revert !important;
}

body[data-lang="zh-hant"] .lang-en,
body[data-lang="zh-hant"] .lang-ja,
body[data-lang="zh-hant"] .lang-zh-hans {
  display: none !important;
}

body[data-lang="zh-hant"] .lang-zh-hant {
  display: revert !important;
}

@media screen and (max-width: 600px) {
  .profile-copy,
  .profile-photo-mobile {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .profile-copy {
    padding: 12px 16px;
  }

  .profile-photo {
    display: none;
  }

  .profile-photo-mobile {
    max-width: 220px;
    margin: 14px auto 24px;
  }

  .profile-image {
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  body {
    margin: 0;
    padding: 0 12px;
  }

  body,
  td,
  th,
  tr,
  p,
  a,
  strong {
    font-size: 13px;
  }

  h2 {
    font-size: 18px;
  }

  .name {
    font-size: 26px;
    padding-top: 12px;
  }

  table {
    width: 100% !important;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }

  p {
    line-height: 1.55;
  }

  ul {
    padding-left: 18px !important;
  }

  span[style*="float:right"] {
    float: none !important;
    display: block;
    margin-top: 2px;
  }

  .paper {
    line-height: 1.5;
  }

  .education-list {
    padding-right: 4px;
    padding-left: 4px;
  }

  .education-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
  }

  .education-logo-link {
    width: 54px;
    height: 54px;
  }

  .education-logo {
    width: 50px;
    height: 50px;
  }

  .education-heading {
    display: block;
  }

  .education-school {
    display: block;
    font-size: 14px;
    line-height: 1.35;
  }

  .education-date {
    display: block;
    margin-top: 3px;
    font-size: 12px;
  }

  .visitor-stats {
    padding: 8px 4px 22px;
  }

  .visitor-map {
    max-width: 100%;
  }

  .lang-toggle {
    margin-top: 10px;
    padding-right: 4px;
  }
}
