/* ========================================
   マイクロインタラクション
   ======================================== */

/* スクロールフェードインアニメーション */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 製品カードのホバーエフェクト強化 */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(53, 122, 189, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3);
}

/* ボタンのリップルエフェクト */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::before {
    width: 300px;
    height: 300px;
}

/* フィーチャーカードのホバーエフェクト */
.feature-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(74, 144, 226, 0.2);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* アイコンの回転アニメーション */
.icon-spin-hover:hover i {
    animation: spin 0.6s ease-in-out;
}

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

/* テキストのグラデーションアニメーション */
.text-gradient-animate {
    background: linear-gradient(90deg, #4a90e2, #357ABD, #4a90e2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* パルスエフェクト */
.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* スムーズなボックスシャドウの変化 */
.shadow-transition {
    transition: box-shadow 0.3s ease;
}

.shadow-transition:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* レスポンシブ: モバイルではホバーエフェクトを簡略化 */
@media (max-width: 768px) {
    .product-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .feature-card:hover {
        transform: translateY(-3px);
    }
}

/* タップ可能領域の最小サイズ確保（44x44px） */
.btn,
.slide-btn,
.fixed-cta-btn,
a.button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* フォーカス時のアクセシビリティ向上 */
.btn:focus,
.slide-btn:focus,
.fixed-cta-btn:focus,
a:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* スムーズなページ遷移 */
body {
    transition: opacity 0.3s ease-out;
}

body.page-transition {
    opacity: 0;
}
