.stock-global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(190px, auto) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 64px;
  border-bottom: 1px solid rgba(216, 225, 227, 0.9);
  background: rgba(255, 255, 255, 0.94);
  padding: 12px clamp(14px, 1.8vw, 30px);
  color: #11191d;
  font-family: "Inter", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
  backdrop-filter: blur(18px);
}

.stock-global-header * {
  box-sizing: border-box;
}

.stock-global-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.stock-global-mark {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #08705f;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.stock-global-brand-text {
  min-width: 0;
}

.stock-global-brand strong,
.stock-global-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-global-brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.stock-global-brand small {
  color: #687780;
  font-size: 12px;
  font-weight: 800;
}

.stock-global-language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  color: #687780;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.stock-global-language:hover {
  background: #e8efec;
  color: #08705f;
}

.stock-global-language {
  border: 1px solid #d8e1e3;
  background: #fff;
  cursor: pointer;
}

.stock-global-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #d8e1e3;
  margin-top: 34px;
  padding: 24px 0 6px;
  color: #687780;
  font-family: "Inter", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}

.stock-footer-brand {
  color: #08705f;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.stock-global-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.stock-global-footer a {
  color: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.stock-global-footer a:hover {
  color: #08705f;
}

.stock-global-header.theme-transparent {
  position: absolute;
  border-bottom-color: rgba(255, 255, 255, 0.16);
  background: rgba(13, 13, 28, 0.12);
  color: #fff;
}

.stock-global-header.theme-transparent .stock-global-brand small,
.stock-global-header.theme-transparent .stock-global-language {
  color: rgba(255, 255, 255, 0.88);
}

.stock-global-header.theme-transparent .stock-global-language:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.stock-global-header.theme-transparent .stock-global-language {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
}

.stock-global-header.theme-transparent .stock-global-mark {
  background: rgba(255, 255, 255, 0.92);
  color: #7f2cff;
}

@media (max-width: 820px) {
  .stock-global-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .stock-global-header {
    padding-inline: 10px;
  }

  .stock-global-brand small {
    display: none;
  }

  .stock-global-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-global-footer nav {
    justify-content: flex-start;
  }
}
