/* ===========================
   NEXUS Advisory Group - CSS
   =========================== */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #9A7A2E;
  --navy: #0A0E1A;
  --navy-mid: #111827;
  --navy-light: #1E2940;
  --white: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-600: #6B7280;
  --text-primary: #1F2937;
  --text-light: rgba(255,255,255,0.85);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}
.section-label.light { color: var(--gold-light); }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.section-title.white { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.8;
}

.section-header.center { text-align: center; }
.section-header.center .section-desc { margin: 0 auto; }

.gold { color: var(--gold); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.55);
}
.btn-primary.full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
  background: rgba(10,14,26,0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.navbar.scrolled {
  background: rgba(10,14,26,0.97);
  backdrop-filter: blur(24px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.4);
  border-bottom-color: rgba(201,168,76,0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  line-height: 1;
}
.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1.5;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-links .nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,0.8) 0%, rgba(30,41,64,0.6) 50%, rgba(10,14,26,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-block;
  color: var(--gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 1.8rem;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.75);
  line-height: 2;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(30px); }
.animated { animation: fadeUp 0.7s ease forwards; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* ===== STATS ===== */
.stats-section {
  background: var(--navy);
  padding: 3.5rem 0;
  border-top: 1px solid rgba(201,168,76,0.15);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stat-item.visible { opacity: 1; transform: translateY(0); }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  display: inline-block;
  line-height: 1;
}
.stat-suffix {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  display: inline-block;
  margin-left: 2px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(201,168,76,0.25);
  flex-shrink: 0;
}

/* ===== ABOUT ===== */
.about-section {
  padding: 6rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}
.about-image-wrap {
  position: relative;
  padding: 2rem;
}

.about-bg-shape {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(10,14,26,0.04));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.2);
}

.about-card-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  transform: translateX(0);
}
.about-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.3);
}
.about-card-2 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: rgba(201,168,76,0.3);
}
.about-card-2 .card-title,
.about-card-2 .card-sub { color: var(--white); }
.about-card-2 .card-sub { color: rgba(255,255,255,0.6); }

.card-icon { font-size: 1.8rem; flex-shrink: 0; }
.card-title { font-weight: 700; font-size: 0.95rem; }
.card-sub { font-size: 0.8rem; color: var(--gray-600); margin-top: 2px; }

.about-text { padding: 1rem 0; }
.about-body {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.about-features { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ===== SERVICES ===== */
.services-section {
  padding: 6rem 0;
  background: var(--gray-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.2);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card.featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: rgba(201,168,76,0.3);
  color: var(--white);
}
.service-card.featured::before { display: none; }
.service-card.featured h3,
.service-card.featured p { color: var(--white); }
.service-card.featured p { color: rgba(255,255,255,0.7); }
.service-card.featured .service-link { color: var(--gold-light); }

.service-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  font-weight: 700;
}
.service-icon { margin-bottom: 1.2rem; }

.service-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}
.service-card p {
  font-size: 0.87rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.service-link {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  transition: opacity 0.2s;
}
.service-link:hover { opacity: 0.7; }

/* ===== PROCESS ===== */
.process-section {
  padding: 6rem 0;
  background: var(--white);
}

.process-timeline {
  position: relative;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-line {
  position: absolute;
  left: 42px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark), rgba(201,168,76,0.1));
}

.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.process-step.visible { opacity: 1; transform: translateX(0); }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(201,168,76,0.4);
}

.step-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  flex: 1;
  transition: var(--transition);
}
.step-content:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.step-icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.step-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.step-content p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}
.step-duration {
  font-size: 0.78rem;
  color: var(--gold-dark);
  font-weight: 600;
  background: rgba(201,168,76,0.08);
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

/* ===== RESULTS ===== */
.results-section {
  padding: 6rem 0;
  background: var(--gray-100);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.case-card.visible { opacity: 1; transform: translateY(0); }
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.25);
}

.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.case-amount {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.8rem;
}
.case-amount strong { color: var(--navy); font-size: 1rem; }

.case-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.case-card p {
  font-size: 0.87rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.case-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--gray-400);
  border-top: 1px solid var(--gray-200);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.results-cta { text-align: center; margin-top: 3rem; }

/* ===== TEAM ===== */
.team-section {
  padding: 6rem 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.team-card.visible { opacity: 1; transform: translateY(0); }
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.25);
}

.team-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.2rem;
}
.avatar-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.team-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.team-role {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.team-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}
.team-tags span {
  font-size: 0.7rem;
  background: rgba(10,14,26,0.06);
  color: var(--navy);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
}

/* ===== FOUNDER CARD ===== */
.team-card.founder-card {
  border: 2px solid rgba(201,168,76,0.5);
  background: linear-gradient(145deg, #fff 0%, rgba(201,168,76,0.04) 100%);
  position: relative;
}
.team-card.founder-card .avatar-initials {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  font-size: 1.5rem;
}
.founder-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--navy);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ===== AI MEMBER CARDS ===== */
.team-card.ai-member {
  border: 1px solid rgba(139,92,246,0.3);
  background: linear-gradient(145deg, #fff 0%, rgba(139,92,246,0.03) 100%);
  position: relative;
}
.team-card.ai-member .avatar-initials {
  background: linear-gradient(135deg, #6D28D9 0%, #4338CA 100%);
}
.team-card.ai-member .avatar-ring {
  background: linear-gradient(135deg, #7C3AED, #4338CA) border-box;
}
.team-card.ai-member:hover {
  border-color: rgba(139,92,246,0.4);
}
.ai-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #6D28D9, #4338CA);
  color: white;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.08em;
}
.team-card.ai-member .team-tags span {
  background: rgba(109,40,217,0.08);
  color: #5B21B6;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(10,14,26,0.95) 100%);
}
.testimonials-section .section-label { color: var(--gold-light); }
.testimonials-section .section-title { color: var(--white); }

.testimonials-slider {
  margin-top: 3rem;
  overflow: hidden;
  position: relative;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.testimonial-card {
  min-width: 100%;
  padding: 3rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(10px);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: -1rem;
  opacity: 0.5;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 2;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.testimonial-author {
  border-top: 1px solid rgba(201,168,76,0.2);
  padding-top: 1rem;
}
.author-name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}
.author-deal {
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 0.2rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.4);
  background: transparent;
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1a1f3a 50%, var(--navy-light) 100%);
  z-index: 0;
}
.contact-section .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.contact-label {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.contact-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 600;
}
.contact-time {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.2rem;
}

/* FORM */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.contact-form h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: var(--navy);
}

.form-group {
  margin-bottom: 1.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.form-row .form-group { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.required { color: #e53e3e; }

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
textarea { resize: vertical; }

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-check label {
  font-size: 0.82rem;
  margin: 0;
  font-weight: 400;
  color: var(--gray-600);
}

.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 0.8rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer { background: #050810; color: rgba(255,255,255,0.7); }
.footer-top { padding: 4rem 0 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.5);
}

.social-links {
  display: flex;
  gap: 0.8rem;
}
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-links h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom { padding: 1.5rem 0; }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ===== MEMBERS ONLY ===== */
.contact-value.members-only {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}
.lock-icon { font-size: 0.8rem; }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: var(--transition);
  pointer-events: none;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 24px rgba(201,168,76,0.5);
  transition: var(--transition);
}
.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.6);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10,14,26,0.85);
  border: 1.5px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  transform: translateY(10px);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
}
.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top-btn:hover { background: rgba(10,14,26,0.97); border-color: var(--gold); }
@media (max-width: 768px) {
  .scroll-top-btn { bottom: 4.5rem; left: 1rem; width: 44px; height: 44px; font-size: 1rem; }
}

/* ===== SCROLL ANIMATION ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HAMBURGER ANIMATION ===== */
.hamburger {
  position: relative;
  z-index: 1010;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.hamburger:active { background: rgba(255,255,255,0.08); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニューオーバーレイ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  /* ===== ナビ ===== */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,14,26,0.98);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    z-index: 999;
    border-top: 1px solid rgba(201,168,76,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-links li:last-child { border-bottom: none; margin-top: 0.8rem; }
  .nav-links a {
    display: flex;
    align-items: center;
    padding: 0.9rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.02em;
    min-height: 48px;
  }
  .nav-links .nav-cta {
    justify-content: center;
    padding: 0.85rem 1.4rem;
    min-height: 52px;
    font-size: 0.95rem;
    border-radius: 10px;
    margin-top: 0.4rem;
  }

  /* ===== ヒーロー ===== */
  .hero { min-height: 100svh; }
  .hero-content { padding: 0 1.2rem; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.15em; margin-bottom: 1rem; }
  .hero-title { margin-bottom: 1.2rem; line-height: 1.4; }
  .hero-desc { font-size: 0.88rem; line-height: 1.85; margin-bottom: 1.8rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .btn-primary, .btn-ghost {
    justify-content: center;
    min-height: 52px;
    font-size: 0.95rem;
    width: 100%;
  }

  /* ===== 統計 ===== */
  .stats-section { padding: 0; }
  .stats-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
    max-width: 100%;
  }
  .stat-item {
    min-width: unset;
    padding: 1.6rem 0.8rem;
    border-right: 1px solid rgba(201,168,76,0.15);
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stat-divider { display: none; }
  .stat-number { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  .stat-label { font-size: 0.7rem; }

  /* ===== About ===== */
  .about-section { padding: 3.5rem 0; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-visual { order: -1; }
  .about-image-wrap { padding: 1rem; }
  .about-card { padding: 1rem 1.1rem; gap: 0.8rem; }
  .card-icon { font-size: 1.4rem; }
  .card-title { font-size: 0.88rem; }
  .about-body { font-size: 0.9rem; }
  .about-text { padding: 0; }

  /* ===== サービス ===== */
  .services-section { padding: 3.5rem 0; }
  .services-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .service-card { padding: 1.6rem 1.2rem; }
  .service-card h3 { font-size: 1rem; }
  .service-card p { font-size: 0.85rem; margin-bottom: 1rem; }

  /* ===== プロセス ===== */
  .process-section { padding: 3.5rem 0; }
  .process-timeline { gap: 1.2rem; margin-top: 2.5rem; }
  .process-line { left: 21px; top: 16px; bottom: 16px; }
  .process-step { gap: 1rem; }
  .step-number { width: 42px; height: 42px; font-size: 0.75rem; flex-shrink: 0; }
  .step-content { padding: 1.2rem; flex: 1; }
  .step-content h3 { font-size: 0.95rem; }
  .step-content p { font-size: 0.84rem; margin-bottom: 0.6rem; }

  /* ===== 実績 ===== */
  .results-section { padding: 3.5rem 0; }
  .cases-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .case-card { padding: 1.6rem; }
  .case-card h3 { font-size: 0.95rem; }
  .case-card p { font-size: 0.84rem; }

  /* ===== チーム ===== */
  .team-section { padding: 3.5rem 0; }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
    margin-top: 2.5rem;
  }
  .team-card { padding: 2rem 1.5rem; }
  .team-card h3 { font-size: 1rem; }
  .team-card p { font-size: 0.84rem; }
  .avatar-initials { width: 72px; height: 72px; font-size: 1.2rem; }
  .team-avatar { width: 72px; height: 72px; }
  .founder-badge { font-size: 0.55rem; padding: 2px 8px; }

  /* ===== テスティモニアル ===== */
  .testimonials-section { padding: 3.5rem 0; }
  .testimonial-card { padding: 1.8rem 1.2rem; }
  .testimonial-quote { font-size: 3rem; margin-bottom: -0.5rem; }
  .testimonial-card p { font-size: 0.9rem; line-height: 1.9; }
  .slider-btn { width: 40px; height: 40px; font-size: 1rem; }

  /* ===== お問い合わせ ===== */
  .contact-section { padding: 3.5rem 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-body { font-size: 0.9rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; min-height: 48px; }
  .form-group textarea { min-height: 110px; }
  .btn-primary.full { min-height: 54px; font-size: 1rem; border-radius: 14px; }
  .contact-form-wrap { padding: 1.8rem 1.4rem; }
  .contact-form h3 { font-size: 1.15rem; margin-bottom: 1.4rem; }

  /* ===== フッター ===== */
  .footer-top { padding: 2.5rem 0 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .footer-legal { gap: 1rem; }

  /* ===== フローティングCTA → ボトムバー ===== */
  .floating-cta {
    bottom: 0; right: 0; left: 0;
    transform: none !important;
    border-radius: 0;
  }
  .floating-btn {
    border-radius: 0;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    box-shadow: 0 -4px 20px rgba(201,168,76,0.3);
    min-height: 54px;
  }
  /* フッターとの重なりを防ぐ余白 */
  .footer { padding-bottom: 54px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-links { width: 85vw; }
  .hero-title { font-size: clamp(1.85rem, 7.5vw, 2.5rem); }
  .section-title { font-size: clamp(1.55rem, 6vw, 2rem); }
  .section-desc { font-size: 0.88rem; }

  /* 統計をよりコンパクトに */
  .stat-item { padding: 1.2rem 0.5rem; }
  .stat-number { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .stat-suffix { font-size: 0.9rem; }

  /* チーム */
  .team-grid { max-width: 100%; }
  .team-card { padding: 1.8rem 1.2rem; }

  /* フォーム */
  .contact-form-wrap { padding: 1.4rem 1rem; }

  /* プロセス */
  .process-step { gap: 0.8rem; }
  .step-content { padding: 1rem; }

  /* 実績カード */
  .case-meta { flex-direction: column; gap: 0.4rem; }

  /* ボタン */
  .btn-primary, .btn-ghost, .btn-outline { font-size: 0.9rem; padding: 0.9rem 1.4rem; }
}

/* iOS Safari セーフエリア対応 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 768px) {
    .floating-btn {
      padding-bottom: calc(1rem + env(safe-area-inset-bottom));
      min-height: calc(54px + env(safe-area-inset-bottom));
    }
    .footer { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  }
}
