/* ═══════════════════════════════════════
   Mr.sasuke INC. — Common Stylesheet
   ═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0f1623;
  --navy-mid: #1b2333;
  --red: #e84040;
  --red-soft: #ff5757;
  --white: #ffffff;
  --gray-light: #f5f6f8;
  --gray-mid: #e8eaed;
  --gray-text: #6b7280;
  --text: #1a1f2e;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text); background: var(--white); line-height: 1.8;
}

/* ─── HEADER ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 72px;
  background: rgba(15,22,35,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo {
  font-family: 'Inter', sans-serif;
  color: var(--white); text-decoration: none;
  display: flex; flex-direction: column; line-height: 1; gap: 1px;
}
.logo-top {
  font-size: 10px; font-weight: 400; letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65); text-transform: lowercase;
}
.logo-bot {
  font-size: 20px; font-weight: 800; letter-spacing: 0.01em;
  color: var(--white); text-transform: lowercase;
}
nav { display: flex; gap: 36px; align-items: center; }
nav a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s;
}
nav a:hover { color: var(--white); }
.nav-cta {
  font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0.06em !important;
  color: var(--white) !important; background: var(--red);
  padding: 9px 22px; border-radius: 4px; transition: background 0.2s !important;
}
.nav-cta:hover { background: #c73232 !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); border-radius: 2px; transition: 0.2s;
}
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: rgba(15,22,35,0.98); padding: 24px 32px; flex-direction: column; gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px; color: rgba(255,255,255,0.8); text-decoration: none;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav a:hover { color: var(--white); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 140px 60px 80px; background: var(--navy); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,64,64,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--red-soft); text-transform: uppercase; margin-bottom: 20px;
}
.page-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--red-soft); }
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--white); margin-bottom: 20px;
}
.page-hero p {
  font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.6);
  max-width: 560px; line-height: 1.9;
}

/* ─── SECTION BASE ─── */
.section-pad { padding: 100px 60px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--red); text-transform: uppercase; margin-bottom: 20px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--red); }
.section-title {
  font-size: clamp(26px, 3.2vw, 42px); font-weight: 700; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 20px;
}
.section-desc {
  font-size: 16px; font-weight: 300; color: var(--gray-text); line-height: 1.9; max-width: 540px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  padding: 14px 32px; border-radius: 4px; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #c73232; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.72); font-size: 14px; font-weight: 400; letter-spacing: 0.04em;
  padding: 14px 24px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  padding: 13px 28px; text-decoration: none;
  border: 1.5px solid var(--gray-mid); border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: #aaa; color: var(--text); }
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 400; letter-spacing: 0.04em;
  padding: 13px 0; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.btn-outline-light:hover { color: var(--white); border-color: rgba(255,255,255,0.7); }

/* ─── DIVIDER ─── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-mid), transparent);
  margin: 0 60px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--navy); padding: 48px 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.06); flex-wrap: wrap; gap: 24px;
}
.footer-logo {
  font-family: 'Inter', sans-serif;
  color: var(--white); letter-spacing: 0.04em;
  display: flex; flex-direction: column; line-height: 1; gap: 1px;
}
.footer-logo .logo-top { font-size: 9px; font-weight: 400; letter-spacing: 0.18em; color: rgba(255,255,255,0.45); }
.footer-logo .logo-bot { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none;
  letter-spacing: 0.06em; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  header { padding: 0 32px; }
  .section-pad { padding: 80px 32px; }
  .page-hero { padding: 120px 32px 64px; }
  footer { padding: 40px 32px; }
  .divider { margin: 0 32px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .nav-hamburger { display: flex; }
  header { padding: 0 20px; }
}
@media (max-width: 680px) {
  .section-pad { padding: 64px 20px; }
  .page-hero { padding: 100px 20px 56px; }
  footer { flex-direction: column; gap: 20px; text-align: center; padding: 36px 20px; }
  .footer-links { justify-content: center; }
  .divider { margin: 0 20px; }
}

/* ═══════════════════════════════════════
   ANIMATIONS — sbro.co.jp inspired
   ═══════════════════════════════════════ */

/* ─── Page load ─── */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
body { animation: pageEnter 0.7s cubic-bezier(0.22,1,0.36,1) both; }

/* ─── Scroll reveal base ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Stagger delays for children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }

/* ─── Text clip reveal (heading slide-up) ─── */
.text-reveal-wrap { overflow: hidden; }
.text-reveal {
  display: block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.text-reveal.revealed { transform: translateY(0); }

/* ─── Reveal from left / right ─── */
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.revealed, .reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* ─── Marquee ticker ─── */
.marquee-strip {
  background: var(--navy); overflow: hidden; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-item {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; color: rgba(255,255,255,0.35);
  text-transform: uppercase; padding: 0 36px; white-space: nowrap;
}
.marquee-item span { color: var(--red-soft); margin: 0 4px; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Underline draw on section labels ─── */
.section-label::after {
  content: '';
  display: block; height: 1px;
  background: var(--red); margin-top: 6px;
  width: 0;
  transition: width 0.8s cubic-bezier(0.22,1,0.36,1) 0.3s;
}
.section-label.revealed::after { width: 32px; }

/* ─── Counter number ─── */
.count-num { display: inline-block; }

/* ─── Enhanced card hover (global) ─── */
.case-card, .service-card, .fact-box {
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1) !important;
}
.case-card:hover, .service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  transform: translateY(-4px) !important;
}

/* ─── Smooth header scroll opacity ─── */
header { transition: background 0.3s ease, box-shadow 0.3s ease; }
header.scrolled {
  background: rgba(15,22,35,0.99);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
