/* ==============================================
   カスタムアニメーション CSS (WordPress対応)
   ============================================== */

/* WordPressテーマとの競合を避けるため、ラッパーIDを使用 */
#my-unique-lp-wrapper {
    /* パルスアニメーション（CTAボタン用） */
}

#my-unique-lp-wrapper .pulse-animation {
    animation: pulse 1.5s infinite !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

/* リップル効果 */
#my-unique-lp-wrapper .btn__orange {
    position: relative !important;
    overflow: hidden !important;
}

#my-unique-lp-wrapper .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.4s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* タイプライター効果 */
#my-unique-lp-wrapper .typewriter-container {
    overflow: hidden !important;
}

#my-unique-lp-wrapper .typewriter-text {
    border-right: 3px solid #ff6b00 !important;
    animation: blink-caret 0.8s step-end infinite !important;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #ff6b00;
    }
}

/* カウンターアニメーション用のスタイル */
#my-unique-lp-wrapper .counter {
    display: inline-block !important;
    font-weight: bold !important;
    color: #ff6b00 !important;
}

/* ホバー効果の強化 */
#my-unique-lp-wrapper .btn__orange:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3) !important;
    transition: all 0.2s ease !important;
}

#my-unique-lp-wrapper .fv__item:hover {
    transform: translateY(-5px) !important;
    transition: all 0.2s ease !important;
}

#my-unique-lp-wrapper .merit__item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

#my-unique-lp-wrapper .strengths__item:hover {
    transform: translateY(-3px) !important;
    transition: all 0.2s ease !important;
}

#my-unique-lp-wrapper .staff__item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

/* フロー項目のホバー効果 */
#my-unique-lp-wrapper .flow__item:hover .flow__item-image img {
    transform: scale(1.1) !important;
    transition: all 0.2s ease !important;
}

#my-unique-lp-wrapper .flow__item-image {
    overflow: hidden !important;
    border-radius: 10px !important;
}

/* 背景グラデーションアニメーション */
#my-unique-lp-wrapper .fv {
    background: linear-gradient(-45deg, #ff6b00, #ff8533, #ff6b00, #ff9966) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 10s ease infinite !important;
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* パーティクル効果用のベース */
#my-unique-lp-wrapper .particle-container {
    position: relative !important;
    overflow: hidden !important;
}

#my-unique-lp-wrapper .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 1;
    }
}

/* スクロール時のフェードイン効果の調整 */
#my-unique-lp-wrapper [data-aos] {
    pointer-events: none;
    transition-duration: 0.5s !important;
}

#my-unique-lp-wrapper [data-aos].aos-animate {
    pointer-events: auto;
}

/* 価格表示の強調アニメーション */
#my-unique-lp-wrapper .cta__price {
    position: relative !important;
    overflow: hidden !important;
}

#my-unique-lp-wrapper .cta__price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* FAQ項目のアクティブ状態 */
#my-unique-lp-wrapper .faq__item.active .faq__item-question-btn {
    transform: rotate(45deg) !important;
    transition: transform 0.2s ease !important;
}

#my-unique-lp-wrapper .faq__item-question-btn {
    transition: transform 0.2s ease !important;
}

/* 画像のズーム効果 */
#my-unique-lp-wrapper .fv__image img,
#my-unique-lp-wrapper .worry__image img,
#my-unique-lp-wrapper .strengths__item-image img {
    transition: transform 0.2s ease !important;
}

#my-unique-lp-wrapper .fv__image:hover img,
#my-unique-lp-wrapper .worry__image:hover img,
#my-unique-lp-wrapper .strengths__item-image:hover img {
    transform: scale(1.05) !important;
}

/* ローディングアニメーション */
#my-unique-lp-wrapper .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b00;
    animation: spin 0.8s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #my-unique-lp-wrapper .pulse-animation {
        animation-duration: 1.2s !important;
    }

    #my-unique-lp-wrapper .typewriter-text {
        border-right-width: 2px !important;
    }

    #my-unique-lp-wrapper .fv {
        animation-duration: 8s !important;
    }
}

/* アクセシビリティ: アニメーションを無効にする設定 */
@media (prefers-reduced-motion: reduce) {

    #my-unique-lp-wrapper *,
    #my-unique-lp-wrapper *::before,
    #my-unique-lp-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #my-unique-lp-wrapper .typewriter-text {
        border-right: none !important;
    }

    #my-unique-lp-wrapper .pulse-animation {
        animation: none !important;
    }
}

/* 追加のAOSアニメーション強制適用 */
#my-unique-lp-wrapper [data-aos="fade-up"].aos-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#my-unique-lp-wrapper [data-aos="fade-down"].aos-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#my-unique-lp-wrapper [data-aos="fade-left"].aos-animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

#my-unique-lp-wrapper [data-aos="fade-right"].aos-animate {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

#my-unique-lp-wrapper [data-aos="zoom-in"].aos-animate {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* 初期状態の設定 - より確実に */
#my-unique-lp-wrapper [data-aos="fade-up"]:not(.aos-animate) {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: all 0.5s ease !important;
}

#my-unique-lp-wrapper [data-aos="fade-down"]:not(.aos-animate) {
    opacity: 0 !important;
    transform: translateY(-30px) !important;
    transition: all 0.5s ease !important;
}

#my-unique-lp-wrapper [data-aos="fade-left"]:not(.aos-animate) {
    opacity: 0 !important;
    transform: translateX(30px) !important;
    transition: all 0.5s ease !important;
}

#my-unique-lp-wrapper [data-aos="fade-right"]:not(.aos-animate) {
    opacity: 0 !important;
    transform: translateX(-30px) !important;
    transition: all 0.5s ease !important;
}

#my-unique-lp-wrapper [data-aos="zoom-in"]:not(.aos-animate) {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.5s ease !important;
}

/* WordPressテーマの一般的なリセット */
#my-unique-lp-wrapper {
    /* 基本的なリセット */
    box-sizing: border-box;
    line-height: 1.6;
    font-family: inherit;
}

#my-unique-lp-wrapper *,
#my-unique-lp-wrapper *::before,
#my-unique-lp-wrapper *::after {
    box-sizing: border-box;
}

/* WordPressテーマのtransformプロパティをオーバーライド */
#my-unique-lp-wrapper * {
    transform: none !important;
    transition: all 0.2s ease !important;
}

/* ただし、アニメーション要素は除外 */
#my-unique-lp-wrapper [data-aos],
#my-unique-lp-wrapper .pulse-animation,
#my-unique-lp-wrapper .particle,
#my-unique-lp-wrapper .typewriter-text {
    transform: initial !important;
}

/* AOSアニメーションの強制適用 */
#my-unique-lp-wrapper [data-aos^="fade"][data-aos^="fade"].aos-animate {
    opacity: 1 !important;
    transform: none !important;
}

#my-unique-lp-wrapper [data-aos^="zoom"][data-aos^="zoom"].aos-animate {
    opacity: 1 !important;
    transform: scale(1) !important;
}
