/* ============================================
   KANADE WEB - 自治体向けランディングページ
   Brand: KANADE WEB / 合同会社FOMUS
   Premium UI/UX — Production Build
   ============================================ */

/* ---- Custom Properties ---- */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-darker: #c2410c;
    --primary-light: rgba(249, 115, 22, 0.08);
    --primary-glow: rgba(249, 115, 22, 0.35);
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --navy-mid: #162032;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.05);
    --shadow-2xl: 0 24px 80px rgba(0,0,0,0.14), 0 8px 24px rgba(0,0,0,0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --green: #059669;
    --green-light: rgba(5, 150, 105, 0.08);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.8;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.text-accent { color: var(--primary); }

/* ---- Text Gradient ---- */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HEADER — Glassmorphism
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(226, 232, 240, 0.6);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 7px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.8; }

.logo-main {
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.04em;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ---- Nav ---- */
.nav { display: flex; align-items: center; gap: 28px; }

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
}

/* Subtle underline slide-in */
.nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav a:hover { color: var(--primary); }

.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: all var(--transition) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.nav-cta:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 4px rgba(249, 115, 22, 0.2);
}

/* ---- Hamburger ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.hamburger:hover { background: var(--bg-alt); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all 0.35s var(--ease-out-expo);
    border-radius: 2px;
    transform-origin: center;
}

/* ============================================
   BUTTONS — Micro-interactions
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.btn-lg { padding: 17px 40px; font-size: 0.95rem; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
    background: var(--primary-darker);
}

.btn-ghost {
    color: var(--text-secondary);
    border-color: var(--border);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    background: var(--primary-light);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.08);
}

.btn-ghost:active {
    transform: translateY(0) scale(0.98);
}

.btn-white {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.2);
}

.btn-white:active {
    transform: translateY(0) scale(0.98);
}

/* ============================================
   SECTION TITLES — Typography Hierarchy
   ============================================ */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.06);
    padding: 7px 20px;
    border-radius: 50px;
    margin-bottom: 22px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid rgba(249, 115, 22, 0.12);
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.04em;
    color: var(--navy);
    line-height: 1.3;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 64px;
    line-height: 1.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO — Dramatic Dark Section
   ============================================ */
.hero {
    padding: 160px 0 120px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}

/* Animated grid pattern */
.hero-bg-grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(249, 115, 22, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 115, 22, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 25s linear infinite;
}

@keyframes gridDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 30px) rotate(0.5deg); }
}

/* Animated gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 65%);
    animation: orbFloat1 12s ease-in-out infinite alternate;
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%; left: -5%;
    width: 550px; height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.10), transparent 65%);
    animation: orbFloat2 15s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes orbFloat1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 30px) scale(1.08); }
}

@keyframes orbFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.05); }
}

/* Noise texture overlay for dark sections */
.hero .container::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

.hero .container { position: relative; z-index: 2; }

/* Hero content fade-up entrance */
.hero-content {
    max-width: 760px;
    animation: heroFadeUp 0.9s var(--ease-out-expo) both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.10);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
    letter-spacing: 0.04em;
    border: 1px solid rgba(249, 115, 22, 0.18);
    animation: heroFadeUp 0.9s var(--ease-out-expo) 0.1s both;
}

.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    color: #fff;
    animation: heroFadeUp 0.9s var(--ease-out-expo) 0.2s both;
}

.hero-lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 44px;
    line-height: 2;
    animation: heroFadeUp 0.9s var(--ease-out-expo) 0.3s both;
}

.hero-lead strong {
    color: var(--primary);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: heroFadeUp 0.9s var(--ease-out-expo) 0.4s both;
}

.hero .btn-ghost {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.75);
}

.hero .btn-ghost:hover {
    border-color: var(--primary);
    color: #fff;
    background: rgba(249, 115, 22, 0.1);
}

/* Glowing CTA in hero */
.hero .btn-primary {
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3), 0 0 40px rgba(249, 115, 22, 0.12);
    animation: ctaPulse 3s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3), 0 0 40px rgba(249, 115, 22, 0.08); }
    50% { box-shadow: 0 4px 20px rgba(249, 115, 22, 0.45), 0 0 60px rgba(249, 115, 22, 0.15); }
}

.hero .btn-primary:hover {
    animation: none;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.45), 0 0 60px rgba(249, 115, 22, 0.15);
}

/* Stats bar entrance */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: heroFadeUp 0.9s var(--ease-out-expo) 0.55s both;
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */
.problems {
    padding: 128px 0 100px;
    background: var(--bg);
    position: relative;
}

/* Wave separator at top */
.problems::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--navy);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.problem-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.problem-card:hover {
    border-color: rgba(249, 115, 22, 0.25);
    background: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(239, 68, 68, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.1rem;
    transition: all var(--transition);
}

.problem-card:hover .problem-icon {
    background: rgba(239, 68, 68, 0.12);
    transform: scale(1.05);
}

.problem-card p {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.7;
}

/* ============================================
   PROPOSAL SECTION
   ============================================ */
.proposal {
    padding: 128px 0;
    background: var(--bg-alt);
    position: relative;
}

.proposal-concept {
    max-width: 800px;
    margin: 0 auto 56px;
}

.concept-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.concept-point {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

/* Top accent bar on cards */
.concept-point::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--border);
    transition: all var(--transition);
}

.concept-point:nth-child(1)::before,
.concept-point:nth-child(3)::before { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.concept-point:nth-child(2)::before { background: linear-gradient(90deg, var(--green), #34d399); }

.concept-point:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.15);
}

.concept-point:hover::before {
    left: 0;
    right: 0;
    height: 4px;
}

.concept-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform var(--transition);
}

.concept-point:hover .concept-icon {
    transform: scale(1.08);
}

.concept-icon.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.04));
    color: var(--primary);
}

.concept-icon.green {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(5, 150, 105, 0.04));
    color: var(--green);
}

.concept-point h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.concept-point p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ---- Before / After ---- */
.before-after {
    max-width: 820px;
    margin: 0 auto;
}

.ba-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: stretch;
}

.ba-card {
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all var(--transition);
}

/* Before — deliberately muted/dated */
.ba-before {
    background: #fafafa;
    border: 2px dashed #d1d5db;
    position: relative;
}

.ba-before::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 14px 14px 0 0;
    background: #cbd5e1;
}

.ba-before:hover {
    border-color: #9ca3af;
}

/* After — vibrant, modern */
.ba-after {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.04), rgba(249, 115, 22, 0.01));
    border: 2px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 4px 24px rgba(249, 115, 22, 0.06);
    position: relative;
}

.ba-after::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.ba-after:hover {
    box-shadow: 0 8px 36px rgba(249, 115, 22, 0.12);
    transform: translateY(-2px);
}

.ba-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 22px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.01em;
}

.ba-before h4 { color: var(--text-muted); }
.ba-after h4 { color: var(--primary-dark); }

.ba-card ul { list-style: none; }

.ba-card li {
    font-size: 0.86rem;
    padding: 9px 0 9px 26px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.65;
}

.ba-before li::before {
    content: '\2715';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.78rem;
    opacity: 0.7;
}

.ba-after li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

.ba-after li { color: var(--text); font-weight: 500; }

/* Arrow between cards */
.ba-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(4px); opacity: 0.7; }
}

/* ============================================
   SCOPE SECTION
   ============================================ */
.scope {
    padding: 128px 0;
    background: var(--bg);
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.scope-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

/* Top gradient accent area */
.scope-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.scope-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.12);
}

.scope-card:hover::before { opacity: 1; }

.scope-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    transition: all var(--transition);
}

.scope-card:hover .scope-icon {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(249, 115, 22, 0.06));
    transform: scale(1.06);
}

.scope-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.scope-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

/* ============================================
   PRICING — Premium Cards
   ============================================ */
.pricing {
    padding: 128px 0;
    background: var(--bg-alt);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 840px;
    margin: 0 auto 56px;
    align-items: start;
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 44px 38px;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* Recommended card — gradient border glow */
.pricing-card.recommended {
    border: 2px solid var(--primary);
    background: #fff !important;
    position: relative;
}

/* Subtle shadow for recommended card */
.pricing-card.recommended::before { display: none; }
.pricing-card.recommended::after { display: none; }

.pricing-card.recommended:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
}

/* Gradient header area on pricing cards */
.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    position: relative;
}

.pricing-card.recommended .pricing-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.pricing-card:not(.recommended) .pricing-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.recommended-badge {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-darker));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 26px;
    border-radius: 50px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.pricing-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--navy);
    letter-spacing: -0.03em;
}

.pricing-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pricing-price {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-card.recommended .pricing-price {
    border-bottom-color: rgba(249, 115, 22, 0.1);
}

/* Strong visual weight on price numbers */
.price-num {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.price-num small {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
}

.pricing-card.recommended .price-num {
    color: var(--primary);
    /* text-shadow for extra weight */
}

.price-tax {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 0.88rem;
    padding: 8px 0 8px 30px;
    position: relative;
    color: var(--text);
    line-height: 1.6;
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* Pricing notes */
.pricing-notes {
    max-width: 840px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pricing-note {
    background: #fff;
    border: 1px dashed rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-sm);
    padding: 26px 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition);
}

.pricing-note:hover {
    border-color: rgba(249, 115, 22, 0.35);
    box-shadow: var(--shadow);
}

.pricing-note-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.pricing-note p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.pricing-note strong { color: var(--navy); }

/* ============================================
   FLOW SECTION
   ============================================ */
.flow {
    padding: 128px 0;
    background: var(--bg);
}

.flow-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
}

.flow-step {
    text-align: center;
    flex: 1;
    max-width: 240px;
}

.flow-num {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-darker));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.28);
    transition: all var(--transition);
}

.flow-step:hover .flow-num {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(249, 115, 22, 0.38);
}

.flow-step h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.flow-step p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.85;
}

.flow-step .flow-note {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(249, 115, 22, 0.06);
    padding: 4px 14px;
    border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.1);
}

.flow-arrow {
    display: flex;
    align-items: center;
    padding-top: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition);
}

/* ============================================
   FAQ SECTION — Smooth Accordion
   ============================================ */
.faq {
    padding: 128px 0;
    background: var(--bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(249, 115, 22, 0.18);
    box-shadow: var(--shadow-md);
}

/* Active FAQ — accent left border */
.faq-item.active {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.06);
    border-left: 3px solid var(--primary);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    cursor: pointer;
    transition: background var(--transition-fast);
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    font-family: inherit;
    min-height: 44px;
}

.faq-question:hover {
    background: rgba(249, 115, 22, 0.02);
}

.faq-q-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.2);
}

.faq-question span {
    flex: 1;
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
}

.faq-toggle {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.faq-toggle svg {
    transition: transform 0.4s var(--ease-out-expo);
    color: var(--text-muted);
}

.faq-item.active .faq-toggle {
    background: var(--primary-light);
}

.faq-item.active .faq-toggle svg {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Smooth accordion expand/collapse */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo);
}

.faq-answer-inner {
    padding: 0 28px 26px 78px;
    display: flex;
    gap: 14px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.faq-item.active .faq-answer-inner {
    opacity: 1;
    transform: translateY(0);
}

.faq-a-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--green-light);
    color: var(--green);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.faq-item.active .faq-answer {
    max-height: 350px;
}

/* ============================================
   CTA — Dramatic Dark Section
   ============================================ */
.cta {
    padding: 128px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 40%, #1a1040 70%, var(--primary-darker) 100%);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Animated orbs */
.cta::before {
    content: '';
    position: absolute;
    top: -150px; right: -100px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 65%);
    animation: orbFloat1 10s ease-in-out infinite alternate;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.10), transparent 65%);
    animation: orbFloat2 13s ease-in-out infinite alternate;
}

.cta-content { position: relative; z-index: 2; }

.cta h2 {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

.cta p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    margin-bottom: 40px;
    line-height: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Glowing CTA button */
.cta .btn-primary {
    font-size: 1rem;
    padding: 18px 44px;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35), 0 0 48px rgba(249, 115, 22, 0.12);
    animation: ctaPulse 3s ease-in-out infinite;
}

.cta .btn-primary:hover {
    animation: none;
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.5), 0 0 72px rgba(249, 115, 22, 0.18);
}

.cta-note {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    margin-bottom: 0 !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 32px;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

/* Subtle gradient at top of footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.2), transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 28px;
}

.footer-logo-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.footer-logo {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
}

.footer-logo-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
}

.footer-brand p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-links {
    display: flex;
    gap: 26px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color var(--transition-fast);
    position: relative;
    padding-bottom: 2px;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s var(--ease-out-expo);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a:hover::after { width: 100%; }

.copyright {
    text-align: center;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   SCROLL ANIMATIONS — Staggered
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: Problems grid */
.problems-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.problems-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.problems-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.problems-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }
.problems-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.30s; }
.problems-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.36s; }
.problems-grid .animate-on-scroll:nth-child(8) { transition-delay: 0.42s; }

/* Stagger: Concept points */
.concept-points .animate-on-scroll:nth-child(2) { transition-delay: 0.10s; }
.concept-points .animate-on-scroll:nth-child(3) { transition-delay: 0.20s; }

/* Stagger: Scope grid */
.scope-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.07s; }
.scope-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.14s; }
.scope-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.21s; }
.scope-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.28s; }
.scope-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.35s; }
.scope-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.42s; }
.scope-grid .animate-on-scroll:nth-child(8) { transition-delay: 0.49s; }

/* Stagger: Pricing */
.pricing-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.10s; }

/* Stagger: FAQ */
.faq-list .animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.faq-list .animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.faq-list .animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.faq-list .animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }
.faq-list .animate-on-scroll:nth-child(6) { transition-delay: 0.30s; }
.faq-list .animate-on-scroll:nth-child(7) { transition-delay: 0.36s; }

/* Stagger: Flow steps — sequential reveal */
.flow-grid .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.flow-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.flow-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.flow-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.flow-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.flow-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }
.flow-grid .animate-on-scroll:nth-child(7) { transition-delay: 0.48s; }

/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */
@media (max-width: 900px) {
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .scope-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 22px; }

    /* Hamburger */
    .hamburger { display: flex; }

    .nav {
        position: fixed;
        top: 72px;
        left: 0; right: 0; bottom: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 8px;
        box-shadow: var(--shadow-2xl);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    /* Smooth hamburger X animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav a {
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: var(--radius-xs);
        transition: background var(--transition-fast);
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav a:not(.nav-cta)::after { display: none; }

    .nav a:hover { background: var(--bg-alt); }

    .nav-cta {
        text-align: center;
        width: 100%;
        margin-top: 8px;
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 130px 0 80px;
        min-height: auto;
    }
    .hero h1 { font-size: clamp(1.75rem, 7vw, 2.3rem); }
    .hero-lead { font-size: 0.92rem; }
    .hero-lead br { display: none; }
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* Problems */
    .problems { padding: 100px 0 72px; }
    .problems-grid { grid-template-columns: 1fr; }

    /* Proposal */
    .proposal { padding: 88px 0; }
    .concept-points { grid-template-columns: 1fr; }
    .ba-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ba-arrow {
        transform: rotate(90deg);
        justify-content: center;
        animation-name: arrowPulseVertical;
    }

    @keyframes arrowPulseVertical {
        0%, 100% { transform: rotate(90deg) translateX(0); opacity: 1; }
        50% { transform: rotate(90deg) translateX(4px); opacity: 0.7; }
    }

    /* Scope */
    .scope { padding: 88px 0; }
    .scope-grid { grid-template-columns: 1fr; }

    /* Pricing */
    .pricing { padding: 88px 0; }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
    .pricing-card.recommended { transform: none; }
    .pricing-card.recommended:hover { transform: translateY(-6px); }
    .pricing-notes { grid-template-columns: 1fr; }

    /* Flow */
    .flow { padding: 88px 0; }
    .flow-grid {
        flex-direction: column;
        align-items: center;
    }
    .flow-arrow { transform: rotate(90deg); }
    .flow-step { max-width: 100%; }

    /* FAQ */
    .faq { padding: 88px 0; }
    .faq-answer-inner { padding-left: 28px; }

    /* CTA */
    .cta { padding: 88px 0; }
    .cta h2 { font-size: 1.5rem; }
    .cta p br { display: none; }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }
    .footer-logo-wrap { justify-content: center; }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .section-sub { margin-bottom: 44px; }

    /* Reduce wave height */
    .problems::before { height: 50px; }
}

/* ============================================
   RESPONSIVE — Small (480px)
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .price-num { font-size: 2.4rem; }
    .pricing-card { padding: 36px 26px; }
    .ba-card { padding: 28px 22px; }
    .faq-question { padding: 18px 20px; gap: 12px; }
    .faq-answer-inner { padding: 0 20px 22px 20px; }

    .hero-stats { gap: 14px; }
    .stat-divider { height: 28px; }
    .stat-value { font-size: 0.88rem; }

    .section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
}

/* ============================================
   RESPONSIVE — Minimum (320px)
   ============================================ */
@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .hero { padding: 110px 0 64px; }
    .hero h1 { font-size: 1.6rem; }
    .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
    .hero-lead { font-size: 0.85rem; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.9rem; }
    .pricing-card { padding: 28px 20px; }
    .scope-card { padding: 28px 20px; }
    .concept-point { padding: 28px 20px; }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html { scroll-behavior: auto; }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-content,
    .hero-badge,
    .hero h1,
    .hero-lead,
    .hero-buttons,
    .hero-stats {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-bg-grid { animation: none; }
    .hero::before, .hero::after { animation: none; }
    .cta::before, .cta::after { animation: none; }
    .hero .btn-primary { animation: none; }
    .cta .btn-primary { animation: none; }
    .ba-arrow { animation: none; }
}

/* ============================================
   FOCUS VISIBLE — Accessibility
   ============================================ */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline-offset: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header, .hamburger, .hero-bg-grid, .ba-arrow, .flow-arrow { display: none; }
    .hero { min-height: auto; padding: 40px 0; }
    .animate-on-scroll { opacity: 1; transform: none; }
    body { color: #000; }
    section { padding: 40px 0; }
}
