/* Shared homepage header and footer for public inner pages. */
body.has-homepage-chrome .site-header {
  width: calc(100% - clamp(32px, 5vw, 100px)) !important;
  max-width: none !important;
  min-height: 82px !important;
  height: 82px !important;
  margin: 11px auto 0 !important;
  top: 12px !important;
  border: 1px solid #e1e8e9 !important;
  border-radius: 17px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 14px 35px -22px rgba(44, 68, 73, .19) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

body.has-homepage-chrome .site-header .header-inner {
  width: calc(100% - 35px) !important;
  max-width: none !important;
  min-height: 80px !important;
  height: 80px !important;
  margin-inline: auto !important;
}

body.has-homepage-chrome .site-header .rw-header-logo {
  width: 154px !important;
  height: 48px !important;
  max-width: 154px !important;
  object-fit: contain !important;
}

body.has-homepage-chrome .mobile-menu summary::before {
  content: "☰";
  color: #43545c;
  font-size: 20px;
  line-height: 1;
}

body.has-homepage-chrome .rv6-footer {
  overflow: hidden;
  color: #25424d;
  background: #f2f4fb !important;
  border-top: 1px solid #dfe4ef !important;
}

body.has-homepage-chrome :is(.rv6-footer-inner, .rv6-footer-bottom, .rv6-footer-office) {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}

body.has-homepage-chrome .rv6-footer-inner {
  padding-block: 56px 36px;
  gap: 40px;
}

body.has-homepage-chrome .rv6-footer :is(p, nav a) {
  color: #50676f;
  font-size: 14px;
}

body.has-homepage-chrome .rv6-footer nav strong {
  font-size: 16px;
}

body.has-homepage-chrome .rv6-footer-office {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  margin: 0 auto 30px;
  padding: 20px;
  border: 1px solid #dfe4ef !important;
  border-radius: 18px;
  background: rgba(255, 255, 255, .79);
}

body.has-homepage-chrome .rv6-office-map {
  overflow: hidden;
  border-radius: 12px;
  background: #e8edf5;
}

body.has-homepage-chrome .rv6-office-map iframe {
  display: block;
  width: 100%;
  height: 190px;
  border: 0;
}

body.has-homepage-chrome .rv6-office-details {
  display: grid;
  gap: 10px;
  align-content: center;
}

body.has-homepage-chrome .rv6-office-details strong {
  color: #234c53;
  font-size: 17px;
}

body.has-homepage-chrome .rv6-office-details p { margin: 0; }
body.has-homepage-chrome .rv6-office-details a { color: #126e79; font-size: 14px; }
body.has-homepage-chrome .rv6-office-seal { text-align: center; }

body.has-homepage-chrome .rv6-office-seal a {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #244a53;
  font-size: 12px;
  text-decoration: none;
}

body.has-homepage-chrome .rv6-office-seal img {
  display: block;
  width: 90px;
  height: 105px;
  object-fit: contain;
}

body.has-homepage-chrome .rv6-office-seal img[hidden] { display: none !important; }
body.has-homepage-chrome .rv6-office-seal small { color: #61757a; }

@media (max-width: 1000px) {
  body.has-homepage-chrome .site-header {
    width: calc(100% - 28px) !important;
    min-height: 68px !important;
    height: 68px !important;
    margin-top: 8px !important;
    top: 8px !important;
  }

  body.has-homepage-chrome .site-header .header-inner {
    width: calc(100% - 28px) !important;
    min-height: 66px !important;
    height: 66px !important;
  }

  body.has-homepage-chrome .site-header .rw-header-logo {
    width: 118px !important;
    height: 42px !important;
  }

  body.has-homepage-chrome .rv6-footer-office {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.has-homepage-chrome .rv6-office-seal { grid-column: 2; }
  body.has-homepage-chrome .rv6-office-map { grid-row: 1 / 3; align-self: stretch; }
  body.has-homepage-chrome .rv6-office-map iframe { height: 100%; min-height: 250px; }
}

@media (max-width: 900px) {
  body.has-homepage-chrome :is(.rv6-footer-inner, .rv6-footer-bottom, .rv6-footer-office) {
    width: calc(100% - 36px);
  }

  body.has-homepage-chrome .rv6-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 480px) {
  body.has-homepage-chrome .rv6-footer-inner { grid-template-columns: 1fr; }
  body.has-homepage-chrome .rv6-footer-brand { grid-column: auto; }

  body.has-homepage-chrome .rv6-footer-office {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  body.has-homepage-chrome .rv6-office-map,
  body.has-homepage-chrome .rv6-office-seal { grid-column: auto; grid-row: auto; }
  body.has-homepage-chrome .rv6-office-map iframe { height: 180px; min-height: 180px; }

  body.has-homepage-chrome .rv6-office-seal a {
    grid-template-columns: 90px 1fr;
    align-items: center;
    justify-items: start;
    text-align: start;
  }

  body.has-homepage-chrome .rv6-office-seal small { grid-column: 2; }
  body.has-homepage-chrome .rv6-office-seal a:has(img[hidden]) { grid-template-columns: 1fr; }
  body.has-homepage-chrome .rv6-office-seal a:has(img[hidden]) small { grid-column: auto; }
}
