:root {
  --ml-white: #fff;
  --ml-paper: #f5f5f3;
  --ml-line: #c9c9c6;
  --ml-gray: #5e5e5b;
  --ml-ink: #111;
  --ml-black: #000;
  --ml-header-height: 116px;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body.ml-theme {
  max-width: 100%;
  overflow-x: clip;
}

body.ml-menu-open {
  overflow: hidden;
}

.ml-site-content {
  min-height: 30vh;
}

.ml-only-mobile {
  display: none;
}

.ml-site-header,
.ml-contact-band,
.ml-footer-sdgs,
.ml-site-footer,
.ml-page-hero,
.ml-site-loader {
  box-sizing: border-box;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

.ml-site-header *,
.ml-contact-band *,
.ml-footer-sdgs *,
.ml-site-footer *,
.ml-page-hero *,
.ml-site-loader * {
  box-sizing: border-box;
}

.ml-site-header a,
.ml-contact-band a,
.ml-site-footer a {
  color: inherit;
  text-decoration: none;
}

.ml-site-header img,
.ml-contact-band img,
.ml-footer-sdgs img,
.ml-site-footer img,
.ml-page-hero img,
.ml-site-loader img {
  display: block;
  height: auto;
  max-width: 100%;
}

/* Shared header */
.ml-site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  width: 100%;
  min-height: var(--ml-header-height);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ml-line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
  color: var(--ml-ink);
  padding: 16px 32px;
}

.admin-bar .ml-site-header {
  top: 32px;
}

.ml-brand {
  flex: 0 0 auto;
}

.ml-brand img {
  width: 140px;
  height: 80px;
  filter: grayscale(1) contrast(1.3);
  object-fit: contain;
}

.ml-desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.65vw, 30px);
  font-size: 13px;
  font-weight: 700;
}

.ml-desktop-nav a {
  position: relative;
  padding: 12px 0;
  white-space: nowrap;
}

.ml-desktop-nav a:not(.is-contact)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--ml-ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.ml-desktop-nav a:hover::after,
.ml-desktop-nav a:focus-visible::after,
.ml-desktop-nav a.is-current::after {
  transform: scaleX(1);
}

.ml-desktop-nav .is-contact {
  border: 1px solid var(--ml-ink);
  padding: 17px 22px;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.ml-desktop-nav .is-contact:hover,
.ml-desktop-nav .is-contact:focus-visible,
.ml-desktop-nav .is-contact.is-current {
  background: var(--ml-ink);
  color: var(--ml-white);
}

.ml-mobile-menu {
  display: none;
}

/* Shared contact band */
.ml-contact-band {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 350px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(240px, 0.6fr);
  align-items: center;
  gap: 4vw;
  overflow: hidden;
  border-top: 1px solid var(--ml-line);
  background: var(--ml-paper);
  color: var(--ml-ink);
  padding: 58px 6vw;
}

.ml-contact-band-character {
  width: min(260px, 25vw);
  max-height: 310px;
  justify-self: center;
  filter: grayscale(0.15) drop-shadow(0 14px 22px rgba(0, 0, 0, 0.16));
  object-fit: contain;
}

.ml-contact-band p {
  margin: 0 0 18px;
  color: var(--ml-gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.ml-contact-band h2 {
  max-width: 9em;
  margin: 0;
  color: var(--ml-ink);
  font-size: clamp(38px, 4.6vw, 70px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.12;
}

.ml-contact-band h2 span {
  display: block;
  width: fit-content;
  white-space: nowrap;
}

.ml-contact-band > a {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ml-ink);
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 180ms ease-out;
}

.ml-contact-band > a:hover,
.ml-contact-band > a:focus-visible {
  background: var(--ml-ink);
  color: var(--ml-white);
  transform: translateY(-3px);
}

.ml-contact-band > a span {
  font-size: 22px;
}

/* Shared SDGs footer */
.ml-footer-sdgs {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 62fr) minmax(260px, 38fr);
  align-items: center;
  gap: 5vw;
  overflow: hidden;
  background: var(--ml-ink);
  color: var(--ml-white);
  padding: 64px 6vw;
}

.ml-footer-sdgs-copy {
  max-width: 820px;
}

.ml-page-kicker {
  margin: 0 0 20px;
  color: #bdbdb9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ml-footer-sdgs-copy h2 {
  max-width: 10em;
  margin: 0;
  color: var(--ml-white);
  font-size: clamp(38px, 4.5vw, 70px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.ml-footer-sdgs-copy > p:not(.ml-page-kicker) {
  max-width: 750px;
  margin: 28px 0 0;
  color: #d2d2ce;
  font-size: 14px;
  line-height: 1.9;
}

.ml-footer-sdgs-copy > small {
  display: block;
  margin-top: 18px;
  color: #aaa;
  font-size: 10px;
}

.ml-footer-sdgs-visual {
  position: relative;
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
}

.ml-footer-sdgs-mark {
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #666;
  transform: rotate(-3deg);
}

.ml-footer-sdgs-mark span {
  display: grid;
  place-items: center;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  color: #bdbdb9;
  font-size: 46px;
  font-weight: 900;
}

.ml-footer-sdgs-mark span:nth-child(even) {
  border-right: 0;
}

.ml-footer-sdgs-mark span:nth-child(n + 3) {
  border-bottom: 0;
}

.ml-footer-sdgs-visual img {
  position: absolute;
  right: 0;
  bottom: -64px;
  width: min(170px, 46%);
  max-height: 270px;
  filter: drop-shadow(0 0 1px #fff);
  object-fit: contain;
}

/* Main footer */
.ml-site-footer {
  width: 100%;
  height: auto;
  overflow: clip;
  background: var(--ml-white);
  color: var(--ml-ink);
}

.ml-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 30fr) minmax(0, 35fr) minmax(0, 35fr);
  gap: 30px;
  align-items: end;
  padding: 62px 6vw 28px;
}

.ml-footer-main > * {
  min-width: 0;
}

.ml-footer-brand img {
  width: min(260px, 100%);
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: multiply;
}

.ml-footer-company p {
  margin: 7px 0;
  color: var(--ml-ink);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ml-footer-links {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
}

.ml-footer-links a:hover,
.ml-footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ml-footer-main > small {
  grid-column: 1 / -1;
  margin-top: 34px;
  color: var(--ml-gray);
  font-size: 11px;
}

/* Shared lower-page hero */
.ml-page-hero {
  --ml-hero-image: none;
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 590px;
  grid-template-columns: 14% 51% 35%;
  align-items: end;
  overflow: hidden;
  background: #171717 var(--ml-hero-image) center / cover no-repeat;
  color: var(--ml-white);
  padding: 72px 6vw 68px;
}

.ml-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ml-hero-image) center / cover no-repeat;
  content: "";
  filter: grayscale(1) contrast(1.08);
  transform: scale(1.01);
}

.ml-page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5) 56%, rgba(0, 0, 0, 0.2)), linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 64%);
}

.ml-page-hero-number {
  align-self: start;
}

.ml-page-hero-number span,
.ml-page-hero-number small {
  display: block;
}

.ml-page-hero-number span {
  font-size: 16px;
}

.ml-page-hero-number small {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.ml-page-hero-title > p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ml-page-hero-title h1 {
  max-width: 7em;
  margin: 0;
  color: var(--ml-white);
  font-size: clamp(62px, 8.5vw, 136px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.ml-page-hero-lead {
  max-width: 320px;
  margin: 0;
  padding-left: 2vw;
  color: var(--ml-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.95;
}

.ml-page-hero-character {
  position: absolute;
  right: 4.5vw;
  bottom: -22px;
  z-index: 3;
  width: clamp(130px, 15vw, 230px);
  transform: rotate(2deg);
}

.ml-page-hero-character img {
  width: 100%;
  max-height: 310px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.52));
  object-fit: contain;
}

.ml-page-hero-character span {
  position: absolute;
  right: 76%;
  bottom: 78%;
  width: max-content;
  max-width: 230px;
  border: 1px solid var(--ml-ink);
  background: var(--ml-white);
  color: var(--ml-ink);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
  transform: rotate(-4deg);
}

.ml-page-hero-scroll {
  position: absolute;
  right: 20px;
  top: 50%;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  letter-spacing: 0.28em;
  transform: rotate(90deg);
}

/* Two-stage loader */
.ml-site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ml-white);
  color: var(--ml-ink);
  clip-path: inset(0);
  transition: clip-path 360ms cubic-bezier(0.76, 0, 0.24, 1), visibility 0s 360ms;
}

.ml-site-loader.is-pending {
  animation: ml-loader-emergency-exit 0s 2.6s forwards;
}

.ml-site-loader.is-closing {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.ml-loader-first,
.ml-loader-quick {
  display: none;
}

.ml-site-loader.is-first .ml-loader-first,
.ml-site-loader.is-quick .ml-loader-quick {
  display: grid;
}

.ml-site-loader.is-quick {
  background: var(--ml-ink);
  color: var(--ml-white);
}

.ml-loader-first {
  width: min(820px, calc(100vw - 44px));
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.68fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
}

.ml-loader-first-mark {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--ml-line);
  background: linear-gradient(90deg, transparent 49.8%, var(--ml-line) 50%, transparent 50.2%), linear-gradient(transparent 49.8%, var(--ml-line) 50%, transparent 50.2%), var(--ml-paper);
  background-size: 64px 64px;
}

.ml-loader-first-mark > span {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  border: 1px solid var(--ml-ink);
  background: var(--ml-white);
  padding: 7px 10px;
  font-size: 9px;
  letter-spacing: 0.15em;
}

.ml-loader-first-mark > img {
  position: absolute;
  right: 5%;
  bottom: 90px;
  width: 90%;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: multiply;
  animation: ml-loader-drawing-in 620ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ml-loader-first-copy {
  align-self: center;
}

.ml-loader-first-copy strong,
.ml-loader-first-copy span {
  display: block;
}

.ml-loader-first-copy strong {
  font-size: clamp(26px, 3.1vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.35;
}

.ml-loader-first-copy span {
  margin-top: 28px;
  color: var(--ml-gray);
  font-size: 9px;
  letter-spacing: 0.15em;
  line-height: 1.8;
}

.ml-loader-progress {
  position: relative;
  grid-column: 1 / -1;
  display: block;
  height: 2px;
  overflow: hidden;
  background: #ddd;
}

.ml-loader-progress i,
.ml-loader-quick i::after {
  position: absolute;
  inset: 0;
  background: currentcolor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  animation: ml-loader-progress 1.2s 80ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.ml-loader-quick {
  width: min(360px, calc(100vw - 48px));
  gap: 22px;
  justify-items: center;
}

.ml-loader-quick > img {
  width: min(250px, 66vw);
  filter: grayscale(1) invert(1) brightness(2);
}

.ml-loader-quick > div {
  width: 100%;
}

.ml-loader-quick span {
  display: block;
  margin-bottom: 10px;
  color: #aaa;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-align: center;
}

.ml-loader-quick i {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: #555;
}

/* Motion is opt-in so content stays visible when JavaScript fails. */
.fade-in,
.fade-in.fade-in-up {
  opacity: 1;
  transform: none;
}

.ml-motion-enabled:not(.ml-motion-reduced) .fade-in:not(.scroll-in) {
  opacity: 0;
  transform: translateY(40px);
}

.ml-motion-enabled:not(.ml-motion-reduced) [data-ml-motion] {
  opacity: 0;
  transition: opacity 720ms cubic-bezier(0.2, 0.78, 0.25, 1), transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(42px);
}

.ml-motion-enabled:not(.ml-motion-reduced) [data-ml-motion].is-inview {
  opacity: 1;
  transform: none;
}

.ml-motion-enabled:not(.ml-motion-reduced) [data-ml-character] {
  transform-origin: 50% 100%;
}

.ml-motion-enabled:not(.ml-motion-reduced) [data-ml-character].is-inview {
  animation: ml-character-arrive 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ml-site-header :focus-visible,
.ml-contact-band :focus-visible,
.ml-site-footer :focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 4px;
}

@keyframes ml-loader-emergency-exit {
  to { visibility: hidden; }
}

@keyframes ml-loader-drawing-in {
  from { opacity: 0; transform: translateY(34px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ml-loader-progress {
  to { transform: scaleX(1); }
}

@keyframes ml-character-arrive {
  from { opacity: 0; transform: translateY(46px) rotate(3deg) scale(0.92); }
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@media (max-width: 1100px) {
  .ml-desktop-nav {
    gap: 12px;
    font-size: 11px;
  }

  .ml-desktop-nav .is-contact {
    padding: 15px 14px;
  }

  .ml-contact-band,
  .ml-footer-sdgs {
    grid-template-columns: 1fr 1fr;
  }

  .ml-contact-band-character {
    display: none;
  }

  .ml-contact-band > div {
    grid-column: 1;
  }

  .ml-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .ml-footer-links {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
}

@media (max-width: 782px) {
  .admin-bar .ml-site-header {
    top: 46px;
  }
}

@media (max-width: 720px) {
  :root {
    --ml-header-height: 84px;
  }

  .ml-only-mobile {
    display: initial;
  }

  .ml-site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    min-height: var(--ml-header-height);
    padding: 10px 18px;
  }

  .ml-site-content {
    padding-top: var(--ml-header-height);
  }

  .admin-bar .ml-site-content {
    padding-top: calc(var(--ml-header-height) + 46px);
  }

  .ml-brand img {
    width: 110px;
    height: 62px;
  }

  .ml-desktop-nav {
    display: none;
  }

  .ml-mobile-menu {
    display: block;
  }

  .ml-mobile-menu summary {
    position: relative;
    display: grid;
    width: 52px;
    height: 52px;
    place-content: center;
    gap: 8px;
    border: 1px solid var(--ml-ink);
    cursor: pointer;
    list-style: none;
    transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
  }

  .ml-mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .ml-mobile-menu summary span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ml-ink);
    transform-origin: center;
    transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), background-color 220ms ease;
  }

  .ml-mobile-menu[open] summary {
    z-index: 2;
    background: var(--ml-ink);
    transform: rotate(2deg);
  }

  .ml-mobile-menu[open] summary span {
    background: var(--ml-white);
  }

  .ml-mobile-menu[open] summary span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .ml-mobile-menu[open] summary span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .ml-mobile-menu nav {
    position: fixed;
    top: var(--ml-header-height);
    right: 0;
    left: 0;
    display: grid;
    max-height: calc(100svh - var(--ml-header-height));
    overflow-y: auto;
    border-top: 1px solid var(--ml-line);
    background: var(--ml-white);
    box-shadow: 0 20px 35px rgba(17, 17, 17, 0.14);
    padding: 14px 22px 28px;
  }

  .admin-bar .ml-mobile-menu nav {
    top: calc(var(--ml-header-height) + 46px);
    max-height: calc(100svh - var(--ml-header-height) - 46px);
  }

  .ml-mobile-menu nav a {
    border-bottom: 1px solid var(--ml-line);
    padding: 17px 4px;
    color: var(--ml-ink);
    font-size: 15px;
    font-weight: 700;
  }

  .ml-mobile-menu nav a.is-current {
    padding-left: 15px;
  }

  .ml-mobile-menu nav a.is-current::before {
    content: "— ";
  }

  .ml-contact-band {
    display: block;
    min-height: 0;
    padding: 72px 22px;
    text-align: center;
  }

  .ml-contact-band .ml-contact-band-character {
    display: none !important;
  }

  .ml-contact-band h2 {
    max-width: none;
    font-size: clamp(30px, 9vw, 35px);
    line-height: 1.28;
  }

  .ml-contact-band h2 span {
    margin-inline: auto;
  }

  .ml-contact-band > a {
    width: 100%;
    margin-top: 38px;
  }

  .ml-footer-sdgs {
    grid-template-columns: 1fr;
    padding: 70px 22px;
    text-align: center;
  }

  .ml-footer-sdgs-copy h2 {
    max-width: none;
    font-size: clamp(36px, 11vw, 46px);
  }

  .ml-footer-sdgs-visual {
    min-height: 220px;
  }

  .ml-footer-sdgs-visual img {
    right: 8%;
    width: 135px;
  }

  .ml-footer-main {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 28px;
    padding: 52px 22px 28px;
    text-align: center;
  }

  .ml-footer-brand img {
    width: 230px;
  }

  .ml-footer-company,
  .ml-footer-links {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .ml-footer-company p {
    font-size: 12px;
  }

  .ml-footer-main > small {
    margin-top: 12px;
  }

  .ml-page-hero {
    min-height: 550px;
    grid-template-columns: 1fr;
    align-content: end;
    padding: 96px 22px 56px;
  }

  .ml-page-hero-number {
    position: absolute;
    top: 105px;
    left: 22px;
  }

  .ml-page-hero-title h1 {
    max-width: 8em;
    font-size: clamp(48px, 15vw, 72px);
  }

  .ml-page-hero-lead {
    max-width: 75%;
    margin-top: 28px;
    padding-left: 0;
    font-size: 14px;
  }

  .ml-page-hero-character {
    right: -8px;
    width: 120px;
  }

  .ml-page-hero-character span,
  .ml-page-hero-scroll {
    display: none;
  }

  .ml-loader-first {
    grid-template-columns: 1fr;
  }

  .ml-loader-first-mark {
    min-height: 280px;
  }

  .ml-loader-first-copy strong {
    font-size: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .ml-site-loader,
  .ml-site-loader *,
  [data-ml-motion],
  [data-ml-character],
  .ml-mobile-menu summary,
  .ml-mobile-menu summary span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
