/*
Theme Name: RAISEON Custom Theme
Author: Raiseon Inc
Description: 株式会社RAISEONマルチページ・コーポレートテーマ（High-Performance Edition）。
Version: 2.0
*/

/* --- Base Typography & Settings --- */
body {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.05em;
    background-color: #ffffff;
    color: #334155;
    overflow-x: hidden;
}

.font-en {
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0.02em;
    font-feature-settings: "liga", "kern";
}

/* --- High-Quality Background Patterns --- */
.bg-grid-pattern {
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* --- Sophisticated Scroll Reveal Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Stagger Delays (for grid items) */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }

/* --- Fade In Animation (Hero Section) --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0; /* Initial state - will be animated to 1 */
}

/* Start animation when opacity-0 class is removed */
.animate-fade-in:not(.opacity-0) {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Float Animation --- */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* --- Orbit Animation (Hero Section) --- */
.orbit-container { position: relative; width: 360px; height: 360px; }

.traffic-orbit {
    position: absolute; top: 50%; left: 50%; border-radius: 50%; 
    border: 1px dashed rgba(14, 165, 233, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-path-1 { width: 420px; height: 420px; animation: spin 40s linear infinite; }
.orbit-path-2 { width: 600px; height: 600px; animation: spin 60s linear infinite reverse; opacity: 0.6; }

.orbit-object { position: absolute; top: 0; left: 50%; width: 100%; height: 100%; margin-left: -50%; transform-origin: center center; }
.moving-item { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); }

.counter-rotate { animation: spin 40s linear infinite reverse; display: flex; justify-content: center; align-items: center; }
.counter-rotate-slow { animation: spin 60s linear infinite; display: flex; justify-content: center; align-items: center; }

@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- UI Components --- */
/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; border: 2px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Mobile Menu State */
body.menu-open { 
    overflow: hidden; 
    position: fixed;
    width: 100%;
}

#mobile-menu { 
    background-color: #ffffff;
}

/* News Card Wrapper Hover Effect */
.news-card-wrapper {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.news-card-wrapper:hover {
    transform: translateY(-4px);
}