/* Compact shared navigation; no content or SEO depends on JavaScript. */
.site-header { background: #fff; border-bottom: 1px solid #EDF2F9; }
.site-header__inner { min-height: 78px; width: min(1500px, 94%); }
.site-brand__mark { border: 1px solid #344F9E; color: #344F9E; background: transparent; }
.site-brand__text strong { font-family: var(--miryoku-rounded); color: #344F9E; }
.site-navigation__list { color: #344F9E; }
.site-navigation__consultation { border-radius: 999px; background: #344F9E; color: #fff; border-color: #344F9E; }
.site-footer { border-top: 1px solid #EDF2F9; background: #fff; color: #231F20; }
.site-footer__inner { display: flex; justify-content: center; padding-block: 2rem; }
.site-footer__statement { display: none; }
.site-footer__navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; font-size: .875rem; }
.site-footer__navigation a { border: 0; }
.site-footer__bottom { text-align: center; border: 0; padding: 0 0 1.5rem; color: #575354; }
.fixed-consultation { position: fixed; z-index: 950; inset: auto 1rem 1rem auto; transform: none; width: 230px; border-radius: 12px; background: #fff; border: 1px solid #B3D0E5; box-shadow: 0 3px 14px #231f2012; overflow: hidden; }
.fixed-consultation .fixed-consultation__switch { display: grid; grid-template-columns: 1fr 1fr; }
.fixed-consultation .fixed-consultation__switch a { writing-mode: horizontal-tb; flex-direction: row; padding: .5rem .25rem; min-height: 44px; background: #fff; color: #344F9E; font-size: .75rem; letter-spacing: 0; border: 0; }
.fixed-consultation .fixed-consultation__switch a + a { border-left: 1px solid #EDF2F9; }
.fixed-consultation .fixed-consultation__action { display: flex; flex-direction: row; justify-content: space-between; writing-mode: horizontal-tb; min-height: 52px; padding: .7rem 1.2rem; background: #344F9E; color: #fff; font-size: 1rem; letter-spacing: .03em; }
.fixed-consultation a:hover { filter: brightness(.92); }
.home-profile__title { text-wrap: balance; }
@media (min-width: 761px) {
  /* The sticky global menu is the single persistent desktop consultation route. */
  .home-gateway .home-gateway__fixed-cta,
  .fixed-consultation { display: none; }
  body:has(.fixed-consultation) .site-footer { padding-bottom: 0; }
}
@media (max-width: 760px) {
  .site-header__inner { min-height: 62px; }
  .site-brand__text strong { font-size: 1rem; }
  .site-navigation.is-open { max-height: calc(100dvh - 62px); overflow-y: auto; }
  .fixed-consultation { inset: auto 0 0; width: auto; display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 0; padding: 0 max(0px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0px,env(safe-area-inset-left)); background: #344F9E; }
  .fixed-consultation .fixed-consultation__switch { background: #fff; }
  .fixed-consultation .fixed-consultation__switch a { min-height: 60px; }
  .fixed-consultation .fixed-consultation__action { min-height: 60px; font-size: .875rem; padding: .65rem .75rem; }
  body:has(.fixed-consultation) { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .site-footer__navigation { gap: .5rem 1.25rem; font-size: .8rem; }
}

/* Homepage mobile audit: allow enlarged text without covering the menu toggle. */
@media (max-width: 760px) {
  body.home .site-header__inner { gap: 12px; padding-block: 8px; }
  body.home .site-brand { min-width: 0; gap: 10px; }
  body.home .site-brand__mark { flex-shrink: 0; width: 38px; font-size: 20px; }
  body.home .site-brand__text { min-width: 0; }
  body.home .menu-toggle { flex-shrink: 0; gap: 8px; min-height: 44px; white-space: nowrap; }
  body.home .menu-toggle__lines { flex-shrink: 0; }
  body.home .site-navigation { position: absolute; inset-block-start: 100%; }
  body.home .site-navigation.is-open { max-height: calc(100dvh - var(--miryoku-header-height)); }
  body.home .site-navigation__consultation { padding-inline: 0.5rem; }
}
@media (max-width: 420px) {
  body.home .menu-toggle > span:not(.menu-toggle__lines) {
    position: absolute; width: 1px; height: 1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
