.legal-footer.lp-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
  grid-template-areas:
    "left right"
    "bottom bottom";
  gap: 28px 56px;
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid var(--nf-line);
  color: var(--nf-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
}

.legal-footer.lp-footer .footer-left {
  grid-area: left;
  display: grid;
  align-content: start;
  gap: 12px;
}

.legal-footer.lp-footer .footer-left .brand-text {
  display: inline-flex;
  width: fit-content;
  color: var(--nf-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.legal-footer.lp-footer .footer-left p {
  max-width: 560px;
  margin: 0;
  color: var(--nf-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.85;
}

.legal-footer.lp-footer .footer-value-statement {
  display: grid;
  gap: 0;
}

.legal-footer.lp-footer .footer-value-line {
  display: block;
  white-space: nowrap;
}

.legal-footer.lp-footer .footer-right {
  grid-area: right;
  display: grid;
  align-content: start;
  justify-self: end;
  gap: 9px;
}

.legal-footer.lp-footer .footer-heading {
  display: none;
}

.legal-footer.lp-footer .footer-links {
  display: grid;
  gap: 7px;
}

.legal-footer.lp-footer .footer-links a {
  color: var(--nf-muted);
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.legal-footer.lp-footer .footer-links a:hover {
  color: var(--nf-ink);
}

.legal-footer.lp-footer .footer-bottom {
  grid-area: bottom;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--nf-line);
  color: var(--nf-faint);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.lp-footer-scene {
  display: block;
  overflow: hidden;
}

.lp-footer-scene .legal-footer.lp-footer {
  position: relative;
  z-index: 1;
}

.lp-footer-scene .legal-footer.lp-footer .footer-bottom {
  border-top: 0;
}

/* 法務ページは静的HTMLのため、LPのReact製footer wrapperを持たない。
   直下footerだけに同じ風景を描き、LP側の実画像とは重複させない。 */
.legal-shell > .legal-footer.lp-footer {
  position: relative;
  isolation: isolate;
  padding-bottom: calc(44px + clamp(260px, 28vw, 430px) + clamp(-280px, -18vw, -200px));
  border-top: 0;
}

.legal-shell > .legal-footer.lp-footer::after {
  position: absolute;
  z-index: 0;
  right: 50%;
  bottom: 0;
  width: 100vw;
  height: clamp(260px, 28vw, 430px);
  background: url("/news-assets/newsline-footer-landscape-v1.png?v=blue-observatory-20260912") center bottom / cover no-repeat;
  content: "";
  pointer-events: none;
  transform: translateX(50%);
}

.legal-shell > .legal-footer.lp-footer > * {
  position: relative;
  z-index: 1;
}

.legal-shell > .legal-footer.lp-footer .footer-bottom {
  border-top: 0;
}

.lp-footer-landscape {
  position: relative;
  width: 100%;
  height: clamp(260px, 28vw, 430px);
  margin-top: clamp(-280px, -18vw, -200px);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.lp-footer-landscape img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

@media (max-width: 640px) {
  .legal-footer.lp-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right"
      "bottom";
    gap: 28px;
    width: min(100% - 28px, 1080px);
    padding: 30px 0 36px;
  }

  .legal-footer.lp-footer .footer-right {
    justify-self: start;
  }

  .legal-footer.lp-footer .footer-left p {
    max-width: 100%;
    font-size: 11px;
  }

  .lp-footer-landscape {
    height: 250px;
    margin-top: -205px;
  }

  .lp-footer-landscape img {
    object-position: 78% bottom;
  }

  .legal-shell > .legal-footer.lp-footer {
    padding-bottom: 81px;
  }

  .legal-shell > .legal-footer.lp-footer::after {
    height: 250px;
    background-position: 78% bottom;
  }
}

/* Shared wordmark for the landing and public information pages. */
.brand-logo {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
}

.lp-hero h1 .brand-logo {
  width: min(196px, calc(100vw - 48px));
  margin-inline: auto;
}

.lp-footer .brand-logo {
  width: 124px;
}

@media (max-width: 760px) {
  .lp-hero h1 .brand-logo {
    width: 180px;
  }
}

.brand-logo > svg {
  display: block;
  width: 100%;
  height: auto;
}
