/* =========================
   COMPONENTS
========================= */

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ===== Header Container ===== */
.header-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ===== Logo ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo__emblem {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__name {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo__accent {
  color: var(--purple);
}

@media (max-width: 480px) {
  .logo__emblem {
    width: 32px;
    height: 32px;
  }
  
  .logo__name {
    font-size: 0.9rem;
  }
}

/* ===== Navigation List ===== */
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  list-style: none;
}

.nav-list a,
.nav-list button {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-list a:hover,
.nav-list button:hover {
  color: var(--navy);
  background: rgba(107, 63, 160, 0.08);
  text-decoration: none;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--duration-fast);
}

.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Mobile Navigation ===== */
@media (max-width: 900px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s var(--ease-out);
    z-index: 100;
    align-items: stretch;
  }
  
  .nav-list.is-open {
    right: 0;
  }
  
  .nav-list a,
  .nav-list button {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
  }
  
  .hamburger {
    display: flex;
  }
}

@media (min-width: 901px) {
  .hamburger {
    display: none;
  }
}

/* ===== Header Inner (他ページ用) ===== */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--purple), var(--gold));
  box-shadow: 0 4px 12px rgba(107, 63, 160, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.brand__emblem {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.brand__pink {
  color: var(--purple);
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
}

.nav a:hover {
  color: var(--navy);
  background: rgba(107, 63, 160, 0.08);
  text-decoration: none;
}

@media (max-width: 768px) {
  .header__inner {
    flex-wrap: wrap;
  }
  
  .nav {
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    margin-top: 8px;
  }
  
  .nav a {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

