/* MIRAIWEB: 8px base unit, sixteen / eight / four-column editorial grid. */
:root {
  --color-white: #fff;
  --color-gray-10: #f4f4f4;
  --color-gray-20: #e0e0e0;
  --color-gray-30: #c6c6c6;
  --color-gray-70: #525252;
  --color-gray-100: #161616;
  --color-blue-60: #0f62fe;
  --color-blue-hover: #0043ce;

  --space-01: 8px;
  --space-02: 16px;
  --space-03: 24px;
  --space-04: 32px;
  --space-05: 48px;
  --space-06: 64px;
  --space-07: 80px;
  --space-08: 96px;
  --space-09: 128px;
  --space-10: 160px;

  --font-body: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
  --font-label: "IBM Plex Sans", "IBM Plex Sans JP", sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  --text-display: clamp(2.25rem, 6vw, 5rem);
  --text-page-title: clamp(2rem, 3vw, 3rem);
  --text-heading: clamp(2rem, 3.2vw, 3.5rem);
  --text-subheading: clamp(1.5rem, 2.2vw, 2rem);
  --text-title: 1.25rem;
  --text-body: 1rem;
  --text-small: .875rem;
  --text-label: .75rem;

  --line-height-display: 1.16;
  --line-height-page-title: 1.2;
  --line-height-heading: 1.4;
  --line-height-title: 1.5;
  --line-height-body: 1.9;
  --line-height-ui: 1.5;

  --border-subtle: 1px solid var(--color-gray-20);
  --motion-ui: 160ms ease;
  --motion-reveal: 400ms ease;
  --header-height: 72px;
  --page-gutter: 32px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--color-blue-60);
  outline-offset: 4px;
}

.mw-shell {
  width: min(1440px, calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.mw-grid {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  column-gap: var(--space-03);
}

.mw-corporate {
  padding-top: var(--header-height);
  color: var(--color-gray-100);
  background: var(--color-white);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.mw-corporate :where(h1, h2, h3, p, ul, ol, dl, figure) {
  margin: 0;
}

.mw-corporate :where(h1, h2, h3) {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  overflow-wrap: anywhere;
}

.mw-corporate h2 {
  font-size: var(--text-heading);
  line-height: var(--line-height-heading);
  letter-spacing: 0;
}

.mw-corporate h3 {
  font-size: var(--text-subheading);
  line-height: var(--line-height-title);
}

.mw-corporate img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mw-corporate :where(ul, ol) {
  list-style: none;
  padding: 0;
}

.mw-corporate :where(a) {
  color: inherit;
  font-weight: var(--font-weight-regular);
}

.mw-corporate :where(button, input, select, textarea) {
  font-family: inherit;
  font-size: inherit;
}

.mw-corporate :where(strong, b) {
  font-weight: var(--font-weight-medium);
}

.mw-corporate :where(small) {
  font-size: var(--text-label);
  line-height: var(--line-height-ui);
}

.mw-corporate :is(section[id], li[id], div[id]) {
  scroll-margin-top: calc(var(--header-height) + var(--space-03));
}

.mw-eyebrow {
  color: var(--color-gray-70);
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-ui);
  letter-spacing: .12em;
}

.mw-section {
  padding-block: var(--space-09);
}

.mw-section__label {
  grid-column: span 4;
  min-width: 0;
}

.mw-section__label h2 {
  margin-top: var(--space-02);
  font-size: var(--text-title);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-title);
}

.mw-section__body {
  grid-column: span 12;
  min-width: 0;
}

.mw-section__intro {
  margin-bottom: var(--space-05);
}

.mw-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-05);
  min-height: 48px;
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-ui);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mw-text-link:hover {
  color: var(--color-blue-60);
}

.mw-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 56px;
  width: fit-content;
  max-width: 100%;
  padding: var(--space-02) var(--space-06) var(--space-02) var(--space-02);
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--color-blue-60);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-ui);
  text-decoration: none;
  transition:
    background-color var(--motion-ui),
    border-color var(--motion-ui),
    color var(--motion-ui);
}

.mw-button:hover {
  background: var(--color-blue-hover);
  color: var(--color-white);
}

.mw-button .mw-icon {
  position: absolute;
  right: var(--space-02);
}

.mw-button--secondary {
  border-color: var(--color-gray-30);
  background: var(--color-white);
  color: var(--color-gray-100);
}

.mw-button--secondary:hover {
  border-color: var(--color-gray-70);
  background: var(--color-gray-10);
  color: var(--color-gray-100);
}

.mw-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.mw-external-link-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: .35em;
  flex: 0 0 12px;
  fill: currentColor;
  vertical-align: -.06em;
}

.mw-offerings {
  border-top: var(--border-subtle);
}

.mw-offerings li {
  border-bottom: var(--border-subtle);
}

.mw-offerings__item,
.mw-offerings__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--space-04);
  width: 100%;
  padding-block: var(--space-05);
}

.mw-offerings__link {
  color: inherit;
  text-decoration: none;
  transition: background-color var(--motion-ui);
}

.mw-offerings__link:hover {
  background: var(--color-gray-10);
}

.mw-offerings__link:hover h3,
.mw-offerings__link:hover .mw-offerings__cta {
  color: var(--color-blue-60);
}

.mw-offerings__link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mw-offerings h3 {
  font-size: var(--text-title);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-title);
}

.mw-offerings__cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: var(--space-03);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-ui);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.mw-offerings__link > .mw-icon {
  align-self: center;
  justify-self: end;
}


.mw-page-hero {
  padding-top: var(--space-04);
  background: var(--color-gray-10);
}

.mw-page-hero__grid {
  align-items: end;
  padding-block: var(--space-08);
}

.mw-page-hero__heading {
  grid-column: span 8;
  min-width: 0;
}

.mw-page-hero h1 {
  margin-top: var(--space-03);
  font-size: var(--text-page-title);
  font-weight: var(--font-weight-light);
  line-height: var(--line-height-page-title);
}

.mw-page-hero__intro {
  grid-column: span 8;
  max-width: 38em;
  color: var(--color-gray-70);
}

.mw-page-hero__intro p + p {
  margin-top: var(--space-02);
}

.mw-page-hero .mw-breadcrumb {
  padding-top: var(--space-03);
}

.mw-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-02);
  color: var(--color-gray-70);
  font-size: var(--text-small);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-ui);
}

.mw-breadcrumb a {
  color: var(--color-blue-60);
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color var(--motion-ui), text-decoration-color var(--motion-ui);
}

.mw-breadcrumb a:hover {
  color: var(--color-blue-hover);
  text-decoration-color: currentColor;
}

.mw-screen-reader,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mw-skip-link {
  position: fixed;
  z-index: 1100;
  top: 8px;
  left: 16px;
  padding: 16px;
  background: var(--color-white);
  color: var(--color-gray-100);
  transform: translateY(-200%);
}

.mw-skip-link:focus {
  transform: translateY(0);
}

.mw-reveal-pending {
  opacity: 0;
  transform: translateY(8px);
}

[data-reveal] {
  transition: opacity var(--motion-reveal), transform var(--motion-reveal);
}

@media (max-width: 1055px) {
  :root {
    --page-gutter: 24px;
    --header-height: 64px;
  }

  .mw-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .mw-page-hero__grid {
    padding-block: var(--space-06);
  }

  .mw-page-hero__heading,
  .mw-page-hero__intro {
    grid-column: span 4;
  }

  .mw-section {
    padding-block: var(--space-08);
  }

  .mw-section__label {
    grid-column: span 2;
  }

  .mw-section__body {
    grid-column: span 6;
  }
}

@media (max-width: 671px) {
  :root {
    --page-gutter: 16px;
    --text-heading: 1rem;
    --text-subheading: 1rem;
    --text-title: 1rem;
    --text-body: .875rem;
  }

  .mw-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-03) var(--space-02);
  }

  .mw-page-hero__grid {
    padding-block: var(--space-05);
  }

  .mw-page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2rem);
    line-height: 1.25;
  }

  .mw-breadcrumb {
    gap: var(--space-01) var(--space-02);
    font-size: var(--text-label);
  }

  .mw-page-hero__heading,
  .mw-page-hero__intro {
    grid-column: 1 / -1;
  }

  .mw-section {
    padding-block: var(--space-06);
  }

  .mw-section__label,
  .mw-section__body {
    grid-column: 1 / -1;
  }

  .mw-section__intro {
    margin-bottom: var(--space-04);
  }

  .mw-offerings__item,
  .mw-offerings__link {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-02);
    padding-block: var(--space-04);
  }

  .mw-offerings__item > div:first-child,
  .mw-offerings__item > div:nth-child(2),
  .mw-offerings__link > div:first-child,
  .mw-offerings__link > div:nth-child(2) {
    grid-column: 1;
  }

  .mw-offerings__cta {
    margin-top: var(--space-02);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .mw-reveal-pending {
    opacity: 1;
    transform: none;
  }
}
