@import url('/assets/css/fonts.css');
:root {
  --text:#1a1a1a;
  --secondary:#374151;
  --muted:#6b7280;
  --link:#0066cc;
  --border:#eee;
  --subtle:#f3f4f6;
  --section-gap:72px;
  color-scheme:light;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  font-size:16px;
  line-height:1.625;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:#fff;
  padding-top:60px;
}
html:lang(ja) {
  font-family:'Noto Sans JP',sans-serif;
  line-height:1.875;
}
a {
  color:var(--link);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
button {
  font:inherit;
  color:inherit;
  cursor:pointer;
}
button,a {
  -webkit-tap-highlight-color:transparent;
}
button {
  border:0;
  background:none;
}
a:focus-visible,button:focus-visible,summary:focus-visible {
  outline:2px solid var(--link);
  outline-offset:5px;
}
p,h1,h2,h3,ul {
  margin:0;
}
img {
  display:block;
  max-width:100%;
}
[hidden] {
  display:none!important;
}
.site-shell {
  width:min(960px,calc(100vw - 40px));
  margin-inline:0;
  margin-left:max(20px,calc((100vw - 960px)/2));
}
.site-header,main,.site-footer {
  width:min(896px,100%);
  padding-inline:24px;
}
.site-header {
  padding-top:48px;
  padding-bottom:24px;
}
.header-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:32px;
  gap:24px;
}
.brand {
  font-family:Roboto,sans-serif;
  font-size:32px;
  font-weight:700;
  letter-spacing:1px;
  line-height:32px;
  color:var(--text);
  white-space:nowrap;
}
.brand:hover {
  text-decoration:none;
}
.header-line {
  margin-top:32px;
  border-bottom:.56px solid var(--border);
}
.desktop-nav {
  display:flex;
  align-items:center;
  gap:32px;
  padding:10px;
  font-size:14px;
  font-weight:500;
  line-height:22px;
}
.nav-links {
  display:flex;
  gap:32px;
}
.desktop-nav a,.mobile-nav a {
  color:var(--secondary);
}
.nav-separator {
  height:14px;
  border-left:1px solid var(--muted);
}
.language {
  position:relative;
}
.language summary {
  display:flex;
  align-items:center;
  gap:4px;
  cursor:pointer;
  list-style:none;
}
.language summary::-webkit-details-marker {
  display:none;
}
.language[open] summary img {
  transform:rotate(180deg);
}
.language-options {
  position:absolute;
  top:32px;
  right:0;
  z-index:10;
  min-width:120px;
  padding:12px 16px;
  border:1px solid var(--border);
  background:white;
  box-shadow:0 4px 12px #0000000d;
  display:grid;
  gap:12px;
}
.menu-toggle,.mobile-nav {
  display:none;
}
.skip-link {
  position:fixed;
  left:20px;
  top:-100px;
  background:white;
  padding:10px;
  z-index:30;
}
.skip-link:focus {
  top:12px;
}
main {
  padding-top:16px;
  padding-bottom:16px;
  display:flex;
  flex-direction:column;
  gap:var(--section-gap);
}
.section-heading {
  font-size:24px;
  line-height:32px;
  letter-spacing:-.6px;
  font-weight:700;
  padding-bottom:8px;
  border-bottom:.56px solid var(--border);
  margin-bottom:8px;
}
html:lang(ja) .section-heading {
  line-height:36px;
  letter-spacing:0;
}
.intro {
  margin-bottom:8px;
}
.mission-heading {
  font-size:20px;
  line-height:28px;
  margin-bottom:4px;
}
html:lang(ja) .mission-heading {
  line-height:30px;
}
.resource-list {
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.resource-list li {
  position:relative;
  padding-left:20px;
  line-height:24px;
  font-weight:500;
  overflow-wrap:anywhere;
}
.resource-list li::before {
  content:'';
  position:absolute;
  left:2px;
  top:calc(50% - 3px);
  width:6px;
  height:6px;
  background:url('/assets/images/icons/bullet.svg') center/contain no-repeat;
}
html:lang(ja) .resource-list li {
  line-height:28px;
}
.education-list {
  gap:12px;
}
.unavailable {
  color:var(--link);
  cursor:help;
}
.team-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:32px;
}
.team-photo {
  width:100px;
  height:100px;
  object-fit:cover;
  border-radius:3px;
  margin-bottom:8px;
}
.team-name {
  font-size:16px;
  font-weight:400;
  line-height:24px;
  margin-bottom:8px;
}
.team-socials {
  display:flex;
  gap:12px;
  align-items:center;
}
.team-socials img {
  max-width:18px;
}
.site-footer {
  padding-top:60px;
  padding-bottom:60px;
}
.footer-line {
  border-top:.56px solid var(--border);
  margin-bottom:18px;
}
.footer-brand {
  font-size:18px;
  line-height:32px;
}
.footer-content {
  display:grid;
  gap:12px;
}
.footer-social {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:500;
  line-height:20px;
}
.footer-social img {
  flex-shrink:0;
}
.copyright {
  font-size:12px;
  line-height:22px;
  color:var(--muted);
}
.page-title {
  font-size:24px;
  line-height:32px;
  font-weight:700;
  letter-spacing:-.6px;
}
html:lang(ja) .page-title {
  line-height:36px;
  letter-spacing:0;
}
.category .section-heading {
  font-size:20px;
  font-weight:500;
  line-height:28px;
  letter-spacing:0;
}
html:lang(ja) .category .section-heading {
  line-height:30px;
}
.research-main {
  gap:64px;
}
.education-main {
  gap:36px;
}
.course-layout {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr);
  gap:24px;
}
.video-poster {
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:5px;
  box-shadow:0 18px 30px -27px #6b7280;
}
.player-frame {
  aspect-ratio:16/9;
}
.video-preview {
  position:relative;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  border-radius:5px;
}
.video-play-icon {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  display:grid;
  place-items:center;
  width:68px;
  height:48px;
  border-radius:12px;
  background:#e60000;
  box-shadow:0 2px 8px #0003;
}
.video-play-icon::before {
  content:'';
  margin-left:4px;
  border-top:11px solid transparent;
  border-bottom:11px solid transparent;
  border-left:18px solid white;
}
.video-preview:hover .video-play-icon,
.video-preview:focus-visible .video-play-icon {
  background:#c00;
}
.player-frame iframe {
  width:100%;
  height:100%;
  border:0;
  border-radius:5px;
}
.video-info {
  padding:20px 0;
}
.video-title {
  font-size:19px;
  line-height:28px;
  font-weight:700;
}
.level {
  font-size:10px;
  line-height:15px;
  color:var(--muted);
}
.video-description {
  border-top:1px solid var(--border);
  padding:12px 0 16px;
}
.description-heading {
  font-family:Inter,sans-serif;
  font-size:10px;
  font-weight:500;
  line-height:15px;
}
.description-body {
  font-size:10px;
  line-height:18px;
  margin-top:8px;
  min-height:48px;
  white-space:pre-line;
}
.instructor {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px;
  background:#f7f8fa;
  border-radius:5px;
}
.instructor-person {
  display:flex;
  align-items:center;
  gap:12px;
}
.instructor-avatar {
  width:32px;
  height:32px;
  object-fit:cover;
  border-radius:50%;
}
.instructor-name {
  font-size:10px;
  line-height:15px;
}
.instructor-role {
  font-size:9px;
  line-height:14px;
  color:var(--muted);
}
.instructor-x {
  font-size:14px;
  color:var(--muted);
}
.modules-heading {
  font-family:Inter,sans-serif;
  font-size:12px;
  line-height:18px;
  font-weight:500;
  letter-spacing:.3px;
}
.module-list {
  display:grid;
  gap:8px;
  list-style:none;
  padding:8px 0 0;
}
.module-button {
  display:flex;
  align-items:center;
  gap:8px;
  text-align:left;
  width:100%;
  border:.7px solid var(--border);
  border-radius:4px;
  padding:10px;
  min-height:64px;
  background:#fff;
}
.module-button[aria-pressed=true] {
  background:var(--subtle);
}
.module-button:hover {
  background:#f7f8fa;
}
.module-thumb {
  width:64px;
  height:43px;
  object-fit:contain;
  border-radius:5px;
  flex-shrink:0;
}
.module-text {
  flex:1;
  min-width:0;
}
.module-title {
  display:block;
  font-size:11px;
  line-height:15px;
  font-weight:500;
  overflow-wrap:anywhere;
}
.duration {
  display:flex;
  align-items:center;
  gap:4px;
  font-family:Inter,sans-serif;
  font-size:8px;
  line-height:12px;
  padding-top:4px;
  color:var(--secondary);
}
.missing-note {
  font-size:12px;
  line-height:20px;
  color:var(--muted);
  margin-top:12px;
}
.language-main {
  max-width:896px;
  min-height:260px;
}
.language-choice {
  display:flex;
  gap:32px;
}
.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
@media(max-width:700px) {
  body {
    padding-top:24px;
  }
  .header-row {
    min-height:32px;
  }
  .brand {
    font-size:28px;
  }
  .desktop-nav {
    display:none;
  }
  .menu-toggle {
    display:flex;
    align-items:center;
    justify-content:center;
    width:24px;
    height:32px;
    padding:0;
  }
  .menu-toggle .menu-image {
    width:20px;
    height:10px;
  }
  .menu-toggle .close-image {
    display:none;
  }
  .site-header.menu-open .menu-image {
    display:none;
  }
  .site-header.menu-open .close-image {
    display:block;
  }
  .site-header.menu-open .header-row .brand {
    visibility:hidden;
  }
  .site-header.menu-open .header-line {
    display:none;
  }
  .site-header.menu-open .mobile-nav {
    display:flex;
    flex-direction:column;
    padding:28px 16px 16px 0;
    font-size:14px;
    line-height:22px;
  }
  .mobile-nav .nav-links {
    display:flex;
    flex-direction:column;
    gap:16px;
  }
  .mobile-languages {
    display:grid;
    gap:12px;
    border-top:1px solid var(--border);
    margin-top:16px;
    padding-top:16px;
  }
  .mobile-languages strong {
    font-family:Inter,sans-serif;
    font-size:14px;
    line-height:28px;
    font-weight:600;
  }
  .section-heading {
    font-size:20px;
    line-height:28px;
    letter-spacing:0;
  }
  html:lang(ja) .section-heading {
    line-height:30px;
  }
  .mission-heading {
    font-size:18px;
    line-height:28px;
  }
  html:lang(ja) .mission-heading {
    font-size:18px;
    line-height:30px;
  }
  .team-grid {
    grid-template-columns:1fr;
    gap:32px;
  }
  .team-member {
    width:188px;
  }
  .page-title,html:lang(ja) .page-title {
    font-size:20px;
    line-height:28px;
  }
  .course-layout {
    grid-template-columns:1fr;
    gap:40px;
  }
  .education-main {
    gap:48px;
  }
  .video-info {
    padding:12px 0 28px;
  }
  .video-title {
    font-size:18px;
    line-height:32px;
  }
  .description-body {
    margin-top:12px;
  }
  .module-list {
    padding-top:16px;
  }
  .footer-brand {
    font-size:18px;
  }
  .language-choice {
    flex-wrap:wrap;
  }
  .site-header {
    padding-top:48px;
  }
  .site-footer {
    padding-bottom:60px;
  }
}

main>section:not(.category) {
  display:flex;
  flex-direction:column;
}
@media(prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior:smooth;
  }
}
html:lang(ja) .footer-social {
  line-height:22px;
}

/* Desktop: increase the course description by 1px. */
@media (min-width:701px) {
  .description-body {
    font-size:11px;
  }
}
