:root {
  --navy-950: #020d1d;
  --navy-900: #06162b;
  --navy-800: #0b2342;
  --ink: #0a1933;
  --muted: #4c596b;
  --paper: #ffffff;
  --paper-blue: #f5f8fc;
  --line: #d7dee7;
  --gold: #d99a13;
  --gold-bright: #f1b927;
  --blue: #13579b;
  --cyan: #4db4dc;
  --container: 1180px;
  --header-height: 96px;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--navy-950);
  background: #fff;
  transform: translateY(-150%);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 13, 29, 0.55);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: min(var(--container), calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  width: 238px;
  min-width: 238px;
  height: 66px;
  align-items: center;
}

.brand img {
  width: 230px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.7vw, 42px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  margin-left: 34px;
  padding: 11px 17px;
  border: 1px solid rgba(241, 185, 39, 0.9);
  border-radius: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.header-contact:hover {
  color: var(--navy-950);
  background: var(--gold-bright);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 780px;
  overflow: hidden;
  color: #fff;
  background-color: var(--navy-950);
  background-image: url("/images/home/maw-hero-20260810.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 13, 29, 0.98) 0%, rgba(2, 13, 29, 0.87) 34%, rgba(2, 13, 29, 0.28) 72%, rgba(2, 13, 29, 0.1) 100%),
    linear-gradient(0deg, rgba(2, 13, 29, 0.72), transparent 30%);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero__motion-toggle {
  position: absolute;
  right: max(24px, calc((100% - var(--container)) / 2));
  bottom: 24px;
  z-index: 3;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2px;
  color: #fff;
  background: rgba(2, 13, 29, 0.66);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font: 600 12px/1 "Noto Sans JP", sans-serif;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.hero__motion-toggle:hover {
  border-color: var(--gold-bright);
  background: rgba(2, 13, 29, 0.86);
}

.hero__motion-toggle:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(var(--container), calc(100% - 64px));
  min-height: 780px;
  margin: 0 auto;
  padding-top: var(--header-height);
}

.hero__copy {
  width: min(760px, 64vw);
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold-bright);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.eyebrow--blue {
  margin-bottom: 10px;
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.25vw, 76px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.28;
  text-shadow: 0 5px 34px rgba(0, 0, 0, 0.52);
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.hero__lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.95;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.62);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  min-width: 210px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #111c2f;
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, #d99a13, #f4c33d);
}

.button--primary:hover {
  background: #ffd25e;
}

.button--secondary {
  color: #fff;
  border-color: rgba(241, 185, 39, 0.86);
  background: rgba(2, 13, 29, 0.48);
}

.button--secondary:hover {
  background: rgba(11, 35, 66, 0.92);
}

.services {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  padding: 74px 0 28px;
}

.section-heading {
  max-width: 600px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.service-row {
  display: grid;
  grid-template-columns: 80px minmax(280px, 1fr) minmax(360px, 48%);
  gap: 38px;
  align-items: center;
  min-height: 300px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:first-of-type {
  border-top: 1px solid var(--line);
}

.service-row__mark {
  align-self: start;
  padding-top: 12px;
}

.service-row__mark img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: saturate(0.98);
}

.service-row__content {
  padding-right: 8px;
}

.service-row__content h3 {
  margin: 0;
  color: #0a162a;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.service-row__link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 18px;
  color: var(--blue);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.service-row__link span {
  transition: transform 180ms ease;
}

.service-row__link:hover span {
  transform: translateX(5px);
}

.service-row__content p {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.service-row__visual {
  display: block;
  height: 220px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-blue);
}

.service-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.service-row__visual:hover img {
  transform: scale(1.035);
}

.service-row:nth-of-type(2) .service-row__visual img {
  object-position: center 72%;
}

.service-row:nth-of-type(3) .service-row__visual img {
  object-position: center 54%;
}

.service-row:nth-of-type(4) .service-row__visual img {
  object-position: center 45%;
}

.trust-strip {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-blue);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  padding: 44px 0;
}

.trust-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  min-height: 112px;
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-item__number {
  margin: 0;
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.trust-item h2 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}

.trust-item p:not(.trust-item__number) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.expert-link {
  display: grid;
  min-height: 114px;
  place-items: center;
  border-bottom: 1px solid var(--line);
}

.expert-link a {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.expert-link a span {
  transition: transform 180ms ease;
}

.expert-link a:hover span {
  transform: translateX(5px);
}

.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy-950);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  width: min(var(--container), calc(100% - 64px));
  min-height: 124px;
  margin: 0 auto;
}

.footer-brand {
  width: 190px;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-footer nav a,
.site-footer small {
  font-size: 12px;
}

.site-footer nav a:hover {
  color: #fff;
}

@media (max-width: 1040px) {
  .desktop-nav,
  .header-contact {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
    margin-left: auto;
  }

  .mobile-menu summary {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    background: rgba(2, 13, 29, 0.72);
    cursor: pointer;
    list-style: none;
  }

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

  .mobile-menu summary span {
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .mobile-menu nav {
    position: absolute;
    top: 54px;
    right: 0;
    display: grid;
    width: min(300px, calc(100vw - 32px));
    padding: 12px 20px;
    border: 1px solid rgba(241, 185, 39, 0.45);
    background: rgba(2, 13, 29, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .mobile-menu nav a {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .hero__copy {
    width: min(650px, 72vw);
  }

  .service-row {
    grid-template-columns: 62px minmax(260px, 1fr) minmax(300px, 43%);
    gap: 24px;
  }

  .trust-item {
    padding: 0 22px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 78px;
  }

  body {
    font-size: 15px;
  }

  .site-header__inner,
  .hero__inner,
  .services,
  .trust-strip__inner,
  .site-footer__inner {
    width: min(100% - 32px, var(--container));
  }

  .brand {
    width: 192px;
    min-width: 192px;
    height: 58px;
  }

  .brand img {
    width: 190px;
  }

  .hero {
    min-height: 690px;
    background-image: url("/images/home/maw-hero-20260810.webp");
    background-position: 61% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(2, 13, 29, 0.95) 0%, rgba(2, 13, 29, 0.78) 58%, rgba(2, 13, 29, 0.3) 100%),
      linear-gradient(0deg, rgba(2, 13, 29, 0.82), transparent 42%);
  }

  .hero__video {
    object-position: 61% center;
  }

  .hero__motion-toggle {
    right: 16px;
    bottom: 14px;
  }

  .hero__inner {
    min-height: 690px;
    align-items: flex-end;
  }

  .hero__copy {
    width: 100%;
    padding: 126px 0 64px;
  }

  .hero .eyebrow {
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.6vw, 50px);
    line-height: 1.35;
  }

  .hero h1 span {
    white-space: normal;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .button {
    width: min(100%, 330px);
    min-height: 54px;
  }

  .services {
    padding-top: 52px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .service-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px 18px;
    padding: 34px 0 40px;
  }

  .service-row__mark {
    padding-top: 4px;
  }

  .service-row__mark img {
    width: 56px;
    height: 56px;
  }

  .service-row__content {
    padding: 0;
  }

  .service-row__content h3 {
    font-size: 23px;
    letter-spacing: 0.03em;
  }

  .service-row__link {
    gap: 16px;
    margin-top: 12px;
    font-size: 18px;
  }

  .service-row__content p {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.85;
  }

  .service-row__visual {
    grid-column: 1 / -1;
    height: 200px;
    margin-top: 10px;
  }

  .trust-strip {
    margin-top: 24px;
  }

  .trust-strip__inner {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .trust-item,
  .trust-item:first-child,
  .trust-item:last-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .expert-link {
    min-height: 102px;
    padding: 0 16px;
    text-align: center;
  }

  .expert-link a {
    gap: 12px;
    padding: 14px 10px;
    font-size: 15px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 0;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 20px;
  }
}

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