/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 1px 8px rgba(30, 58, 95, 0.1);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header__nav-list a {
  display: block;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.header__nav-list a:hover,
.header__nav-list a.is-active {
  color: var(--color-main);
  background: var(--color-accent-light);
}

.header__entry {
  margin-left: 8px;
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-main);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.header__drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  padding: 32px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.header__drawer.is-open {
  transform: translateX(0);
}

.header__drawer-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.header__drawer-list a {
  display: block;
  padding: 16px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.header__drawer-entry {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .header__nav    { display: none; }
  .header__hamburger { display: flex; }
  .header__drawer { display: block; }
  .header__inner  { padding: 0 20px; }
}
