/* =====================================
   HIROGARUヒーローセクション - デジタル/テック風アニメーション
   hero_animation_1.css
   ===================================== */

/* 放射状アニメーション用コンテナ */
.radial-animation-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

/* 中心の核となる要素 - デジタルコア */
.radial-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    animation: digital-pulse 1.5s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(102, 126, 234, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.radial-core::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transform: translate(-50%, -50%);
    opacity: 0.8;
}

/* 放射状に広がる四角形要素 - デジタルスキャン */
.radial-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    animation: digital-scan 2s linear infinite;
}

/* 各四角形のサイズとアニメーション遅延 */
.radial-circle:nth-child(2) { 
    width: 80px; 
    height: 80px; 
    animation-delay: 0s; 
}
.radial-circle:nth-child(3) { 
    width: 120px; 
    height: 120px; 
    animation-delay: 0.3s; 
}
.radial-circle:nth-child(4) { 
    width: 160px; 
    height: 160px; 
    animation-delay: 0.6s; 
}
.radial-circle:nth-child(5) { 
    width: 200px; 
    height: 200px; 
    animation-delay: 0.9s; 
}

/* 装飾的な小さなピクセル要素 */
.floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 0;
    animation: pixel-move 3s linear infinite;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}

.floating-dot:nth-child(6) {
    top: 25%;
    left: 25%;
    animation-delay: 0s;
}

.floating-dot:nth-child(7) {
    bottom: 25%;
    right: 25%;
    animation-delay: 1s;
}

.floating-dot:nth-child(8) {
    top: 75%;
    left: 75%;
    animation-delay: 2s;
}

/* ビジネスアイコン風装飾要素 - データストリーム */
.business-icon {
    position: absolute;
    width: 8px;
    height: 8px;
    animation: data-stream 2.5s linear infinite;
    border-radius: 1px;
}

.icon-chart {
    background: #667eea;
    top: 20%;
    left: 50%;
    animation-delay: 0s;
}

.icon-target {
    background: #764ba2;
    top: 50%;
    right: 20%;
    animation-delay: 0.8s;
}

.icon-growth {
    background: #f093fb;
    bottom: 20%;
    left: 50%;
    animation-delay: 1.6s;
}

/* =====================================
   アニメーション定義
   ===================================== */

@keyframes digital-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 20px rgba(102, 126, 234, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 40px rgba(102, 126, 234, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

@keyframes digital-scan {
    0% { 
        border-color: rgba(102, 126, 234, 0.8);
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
    }
    25% { 
        border-color: rgba(118, 75, 162, 0.6);
        transform: translate(-50%, -50%) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        border-color: rgba(240, 147, 251, 0.4);
        transform: translate(-50%, -50%) rotate(180deg);
        opacity: 0.6;
    }
    75% { 
        border-color: rgba(102, 126, 234, 0.6);
        transform: translate(-50%, -50%) rotate(270deg);
        opacity: 0.4;
    }
    100% { 
        border-color: rgba(102, 126, 234, 0.2);
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0;
    }
}

@keyframes pixel-move {
    0% { 
        transform: translate(0, 0); 
        opacity: 1; 
    }
    25% { 
        transform: translate(20px, -20px); 
        opacity: 0.7; 
    }
    50% { 
        transform: translate(-10px, -30px); 
        opacity: 0.5; 
    }
    75% { 
        transform: translate(-30px, 10px); 
        opacity: 0.8; 
    }
    100% { 
        transform: translate(0, 0); 
        opacity: 1; 
    }
}

@keyframes data-stream {
    0% { 
        transform: translateX(0) scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateX(30px) scale(1.5); 
        opacity: 1; 
    }
    100% { 
        transform: translateX(0) scale(1); 
        opacity: 0.3; 
    }
}

/* =====================================
   レスポンシブ対応
   ===================================== */

@media (max-width: 1200px) {
    .radial-animation-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 992px) {
    .radial-animation-container {
        width: 250px;
        height: 250px;
    }
    
    .radial-core {
        width: 35px;
        height: 35px;
    }
    
    .radial-core::before {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 768px) {
    .radial-animation-container {
        width: 200px;
        height: 200px;
    }
    
    .radial-core {
        width: 30px;
        height: 30px;
    }
    
    .radial-core::before {
        width: 12px;
        height: 12px;
    }
    
    .floating-dot {
        width: 3px;
        height: 3px;
    }
    
    .business-icon {
        width: 6px;
        height: 6px;
    }
}