/* ============================================================
   samboo – 共通スタイル  assets/css/style.css
   全ページで読み込む
   ============================================================ */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- CSS Variables ---------- */
:root {
  --nav-h: 68px;
  --color-brand-blue:       #0071CE;
  --color-brand-blue-light: #3399E0;
  --color-brand-blue-dark:  #005CA8;
  --color-brand-dark:       #0A0A0A;
}
@media (min-width: 768px) {
  :root { --nav-h: 96px; }
}

/* ---------- Navigation ---------- */
.nav-wrap {
  transition: background .5s, box-shadow .5s, backdrop-filter .5s;
}
.nav-wrap.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

/* ---------- Scroll Reveal ---------- */
.sr {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1),
              transform .9s cubic-bezier(.16, 1, .3, 1);
  pointer-events: auto;
}
.sr.vis  { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sr-d1   { transition-delay: .1s; }
.sr-d2   { transition-delay: .2s; }
.sr-d3   { transition-delay: .3s; }
.sr-d4   { transition-delay: .4s; }

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #0071CE, #3399E0);
  z-index: 300;
  width: 0%;
  transition: width .1s linear;
}

/* ---------- CTA Shimmer（複数ページ共通） ---------- */
.cta-shimmer { position: relative; overflow: hidden; }
.cta-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transform: skewX(-15deg);
  animation: ctaShimmer 3s ease-in-out infinite;
}
@keyframes ctaShimmer {
  0%, 100% { left: -100%; }
  50%       { left: 120%; }
}

/* Hero dot active state */
.hero-dot.active-bar {
  background-color: #0071CE;
  width: 2rem; /* w-8 相当 */
}

/* Pulse dot animation */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .55; transform: scale(1.35); }
}
.pulse-dot { animation: pulseDot 2.5s ease-in-out infinite; }

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(180deg,
    rgba(255,255,255,.25) 0%,
    rgba(255,255,255,.05) 35%,
    rgba(255,255,255,.35) 100%);
}
/* CTA section radial glow */
.cta-glow-bg {
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 60%);
}
