/* アニメーション背景 */
.animated-bg {
    position: relative;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 75%
    );
    background-size: 60px 60px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

.animated-bg.dark::before {
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.05) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.05) 75%,
        transparent 75%
    );
}

.animated-bg.colored::before {
    background: linear-gradient(
        45deg,
        rgba(102, 126, 234, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(102, 126, 234, 0.1) 50%,
        rgba(102, 126, 234, 0.1) 75%,
        transparent 75%
    );
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* セクションタイトル用 */
.section-title-animated {
    position: relative;
    padding: 48px 0;
    overflow: hidden;
}

.section-title-animated::before {
    display: none;
}

.section-title-animated h2 {
    position: relative;
    z-index: 1;
}

.section-title-animated p {
    position: relative;
    z-index: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ページヘッダー用 */
.page-header-animated {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.page-header-animated::before {
    display: none;
}

.page-header-animated .container {
    position: relative;
    z-index: 1;
}

/* 軽量版アニメーション（モバイル向け） */
@media (prefers-reduced-motion: reduce) {
    .animated-bg::before,
    .section-title-animated::before,
    .page-header-animated::before {
        animation: none;
    }
}