/* =====================================================
   GlobalStep.jp - Corporate Under Construction
   Premium Dark Theme with Glassmorphism
   ===================================================== */

/* ----- CSS Custom Properties ----- */
:root {
    /* Colors */
    --color-bg: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-text-primary: #f0f0f5;
    --color-text-secondary: rgba(240, 240, 245, 0.6);
    --color-text-tertiary: rgba(240, 240, 245, 0.35);
    --color-accent-1: #6366f1;
    --color-accent-2: #8b5cf6;
    --color-accent-3: #06b6d4;
    --color-gradient-start: #6366f1;
    --color-gradient-end: #06b6d4;
    --color-success: #22c55e;

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ----- Particle Canvas ----- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ----- Gradient Overlay ----- */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
}

/* ----- Page Wrapper ----- */
.page-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ----- Header ----- */
.site-header {
    padding: var(--space-xl) var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeSlideDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Hero Section ----- */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-2xl);
}

.hero-content {
    max-width: 720px;
    width: 100%;
    text-align: center;
}

/* ----- Status Badge ----- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px 6px 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2xl);
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
}

/* ----- Hero Title ----- */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
    animation: fadeSlideUp 0.8s ease-out both;
}

.title-line-1 {
    animation-delay: 0.4s;
}

.title-line-2 {
    animation-delay: 0.6s;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----- Hero Subtitle ----- */
.hero-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.9;
    margin-bottom: var(--space-2xl);
    animation: fadeSlideUp 0.8s ease-out 0.8s both;
    font-weight: 300;
}

/* ----- Service Tags ----- */
.service-tags {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
    animation: fadeSlideUp 0.8s ease-out 1s both;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.service-tag:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.service-tag:hover .tag-arrow {
    transform: translate(2px, -2px);
}

.tag-icon {
    display: flex;
    align-items: center;
    color: var(--color-accent-1);
}

.tag-arrow {
    display: flex;
    align-items: center;
    color: var(--color-text-tertiary);
    transition: transform var(--transition-fast);
}

/* ----- Divider ----- */
.hero-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-hover), transparent);
    margin: 0 auto var(--space-2xl);
    animation: fadeIn 0.8s ease-out 1.2s both;
}

/* ----- Info Grid ----- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    animation: fadeSlideUp 0.8s ease-out 1.4s both;
}

.info-card {
    padding: var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    border-radius: var(--radius-md);
    color: var(--color-accent-3);
}

.info-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
}

.info-value {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

/* ----- Footer ----- */
.site-footer {
    padding: var(--space-xl) var(--space-2xl);
    text-align: center;
    animation: fadeIn 0.8s ease-out 1.6s both;
}

.copyright {
    font-size: 0.72rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* ----- Animations ----- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 16px rgba(34, 197, 94, 0.6);
    }
}

/* ----- Responsive ----- */
.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }

    .site-header {
        padding: var(--space-lg) var(--space-md);
    }

    .hero {
        padding: var(--space-lg) var(--space-md);
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .info-card {
        padding: var(--space-md);
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        text-align: left;
        gap: 0 var(--space-md);
    }

    .info-card .info-icon {
        grid-row: 1 / 3;
        margin: 0;
        align-self: center;
    }

    .info-card .info-label {
        margin-bottom: 0;
        align-self: end;
    }

    .info-card .info-value {
        align-self: start;
    }

    .service-tags {
        gap: var(--space-sm);
    }

    .service-tag {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .site-footer {
        padding: var(--space-lg) var(--space-md);
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }
}

/* ----- Selection Style ----- */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: var(--color-text-primary);
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}

/* ----- Focus Styles ----- */
.service-tag:focus-visible {
    outline: 2px solid var(--color-accent-1);
    outline-offset: 2px;
}
