/* =========================================================
   投資詐欺返金相談ナビ — Chrome (header / mobile menu / sticky CTA)
   ========================================================= */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-height);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(15,35,60,.08); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--color-primary); flex: none; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(150deg, var(--color-primary), var(--color-secondary));
  color: #fff;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--color-primary); letter-spacing: .01em; }
.brand-sub { font-size: 11px; color: var(--color-muted); font-weight: 500; }

.header-nav { margin-left: auto; }
.header-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.header-nav a {
  display: inline-flex; align-items: center; height: 38px; padding: 0 11px;
  font-size: 13.5px; font-weight: 500; color: var(--color-text); border-radius: var(--radius-sm);
  white-space: nowrap; transition: all .14s ease;
}
.header-nav a:hover { background: var(--color-secondary-soft); color: var(--color-secondary-dark); }
.header-nav a.is-active { color: var(--color-secondary-dark); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-cta { white-space: nowrap; }
.hamburger {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  color: var(--color-primary); cursor: pointer; border-radius: 10px; place-items: center;
}
.hamburger svg { width: 26px; height: 26px; }
.hamburger:hover { background: var(--color-bg-tint); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 200;
  background: #fff; padding: 18px 22px 28px; transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1); overflow-y: auto;
  box-shadow: -10px 0 40px rgba(15,35,60,.16);
}
.mobile-menu.open { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mm-title { font-weight: 700; font-size: 16px; color: var(--color-primary); }
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-size: 16px; font-weight: 500; color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.mobile-menu nav a svg { width: 18px; height: 18px; color: var(--color-faint); }
.mm-note { font-size: 12px; color: var(--color-muted); margin-top: 14px; line-height: 1.7; }
.mm-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(15,28,42,.5);
  opacity: 0; pointer-events: none; transition: opacity .26s ease;
}
.mm-backdrop.open { opacity: 1; pointer-events: auto; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }

@media (max-width: 1080px) {
  .header-nav { display: none; }
  .hamburger { display: grid; }
}
@media (max-width: 680px) {
  .site-header { height: var(--header-height-sp); }
  .header-cta { display: none; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 10px; }

  .sticky-cta {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(15,35,60,.1);
  }
  .sticky-cta .sc-primary { flex: 1; min-height: 52px; font-size: 15px; padding: 0 14px; }
  .sticky-cta .sc-secondary {
    flex: none; min-width: 84px; min-height: 52px; display: grid; place-items: center;
    font-size: 13px; font-weight: 700; color: var(--color-primary);
    border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-pill);
  }
  /* leave room above sticky bar */
  body:not([data-no-sticky]) { padding-bottom: 78px; }
}
