/* ============================================================
   Shoplive Parts CSS — header & footer
   ============================================================ */

/* ── 共通トークン ── */
:root {
  --sl-red:       #E83B3B;
  --sl-black:     #0A0A0A;
  --sl-white:     #ffffff;
  --sl-gray-nav:  rgba(0,0,0,0.7);
  --sl-gray-foot: rgb(179,179,179);
  --sl-gray-head: rgb(187,187,187);
  --sl-shadow-nav: 0 1px 0 0 rgba(0,0,0,0.06);
  --sl-font:      "Pretendard", "Pretendard Medium", sans-serif;
  --sl-header-h:  64px;
  --sl-max-w:     1280px;
}

/* ============================================================
   HEADER
   ============================================================ */
.sl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sl-shadow-nav);
  font-family: var(--sl-font);
}

.sl-header-inner {
  max-width: var(--sl-max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--sl-header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* ロゴ */
.sl-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.sl-logo img {
  display: block;
}

/* ナビ */
.sl-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
  overflow: visible;
}

.sl-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sl-gray-nav);
  text-decoration: none;
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  font-family: var(--sl-font);
  line-height: 1;
}
.sl-nav-link:hover {
  color: var(--sl-black);
  background: rgba(0,0,0,0.04);
}

/* シェブロン（下矢印） */
.sl-chevron {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
  flex-shrink: 0;
}

/* ドロップダウン */
.sl-nav-dropdown-wrap {
  position: relative;
}

.sl-nav-has-dropdown {
  /* button reset */
}

/* ドロップダウンパネル */
.sl-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  z-index: 200;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px;
  min-width: 260px;
}
.sl-nav-dropdown-wrap:hover .sl-nav-dropdown {
  display: block;
}

/* hover gap ブリッジ（margin-top の隙間をカバー） */
.sl-nav-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* ドロップダウン各アイテム */
.sl-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.sl-dropdown-item:hover {
  background: rgba(0,0,0,0.04);
}

.sl-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  color: var(--sl-black);
}
.sl-dropdown-icon svg {
  width: 18px;
  height: 18px;
}

.sl-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sl-dropdown-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sl-black);
  line-height: 1.3;
}
.sl-dropdown-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.5);
  line-height: 1.4;
}

/* ヘッダーボタン */
.sl-header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.sl-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sl-black);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  font-family: var(--sl-font);
}
.sl-btn-ghost:hover {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.25);
}

.sl-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  background: var(--sl-red);
  white-space: nowrap;
  transition: background 0.15s;
  font-family: var(--sl-font);
}
.sl-btn-primary:hover {
  background: #c93030;
}

/* ============================================================
   FOOTER
   ============================================================ */
.sl-footer {
  background: var(--sl-black);
  color: var(--sl-white);
  font-family: var(--sl-font);
  padding: 60px 0 32px;
  width: 100%;
  box-sizing: border-box;
  display: block;
}

.sl-footer-inner {
  max-width: var(--sl-max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* 上段 */
.sl-footer-top {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
}

/* ブランドエリア */
.sl-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex-shrink: 0;
  min-width: 160px;
}

.sl-footer-logo img {
  display: block;
}

/* SNS */
.sl-footer-social {
  display: flex;
  gap: 12px;
}
.sl-footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--sl-gray-head);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.sl-footer-social-link:hover {
  color: var(--sl-white);
  background: rgba(255,255,255,0.1);
}
.sl-footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* メニュー */
.sl-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sl-footer-menu-heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--sl-white);
  margin: 0;
  line-height: 1.3;
}
.sl-footer-menu-heading--link {
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s;
}
.sl-footer-menu-heading--link:hover {
  color: var(--sl-gray-foot);
}
.sl-footer-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sl-footer-menu a {
  font-size: 13px;
  color: var(--sl-gray-foot);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s;
}
.sl-footer-menu a:hover {
  color: var(--sl-white);
}

/* 区切り線 */
.sl-footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 40px 0 24px;
}

/* 下段 */
.sl-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sl-footer-copyright {
  font-size: 13px;
  color: rgb(224,224,224);
  margin: 0;
}

/* ============================================================
   ハンバーガー / モバイルドロワー
   ============================================================ */

/* デスクトップでは非表示 */
.sl-hamburger,
.sl-mob-cta {
  display: none;
}

/* ハンバーガーボタン */
.sl-hamburger {
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.sl-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--sl-black);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ドロワー背景 */
.sl-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  transition: opacity 0.25s;
  opacity: 0;
}
.sl-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

/* モバイルドロワー本体 */
.sl-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.sl-mobile-drawer.open {
  transform: translateX(0);
}

.sl-mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.sl-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 8px;
  cursor: pointer;
  color: var(--sl-black);
  flex-shrink: 0;
}

.sl-mobile-nav-links {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sl-mob-nav-section {
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 12px 0 4px;
  padding: 0 8px;
}

.sl-mob-nav-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--sl-black);
  transition: background 0.15s;
  font-family: var(--sl-font);
}
.sl-mob-nav-link:hover {
  background: rgba(0,0,0,0.05);
}

.sl-mobile-drawer-footer {
  padding: 16px 20px 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sl-mob-footer-link {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  font-size: 14px;
  font-weight: 500;
  color: var(--sl-black);
  text-decoration: none;
  transition: background 0.15s;
  font-family: var(--sl-font);
}
.sl-mob-footer-link:hover {
  background: rgba(0,0,0,0.04);
}

.sl-mob-drawer-cta {
  display: flex;
  justify-content: center;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
}

/* ドロワーヘッダー内CTAボタン */
.sl-mob-drawer-cta-header {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* リッチナビリンク（アイコン＋タイトル＋説明） */
.sl-mob-nav-link-rich {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sl-black);
  transition: background 0.15s;
  font-family: var(--sl-font);
}
.sl-mob-nav-link-rich:hover {
  background: rgba(0,0,0,0.05);
}
.sl-mob-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(0,0,0,0.05);
  color: var(--sl-black);
}
.sl-mob-nav-icon svg {
  width: 18px;
  height: 18px;
}
.sl-mob-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sl-mob-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--sl-black);
  line-height: 1.3;
}
.sl-mob-nav-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  line-height: 1.4;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1024px) {
  .sl-footer-top {
    flex-wrap: wrap;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .sl-header-inner {
    padding: 0 20px;
    gap: 12px;
  }
  /* デスクトップ専用を隠す */
  .sl-nav,
  .sl-header-buttons {
    display: none;
  }
  /* モバイル専用を表示 */
  .sl-mob-cta {
    display: inline-flex;
    margin-left: auto;
    padding: 8px 14px;
    font-size: 13px;
  }
  .sl-hamburger {
    display: flex;
  }
  .sl-footer-inner {
    padding: 0 20px;
  }
  .sl-footer-top {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .sl-footer-brand {
    min-width: unset;
  }
  .sl-footer-menu {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .sl-footer-menu ul {
    align-items: center;
  }
  .sl-footer-bottom {
    justify-content: center;
  }
}
