/* Scoped copy of the adsur_homepage.html header, reused as the top nav on the
   cloud-infra group node pages (test /node 127-129, prod 224/138/139) so the
   nav stays unified with the /adsur homepage. Everything is scoped under
   .adsur-nav because this library shares pages with the rest of the site's
   normal Drupal content — unlike simple_landing11/home (exclusive to /adsur),
   this must NOT touch body/html/a/h1 globally. */

.adsur-nav, .adsur-nav * { box-sizing: border-box; }

.adsur-nav {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.adsur-nav a { color: inherit; text-decoration: none; }
.adsur-nav button { font: inherit; }

.adsur-nav .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 54px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,35,57,.07);
  backdrop-filter: blur(12px);
}

.adsur-nav .header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.adsur-nav .brand {
  color: #0878bd;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.adsur-nav .nav-wrap, .adsur-nav .nav-links { display: flex; align-items: center; }
.adsur-nav .nav-wrap { gap: 14px; }
.adsur-nav .nav-links { gap: 22px; }

.adsur-nav .nav-links a {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease;
}

.adsur-nav .nav-links a:hover, .adsur-nav .nav-links a:focus-visible { color: #087ab7; }

.adsur-nav .utility { display: flex; align-items: center; gap: 6px; }

.adsur-nav .icon-button {
  min-width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e7ec;
  border-radius: 9px;
  background: #fff;
  color: #15253a;
  cursor: pointer;
}

.adsur-nav .menu-button { display: none; }

@media (max-width: 1080px) {
  .adsur-nav .nav-links { gap: 14px; }
  .adsur-nav .nav-links a { font-size: 13px; }
  .adsur-nav .brand { font-size: 15px; }
}

@media (max-width: 880px) {
  .adsur-nav .site-header { height: 58px; }
  .adsur-nav .menu-button { display: grid; }
  .adsur-nav .nav-links {
    position: absolute;
    top: 58px;
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    border: 1px solid #dbe2e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(9,31,53,.17);
  }

  .adsur-nav .nav-links.open { display: flex; }
  .adsur-nav .nav-links a { padding: 11px 12px; border-radius: 7px; }
  .adsur-nav .nav-links a:hover { background: #f2f7fa; }
}

@media (max-width: 600px) {
  .adsur-nav .header-inner { padding-inline: 12px; }
  .adsur-nav .brand { max-width: 68vw; overflow: hidden; text-overflow: ellipsis; }
}

.adsur-nav :focus-visible { outline: 3px solid #5fc5ef; outline-offset: 3px; }
