html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

nav a.nav-cta[aria-current] {
  color: white;
  border-bottom: 0;
  padding: 13px 17px
}

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
  background: #f7f9fb
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 70px
}

.footer-top p {
  font-size: 14px;
  color: var(--muted);
  margin: 22px 0
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 36px;
  align-content: start
}

.footer-links a {
  font-size: 14px;
  text-decoration: none
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 35px;
  color: var(--muted);
  font-size: 12px
}

.footer-bottom small {
  margin-left: auto
}

.site-footer a:hover {
  text-decoration: underline
}

button:disabled {
  cursor: default;
  opacity: .6
}

.button {
  white-space: normal
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #538adb;
  outline-offset: 5px
}

@media(max-width:1000px) {
  nav.open {
    max-height: calc(100dvh - 100px);
    overflow-y: auto
  }

  .footer-top {
    display: block
  }

  .footer-links {
    margin-top: 30px
  }

  .footer-bottom small {
    margin-left: 0
  }

  .site-footer {
    padding: 45px 0 24px
  }
}

@media(max-width:420px) {
  .header-inner {
    padding: 16px 20px;
    gap: 12px
  }

  .brand {
    font-size: 16px
  }

  .brand span {
    font-size: 9px;
    letter-spacing: .02em
  }

  .footer-links {
    column-gap: 18px
  }
}


/* PC section rhythm: content can always grow beyond these minimums. */
body #main>section {
  min-height: 88vh;
  min-height: 88svh;
}

body #main>section:not(.home-hero) {
  display: flex;
  align-items: center;
}

body #main>section:not(.home-hero)>.wrap {
  margin-block: 0;
}

/* Japanese punctuation and short last lines; phrase spans control key headings. */
body #main :is(h1, h2, h3, p, li, dd, dt, summary) {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

body #main :is(h1, h2, h3, summary) {
  text-wrap: balance;
}

body #main :is(p, li, dd) {
  text-wrap: pretty;
}

body #main .phrase {
  display: inline;
  max-width: 100%;
  vertical-align: baseline;
  font-size: inherit;
  line-height: inherit;
}

body #main .service-context {
  color: #526a84;
  font-size: .875rem;
  letter-spacing: .04em;
  margin: 0 0 12px;
}

/* Supporting browsers can also keep Japanese phrases together in body text. */
@supports (word-break: auto-phrase) {
  body #main :is(p, li, dd) {
    word-break: auto-phrase;
  }
}

body #main>section.section-standard {
  min-height: 72vh;
  min-height: 72svh;
}

/* Short supporting information and closing CTAs retain a clear section presence. */
body #main>section.section-compact {
  min-height: 52vh;
  min-height: 52svh;
}

/* Keep the privacy notice immediately above the form, without vertical centering. */
body.contact-page #main>.contact-chapter {
  min-height: 0;
  align-items: flex-start;
  padding-block: 36px 48px;
}

@media (max-width:760px) {

  /* Mobile follows the content; major sections retain a lighter visual anchor. */
  body #main>section {
    min-height: 70svh;
  }

  body #main>section:is(.section-standard, .section-compact) {
    min-height: 0;
  }

  body.contact-page #main>.contact-chapter {
    padding-block: 24px 32px;
  }
}