@charset "UTF-8";

/**
 * 🌍 GLOBAL DESIGN PHILOSOPHY SYSTEM
 * - Trust-first visual hierarchy
 * - Motion minimalism with depth
 * - Zero visual noise
 * - High contrast accessibility compliance
 */

:root {
    /* 📐 8px Spacing System */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;

    /* 🖋️ Typography Scale */
    --font-xs: 0.75rem;
    /* 12px */
    --font-sm: 0.875rem;
    /* 14px */
    --font-base: 1rem;
    /* 16px */
    --font-lg: 1.125rem;
    /* 18px */
    --font-xl: 1.25rem;
    /* 20px */
    --font-2xl: 1.5rem;
    /* 24px */
    --font-3xl: 2rem;
    /* 32px */
    --font-4xl: 3rem;
    /* 48px */

    --font-family-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-family-display: 'Inter', var(--font-family-system);

    /* 🎬 Motion Duration Scale (Minimalism) */
    --dur-fast: 150ms;
    --dur-normal: 300ms;
    --dur-slow: 500ms;

    /* 📈 Easing Standardization */
    --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-linear: linear;

    /* 🌑 Color System (Dark Mode Premium SaaS Default) */
    --c-bg: #050505;
    --c-surface: #111111;
    --c-surface-hover: #1a1a1a;
    --c-border: rgba(255, 255, 255, 0.08);
    --c-border-hover: rgba(255, 255, 255, 0.15);
    --c-text-primary: #ffffff;
    --c-text-secondary: #a0a0a0;
    --c-text-muted: #666666;
    --c-accent: #ffffff;
    --c-error: #ff4d4d;
    --c-success: #00e676;

    /* 🪪 Authority & Trust Badges Colors */
    --c-badge-verified: #1da1f2;
    --c-badge-og: #f5a623;
    --c-badge-founder: #9b59b6;
    --c-badge-admin: #ff3b30;

    /* 🌫️ Shadow Elevation Scale */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px ২৪px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.1);

    /* 🪟 Glassmorphism Standards */
    --glass-bg: rgba(15, 15, 15, 0.6);
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* 🚀 Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-family-display);
    background-color: var(--c-bg);
    color: var(--c-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--dur-fast) var(--ease-snappy);
}

a:hover {
    opacity: 0.8;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =========================================================================
   Performance Guarantee Layer (CSS Fallbacks)
   ========================================================================= */
body.perf-throttled,
html.reduce-motion {
    --dur-fast: 0ms !important;
    --dur-normal: 0ms !important;
    --dur-slow: 0ms !important;
    --glass-blur: none !important;
    /* ブラーは極めて重いため無効化 */
}

/* CLS = 0 保証用。画像のロード遅延によるレイアウトシフトを防ぐ */
img,
video {
    display: block;
    max-width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

/* =========================================================================
   Utility Classes (Standardized)
   ========================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hidden {
    display: none !important;
}

.btn-primary {
    width: 100%;
    padding: var(--space-2);
    background: var(--c-accent);
    color: #000;
    font-weight: 700;
    font-size: var(--font-base);
    border-radius: var(--radius-sm);
    transition: transform var(--dur-fast) var(--ease-snappy), opacity var(--dur-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Global Loader */
.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--c-border);
    border-top-color: var(--c-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Trust Layer : Verified Animation Signature */
.badge-verified-glow {
    position: relative;
}

.badge-verified-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, var(--c-badge-verified), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--dur-normal) var(--ease-smooth);
}

.badge-verified-glow:hover::after {
    opacity: 1;
}

/* =========================================================================
   Effect Engine Target Classes
   (transform と opacity のみ使用)
   ========================================================================= */

/* Neon Effect */
.effect-neon {
    text-shadow:
        0 0 calc(var(--effect-intensity, 10px) * 0.2) var(--c-accent),
        0 0 calc(var(--effect-intensity, 10px) * 0.5) var(--c-accent),
        0 0 calc(var(--effect-intensity, 10px) * 1) var(--c-accent);
}

/* Glitch Effect (CSS Only, GPU Optimized) */
.effect-glitch {
    position: relative;
}

.effect-glitch::before,
.effect-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.effect-glitch::before {
    color: #0ff;
    z-index: -1;
    animation: glitch-anim 2s infinite var(--ease-snappy) alternate-reverse;
}

.effect-glitch::after {
    color: #f0f;
    z-index: -2;
    animation: glitch-anim 3s infinite var(--ease-snappy) alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 1px)
    }

    40% {
        transform: translate(-1px, -1px)
    }

    60% {
        transform: translate(2px, 1px)
    }

    80% {
        transform: translate(1px, -1px)
    }

    100% {
        transform: translate(0)
    }
}