/* ============================================
   Shared header styles
   ============================================ */
:root {
  --header-h: 72px;
}

.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #E8E4DD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  font-family: 'Work Sans', 'Noto Sans JP', sans-serif;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.header-brand:hover {
  opacity: 0.7;
}

.header-logo {
  width: 40px;
  height: 40px;
}

.header-title {
  font-family: 'Fraunces', 'Noto Sans JP', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2D2A26;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6560;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #e07850;
  transition: width 0.3s ease;
}

.header-nav a:hover {
  color: #e07850;
}

.header-nav a:hover::after {
  width: 100%;
}

.top-header .mypage-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #f2efe9 !important;
  color: #2d2a26 !important;
  border: 1px solid #e8e4dd !important;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.top-header .mypage-trigger:hover {
  background: #2d2a26 !important;
  border-color: #2d2a26 !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .top-header {
    padding: 0 16px;
  }

  .header-logo {
    width: 36px;
    height: 36px;
  }

  .header-title {
    font-size: 1rem;
  }

  .header-nav {
    display: none;
  }
}
