/* Shared header and footer for the home page and every interior page. */
body .site-header,
body .site-footer,
body .mobile-menu {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}

body .site-header {
  position: relative;
  z-index: 30;
  height: 68px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e8eeeb;
}

body .site-header *,
body .site-footer *,
body .mobile-menu * { font-family: "Noto Sans JP", sans-serif; }

body .site-header .header-inner,
body .site-footer .footer-inner {
  width: min(1180px, calc(100% - 96px));
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

body .site-header .header-inner {
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

body .site-logo,
body .footer-logo {
  color: #202722;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .22em;
  text-decoration: none;
}

body .site-header .global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

body .site-header .global-nav a,
body .site-footer .footer-nav a {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #273039;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
}

body .site-header .uijan-header-language {
  flex: 0 0 auto;
  margin-left: 16px;
}

body .site-footer {
  color: #202722;
  background: #fff;
  border-top: 1px solid rgba(0, 107, 79, .14);
}

body .site-footer .footer-inner {
  min-height: 118px;
  height: auto;
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
}

body .site-footer .footer-brand p {
  margin: 10px 0 0;
  color: #718079;
  font-size: 10px;
}

body .site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

body .site-footer .footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: #718079;
  font-size: 10px;
}

body .site-footer .footer-meta a { color: #202722; font-size: 11px; }

@media (min-width: 681px) {
  body .site-header .global-nav a,
  body .site-footer .footer-nav a,
  body .site-footer .footer-meta a {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color .28s ease, transform .28s ease;
  }

  body .site-header .global-nav a::after,
  body .site-footer .footer-nav a::after,
  body .site-footer .footer-meta a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    background: #006b4f;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .38s cubic-bezier(.22, .61, .36, 1);
  }

  body .site-header .global-nav a:hover,
  body .site-footer .footer-nav a:hover,
  body .site-footer .footer-meta a:hover { color: #006b4f; transform: translateY(-2px); }

  body .site-header .global-nav a:hover::after,
  body .site-footer .footer-nav a:hover::after,
  body .site-footer .footer-meta a:hover::after { transform: scaleX(1); }
}

@media (max-width: 980px) {
  body .site-header .header-inner,
  body .site-footer .footer-inner { width: calc(100% - 44px); }
  body .site-header .global-nav { display: none; }
  body .site-header .uijan-header-language { margin-left: auto; }
  body .site-header .hamburger { display: flex; margin-left: 8px; }
  body .site-footer .footer-inner { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  body .site-footer .footer-meta { align-items: flex-start; }
  body .mobile-menu { top: 68px; padding: 30px 24px 34px; border-bottom: 1px solid #e8eeeb; }
  body .mobile-menu a { padding: 14px 0; border-bottom: 1px solid #e8eeeb; color: #202722; font-size: 13px; }
}

@media (max-width: 680px) {
  body .site-header { height: 60px; }
  body .site-header .header-inner,
  body .site-footer .footer-inner { width: calc(100% - 34px); }
  body .mobile-menu { top: 60px; }
  body .site-footer .footer-inner { padding: 34px 0; }
  body .site-footer .footer-nav { gap: 16px 22px; }
}

/* Match the more generous typography and spacing of the refreshed home page. */
body .site-header { height: 82px; }

body .site-header .header-inner,
body .site-footer .footer-inner {
  width: min(1280px, calc(100% - 96px));
}

body .site-logo,
body .footer-logo {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .24em;
}

body .site-header .global-nav {
  gap: clamp(22px, 2.8vw, 42px);
}

body .site-header .global-nav a,
body .site-footer .footer-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

body .site-footer .footer-inner {
  min-height: 148px;
  gap: 40px;
}

body .site-footer .footer-brand p,
body .site-footer .footer-meta {
  font-size: 12px;
}

body .site-footer .footer-meta a {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  body .site-header .header-inner,
  body .site-footer .footer-inner {
    width: calc(100% - 44px);
  }

  body .mobile-menu { top: 82px; }
}

@media (max-width: 680px) {
  body .site-header { height: 64px; }

  body .site-header .header-inner,
  body .site-footer .footer-inner {
    width: calc(100% - 34px);
  }

  body .mobile-menu { top: 64px; }

  body .site-footer .footer-inner {
    min-height: 0;
    gap: 22px;
  }

  body .site-footer .footer-nav a {
    font-size: 13px;
  }
}
