/*
 * Site-wide finishing rules.
 * Page-specific styles live in assets/css/<page-name>.css.
 */

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.global-nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

/* Use the same laboratory lockup on every page. */
.brand--lockup {
  display: grid !important;
  grid-template-columns: auto auto !important;
  align-items: center !important;
  column-gap: clamp(12px, 1.3vw, 22px) !important;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif !important;
}

.brand-affiliation {
  display: grid !important;
  gap: 1px !important;
  text-align: right !important;
}

.brand-affiliation span {
  font-size: clamp(11px, 1vw, 16px) !important;
  font-weight: 500 !important;
  line-height: 1.12 !important;
  letter-spacing: .06em !important;
  white-space: nowrap !important;
}

.brand-laboratory {
  font-size: clamp(20px, 2.1vw, 34px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: .015em !important;
  white-space: nowrap !important;
}

/* Keep every internal page on the same left-hand alignment line. */
.photo-page-hero-inner,
.news-photo-hero-inner {
  width: 100%;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
  padding-left: var(--pad) !important;
  padding-right: var(--pad) !important;
  justify-items: start;
  text-align: left;
}

.photo-page-hero-inner > div,
.news-photo-hero-inner > div,
.page-title,
.section-title {
  justify-self: start;
  text-align: left;
}

.page-body-inner {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.environment-inner {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Keep the home hero and each home section on the same left edge. */
.hero-content {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.home-section .section-inner {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Start the main text at the same vertical position on every page. */
.page-body,
.environment-section {
  padding-top: clamp(52px, 5.6vw, 86px) !important;
}

@media (max-width: 720px) {
  .page-title {
    max-width: 100%;
    font-size: clamp(16px, 11vw, 64px);
    white-space: nowrap;
  }
  .page-body,
  .environment-section {
    padding-top: 48px !important;
  }
}

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