:root {
    --neon-cyan: #00ffcc;
    --neon-blue: #00d4ff;
    --neon-pink: #ff00c1;
    --bg-dark: #070b14;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --border-glow: rgba(0, 255, 204, 0.4);
}

body {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(0, 255, 204, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0) 0%, var(--bg-dark) 100%),
        radial-gradient(circle at 10% 20%, rgba(0, 255, 204, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 212, 255, 0.07) 0%, transparent 40%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: #f1f5f9;
    font-family: 'M PLUS 1p', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Screen Glitch Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../img/noise.svg');
    opacity: 0.04;
    pointer-events: none;
    z-index: 9999;
}

.orbitron {
    font-family: 'Orbitron', sans-serif;
}

.rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

.pixel-font {
    font-family: 'DotGothic16', sans-serif;
}

/* タイトル・セクション装飾 */
.section-title {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    letter-spacing: 4px;
    font-weight: 900;
}

.section-title::before {
    content: '>> ';
    font-family: 'DotGothic16';
    opacity: 0.6;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes glitch {
    0% {
        clip-path: inset(40% 0 61% 0);
        transform: translate(-2px, 2px);
    }

    20% {
        clip-path: inset(92% 0 1% 0);
        transform: translate(1px, -3px);
    }

    40% {
        clip-path: inset(43% 0 1% 0);
        transform: translate(-1px, 2px);
    }

    60% {
        clip-path: inset(25% 0 58% 0);
        transform: translate(2px, -1px);
    }

    80% {
        clip-path: inset(54% 0 7% 0);
        transform: translate(-2px, 1px);
    }

    100% {
        clip-path: inset(58% 0 43% 0);
        transform: translate(1px, -2px);
    }
}

.glitch-active {
    position: relative;
    display: inline-block;
}

.glitch-active::before,
.glitch-active::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    visibility: hidden;
}

.glitch-active:hover::before {
    visibility: visible;
    left: -2px;
    text-shadow: 2px 0 #ff00c1;
    clip-path: inset(0 0 0 0);
    animation: glitch 0.3s infinite linear alternate-reverse;
    z-index: -1;
}

.glitch-active:hover::after {
    visibility: visible;
    left: 2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip-path: inset(0 0 0 0);
    animation: glitch 0.3s infinite linear alternate;
    z-index: -2;
}

/* HERO Section - Premium Tuning with Parallax */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), url("../img/ggforce-hero.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    border-radius: 2rem;
    padding: 6rem 2rem;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 50px rgba(0, 255, 204, 0.1);
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    text-shadow: 0 0 30px var(--neon-cyan);
    letter-spacing: 12px;
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: 2rem;
    text-shadow: none;
    letter-spacing: 8px;
    margin-bottom: 1rem;
}

.hero-banner .badge {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.hero-banner .badge:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 0 15px var(--neon-cyan);
    border-color: var(--neon-cyan) !important;
    background-color: rgba(0, 255, 204, 0.1) !important;
}

/* 概要セクション */
.summary-box {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 0.5rem;
    clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
    padding: 3rem;
    position: relative;
}

/* エージェントカード - Cyber Style */
.agent-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 0;
    clip-path: polygon(0 20px, 20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
}

/* Tech Corners for Cards */
.agent-card::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    opacity: 0.3;
}

.agent-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.2);
    transform: scale(1.02) translateY(-5px);
}

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

.agent-img {
    border: 1px solid rgba(0, 255, 204, 0.3);
    filter: grayscale(100%) brightness(0.8);
    transition: 0.5s;
}

.agent-card:hover .agent-img {
    filter: grayscale(0%) brightness(1.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

/* ワークフロー */
.flow-container {
    padding-left: 2rem;
    position: relative;
}

.flow-item {
    position: relative;
    margin-bottom: 3rem;
    background: rgba(0, 255, 204, 0.05);
    padding: 1.5rem;
    border-left: 4px solid var(--neon-cyan);
}

.flow-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* ボタン */
.btn-hq {
    background: transparent;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    padding: 1.2rem 4rem;
    border: 1px solid var(--neon-cyan);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s;
    position: relative;
}

.btn-hq:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 50px rgba(0, 255, 204, 0.6);
    transform: translateY(-2px);
}

.ceo-bubble {
    background: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 15px;
    position: relative;
    display: inline-block;
    font-family: 'M PLUS 1p', sans-serif;
}

.ceo-bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 20px;
    border: 10px solid transparent;
    border-top-color: #fff;
}



.agent-img {
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 255, 204, 0.3);
    margin-bottom: 1.5rem;
    transition: 0.3s;
    filter: grayscale(20%);
}

.god-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    animation: text-flicker 3s linear infinite;
}

@keyframes text-flicker {

    0%,
    100% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.5;
    }

    94% {
        opacity: 1;
    }

    96% {
        opacity: 0.4;
    }

    97% {
        opacity: 1;
    }
}

.god-text::before {
    content: 'GOD';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-pink);
    z-index: -1;
    filter: blur(5px);
    opacity: 0;
    transition: 0.3s;
}

.god-text:hover::before {
    opacity: 0.8;
    transform: translate(-3px, -2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-banner {
        padding: 4rem 1rem;
        margin-bottom: 3rem;
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
        line-height: 1.2;
    }

    .hero-sub {
        font-size: 1rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-logo {
        font-size: 2.5rem !important;
        letter-spacing: 4px !important;
    }

    .hero-content p.h4 {
        font-size: 1.1rem !important;
        letter-spacing: 0.1rem !important;
    }

    footer div.position-absolute {
        width: 90%;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        white-space: nowrap;
        font-size: 0.7rem;
    }

    .summary-box {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
}