/* サイト名ロゴ。ページ固有CSSより詳細度を上げて、どのページでも同じ見た目にする */

header.site-header a.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--color-primary, #3F6654);
  min-width: 0;
  flex-shrink: 0;
}

header.site-header a.brand-logo img {
  width: auto;
  height: 48px;
  flex-shrink: 0;
  max-width: none;
}

header.site-header .header-container {
  height: 88px;
  gap: 16px;
}

header.site-header .header-gnavi {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  scrollbar-width: none;
}

header.site-header .header-gnavi::-webkit-scrollbar {
  display: none;
}

header.site-header .header-nav {
  flex-shrink: 0;
}

header.site-header .header-gnavi-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-main, #2B2B2B);
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

header.site-header .header-gnavi-link:hover,
header.site-header .header-gnavi-link.is-active {
  background-color: var(--color-sub, #E8F0EB);
  color: var(--color-primary, #3F6654);
}

@media (max-width: 1100px) {
  header.site-header .header-container {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 0;
    row-gap: 0;
  }

  header.site-header .header-gnavi {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--color-border, #E2E6E3);
    margin-top: 8px;
    padding: 4px 0 8px;
    gap: 2px;
  }
}

@media (max-width: 640px) {
  header.site-header .header-container {
    min-height: 76px;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 10px;
    gap: 8px;
  }

  header.site-header a.brand-logo {
    font-size: 14px;
    gap: 8px;
  }

  header.site-header a.brand-logo img {
    height: 40px;
  }

  header.site-header .header-gnavi {
    margin-top: 6px;
    padding: 2px 0 6px;
  }

  header.site-header .header-gnavi-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  header.site-header .header-nav {
    gap: 4px;
  }

  header.site-header .header-nav-link {
    padding: 8px 10px;
    font-size: 13px;
    gap: 4px;
  }

  header.site-header .header-nav-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  header.site-header .header-nav-link > span:not(.cart-badge) {
    display: none;
  }
}
