.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 16, 64, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.site-header .header-inner {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  gap: 20px;
}

.site-header .brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-header .brand img {
  display: block;
  width: 150px;
  height: 50px;
  object-fit: contain;
}

.site-header .desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 24px;
}

.site-header .desktop-nav a {
  color: #001040;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .desktop-nav a:hover,
.site-header .desktop-nav a[aria-current="page"] {
  color: #0080f0;
}

.site-header .header-login,
.site-header .header-cta {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .header-login {
  padding: 8px 16px;
  border: 2px solid #0080f0;
  color: #0080f0;
  background: #fff;
}

.site-header .header-login:hover {
  color: #006dcc;
  border-color: #006dcc;
  background: #f5faff;
}

.site-header .header-cta {
  padding: 10px 18px;
  color: #fff;
  background: #0080f0;
  box-shadow: 0 6px 18px rgba(0, 128, 240, 0.26);
}

.site-header .header-cta:hover {
  color: #fff;
  background: #006dcc;
}

.site-header .menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  color: #0080f0;
  background: #eaf5fe;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.site-header .mobile-menu {
  width: min(calc(100% - 32px), 440px);
  max-height: calc(100vh - 90px);
  margin: 0 auto 14px;
  padding: 14px;
  overflow-y: auto;
  border: 1px solid #dce8f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 16, 64, 0.09);
}

.site-header .mobile-menu[hidden] {
  display: none;
}

.site-header .mobile-menu a {
  display: block;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #001040;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-decoration: none;
}

.site-header .mobile-menu a:hover,
.site-header .mobile-menu a[aria-current="page"] {
  color: #0080f0;
  background: #eaf5fe;
}

.site-header .mobile-menu .mobile-login {
  margin-top: 6px;
  border: 2px solid #0080f0;
  color: #0080f0;
  text-align: center;
}

.site-header .mobile-menu .mobile-register {
  margin-top: 8px;
  color: #fff;
  background: #0080f0;
  text-align: center;
}

.site-header .mobile-menu .mobile-register:hover {
  color: #fff;
  background: #006dcc;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid rgba(0, 128, 240, 0.35);
  outline-offset: 3px;
}

/* 既存静的ページの装飾が左右へ数pxだけ張り出しても横スクロールを作らない。 */
.page-wrap {
  overflow-x: clip;
}

@media (max-width: 1080px) {
  /* 旧静的ページの固定最小幅を解除し、タブレット幅の横スクロールを防ぐ。 */
  .page-wrap {
    min-width: 0 !important;
  }

  .site-header .desktop-nav,
  .site-header .header-login {
    display: none;
  }

  .site-header .header-cta {
    margin-left: auto;
  }

  .site-header .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    width: calc(100% - 28px);
    min-height: 62px;
    gap: 10px;
  }

  .site-header .brand img {
    width: 112px;
    height: 38px;
  }

  .site-header .header-cta {
    display: none;
  }

  .site-header .menu-button {
    margin-left: auto;
  }
}
