/* Curebell Header CSS */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header Container */
.cb-header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1px solid #eff0f2;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cb-header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 52px;
  padding: 12px 20px;
  max-width: 100%;
}

/* Logo */
.cb-header__logo-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.cb-header__logo-image {
  height: auto;
  max-height: 40px;
  display: block;
}

/* Navigation Group */
.cb-header__navigation {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Navigation Button */
.cb-header__nav-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.cb-header__nav-button:hover {
  opacity: 0.8;
}

.cb-header__nav-button:hover .cb-header__accent {
  background-color: #5297dc;
  opacity: 1;
}

.cb-header__nav-button.is-active .cb-header__nav-text {
  color: #0066cc;
}

.cb-header__nav-button.is-active .cb-header__accent {
  background-color: #0066cc;
  opacity: 1;
}

.cb-header__nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cb-header__nav-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.cb-header__nav-text {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #474747;
  text-align: center;
  white-space: nowrap;
}

/* Accent Bar */
.cb-header__accent {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background-color: transparent;
  border-radius: 2px 2px 0px 0px;
  opacity: 0;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* Divider */
.cb-header__divider {
  width: 1px;
  height: 41px;
  background-color: #eff0f2;
  margin: 0 12px;
  flex-shrink: 0;
}

/* Desktop Styles */
@media screen and (min-width: 768px) {

  .cb-header__content {
    padding: 16px 20px 16px 32px;
  }

  .cb-header__logo-image {
    height: 50px;
    max-height: 50px;
  }

  .cb-header__navigation {
    gap: 0;
  }

  .cb-header__nav-content {
    gap: 4px;
  }

  .cb-header__divider {
    height: 43px;
    margin: 0 9px;
  }

  .cb-header__accent {
    bottom: -16px;
  }

  /* Fixed width for menu button on desktop
  .cb-header__nav-button:last-child {
    width: 50px;
  } */
}

/* Hover effects for desktop only */
@media (hover: hover) and (pointer: fine) {
  .cb-header__nav-button:hover .cb-header__nav-text {
    color: #5297dc;
  }
}

/* Focus styles for accessibility */
.cb-header__nav-button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.cb-header__nav-button:focus:not(:focus-visible) {
  outline: none;
}

.cb-header__logo-link:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-radius: 4px;
}

.cb-header__logo-link:focus:not(:focus-visible) {
  outline: none;
}
