:root {
  --egs-shell-ink: #101828;
  --egs-shell-muted: #475467;
  --egs-shell-line: #e4e7ec;
  --egs-shell-green: #43e68b;
  --egs-shell-green-dark: #0f9f58;
  --egs-shell-yellow: #fff200;
  --egs-shell-max: 1180px;
}

.egs-promo {
  padding: 8px 14px;
  background: var(--egs-shell-yellow);
  color: var(--egs-shell-ink);
  text-align: center;
  font-family: "Noto Sans JP", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.egs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--egs-shell-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.egs-nav {
  width: min(var(--egs-shell-max), calc(100% - 40px));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.egs-brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.egs-brand img {
  display: block;
  width: 220px;
  height: 58px;
  object-fit: cover;
  object-position: center;
}

.egs-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--egs-shell-muted);
  font-family: "Noto Sans JP", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.egs-links a {
  color: inherit;
  text-decoration: none;
}

.egs-links a:hover,
.egs-links a:focus-visible {
  color: var(--egs-shell-green-dark);
}

.egs-links .egs-line {
  padding: 9px 15px;
  border-radius: 999px;
  background: #08b84e;
  color: #fff;
}

.egs-menu {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--egs-shell-ink);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.egs-menu:focus-visible {
  outline: 3px solid rgba(15, 159, 88, .25);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .egs-promo {
    padding: 7px 10px;
    font-size: 10px;
  }

  .egs-nav {
    width: calc(100% - 28px);
    min-height: 72px;
  }

  .egs-brand img {
    width: 210px;
    height: 56px;
  }

  .egs-menu {
    display: grid;
    place-items: center;
  }

  .egs-links {
    position: absolute;
    top: 100%;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--egs-shell-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .18);
  }

  .egs-links.is-open {
    display: flex;
  }

  .egs-links a {
    min-height: 48px;
    padding: 12px;
    display: flex;
    align-items: center;
  }

  .egs-links .egs-line {
    justify-content: center;
    margin-top: 6px;
  }
}

@media (max-width: 350px) {
  .egs-brand img {
    width: 190px;
    height: 52px;
  }
}
