/* =====================================
   HIROGARUヒーローセクション - 六角形ハニカム構造アニメーション
   hero_animation_2.css
   ===================================== */

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

/* 中心の核となる要素 - ハニカムコア */
.radial-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: linear-gradient(30deg, #00c9ff, #92fe9d);
    transform: translate(-50%, -50%);
    animation: hexagon-spin 3s ease-in-out infinite;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 30px rgba(0, 201, 255, 0.6);
    z-index: 10;
}

.radial-core::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0.8;
}

/* 放射状に広がる六角形要素 - ハニカム拡散 */
.radial-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(0, 201, 255, 0.3);
    transform: translate(-50%, -50%);
    animation: hexagon-expand 4s ease-out infinite;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

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

/* 装飾的な小さな六角形要素 */
.floating-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #92fe9d;
    animation: hexagon-float 5s ease-in-out infinite;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 10px rgba(146, 254, 157, 0.5);
}

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

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

.floating-dot:nth-child(8) {
    top: 70%;
    left: 15%;
    animation-delay: 4s;
}

/* ビジネスアイコン風装飾要素 - セルラー構造 */
.business-icon {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #00c9ff;
    animation: cellular-movement 6s ease-in-out infinite;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 12px rgba(0, 201, 255, 0.4);
}

.icon-chart {
    top: 30%;
    right: 30%;
    animation-delay: 0s;
}

.icon-target {
    bottom: 35%;
    left: 25%;
    animation-delay: 2s;
}

.icon-growth {
    top: 15%;
    left: 50%;
    animation-delay: 4s;
}

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

@keyframes hexagon-spin {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        box-shadow: 0 0 30px rgba(0, 201, 255, 0.6);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2) rotate(120deg);
        box-shadow: 0 0 50px rgba(146, 254, 157, 0.8);
    }
}

@keyframes hexagon-expand {
    0% { 
        transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
        opacity: 1;
        border-width: 3px;
        border-color: rgba(0, 201, 255, 0.8);
    }
    25% {
        opacity: 0.8;
        border-width: 2.5px;
        border-color: rgba(146, 254, 157, 0.6);
    }
    50% { 
        opacity: 0.5;
        border-width: 2px;
        border-color: rgba(0, 201, 255, 0.4);
    }
    75% {
        opacity: 0.3;
        border-width: 1.5px;
        border-color: rgba(146, 254, 157, 0.3);
    }
    100% { 
        transform: translate(-50%, -50%) scale(2.2) rotate(240deg);
        opacity: 0;
        border-width: 1px;
        border-color: rgba(0, 201, 255, 0.1);
    }
}

@keyframes hexagon-float {
    0%, 100% { 
        transform: rotate(0deg) translateY(0px);
        opacity: 0.7;
    }
    33% { 
        transform: rotate(120deg) translateY(-15px);
        opacity: 1;
    }
    66% { 
        transform: rotate(240deg) translateY(-8px);
        opacity: 0.8;
    }
}

@keyframes cellular-movement {
    0%, 100% { 
        transform: rotate(0deg) translateX(20px) rotate(0deg);
        opacity: 0.6;
    }
    25% { 
        transform: rotate(60deg) translateX(35px) rotate(-60deg);
        opacity: 1;
    }
    50% { 
        transform: rotate(120deg) translateX(25px) rotate(-120deg);
        opacity: 0.8;
    }
    75% { 
        transform: rotate(180deg) translateX(40px) rotate(-180deg);
        opacity: 0.9;
    }
}

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

@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: 40px;
        height: 40px;
    }
    
    .radial-core::before {
        width: 16px;
        height: 16px;
    }
}

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