/* AIエージェントセクション - スタイリッシュ＆光沢デザイン */

.ai-agent-container {
    background: linear-gradient(135deg, 
        rgba(135, 206, 235, 0.08) 0%,
        rgba(93, 173, 226, 0.12) 50%,
        rgba(79, 165, 230, 0.08) 100%);
    border-radius: 24px;
    padding: 60px 40px 40px 40px;
    margin-top: 30px;
    border: 2px solid rgba(135, 206, 235, 0.3);
    position: relative;
    overflow: visible;
    box-shadow: 
        0 10px 40px rgba(79, 165, 230, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* 光沢エフェクト */
.ai-agent-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: ai-shine 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ai-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ヘッダー */
.ai-agent-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.ai-agent-icon {
    color: #4FA5E6;
    filter: drop-shadow(0 2px 4px rgba(79, 165, 230, 0.3));
    animation: ai-icon-pulse 2s ease-in-out infinite;
}

@keyframes ai-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.ai-agent-title {
    color: #4FA5E6;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(79, 165, 230, 0.2);
    background: linear-gradient(135deg, #4FA5E6 0%, #3B95D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* グリッド */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* フィーチャーカード */
.ai-feature-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 100%);
    border-radius: 20px;
    padding: 50px 28px 32px 28px;
    border: 2px solid rgba(135, 206, 235, 0.2);
    box-shadow: 
        0 8px 32px rgba(79, 165, 230, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
}

/* カードの光沢エフェクト */
.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(135, 206, 235, 0.15) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

.ai-feature-card:hover::before {
    left: 100%;
}

.ai-feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(79, 165, 230, 0.5);
    box-shadow: 
        0 20px 60px rgba(79, 165, 230, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* アイコンラッパー */
.ai-feature-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -30px;
    position: relative;
    overflow: visible;
}

/* アイコンSVG */
.ai-feature-icon {
    width: 72px;
    height: 72px;
    color: #4FA5E6;
    stroke: #4FA5E6;
    filter: drop-shadow(0 6px 16px rgba(79, 165, 230, 0.4));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    animation: none;
}

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

.ai-feature-card:hover .ai-feature-icon {
    color: #3B95D6;
    stroke: #3B95D6;
    filter: drop-shadow(0 8px 20px rgba(79, 165, 230, 0.6));
    transform: translateY(-4px) scale(1.05);
}

@keyframes ai-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.1);
    }
}

/* タイトル */
.ai-feature-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
}

/* 説明文 */
.ai-feature-description {
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

/* バッジ */
.ai-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, 
        rgba(79, 165, 230, 0.15) 0%,
        rgba(59, 149, 214, 0.2) 100%);
    border: 1.5px solid rgba(79, 165, 230, 0.3);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #4FA5E6;
    box-shadow: 
        0 4px 12px rgba(79, 165, 230, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.ai-feature-badge svg {
    color: #4FA5E6;
    fill: #4FA5E6;
    filter: drop-shadow(0 2px 4px rgba(79, 165, 230, 0.3));
    animation: ai-spark 1.5s ease-in-out infinite;
}

@keyframes ai-spark {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.ai-feature-card:hover .ai-feature-badge {
    background: linear-gradient(135deg, 
        rgba(79, 165, 230, 0.25) 0%,
        rgba(59, 149, 214, 0.3) 100%);
    border-color: rgba(79, 165, 230, 0.5);
    box-shadow: 
        0 6px 16px rgba(79, 165, 230, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ai-feature-card:hover .ai-feature-badge svg {
    color: #3B95D6;
    fill: #3B95D6;
}

.badge-text {
    white-space: nowrap;
}

/* ハイライトボックス */
.ai-highlight-box {
    background: linear-gradient(135deg, 
        #87CEEB 0%, 
        #6BB6EA 25%, 
        #5DADE2 50%, 
        #6BB6EA 75%, 
        #87CEEB 100%);
    background-size: 200% 200%;
    animation: ai-gradient-shift 8s ease infinite;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 12px 48px rgba(79, 165, 230, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

@keyframes ai-gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ハイライトの光沢 */
.ai-highlight-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: ai-highlight-shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ai-highlight-shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.ai-highlight-title {
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.ai-highlight-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .ai-agent-container {
        padding: 32px;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-agent-title {
        font-size: 1.3rem;
    }
    
    .ai-feature-icon-wrapper {
        width: 72px;
        height: 72px;
    }
    
    .ai-feature-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .ai-agent-container {
        padding: 24px;
        border-radius: 18px;
    }
    
    .ai-feature-card {
        padding: 24px 20px;
    }
    
    .ai-feature-icon-wrapper {
        width: 64px;
        height: 64px;
    }
    
    .ai-feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .ai-feature-title {
        font-size: 1.1rem;
    }
    
    .ai-highlight-box {
        padding: 24px 20px;
    }
    
    .ai-highlight-title {
        font-size: 1.1rem;
    }
    
    .ai-highlight-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .ai-agent-container {
        padding: 20px;
    }
    
    .ai-agent-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .ai-agent-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .ai-feature-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .ai-feature-icon {
        width: 32px;
        height: 32px;
    }
    
    .ai-feature-badge {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .ai-feature-badge svg {
        width: 14px;
        height: 14px;
    }
}
