/* ===== AI365 — Global Styles ===== */

:root {
  --primary: #1a56db;
  --primary-dark: #1040a8;
  --primary-light: #e8f0fe;
  --accent: #06b6d4;
  --accent-light: #ecfeff;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1a56db 100%);
  --gradient-card: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  --gradient-accent: linear-gradient(135deg, #1a56db, #06b6d4);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --font-en: "DM Sans", sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ja);
  color: var(--gray-700);
  line-height: 1.8;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--dark);
}
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-accent);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.8rem; font-weight: 700; font-family: var(--font-en);
}
.nav-logo span { font-family: var(--font-en); letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--gray-600); font-size: 0.9rem;
  font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-dropdown > a::after { content: "▾"; font-size: 0.7rem; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -12px;
  background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 280px; padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all 0.2s ease;
  border: 1px solid var(--gray-200);
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 8px; font-size: 0.85rem;
}
.nav-dropdown-menu a:hover { background: var(--gray-50); }
.nav-dropdown-menu .dd-emoji { font-size: 1.1rem; width: 28px; text-align: center; }
.nav-cta-group { display: flex; gap: 8px; }
.nav-btn {
  text-decoration: none; font-size: 0.85rem; font-weight: 600; padding: 9px 18px;
  border-radius: 8px; transition: all 0.2s ease; white-space: nowrap;
}
.nav-btn-outline { color: var(--primary); border: 1.5px solid var(--primary); background: transparent; }
.nav-btn-outline:hover { background: var(--primary-light); }
.nav-btn-fill { color: white; background: var(--primary); border: 1.5px solid var(--primary); }
.nav-btn-fill:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.nav-hamburger {
  display: none; width: 40px; height: 40px; border: none; background: none;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: all 0.3s ease;
}

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: white; z-index: 999; padding: 24px;
  overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block; text-decoration: none; color: var(--gray-700);
  padding: 14px 0; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.mobile-nav-cta a { text-align: center; border-bottom: none; border-radius: 10px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 1rem; font-weight: 600;
  padding: 15px 30px; border-radius: 12px; transition: all 0.25s ease;
  border: none; cursor: pointer;
}
.btn-primary { background: white; color: var(--primary); }
.btn-primary:hover { background: var(--gray-100); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 1.5px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.btn-blue { background: var(--primary); color: white; }
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-blue-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-blue-outline:hover { background: var(--primary-light); }

/* ===== SECTION COMMON ===== */
.section { padding: var(--section-padding); }
.section-label {
  font-family: var(--font-en); font-size: 0.8rem; font-weight: 600;
  color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800;
  color: var(--dark); margin-bottom: 20px; letter-spacing: -0.01em;
}
.section-desc {
  font-size: 1.05rem; color: var(--gray-500); max-width: 640px;
  margin: 0 auto 60px; line-height: 1.8;
}
.text-center { text-align: center; }

/* ===== HERO (Home) ===== */
.hero {
  background: var(--gradient-hero);
  padding: 160px 0 120px; position: relative; overflow: hidden;
  min-height: 85vh; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(6,182,212,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,86,219,0.2) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(6,182,212,0.08) 0%, transparent 40%);
}
.hero-grid-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-float {
  position: absolute; border-radius: 50%; opacity: 0.08; background: white;
  animation: float 8s ease-in-out infinite;
}
.hero-float:nth-child(1) { width: 300px; height: 300px; top: -50px; right: -80px; animation-delay: 0s; }
.hero-float:nth-child(2) { width: 200px; height: 200px; bottom: 40px; left: -60px; animation-delay: 2s; }
.hero-float:nth-child(3) { width: 150px; height: 150px; top: 30%; right: 15%; animation-delay: 4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 100px;
  padding: 8px 20px; margin-bottom: 28px;
  color: rgba(255,255,255,0.85); font-size: 0.85rem; font-weight: 500;
  animation: fadeInUp 0.8s ease forwards;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: white;
  line-height: 1.35; margin-bottom: 24px; letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease 0.15s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #67e8f9, #06b6d4, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.9;
  margin-bottom: 40px; animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeInUp 0.8s ease 0.45s both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SUB PAGE HERO ===== */
.page-hero {
  background: var(--gradient-hero); padding: 140px 0 72px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(6,182,212,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(26,86,219,0.15) 0%, transparent 50%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 680px; }
.page-hero-breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.page-hero-breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 20px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: white;
  line-height: 1.35; margin-bottom: 16px; letter-spacing: -0.02em;
}
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,0.65); line-height: 1.9; }

/* ===== SERVICE PAGE CONTENT ===== */
.sp-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.sp-overview-text h2 { font-size: 1.5rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.sp-overview-text p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.9; margin-bottom: 16px; }
.sp-overview-highlights {
  background: var(--gradient-card); border-radius: var(--radius-xl); padding: 36px;
  border: 1px solid rgba(26,86,219,0.08);
}
.sp-overview-highlights h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 20px; }
.sp-highlight-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(26,86,219,0.06);
}
.sp-highlight-item:last-child { border-bottom: none; }
.sp-highlight-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.sp-highlight-item h4 { font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.sp-highlight-item p { font-size: 0.85rem; color: var(--gray-500); line-height: 1.7; }

/* Service detail cards */
.sp-details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-detail-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 24px;
  border: 1px solid var(--gray-200); transition: all 0.3s ease; text-align: center;
}
.sp-detail-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.sp-detail-emoji { font-size: 2rem; margin-bottom: 14px; display: block; }
.sp-detail-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.sp-detail-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.8; }

/* Flow / Steps */
.sp-flow { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.sp-flow-step {
  flex: 1; min-width: 180px; max-width: 220px;
  text-align: center; position: relative;
}
.sp-flow-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-accent); color: white;
  font-family: var(--font-en); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.sp-flow-step h4 { font-size: 0.92rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.sp-flow-step p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.7; }
.sp-flow-arrow {
  position: absolute; top: 24px; right: -22px; color: var(--gray-300);
  font-size: 1.2rem; font-weight: 700;
}

/* Pricing on service pages */
.sp-pricing-box {
  background: var(--gradient-card); border-radius: var(--radius-xl); padding: 40px;
  border: 1px solid rgba(26,86,219,0.08); text-align: center; max-width: 600px; margin: 0 auto;
}
.sp-pricing-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.sp-pricing-value {
  font-family: var(--font-en); font-size: 2.4rem; font-weight: 700; color: var(--primary);
  margin-bottom: 4px;
}
.sp-pricing-value span { font-size: 0.9rem; color: var(--gray-500); font-weight: 500; }
.sp-pricing-note { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 24px; }

/* Other services link */
.sp-other-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sp-other-card {
  background: white; border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--gray-200); text-decoration: none; color: inherit;
  text-align: center; transition: all 0.3s ease;
}
.sp-other-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sp-other-emoji { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.sp-other-card h4 { font-size: 0.82rem; font-weight: 600; color: var(--dark); margin-bottom: 4px; }
.sp-other-card p { font-size: 0.75rem; color: var(--gray-500); }

/* ===== CHALLENGES ===== */
.challenges { background: var(--gray-50); }
.challenges-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.challenge-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}
.challenge-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.challenge-emoji { font-size: 2.4rem; margin-bottom: 16px; display: block; }
.challenge-card p { font-size: 0.95rem; color: var(--gray-700); font-weight: 500; line-height: 1.7; }
.challenge-card p strong { color: var(--dark); }
.challenges-solution {
  background: var(--gradient-card); border-radius: var(--radius-xl); padding: 40px;
  text-align: center; border: 1px solid rgba(26,86,219,0.1);
}
.challenges-solution-icon { font-size: 2.4rem; margin-bottom: 12px; }
.challenges-solution h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.challenges-solution p { color: var(--gray-600); font-size: 0.95rem; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.about-card {
  background: white; border-radius: var(--radius-lg); padding: 36px 28px;
  border: 1px solid var(--gray-200); transition: all 0.3s ease; position: relative; overflow: hidden;
}
.about-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient-accent); opacity: 0; transition: opacity 0.3s ease;
}
.about-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.about-card:hover::before { opacity: 1; }
.about-num {
  font-family: var(--font-en); font-size: 3rem; font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 16px; line-height: 1;
}
.about-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.5; }
.about-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.8; }

/* ===== SERVICES GRID ===== */
.services { background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.services-grid > *:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); justify-self: center; }
.service-card {
  background: white; border-radius: var(--radius-xl); padding: 36px 32px;
  border: 1px solid var(--gray-200); transition: all 0.35s ease;
  text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; cursor: pointer;
}
.service-card:hover { border-color: var(--primary); box-shadow: 0 8px 30px rgba(26,86,219,0.12); transform: translateY(-6px); }
.service-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.service-card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0;
}
.service-card-icon.start { background: #eff6ff; }
.service-card-icon.support { background: #f0fdf4; }
.service-card-icon.academy { background: #fefce8; }
.service-card-icon.build { background: #fdf2f8; }
.service-card-icon.consult { background: #f5f3ff; }
.service-card-name {
  font-family: var(--font-en); font-size: 0.75rem; font-weight: 600;
  color: var(--primary); letter-spacing: 1px; text-transform: uppercase;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-top: 4px; }
.service-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 16px; }
.service-card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s ease;
}
.service-card:hover .service-card-link { gap: 10px; }

/* ===== WHY US ===== */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  background: white; border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid var(--gray-200); text-align: center; transition: all 0.3s ease;
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.why-emoji { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.why-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.8; }

/* ===== PRICING ===== */
.pricing { background: var(--gray-50); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: white; border-radius: var(--radius-xl); padding: 40px 32px;
  border: 1px solid var(--gray-200); text-align: center; transition: all 0.3s ease; position: relative;
}
.pricing-card.featured {
  border-color: var(--primary); box-shadow: 0 8px 30px rgba(26,86,219,0.12); transform: scale(1.03);
}
.pricing-card.featured::before {
  content: "おすすめ"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-accent); color: white; font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 100px;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.pricing-plan { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.pricing-price {
  font-family: var(--font-en); font-size: 2.4rem; font-weight: 700; color: var(--dark); margin-bottom: 4px;
}
.pricing-price span { font-size: 0.9rem; font-weight: 500; color: var(--gray-500); }
.pricing-note { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 24px; }
.pricing-divider { border: none; border-top: 1px solid var(--gray-200); margin: 0 0 24px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 28px; }
.pricing-features li {
  font-size: 0.88rem; color: var(--gray-600); padding: 6px 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.pricing-features li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.pricing-features li.disabled { color: var(--gray-400); }
.pricing-features li.disabled::before { content: "—"; color: var(--gray-300); }

/* ===== CASE STUDY ===== */
.case-study-card {
  background: var(--gradient-card); border-radius: var(--radius-xl); padding: 48px;
  border: 1px solid rgba(26,86,219,0.08);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.case-meta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.case-tag {
  font-size: 0.78rem; font-weight: 600; padding: 5px 14px;
  border-radius: 100px; background: white; color: var(--gray-600); border: 1px solid var(--gray-200);
}
.case-study-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.case-study-card > div > p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.8; }
.case-results { display: flex; flex-direction: column; gap: 20px; }
.case-result { background: white; border-radius: var(--radius); padding: 20px 24px; border: 1px solid var(--gray-200); }
.case-result-label { font-size: 0.78rem; color: var(--gray-500); margin-bottom: 4px; }
.case-result-value {
  font-family: var(--font-en); font-size: 1.6rem; font-weight: 700; color: var(--primary);
}
.case-result-value span { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }
.case-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  color: var(--primary); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: gap 0.2s ease;
}
.case-link:hover { gap: 12px; }

/* ===== FAQ ===== */
.faq { background: var(--gray-50); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: white; border-radius: var(--radius); margin-bottom: 12px;
  border: 1px solid var(--gray-200); overflow: hidden; transition: all 0.3s ease;
}
.faq-item:hover { border-color: var(--gray-300); }
.faq-question {
  width: 100%; border: none; background: none; text-align: left;
  padding: 22px 28px; font-size: 0.95rem; font-weight: 600;
  color: var(--dark); cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-ja);
}
.faq-question::before {
  content: "Q"; color: var(--primary); font-family: var(--font-en); font-weight: 700; margin-right: 8px;
}
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s ease; color: var(--gray-400);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 28px 22px 52px; font-size: 0.9rem; color: var(--gray-600); line-height: 1.8; }

/* ===== CTA ===== */
.cta {
  background: var(--gradient-hero); padding: 80px 0; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(6,182,212,0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(26,86,219,0.15) 0%, transparent 50%);
}
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: white; font-weight: 700; margin-bottom: 12px; }
.cta-content p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1rem; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-desc { font-size: 0.85rem; margin-top: 14px; line-height: 1.8; }
.footer-heading { font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.9); margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color 0.2s ease; }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 0.8rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .sp-other-services { grid-template-columns: repeat(2, 1fr); }
  .sp-details-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid > *:last-child:nth-child(odd) { max-width: 100%; }
  .case-study-card { grid-template-columns: 1fr; }
  .sp-overview { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-padding: 72px 0; }
  .nav-links, .nav-cta-group { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }
  .challenges-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; min-height: auto; }
  .hero h1 { font-size: 1.8rem; }
  .case-study-card { padding: 28px; }
  .sp-details-grid { grid-template-columns: 1fr; }
  .sp-flow { flex-direction: column; align-items: center; }
  .sp-flow-arrow { display: none; }
  .sp-other-services { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 120px 0 56px; }
}
@media (max-width: 480px) {
  .challenges-grid { grid-template-columns: 1fr; }
  .hero-cta, .cta-buttons { flex-direction: column; }
  .hero-cta .btn, .cta-buttons .btn { width: 100%; justify-content: center; }
  .sp-other-services { grid-template-columns: 1fr; }
}
