/*  ===================================================
   カスタムヘッダー
   =================================================== */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all 0.3s ease;
  background: #1e293b;
}
.custom-header.scrolled {
  background: rgba(30,41,59,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.custom-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.custom-nav__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.custom-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.custom-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.custom-logo-text {
  color: #fdfdfd;
}
.custom-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin-left: auto;
}
.custom-nav__menu a {
  color: #cacaca;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}
.custom-nav__menu a:hover {
  color: #6c63ff;
  background: rgba(108,99,255,0.08);
}
.custom-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}

/* ハンバーガー */
.custom-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.custom-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.custom-hamburger.active span {
  background: #fff;
}
.custom-hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.custom-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.custom-hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ヘッダー分の余白を確保 */
body {
  padding-top: 80px !important;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .custom-nav__actions {
    margin-left: auto;
  }
  .custom-nav__menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,41,59,1);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }
  .custom-nav__menu.open {
    display: flex;
  }
  .custom-nav__menu a {
    font-size: 1.3rem;
    padding: 12px 32px;
    color: #fff;
  }
  .custom-nav__menu.open a {
    color: #fff !important;
  }
  .custom-hamburger {
    display: flex;
    z-index: 1001;
  }
}
