/* ===================================================
   gelatto - Partner Recruitment LP
   css/style.css
   =================================================== */

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

:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #3B82F6;
  --blue-pale: #EFF6FF;
  --black: #111111;
  --dark: #1E1E1E;
  --gray: #595959;        /* [I] WCAG AA対応: #6B7280(ratio≈4.48) → #595959(ratio≈7.0) */
  --gray-light: #F3F4F6;
  --border: #E5E7EB;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }
/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* =================== NAV =================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 1;        /* shrinks before buttons */
  min-width: 0;          /* allow flex compression */
}
.nav-menu a {
  font-size: 0.75rem;   /* 13px → 12px */
  font-weight: 600;     /* 700 → 600 semi-bold */
  color: var(--gray);
  text-decoration: none;
  padding: 0.375rem 0.5rem;  /* 0.75rem → 0.5rem horizontal padding */
  border-radius: 0.375rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--blue);
  background: var(--blue-pale);
}
/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3125rem;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  z-index: 1100;
}
.nav-hamburger:hover { background: var(--gray-light); }
.nav-hamburger span {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }
/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 4.25rem; left: 0; right: 0;
  /* removed bottom:0 → height follows content */
  background: white;
  z-index: 999;
  padding: 1rem 1.25rem 0;
  flex-direction: column;
  gap: 0.25rem;
  /* bottom shadow to distinguish from content */
  box-shadow:
    0 8px 24px rgba(0,0,0,0.13),
    0 24px 48px rgba(0,0,0,0.08);
}
/* Bottom gradient fade-out */
.nav-drawer::after {
  content: '';
  display: block;
  height: 20px;
  margin: 0 -1.25rem;
  background: linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  flex-shrink: 0;
}
/* Drawer action area bottom padding */
.nav-drawer-actions {
  padding-bottom: 1.25rem;
}
.nav-drawer.open { display: flex; }

/* Semi-transparent overlay (darkens bg, tap to close) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: overlayFadeIn 0.2s ease;
}
.nav-overlay.open { display: block; }
@keyframes overlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.nav-drawer a {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}
/* Hover only on drawer menu links, not CTA buttons */
.nav-drawer-link:hover {
  background: var(--blue-pale);
  color: var(--blue);
}
/* Drawer CTA: same hover as PC NAV */
.nav-drawer-actions .btn-outline:hover {
  background: var(--black);
  color: white;
}
.nav-drawer-actions .btn-primary:hover {
  background: var(--blue-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.nav-drawer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.nav-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-bottom: 1.5rem;
}
.nav-drawer-actions .btn {
  justify-content: center;
}
.nav-drawer-actions .btn-primary {
  color: white;  /* force white text on primary button */
}
.nav-drawer-actions .btn-outline {
  color: var(--black);  /* document download button text color */
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--black);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white; font-weight: 900;
}
.nav-logo-text {
  font-size: 22px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -0.5px;
}
.nav-logo-img {
  height: 1.75rem;
  width: auto;
  display: block;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;              /* 12px → 8px, reduced button spacing */
  flex-shrink: 0;        /* prevent button group from shrinking */
}
/* Unified nav button width */
.nav-action-btn {
  width: 8.925rem;          /* +15% from original 9rem */
  padding-left: 1rem;       /* wider side padding */
  padding-right: 1rem;
  font-size: 0.625rem;      /* 14px → 10px */
  padding-top: 0.5rem;      /* reduced vertical padding */
  padding-bottom: 0.5rem;
  justify-content: center;
  box-sizing: border-box;   /* include border in width */
}
/* NAV outline button: white bg to match hero CTA */
.nav-action-btn.btn-outline {
  background: white;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.375rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;   /* prevent text wrap */
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
  border: none;
}
.btn-outline {
  border: 2px solid var(--black);
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: white; }
.btn-primary {
  background: var(--blue);
  color: white;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.35); }
.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  border-radius: 0.625rem;
}
/* Unified hero button width */
.hero-action-btn {
  width: 13.34rem;          /* 11.6rem × 1.15（+15%） */
  padding-top: 0.92rem;     /* 0.95rem × 0.97（-3%） */
  padding-bottom: 0.92rem;
  padding-left: 0;
  padding-right: 0;
  justify-content: center;
  box-sizing: border-box;
}
/* Hero bg (light blue): force white to prevent bleed-through */
.hero-action-btn.btn-outline {
  background: white;
}
.hero-action-btn.btn-outline:hover {
  background: var(--black);
  color: white;
}
.btn-xl {
  padding: 1.125rem 2.75rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

/* =================== HERO =================== */
/* Hero section overrides the default section padding */
#top { padding: 0; }
.hero {
  min-height: 100vh;
  padding: clamp(5rem, 10vw, 6.25rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 3.75rem);
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 50%, #f0f9ff 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -6%; right: -6%;
  width: 40%;
  aspect-ratio: 1 / 1;   /* maintain perfect circle */
  height: auto;
  border-radius: 50%;
  background: rgba(37,99,235,0.06);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -5%; right: 14%;
  width: 28%;
  aspect-ratio: 1 / 1;   /* maintain perfect circle */
  height: auto;
  border-radius: 50%;
  background: rgba(37,99,235,0.04);
  pointer-events: none;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 24px;
  letter-spacing: 0;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
  margin-top: 120px; /* offset for fixed nav height */
}
.hero-title span { color: var(--blue); }
.hero-subtitle {
  font-size: clamp(1.125rem, 2.2vw, 1.625rem);
  font-weight: 900;
  color: var(--black);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.hero-catchphrase {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: var(--gray);
  margin-bottom: 2.25rem;
  line-height: 1.8;
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
}
.hero-catchphrase strong { color: var(--blue); font-weight: 700; }
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
}
.hero-note-br { display: none; }
.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  display: block;
}
.hero-image-expand-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.hero-image-expand-btn:hover {
  background: rgba(0,0,0,0.75);
  transform: scale(1.08);
}
.hero-image-expand-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ====== IMAGE MODAL ====== */
.img-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.img-modal-overlay.active {
  display: flex;
}
.img-modal-inner {
  position: relative;
}
.img-modal-inner img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.img-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}
.img-modal-close:hover {
  background: #f3f4f6;
  transform: scale(1.1);
}
.hero-price-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--black);
  color: white;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  gap: 16px;
}
.hero-price-item {
  text-align: center;
}
.hero-price-num {
  font-size: 22px;
  font-weight: 900;
  color: #60A5FA;
}
.hero-price-label {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 2px;
}

/* =================== SECTIONS =================== */
section { padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem); }
.container { max-width: 1200px; margin: 0 auto; }

/* Centered section header block */
.section-header { text-align: center; }
.section-header-mb-sm  { text-align: center; margin-bottom: 48px; }
.section-header-mb-md  { text-align: center; margin-bottom: 56px; }
.section-header-mb-lg  { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0;
}
.section-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
.section-tag-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2s infinite;
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.375rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title span { color: var(--blue); }
.section-lead {
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  color: var(--gray);
  max-width: 40rem;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}
/* section-lead: centered, no bottom margin */
.section-lead-center { margin: 0 auto; }
/* section-lead: centered with bottom margin */
.section-lead-mb { margin: 0 auto 56px; }

/* =================== COMPANY =================== */
.company-section { background: var(--white); color: var(--black); }
.company-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.company-section .section-tag { background: var(--blue-pale); color: var(--blue); }
.company-section .section-title { color: var(--black); }
.company-section .section-lead { color: var(--gray); margin-bottom: 36px; }
.company-slogan {
  display: inline-block;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--blue) 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 28px;
  padding-bottom: 2px;
}
.company-logo-wrap {
  margin-bottom: 20px;
}
.company-logo-img {
  height: 1.05em;
  width: auto;
  display: block;
}
.company-headline {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 32px;
  line-height: 1.6;
}
/* Parent company note */
.company-note {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}
.company-note strong { color: var(--blue); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.service-card {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
}
.service-card-name {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 6px;
}
.service-card-name.blue { color: var(--blue); }
.service-card-desc {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
}
.clients-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.clients-scroll {
  overflow: hidden;
}
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.client-chip {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  white-space: nowrap;
}
.client-chip.highlight {
  background: var(--blue-pale);
  border-color: rgba(37,99,235,0.3);
  color: var(--blue);
}

/* =================== CLIENTS LOGO GRID =================== */
.clients-logo-grid {
  background: #111111;
  border-radius: 16px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 cols, 4 rows */
  gap: 8px;
}
.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  border-radius: 10px;
  transition: background 0.2s;
}
.client-logo-item:hover {
  background: rgba(255,255,255,0.07);
}
.client-logo-item img {
  width: 100%;
  max-width: 150px;
  height: 60px;           /* 44px → 60px enlarged */
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
  opacity: 0.85;
}
.client-logo-item:hover img {
  opacity: 1;
}
@media (max-width: 768px) {
  .clients-logo-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 20px 16px;
    gap: 6px;
  }
  .client-logo-item {
    padding: 14px 10px;
  }
  .client-logo-item img {
    height: 48px;
  }
}
@media (max-width: 480px) {
  .clients-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =================== FEATURES =================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 40px rgba(37,99,235,0.12);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--black);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: white; /* SVG fill:currentColor inherits this white */
}
.feature-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 16px;
}
.feature-badge {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

/* =================== STEPS =================== */
.steps-section { background: var(--gray-light); }
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.step-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.step-item.reverse { direction: rtl; }
.step-item.reverse > * { direction: ltr; }
/* Narrower gap variant for STEP 02-04 */
.step-item.gap-md { gap: 56px; }

/* Info highlight box (STEP 04/05) */
.step-info-box {
  background: var(--blue-pale);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 8px;
}
.step-info-box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.step-info-box-text {
  font-size: 13px;
  color: var(--gray);
}

/* Step title top margin */
.step-title-mt { margin-top: 16px; }
/* STEP 05 badge - same color as .btn-primary (var(--blue)) */
.step-num.step-num-blue { background: var(--blue); }
/* Step number row top margin */
.step-num-row-mt { margin-top: 8px; }

/* =================== STEP 01 FEATURE HIGHLIGHT =================== */
.step01-feature {
  background: white;
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4.5vw, 3.5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}

/* STEP 02-05 share the same box style as STEP 01 */
.step-feature-block {
  background: white;
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4.5vw, 3.5rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
}
.step01-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.step01-ui-mockup {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-top: 10%;
  padding-bottom: 2.5%;
  padding-right: 2%;
}

/* ====== SPEECH BUBBLE ON MOCKUP ====== */
.mockup-speech-bubble {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 45%;
  background: #3B82F6;
  color: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  padding: 10px 18px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59,130,246,0.35);
  z-index: 20;
  pointer-events: none;
  max-width: 90%;
  white-space: normal;
  text-align: left;
}
.mockup-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: white;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@media (max-width: 1024px) {
  .mockup-speech-bubble {
    font-size: 12px;
    top: 45%;
    padding: 9px 14px;
  }
}
@media (max-width: 768px) {
  .mockup-speech-bubble {
    font-size: 11.5px;
    top: 45%;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 85%;
  }
}
.step01-ui-mockup-desktop {
  width: 100%;
  max-width: 400px;
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.18);
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f8f8;
}
.step01-ui-mockup-mobile {
  position: absolute;
  right: -1%;
  top: 8%;
  bottom: auto;
  width: 35%;
  border-radius: 1.25rem;
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
  display: block;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f8f8;
}
/* Override to static positioning when using mobile wrapper */
.step01-ui-mockup-mobile-wrap .step01-ui-mockup-mobile {
  position: static;
  width: 100%;
  right: auto;
  top: auto;
  border-radius: 20px;
}
.step01-feature-right {}
.step01-feature-number {
  font-size: 88px;
  font-weight: 900;
  color: #7C3AED;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -4px;
}
.step01-feature-heading {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--black);
}
.step01-feature-subheading {
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
}
.step01-feature-subheading em {
  font-style: normal;
  color: #7C3AED;
}
.step01-feature-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.85;
  margin-bottom: 24px;
}
.step01-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step01-feature-tag {
  display: inline-block;
  background: #F5F3FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
}
@media (max-width: 1024px) {
  .step01-feature { padding: 36px 32px; }
  .step01-feature-number { font-size: 64px; }
  .step01-feature-heading { font-size: 22px; }
}
@media (max-width: 768px) {
  .step01-feature { padding: 28px 20px; margin-bottom: 48px; }
  .step01-feature-inner { grid-template-columns: 1fr; gap: 40px; }
  .step01-feature-number { font-size: 56px; }
  .step01-feature-heading { font-size: 20px; }
  .step01-feature-subheading { font-size: 16px; }
  .step01-ui-mockup { padding-bottom: 20px; padding-right: 16px; }
  .step01-ui-mockup-mobile { right: -2px; top: 0; bottom: auto; width: 34%; }
}
.step-number-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: white;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.step-title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.875rem;
}
.step-subtitle {
  font-size: clamp(0.9375rem, 1.3vw, 1rem);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.step-desc {
  font-size: clamp(0.875rem, 1.2vw, 0.9375rem);
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.step-examples {
  background: var(--blue-pale);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1.5px solid rgba(37,99,235,0.18);
}
.step-examples-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.step-examples li {
  font-size: 13.5px;
  color: var(--black);
  line-height: 1.85;
  list-style: none;
  padding-left: 18px;
  position: relative;
}
.step-examples li + li {
  margin-top: 2px;
}
.step-examples li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  top: 2px;
}
.step-image {
  position: relative;
}
/* Side-by-side images (legacy) */
.step-image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.step-image-duo .step-img-expand-wrap img {
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f8f8;
}
@media (max-width: 768px) {
  .step-image-duo {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

/* ===== STEP 03 overlay layout (mobile image as height reference) ===== */
.step03-image-overlay {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;  /* align mobile image to left */
  padding: 0;
}

/* Primary: mobile UI (portrait, height reference) */
.step03-overlay-img {
  position: relative;           /* establishes height context for parent */
  width: 42%;                   /* width of portrait image */
  z-index: 10;
  flex-shrink: 0;
  transition: opacity 0.6s ease;
}
/* [3] Active: fade mobile image to transparent */
.step03-overlay-img.fade-back {
  opacity: 0.15;
}
/* Inner wrapper */
.step03-overlay-img .step-img-expand-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.step03-overlay-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f8f8;
  display: block;
}

/* Secondary: desktop UI (absolute, overlays right side) */
.step03-base-img {
  position: absolute;           /* does not affect parent height */
  right: 0;
  top: 50%;
  transform: translateY(-50%);  /* vertical center */
  z-index: 1;
  width: 90%;                   /* desktop image width (75% x 1.2 = 90%) */
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* [3] Active: bring desktop to front, fully opaque */
.step03-base-img.on-top {
  z-index: 20;
  opacity: 1;
}
/* Desktop image inner */
.step03-desktop-inner {
  position: relative;
  display: block;
  overflow: visible;
  border-radius: 14px;
}
.step03-base-img img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f8f8;
  display: block;
}

@media (max-width: 768px) {
  .step03-image-overlay {
    padding: 0;
  }
  .step03-overlay-img {
    width: 44%;
  }
  .step03-base-img {
    width: 86%;   /* 72% × 1.2 = 86% */
  }
}
.step-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f8f8;
}
.step-image .step-img-expand-btn {
  opacity: 1;
}
.step-point-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--black);
}
.step-point-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* =================== PARTNERSHIP =================== */
.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.connection-card {
  border: 2px solid var(--border);
  border-radius: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
  position: relative;
  text-align: center;
  transition: all 0.3s;
}
.connection-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
}
.connection-card.recommended {
  border-color: var(--blue);
}
.connection-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.connection-badge.realtime { background: #059669; }
.connection-badge.easy { background: #7C3AED; }
.connection-icon {
  width: 64px; height: 64px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
}
.connection-name {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}
.connection-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.pricing-banner {
  background: var(--black);
  border-radius: 1.25rem;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  margin-bottom: 1.75rem;
}
.pricing-banner-left {}
.pricing-title {
  font-size: 26px;
  font-weight: 900;
  color: white;
  margin-bottom: 8px;
}
.pricing-note {
  font-size: 12px;
  color: #9CA3AF;
  line-height: 1.6;
}
.pricing-items {
  display: flex;
  gap: 32px;
}
.pricing-item {
  text-align: center;
}
.pricing-num {
  font-size: clamp(2.4rem, 4.2vw, 3.15rem);
  font-weight: 900;
  color: #60A5FA;
  line-height: 1;
}
.pricing-yen {
  font-size: 24px;
  vertical-align: top;
  line-height: 1.8;
}
.pricing-label {
  font-size: 15px;
  color: #9CA3AF;
  margin-top: 4px;
}

.benefits-banner {
  background: var(--blue);
  border-radius: 16px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.benefits-label {
  font-size: 17px;
  font-weight: 900;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
/* Small note inside benefits-label */
.benefits-label-note { font-size: 13px; font-weight: 400; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.benefit-icon { font-size: 28px; flex-shrink: 0; }
.benefit-text-title {
  font-size: 17px;
  font-weight: 900;
  color: white;
  margin-bottom: 6px;
}
.benefit-text-desc { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* =================== FAQ =================== */
.faq-section { background: var(--gray-light); }
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.faq-item:has(.faq-q[aria-expanded="true"]) {
  box-shadow: 0 4px 20px rgba(37,99,235,0.10);
  border-color: rgba(37,99,235,0.25);
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}
.faq-q:hover {
  background: #f8faff;
}
.faq-q-num {
  flex-shrink: 0;
  background: var(--black);
  color: white;
  font-size: 12px;
  font-weight: 900;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.faq-q[aria-expanded="true"] .faq-q-num {
  background: var(--blue);
}
.faq-q-text {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  color: var(--black);
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, color 0.2s;
}
.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}
/* FAQ accordion toggle area */
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-a-wrap.open {
  grid-template-rows: 1fr;
}
.faq-a-wrap > .faq-a {
  overflow: hidden;
}
.faq-a {
  padding: 0 24px 0 66px;
  font-size: 14px;
  color: var(--gray);
  line-height: 1.8;
  /* Add bottom padding only when open */
  transition: padding 0.35s ease;
}
.faq-a-wrap.open > .faq-a {
  padding-bottom: 20px;
}

/* =================== CTA FINAL =================== */
.cta-final {
  background: linear-gradient(135deg, var(--dark) 0%, #0F172A 100%);
  color: white;
  text-align: center;
  padding: clamp(4rem, 8vw, 6.25rem) clamp(1.25rem, 4vw, 2.5rem);
}
.cta-final .section-tag { background: rgba(37,99,235,0.25); color: #93C5FD; }
.cta-final .section-title { color: white; max-width: 640px; margin: 0 auto 16px; }
.cta-final .section-lead { color: #9CA3AF; margin: 0 auto 40px; }
.cta-btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-white {
  background: white;
  color: var(--black);
}
.btn-white:hover { background: #F3F4F6; }
.contact-info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #9CA3AF;
}
.contact-item a { color: #60A5FA; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* =================== FOOTER =================== */
footer {
  background: #111111;
  color: #9CA3AF;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.footer-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-sns {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 8px;
  vertical-align: middle;
}
.footer-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: rgba(255,255,255,0.08);
  color: #9CA3AF;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.footer-sns-link svg {
  width: 14px;
  height: 14px;
}
.footer-sns-link:hover {
  background: rgba(255,255,255,0.18);
  color: white;
}
.footer-logo {
  display: block;
}
.footer-logo-img {
  height: 1.75rem;
  width: auto;
  display: block;
}
.footer-nav a {
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: white; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-company-label {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 8px;
}
.footer-company-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-company-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.footer-company-row .footer-company-name {
  margin-bottom: 0;
}
.footer-plateer-logo {
  height: 0.936em;
  width: auto;
  display: block;
}
.footer-company-info {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 10px;
  line-height: 1.7;
}
/* Mail link in footer */
.footer-company-info a {
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-company-info a:hover { color: white; }
/* Company website link in footer */
.footer-company-url {
  font-size: 12px;
  font-weight: 400;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-company-url:hover { color: white; }
/* Separator pipe between footer links */
.footer-links-sep { color: #4B5563; }
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 13px;
  color: #6B7280;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #9CA3AF; }
.footer-copyright {
  font-size: 12px;
  color: #4B5563;
}
@media (max-width: 768px) {
  .footer-company-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-top-right {
    align-items: flex-start;
  }
  .hero-note {
    white-space: normal;
  }
  .hero-note-br {
    display: inline;
  }
}

/* =================== STICKY CTA BAR (mobile) =================== */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 999;
  gap: 10px;
}
.sticky-bar .btn { flex: 1; justify-content: center; font-size: 0.875rem; padding: 0.75rem 1rem; }



/* =================== ANIMATIONS =================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto; /* Reset after animation completes */
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .company-inner { gap: 3rem; }
  .pricing-banner { grid-template-columns: 1fr; text-align: center; }
  .pricing-items { justify-content: center; }
}
/* [B] NAV intermediate width: shrink padding to keep menu visible */
@media (max-width: 1100px) {
  .nav { padding: 0 1.5rem; }
}
@media (max-width: 1000px) {
  .nav { padding: 0 1rem; }
}
/* [A] NAV breakpoint: hide menu links, show hamburger (buttons stay visible) */
@media (max-width: 960px) {
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .nav { padding: 0 1.25rem; }
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-price-badge { position: relative; bottom: auto; left: auto; justify-content: center; margin-top: 1rem; }
  .company-inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .step-item { grid-template-columns: 1fr; gap: 1.75rem; }
  .step-item.reverse { direction: ltr; }
  .connection-grid { grid-template-columns: 1fr; }
  .pricing-items { gap: 1.25rem; }
  .benefits-banner { grid-template-columns: 1fr; }
  .benefits-label { display: none; }
  .cta-btn-group { flex-direction: column; align-items: center; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-nav { gap: 1.25rem; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 4.75rem; }
}

/* =================== PC/MOBILE VISIBILITY =================== */
/* PC-only line break */
.pc-only { display: block; }
@media (max-width: 768px) {
  .pc-only { display: none; }
}

/* =================== STEP IMAGE EXPAND BUTTON =================== */
.step-img-expand-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.step-img-expand-btn {
  position: absolute;
  bottom: 3%;
  right: 3%;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  z-index: 30;
  opacity: 0;
}
.step-img-expand-wrap:hover .step-img-expand-btn,
.step02-image-wrap:hover .step-img-expand-btn {
  opacity: 1;
}
/* Always show expand button */
.step02-image-wrap .step-img-expand-btn,
.step-image .step-img-expand-btn,
.step-img-expand-wrap .step-img-expand-btn,
.hero-image-expand-btn {
  opacity: 1;
}
.step-img-expand-btn:hover {
  background: rgba(0,0,0,0.75);
  transform: scale(1.08);
}
.step-img-expand-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Desktop image: bottom-left */
.step-img-expand-btn--left {
  right: auto;
  left: 3%;
}
.step02-image-wrap .step-img-expand-btn {
  z-index: 30;
  bottom: 3%;
  right: 3%;
}
/* Mobile image wrapper: keep original absolute positioning */
.step01-ui-mockup-mobile-wrap {
  position: absolute;
  right: -1%;
  top: 8%;
  bottom: auto;
  width: 35%;
  display: block;
}
.step01-ui-mockup-mobile-wrap .step01-ui-mockup-mobile {
  position: static;
  width: 100%;
  right: auto;
  top: auto;
}
@media (max-width: 768px) {
  .step01-ui-mockup-mobile-wrap {
    right: -2px;
    top: 0;
    width: 34%;
  }
}

/* Image wrapper: no overflow, shadow appears outside */
.step02-image-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  border-radius: 16px;
  /* shadow applied here */
  box-shadow: 0 20px 56px rgba(0,0,0,0.18);
}
/* Inner wrapper: handles highlight clipping */
.step02-image-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.step02-image-wrap img {
  width: 100%;
  display: block;
  border-radius: 16px;
  /* shadow moved to wrapper, not needed on img */
  border: 1px solid rgba(0,0,0,0.08);
  background: #f8f8f8;
  transition: filter 0.4s ease;
}

/* Highlight box (overlaid at each point's coordinates) */
.step02-highlight {
  position: absolute;
  border: 2.5px solid #3B82F6;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.22), 0 4px 24px rgba(59,130,246,0.28);
  background: rgba(59,130,246,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: scale(0.97);
  z-index: 10;
}
.step02-highlight.show {
  opacity: 1;
  transform: scale(1);
}

/* Point list: highlight active item */
.step-point {
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  padding: 8px 10px;
  margin: -8px -10px;
  cursor: default;
}
.step-point.active {
  background: rgba(37,99,235,0.07);
  transform: translateX(4px);
  box-shadow: inset 3px 0 0 var(--blue);
}
.step-point.active .step-point-num {
  background: var(--blue);
  transform: scale(1.15);
}
.step-point.active > span:last-child {
  color: var(--blue);
  font-weight: 700;
}
.step-point .step-point-num {
  transition: background 0.3s ease, transform 0.3s ease;
}
.step-point > span:last-child {
  transition: color 0.3s ease, font-weight 0.3s ease;
}

/* Progress bar */
.step02-progress {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}
.step02-progress-dot {
  height: 3px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.step02-progress-dot::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.1s linear;
}
.step02-progress-dot.filling::after {
  width: 100%;
  transition: width var(--dot-duration, 3000ms) linear;
}
.step02-progress-dot.done::after {
  width: 100%;
  transition: none;
}

/* STEP 03 progress bar (3 dots) */
.step-progress {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}
.step-progress-dot {
  height: 3px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.step-progress-dot::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.1s linear;
}
.step-progress-dot.filling::after {
  width: 100%;
  transition: width var(--dot-duration, 3000ms) linear;
}
.step-progress-dot.done::after {
  width: 100%;
  transition: none;
}

/* =================== BACK TO TOP BUTTON =================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #6B8FD6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(107,143,214,0.40);
  z-index: 1200;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #5577C4;
  box-shadow: 0 6px 20px rgba(85,119,196,0.45);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Adjust position above sticky bar on mobile */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 88px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .step02-highlight { border-width: 2px; border-radius: 6px; }
  .step-point { padding: 6px 8px; margin: -6px -8px; }
}

/* =================== STEP 03 HIGHLIGHT =================== */
/* Mobile image inner: clipping reference for highlights */
.step03-mobile-inner {
  position: relative;
  display: block;
  overflow: visible;
  border-radius: 20px;
}
.step03-mobile-inner img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

/* Highlight box: same style as STEP 02 */
.step03-highlight {
  position: absolute;
  border: 2.5px solid #3B82F6;
  border-radius: 8px;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.22), 0 4px 24px rgba(59,130,246,0.28);
  background: rgba(59,130,246,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: scale(0.97);
  z-index: 20;
}
.step03-highlight.show {
  opacity: 1;
  transform: scale(1);
}

/* =================== BACK TO TOP BUTTON =================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(148, 163, 184, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: rgba(100, 116, 139, 0.9);
  transform: translateY(-2px);
}
.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 88px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* =================== STEP 03 SPEECH BUBBLE =================== */
.step03-bubble {
  position: absolute;
  left: 25%;
  bottom: 5%;
  background: #fff;
  border: 1.5px solid #3B82F6;
  border-radius: 12px 12px 12px 2px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #1E1E1E;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59,130,246,0.18);
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  z-index: 30;
  line-height: 1.5;
}
.step03-bubble::before {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 12px;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 0px solid transparent;
  border-top: 7px solid #3B82F6;
}
.step03-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 13px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 0px solid transparent;
  border-top: 6px solid #fff;
}
.step03-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.step03-bubble-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.9em;
  background: #3B82F6;
  margin-left: 1px;
  vertical-align: middle;
  animation: step03-blink 0.7s step-end infinite;
}
@keyframes step03-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* =================== STEP 04/05 ANIMATION =================== */
.step04-anim-wrap {
  position: relative;
  width: 54%;   /* 60% → 54% (approx -10%) */
  margin: 0 auto;
  border-radius: 16px;
  overflow: visible; /* visible so glow spreads evenly in all directions */
  /* screen03 ratio: 482/981 approx 49.1% */
  aspect-ratio: 482 / 981;
  background: #f0f0f0;
  box-shadow: 0 20px 56px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.08);
}
/* screens 1 & 2: overflow:hidden to maintain rounded clip */
#step04Screen01,
#step04Screen02 {
  border-radius: 16px;
  overflow: hidden;
}

/* Each screen layer */
.step04-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.step04-screen img {
  width: 100%;
  height: auto;
  display: block;
}
/* Screen 3 (brand EC site): glow border on all sides to highlight conversion */
#step04Screen03 {
  overflow: hidden;
  border-radius: 16px;
  /* outline not clipped by overflow:visible parent, shown evenly on all sides */
  outline: 3px solid #2563EB;
  outline-offset: 3px;
  animation: step04-border-glow 2s ease-in-out infinite alternate;
}
@keyframes step04-border-glow {
  0% {
    outline-color: #2563EB;
    box-shadow:
      0 0 0 3px rgba(37, 99, 235, 0.3),
      0 0 12px 4px rgba(96, 165, 250, 0.6),
      0 0 24px 8px rgba(37, 99, 235, 0.4),
      0 0 40px 12px rgba(99, 102, 241, 0.3);
  }
  100% {
    outline-color: #A78BFA;
    box-shadow:
      0 0 0 3px rgba(167, 139, 250, 0.35),
      0 0 16px 5px rgba(167, 139, 250, 0.75),
      0 0 32px 10px rgba(96, 165, 250, 0.6),
      0 0 50px 16px rgba(99, 102, 241, 0.45);
  }
}
#step04Screen03 img {
  width: 100%;
  height: auto;
}
.step04-screen.active {
  opacity: 1;
}

/* Tap ripple effect */
.step04-ripple {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(37,99,235,0.25);
  border: 2px solid rgba(37,99,235,0.6);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
@keyframes step04-ripple {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 0.9; }
  60%  { transform: translate(-50%, -50%) scale(1.4); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(2);   opacity: 0; }
}
.step04-ripple.fire {
  animation: step04-ripple 0.7s ease-out forwards;
}



/* Slide-up on screen transition */
@keyframes step04-slide-up {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.step04-screen.slide-in {
  animation: step04-slide-up 0.5s ease forwards;
}
