@keyframes bg-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    50% { transform: translate(2%, 1%) scale(1.03); opacity: 0.45; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

body {
    background-color: #f5f8fc;
    background-image:
        linear-gradient(160deg, #f8fafd 0%, #f0f5fb 50%, #eaf2f8 100%),
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
}

body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse 60% 50% at 70% 30%,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 50%
    );
    animation: bg-drift 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-gradient {
    background: linear-gradient(155deg, #0c2340 0%, #123d6e 35%, #1a5fa0 65%, #0e2e52 100%);
}

.hero-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(96, 165, 250, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 75% 25%, rgba(147, 197, 253, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

.hero-particle:nth-child(1) { width: 6px; height: 6px; top: 20%; left: 10%; animation-delay: 0s; animation-duration: 5s; }
.hero-particle:nth-child(2) { width: 4px; height: 4px; top: 60%; left: 80%; animation-delay: 1s; animation-duration: 7s; }
.hero-particle:nth-child(3) { width: 8px; height: 8px; top: 30%; left: 60%; animation-delay: 2s; animation-duration: 6s; }
.hero-particle:nth-child(4) { width: 5px; height: 5px; top: 70%; left: 30%; animation-delay: 0.5s; animation-duration: 8s; }
.hero-particle:nth-child(5) { width: 3px; height: 3px; top: 40%; left: 90%; animation-delay: 3s; animation-duration: 5.5s; }

.network-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform-origin: left center;
}

.network-line:nth-child(6) { width: 200px; top: 25%; left: 5%; transform: rotate(15deg); }
.network-line:nth-child(7) { width: 150px; top: 55%; left: 70%; transform: rotate(-10deg); }
.network-line:nth-child(8) { width: 180px; top: 75%; left: 15%; transform: rotate(5deg); }

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.15);
}

.icon-circle {
    transition: transform 0.3s ease, background 0.3s ease;
}

.card-hover:hover .icon-circle {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.card-hover:hover .icon-circle i {
    color: #fff;
}

.cta-gradient {
    background: linear-gradient(155deg, #0c2340 0%, #123d6e 45%, #1a5fa0 100%);
    position: relative;
    overflow: hidden;
}

.cta-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.stat-number {
    font-variant-numeric: tabular-nums;
}

.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(30, 144, 255, 0.12);
}

.nav-link-effect {
    position: relative;
}

.nav-link-effect::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link-effect:hover::after,
.nav-link-effect.active::after {
    width: 100%;
    left: 0;
}

.header-scrolled {
    background: rgba(8, 28, 54, 0.98) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #1d6fd8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* サービス装飾番号 */
.service-num {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    color: rgba(29, 111, 216, 0.18);
    user-select: none;
    margin-bottom: -0.25rem;
    letter-spacing: -0.04em;
}

[x-cloak] { display: none !important; }

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    .hero-gradient,
    .hero-particle {
        animation: none !important;
    }

    .card-hover:hover {
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
