/* ═════════════════════════════════════════════════════════════════
 * AIRowm（アイロウム）— Landing Page
 * FitStat "Scientific Premium" Design System
 * Light theme only / Precision・Depth・Motion
 * ═════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
 * 1. DESIGN TOKENS
 * ────────────────────────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --bg-page: #F5F5F7;
    --bg-page-alt: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.84);

    /* Text */
    --text-main: #1D1D1F;
    --navy: #0A1E3B;
    --text-sub: #475569;
    --text-dim: #6B7280;
    --text-faint: #9CA3AF;

    /* Accents */
    --blue: #1A3A8F;
    --blue-bright: #2563EB;
    --blue-subtle: rgba(37, 99, 235, 0.08);
    --green: #059669;
    --green-subtle: rgba(5, 150, 105, 0.09);
    --amber: #D97706;
    --amber-subtle: rgba(217, 119, 6, 0.1);
    --red: #DC2626;

    /* Strokes & Shadows */
    --stroke: rgba(226, 232, 240, 0.9);
    --shadow-rest: 0 4px 20px rgba(10, 30, 59, 0.04);
    --shadow-lift: 0 20px 40px -10px rgba(10, 30, 59, 0.14);

    /* Motion */
    --ease-card: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-accordion: cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

    --nav-height: 72px;
}

/* ──────────────────────────────────────────────────────────────
 * 2. RESET & BASE
 * ────────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.75;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
strong { font-weight: 700; color: var(--navy); }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow { max-width: 840px; }

/* ──────────────────────────────────────────────────────────────
 * 3. ICONIC ANIMATIONS (Signature keyframes)
 * ────────────────────────────────────────────────────────────── */

/* Flowing dot along a path */
@keyframes flow {
    0%   { left: 0; opacity: 0; }
    20%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Living pulse */
@keyframes pulse {
    0%   { opacity: 0.5; transform: scale(0.95); }
    50%  { opacity: 1;   transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(0.95); }
}

/* Sound bar oscillation */
@keyframes soundBar {
    0%   { height: 8px; }
    50%  { height: 24px; }
    100% { height: 8px; }
}

/* Vertical variant of flow (hero mockup rail) */
@keyframes flowDown {
    0%   { top: 0; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: calc(100% - 6px); opacity: 0; }
}

.svg-pulse {
    animation: pulse 2.6s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

/* ──────────────────────────────────────────────────────────────
 * 4. CORE COMPONENTS — hover-card & EN Label
 * ────────────────────────────────────────────────────────────── */
.hover-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 32px;
    padding: 44px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-rest);
    transition: transform 0.25s var(--ease-card), box-shadow 0.25s var(--ease-card);
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

/* Subtle accent line on top of cards */
.hover-card::before {
    content: '';
    position: absolute;
    top: 0; left: 32px; right: 32px;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.35), transparent);
}

.en-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #1A3A8F;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

/* ──────────────────────────────────────────────────────────────
 * 5. ENTRANCE ANIMATIONS
 * ────────────────────────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 0.8s var(--ease-card) forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.48s; }
.delay-5 { animation-delay: 0.6s; }

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-card), transform 0.7s var(--ease-card);
}

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

.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }
.scroll-reveal.delay-4 { transition-delay: 0.4s; }
.scroll-reveal.delay-5 { transition-delay: 0.5s; }

@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; }
}

/* ──────────────────────────────────────────────────────────────
 * 6. NAVBAR
 * ────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    border-bottom-color: var(--stroke);
    box-shadow: 0 4px 24px rgba(10, 30, 59, 0.05);
}

.nav-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-svg { width: 36px; height: 36px; }

.logo-text {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: var(--navy);
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.logo-kana {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-sub);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--blue-bright);
    transition: right 0.25s var(--ease-card);
}

.nav-link:hover,
.nav-link.active { color: var(--navy); }
.nav-link:hover::after,
.nav-link.active::after { right: 0; }

.btn-nav-login {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--navy);
    padding: 10px 22px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s var(--ease-card), box-shadow 0.2s ease;
}

.btn-nav-login:hover {
    background: var(--blue);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(10, 30, 59, 0.2);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.25s var(--ease-card), opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────────────
 * 7. BUTTONS
 * ────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--blue);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(26, 58, 143, 0.28);
    transition: transform 0.25s var(--ease-card), box-shadow 0.25s var(--ease-card), background 0.2s ease;
}

.btn-primary:hover {
    background: var(--blue-bright);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(26, 58, 143, 0.34);
}

.btn-primary-lg {
    font-size: 16.5px;
    padding: 18px 38px;
}

.btn-sm {
    font-size: 13.5px;
    padding: 11px 22px;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--blue);
    padding: 15px 10px;
    transition: gap 0.25s var(--ease-card), color 0.2s ease;
}

.btn-text:hover {
    gap: 10px;
    color: var(--blue-bright);
}

/* ──────────────────────────────────────────────────────────────
 * 8. HERO
 * ────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: calc(var(--nav-height) + 72px) 0 96px;
    background: linear-gradient(180deg, #F8FAFC 0%, var(--bg-page) 100%);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 30, 59, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 30, 59, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 35%, transparent 100%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.16fr 0.84fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(24px, 2.72vw, 35.5px);
    font-weight: 900;
    line-height: 1.38;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin: 18px 0 22px;
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.hero-title-accent {
    color: var(--blue);
    background: linear-gradient(120deg, var(--blue), var(--blue-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 15px;
    line-height: 1.82;
    color: var(--text-sub);
    max-width: 600px;
    margin-bottom: 28px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

/* KPI row — 第1層 視覚階層（1行完結・途中折り返し防止） */
.hero-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-kpi {
    padding: 18px 15px;
    border-radius: 20px;
    text-align: left;
}

.hero-kpi::before { left: 15px; right: 15px; }

.hero-kpi-value {
    font-size: 21px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.015em;
    line-height: 1.25;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hero-kpi-green { color: var(--green); }

.hero-kpi-unit {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--blue-bright);
    margin-left: 3px;
}

.hero-kpi-title {
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
    white-space: nowrap;
}

.hero-kpi-label {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-dim);
    line-height: 1.45;
    white-space: nowrap;
}

/* ─── AIRowm Work-Style Console Mockup ─── */
.hero-right { position: relative; }

.live-mockup {
    padding: 0;
    border-radius: 28px;
}

.live-mockup::before { display: none; }

.lm-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--stroke);
    background: #F8FAFC;
    border-radius: 28px 28px 0 0;
}

.lm-dots { display: flex; gap: 6px; }

.lm-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #E2E8F0;
}

.lm-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    flex: 1;
}

.lm-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--green);
    background: var(--green-subtle);
    padding: 4px 11px;
    border-radius: 999px;
}

.lm-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.8s ease-in-out infinite;
}

.lm-body {
    display: flex;
    gap: 18px;
    padding: 26px 26px 28px 24px;
}

/* 縦方向データフローレール */
.lm-rail {
    position: relative;
    width: 14px;
    flex-shrink: 0;
    margin: 10px 0;
}

.lm-rail-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    border-left: 2px dashed rgba(37, 99, 235, 0.3);
    transform: translateX(-50%);
}

.lm-rail-dot {
    position: absolute;
    left: 50%;
    width: 6px; height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
    animation: flowDown 4.8s linear infinite;
}

.lm-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.lm-step {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.lm-node {
    position: relative;
    width: 36px; height: 36px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--blue-subtle);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-node-pulse {
    position: absolute;
    inset: -4px;
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    border-radius: 15px;
    animation: pulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

.lm-step-main { min-width: 0; }

.lm-step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.5;
}

.lm-step-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.45;
}

.lm-green { color: var(--green); }

.lm-chip {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.lm-chip-blue { background: var(--blue-subtle); color: var(--blue); }
.lm-chip-green { background: var(--green-subtle); color: var(--green); }

.lm-soundbars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 26px;
    margin-top: 7px;
}

.lm-soundbars span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--blue-bright), var(--blue));
    animation: soundBar 1.1s ease-in-out infinite;
}

/* ─── Interactive Cinema Workspace Console (Hero Right — 大きく・文字が大きく・シンプル) ─── */
.cinema-console {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cm-stage {
    position: relative;
    padding: 24px 26px 22px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

/* Animated CM Pointer Cursor */
.cm-cursor {
    position: absolute;
    top: 82px;
    left: 95px;
    z-index: 30;
    pointer-events: none;
    transition: top 0.65s cubic-bezier(0.22, 1, 0.36, 1), left 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.18s ease;
    filter: drop-shadow(0 6px 12px rgba(10, 30, 59, 0.25));
}

.cm-cursor.is-hidden {
    opacity: 0;
}

.cm-cursor.is-clicking {
    transform: scale(0.86);
}

.cm-cursor-ripple {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2.5px solid var(--blue-bright);
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}

.cm-cursor.is-clicking .cm-cursor-ripple {
    animation: cmRipple 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cmRipple {
    0% { opacity: 0.95; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(2.1); }
}

/* Pon-Pon-Pon Staggered Spring Pop-in Animation */
@keyframes cmPopIn {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.93);
    }
    70% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cm-pop-item {
    opacity: 0;
    animation: cmPopIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--pop-i, 0) * 100ms);
}

.cm-question-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-q-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.cm-choice-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cm-choice-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 14px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 2px solid var(--stroke);
    transition: all 0.2s var(--ease-card);
}

.cm-choice-btn strong {
    font-size: 20px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.cm-choice-btn:hover {
    border-color: var(--blue-bright);
    transform: translateY(-1px);
}

.cm-choice-btn.active {
    background: #EFF6FF;
    border-color: var(--blue-bright);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
}

.cm-choice-btn.active strong {
    color: var(--blue);
}

.cm-pop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cm-emp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #F8FAFC;
    border: 1.5px solid var(--stroke);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cm-emp-card:hover,
.cm-emp-card.is-selected {
    background: #FFFFFF;
    border-color: var(--blue-bright);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.cm-emp-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cm-emp-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #EFF6FF;
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cm-emp-name {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy);
    white-space: nowrap;
}

.cm-emp-role {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-sub);
    white-space: nowrap;
    margin-top: 2px;
}

.cm-emp-tag {
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 8px;
    background: #EFF6FF;
    color: var(--blue);
    white-space: nowrap;
}

.cm-emp-tag.is-green {
    background: var(--green-subtle);
    color: var(--green);
}

/* 1時間有給 ライブボックス */
.cm-live-sim-box {
    background: #F8FAFC;
    border: 1.5px solid #DBEAFE;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cm-sim-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cm-sim-who {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy);
}

.cp-action-btn {
    font-size: 13.5px;
    font-weight: 800;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--blue), var(--blue-bright));
    padding: 9px 18px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cp-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.36);
}

.cm-sim-3metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.cp-counter-card {
    background: #FFFFFF;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.cp-counter-card.is-flash {
    border-color: var(--blue-bright);
    background: #EFF6FF;
    transform: translateY(-2px);
}

.cp-c-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-sub);
}

.cp-c-val {
    font-size: 15px;
    font-weight: 900;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.cp-c-blue { color: var(--blue-bright); }
.cp-c-green { color: var(--green); }

.cinema-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 13px 24px;
    background: #F8FAFC;
    border-top: 1px solid var(--stroke);
}

.cinema-full-link {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--blue-bright);
    white-space: nowrap;
}

.cinema-full-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .cm-pop-grid,
    .cm-sim-3metrics {
        grid-template-columns: 1fr;
    }
}

/* ──────────────────────────────────────────────────────────────
 * 9. SECTIONS (shared)
 * ────────────────────────────────────────────────────────────── */
.section {
    padding: 104px 0;
    scroll-margin-top: calc(var(--nav-height) + 12px);
}

.section-alt { background: var(--bg-page-alt); }

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px;
}

.section-title {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 900;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--navy);
    margin: 14px 0 14px;
}

.title-accent { color: var(--blue); }

.section-sub {
    font-size: 15px;
    color: var(--text-sub);
}

/* ──────────────────────────────────────────────────────────────
 * 10. SECTION 1 — INTEGRATED LABOR ARCHITECTURE
 * ────────────────────────────────────────────────────────────── */
.flow-diagram {
    margin-bottom: 28px;
    padding: 48px 44px;
}

.flow-diagram-track {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.flow-node-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    min-width: 0;
}

.flow-node-svg { margin-bottom: 4px; }

.flow-node-num {
    font-size: 13px;
    font-weight: 900;
    color: var(--blue);
}

.flow-num-green { color: var(--green); }

.flow-node-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.55;
}

.flow-node-sub {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

.flow-connector {
    position: relative;
    flex: 0.7;
    height: 2px;
    align-self: flex-start;
    margin-top: 40px;
    min-width: 50px;
}

.flow-dash {
    position: absolute;
    inset: 0;
    border-top: 2px dashed rgba(37, 99, 235, 0.35);
}

.flow-dot {
    position: absolute;
    top: -3px;
    left: 0;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.55);
    animation: flow 3.4s linear infinite;
}

/* Step cards */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.step-card {
    display: flex;
    flex-direction: column;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.step-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 600;
    color: rgba(26, 58, 143, 0.22);
    line-height: 1;
}

.step-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 13.5px;
    color: var(--text-sub);
    margin-bottom: 18px;
}

.step-points {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.step-points li {
    position: relative;
    padding-left: 22px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
}

.step-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}

/* 時系列バージョン管理ボックス */
.evidence-lock {
    margin-top: auto;
    background: #F8FAFC;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 16px 18px;
}

.evidence-lock-head {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 10px;
}

.evidence-chain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 9px;
}

.evidence-chain span {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--navy);
    background: #FFFFFF;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

.evidence-chain i {
    font-style: normal;
    font-size: 10px;
    color: var(--blue-bright);
    font-weight: 800;
}

.evidence-note {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ──────────────────────────────────────────────────────────────
 * 11. SECTION 2 — PAID LEAVE & WORK-STYLE COMPLIANCE
 * ────────────────────────────────────────────────────────────── */
.leave-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.leave-card {
    display: flex;
    flex-direction: column;
}

.leave-card-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--blue);
    background: var(--blue-subtle);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.leave-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.45;
}

.leave-card-desc {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 22px;
}

.leave-visual-box {
    margin-top: auto;
    background: #F8FAFC;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.leave-emp-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.leave-emp-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}

.leave-emp-name {
    font-weight: 700;
    color: var(--navy);
}

.leave-emp-status {
    font-size: 11.5px;
    font-weight: 800;
    padding: 2px 9px;
    border-radius: 999px;
}

.leave-status-ok {
    background: var(--green-subtle);
    color: var(--green);
}

.leave-status-warn {
    background: var(--amber-subtle);
    color: var(--amber);
}

.leave-progress-track {
    height: 8px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
}

.leave-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), #10B981);
}

.leave-fill-amber {
    background: linear-gradient(90deg, var(--amber), #F59E0B);
}

.workstyle-tags-box {
    margin-top: auto;
    background: #F8FAFC;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ws-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ws-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--navy);
    margin-top: 6px;
    flex-shrink: 0;
}

.ws-dot-blue { background: var(--blue-bright); }
.ws-dot-green { background: var(--green); }

.ws-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
}

.ws-detail {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Interactive Efficiency & Compliance Preview */
.efficiency-preview {
    padding: 44px;
}

.eff-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--stroke);
}

.eff-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--navy);
    margin-top: 8px;
}

.eff-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--green);
    background: var(--green-subtle);
    padding: 6px 14px;
    border-radius: 999px;
}

.eff-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: stretch;
}

.eff-controls {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.eff-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.eff-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
}

.eff-option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eff-option-stack {
    flex-direction: column;
}

.eff-opt-btn {
    flex: 1;
    min-width: 96px;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    background: #F8FAFC;
    border: 1.5px solid var(--stroke);
    border-radius: 14px;
    text-align: center;
    transition: all 0.2s var(--ease-card);
}

.eff-option-stack .eff-opt-btn {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eff-opt-btn:hover {
    border-color: rgba(37, 99, 235, 0.45);
    color: var(--navy);
}

.eff-opt-btn.active {
    background: var(--blue-subtle);
    border-color: var(--blue-bright);
    color: var(--blue);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.eff-result-panel {
    background: linear-gradient(155deg, #0A1E3B 0%, #132C5C 60%, #1A3A8F 100%);
    color: #FFFFFF;
    border-radius: 24px;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 22px;
    box-shadow: 0 18px 38px -12px rgba(10, 30, 59, 0.35);
}

.eff-result-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #93C5FD;
    margin-bottom: 6px;
}

.eff-result-label {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

.eff-result-number {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 8px 0 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.eff-result-number strong {
    font-size: clamp(38px, 4.2vw, 48px);
    font-weight: 900;
    color: #34D399;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.eff-result-unit {
    font-size: 17px;
    font-weight: 800;
    color: #E2E8F0;
}

.eff-result-sub {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.eff-docs-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 16px;
    padding: 18px 20px;
}

.eff-docs-title {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #93C5FD;
    margin-bottom: 12px;
}

.eff-docs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eff-docs-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.eff-doc-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.2);
    color: #34D399;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.eff-docs-list strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.4;
}

.eff-docs-list span {
    display: block;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

/* ──────────────────────────────────────────────────────────────
 * 12. SECTION 3 — RULES & ADMINISTRATIVE DOCUMENT PREPARATION
 * ────────────────────────────────────────────────────────────── */
.mail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}

.mail-card p {
    font-size: 13.5px;
    color: var(--text-sub);
}

.mail-card-icon {
    width: 48px; height: 48px;
    border-radius: 15px;
    background: var(--blue-subtle);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.mail-card-title {
    font-size: 17.5px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Document Prep Showcase */
.doc-prep-showcase {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 44px;
    align-items: center;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.doc-prep-showcase::before {
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.4), transparent);
}

.pricing-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin: 12px 0 12px;
    line-height: 1.4;
}

.pricing-note {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 18px;
}

.doc-prep-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    background: #F8FAFC;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 5px 13px;
}

.doc-prep-right {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.pricing-step {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    background: #F8FAFC;
    border: 1px solid var(--stroke);
    border-radius: 15px;
    padding: 13px 18px;
}

.pricing-step-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--blue);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-badge-done {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--green);
    background: var(--green-subtle);
    border-radius: 999px;
    padding: 8px 17px;
}

/* ──────────────────────────────────────────────────────────────
 * 13. SECTION 4 — SECURITY & GOVERNANCE
 * ────────────────────────────────────────────────────────────── */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.legal-card p {
    font-size: 13.5px;
    color: var(--text-sub);
}

.legal-icon {
    width: 48px; height: 48px;
    border-radius: 15px;
    background: rgba(10, 30, 59, 0.06);
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.legal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────────
 * 14. SECTION 5 — FAQ
 * ────────────────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--stroke);
    border-radius: 20px;
    box-shadow: var(--shadow-rest);
    overflow: hidden;
    transition: box-shadow 0.25s var(--ease-card), border-color 0.25s ease;
}

.faq-item.open {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 12px 32px -8px rgba(10, 30, 59, 0.1);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
    padding: 22px 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue-subtle);
    color: var(--blue);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-accordion), background 0.2s ease, color 0.2s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--blue);
    color: #FFFFFF;
}

/* アコーディオン: max-height + opacity, cubic-bezier(0.4, 0, 0.2, 1) */
.faq-a {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-accordion), opacity 0.4s var(--ease-accordion);
}

.faq-item.open .faq-a { opacity: 1; }

.faq-a-inner {
    padding: 0 28px 24px;
    font-size: 14px;
    color: var(--text-sub);
}

.faq-cta {
    margin-top: 48px;
    text-align: center;
}

/* ──────────────────────────────────────────────────────────────
 * 15. FOOTER
 * ────────────────────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 72px 0 36px;
}

.footer .logo-text { color: #FFFFFF; }
.footer .logo-kana { color: rgba(255, 255, 255, 0.55); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-tag {
    margin-top: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.footer-company-info {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
}

.footer-ci-row {
    display: flex;
    gap: 14px;
}

.footer-ci-label {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    min-width: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.2s ease;
}

.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 30px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

/* ──────────────────────────────────────────────────────────────
 * 16. RESPONSIVE
 * ────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-right { max-width: 620px; }

    .steps-grid,
    .leave-feature-grid,
    .mail-grid,
    .legal-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .steps-grid { margin-top: 24px; }

    .eff-grid,
    .doc-prep-showcase {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #FFFFFF;
        border-bottom: 1px solid var(--stroke);
        box-shadow: 0 24px 48px rgba(10, 30, 59, 0.12);
        padding: 18px 24px 24px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s var(--ease-card), opacity 0.3s ease, visibility 0.3s;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 12px 8px;
        font-size: 15px;
    }

    .nav-link::after { display: none; }

    .btn-nav-login {
        text-align: center;
        margin-top: 8px;
    }

    .hamburger { display: flex; }

    .flow-diagram { padding: 36px 24px; }

    .flow-diagram-track {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    .flow-connector {
        width: 2px;
        height: 54px;
        flex: none;
        margin-top: 0;
        align-self: center;
        min-width: 0;
    }

    .flow-dash {
        border-top: none;
        border-left: 2px dashed rgba(37, 99, 235, 0.35);
    }

    .flow-dot {
        top: 0;
        left: -3px;
        animation-name: flowDown;
    }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .nav-inner { padding: 0 20px; }

    .section { padding: 72px 0; }

    .hero-section { padding: calc(var(--nav-height) + 48px) 0 72px; }

    .hover-card { padding: 30px 24px; border-radius: 24px; }
    .hover-card::before { left: 20px; right: 20px; }

    .hero-kpi-row { grid-template-columns: 1fr; }

    .hero-title {
        font-size: clamp(19.5px, 5.2vw, 27px);
        line-height: 1.42;
    }

    .hero-kpi-value { font-size: 22px; }

    .lm-body { padding: 20px 18px 22px 14px; }

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

    .hero-cta { gap: 10px; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ──────────────────────────────────────────────────────────────
 * 17. LEGAL MODAL (Scientific Premium)
 * ────────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

.legal-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 30, 59, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.legal-modal-card {
    background: #FFFFFF;
    border: 1px solid var(--stroke);
    border-top: 4px solid var(--blue);
    border-radius: 28px;
    max-width: 780px;
    width: 100%;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 28px 64px -16px rgba(10, 30, 59, 0.28);
    overflow: hidden;
}

.legal-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px 16px;
    border-bottom: 1px solid var(--stroke);
}

.legal-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-top: 4px;
}

.legal-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F8FAFC;
    border: 1px solid var(--stroke);
    color: var(--text-sub);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.legal-modal-close:hover {
    background: var(--blue-subtle);
    color: var(--navy);
}

.legal-modal-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 32px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--stroke);
    flex-wrap: wrap;
}

.legal-tab-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.legal-tab-btn:hover {
    color: var(--navy);
    background: #FFFFFF;
}

.legal-tab-btn.active {
    color: #FFFFFF;
    background: var(--blue);
    box-shadow: 0 4px 12px rgba(26, 58, 143, 0.22);
}

.legal-modal-body {
    padding: 28px 32px 32px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.8;
}

.legal-doc-pane h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.legal-doc-pane h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--navy);
    margin: 18px 0 6px;
}

.legal-doc-pane p {
    margin-bottom: 10px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13.5px;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--stroke);
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    width: 32%;
    background: #F8FAFC;
    color: var(--navy);
    font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────
 * 18. MULTI-PAGE SUB-HERO, CUSTOM-MADE SCOPE & PAGE NAV CARDS
 * ────────────────────────────────────────────────────────────── */
.desktop-br { display: inline; }
@media (max-width: 768px) {
    .desktop-br { display: none; }
}

.subhero-section {
    position: relative;
    padding: calc(var(--nav-height) + 56px) 0 64px;
    background: linear-gradient(180deg, #F8FAFC 0%, var(--bg-page) 100%);
    border-bottom: 1px solid var(--stroke);
    overflow: hidden;
}

.subhero-inner {
    position: relative;
    max-width: 860px;
}

.subhero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.subhero-breadcrumb a {
    color: var(--blue);
    transition: color 0.2s ease;
}

.subhero-breadcrumb a:hover { color: var(--blue-bright); }

.subhero-title {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 900;
    line-height: 1.36;
    letter-spacing: -0.015em;
    color: var(--navy);
    margin: 12px 0 16px;
}

.subhero-desc {
    font-size: 15.5px;
    color: var(--text-sub);
    line-height: 1.82;
    max-width: 740px;
}

/* Custom Scope Split inside Efficiency Preview */
.custom-scope-box {
    margin-top: 16px;
    background: #F8FAFC;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 16px 18px;
}

.custom-scope-head {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-scope-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.custom-scope-col {
    background: #FFFFFF;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 12px 14px;
}

.custom-scope-col.is-custom {
    border-color: rgba(37, 99, 235, 0.32);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.55) 0%, #FFFFFF 100%);
}

.cs-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.cs-badge-common {
    background: var(--green-subtle);
    color: var(--green);
}

.cs-badge-custom {
    background: var(--blue-subtle);
    color: var(--blue);
}

.cs-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
}

.cs-desc {
    font-size: 11.5px;
    color: var(--text-sub);
    line-height: 1.55;
}

/* 3-Column Comparison: Ready-made SaaS vs Custom-Made Hybrid vs Full Bespoke */
.suit-compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.suit-card {
    padding: 34px 30px;
    border-radius: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suit-card.is-muted {
    background: rgba(255, 255, 255, 0.72);
}

.suit-card.is-featured {
    border: 2px solid var(--blue-bright);
    box-shadow: 0 20px 44px -12px rgba(26, 58, 143, 0.18);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
}

.suit-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
    background: #F1F5F9;
    color: var(--text-sub);
}

.suit-card.is-featured .suit-tag {
    background: var(--blue);
    color: #FFFFFF;
}

.suit-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.4;
}

.suit-sub {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue);
}

.suit-desc {
    font-size: 13.5px;
    color: var(--text-sub);
    line-height: 1.75;
}

.suit-list {
    list-style: none;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-sub);
}

.suit-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

/* Page Navigation Cards (Multi-page links) */
.page-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.page-nav-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 36px;
    border-radius: 28px;
    text-decoration: none;
    border: 1px solid var(--stroke);
    background: #FFFFFF;
    transition: transform 0.25s var(--ease-card), box-shadow 0.25s var(--ease-card), border-color 0.25s ease;
}

.page-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(37, 99, 235, 0.45);
}

.page-nav-title {
    font-size: 21px;
    font-weight: 900;
    color: var(--navy);
    margin: 10px 0 10px;
    line-height: 1.4;
}

.page-nav-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.75;
    margin-bottom: 20px;
}

.page-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--blue);
}

@media (max-width: 960px) {
    .suit-compare-grid,
    .page-nav-grid,
    .custom-scope-grid {
        grid-template-columns: 1fr;
    }
}
