/* 展示品処分市スプラッシュバナー CSS */


/* スプラッシュポップアップ */
.ec-flyer-splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #ffd54f, #ffeb3b, #fff176);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', Meiryo, メイリオ, Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    pointer-events: none;
}

.ec-flyer-splash-container.ec-show {
    opacity: 1;
    visibility: visible;
    animation: ec-flyerSplashFadeOut 7s ease-in-out forwards;
    pointer-events: all;
}

.ec-flyer-splash-container.ec-to-banner {
    animation: ec-flyerSplashToBanner 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.ec-flyer-main-content {
    text-align: center;
    max-width: 90%;
    width: 100%;
}

.ec-flyer-main-title {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    transform: scale(0);
    animation: ec-flyerTitleExplosion 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.1s forwards;
    line-height: 1.1;
}

.ec-flyer-title-red {
    color: #d32f2f;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    margin-right: 15px;
}

.ec-flyer-title-black {
    color: #333;
    filter: drop-shadow(2px 2px 4px rgba(255,255,255,0.3));
}

.ec-flyer-store-only {
    background: linear-gradient(45deg, #ff6b35, #e91e63, #9c27b0);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 1.8rem;
    font-weight: 900;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: ec-flyerNoteWiggle 2s infinite ease-in-out;
    transform: rotate(2deg);
    margin: 0 10px;
}

.ec-flyer-subtitle {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    opacity: 0;
    animation: ec-flyerSubtitleSlide 1s ease-out 0.3s forwards;
    transform: translateY(30px);
    text-align: center;
    line-height: 1.3;
}

.ec-flyer-notice-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px auto;
    flex-wrap: wrap;
    opacity: 0;
    animation: ec-flyerNoticeSlide 1s ease-out 0.5s forwards;
}

.ec-flyer-subtitle-note {
    display: inline-block;
    font-size: 1.8rem;
    color: white;
    background: linear-gradient(45deg, #ff6b35, #e91e63, #9c27b0);
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    animation: ec-flyerNoteWiggle 2s infinite ease-in-out;
    transform: rotate(-2deg);
    margin: 0 10px;
}

.ec-flyer-product-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 15px;
    margin: 20px auto;
    opacity: 0;
    animation: ec-flyerIconsFloat 1.2s ease-out 0.7s forwards;
    max-width: 480px;
}

.ec-flyer-product-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(180deg);
    animation: ec-flyerIconPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #333;
}

.ec-flyer-product-icon:nth-child(1) { animation-delay: 0.8s; }
.ec-flyer-product-icon:nth-child(2) { animation-delay: 0.9s; }
.ec-flyer-product-icon:nth-child(3) { animation-delay: 1.0s; }
.ec-flyer-product-icon:nth-child(4) { animation-delay: 1.1s; }
.ec-flyer-product-icon:nth-child(5) { animation-delay: 1.2s; }
.ec-flyer-product-icon:nth-child(6) { animation-delay: 1.3s; }
.ec-flyer-product-icon:nth-child(7) { animation-delay: 1.4s; }
.ec-flyer-product-icon:nth-child(8) { animation-delay: 1.5s; }

.ec-flyer-discount-section {
    background: linear-gradient(45deg, #fff176, #fdd835, #ffeb3b);
    border: 4px solid #333;
    border-radius: 25px;
    padding: 25px 60px;
    margin: 20px auto;
    max-width: 600px;
    position: relative;
    opacity: 0;
    transform: scale(0.8) rotate(-2deg);
    animation: ec-flyerDiscountBoom 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.6s forwards;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 3px 0 rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.ec-flyer-discount-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: ec-flyerDiscountShine 2s infinite;
    pointer-events: none;
}

.ec-flyer-discount-label {
    font-size: 2.8rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    animation: ec-flyerDiscountPulse 1.5s infinite ease-in-out;
}

.ec-flyer-discount-value {
    font-size: 5.5rem;
    font-weight: 900;
    color: #d32f2f;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(211, 47, 47, 0.4);
    line-height: 1;
    margin: 0;
    animation: ec-flyerDiscountPulse 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 5px rgba(211, 47, 47, 0.5));
}

.ec-flyer-discount-unit {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    animation: ec-flyerDiscountPulse 1.5s infinite ease-in-out;
}

.ec-flyer-dates-container {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px auto;
    max-width: 600px;
    opacity: 0;
    animation: ec-flyerDatesSlide 1s ease-out 2.0s forwards;
    transform: translateY(50px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    text-align: center;
}

.ec-flyer-duration-label {
    background: linear-gradient(90deg, #ffd700, #ffeb3b, #ffd700);
    color: #333;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 2.2rem;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    text-shadow: none;
    animation: ec-flyerDurationPulse 2s infinite ease-in-out;
}

.ec-flyer-dates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ec-flyer-date-item {
    background: white;
    color: #333;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 2.5rem;
    font-weight: 900;
    transform: rotateY(180deg);
    animation: ec-flyerDateFlip 0.8s ease-out forwards;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 3px solid #333;
    text-shadow: none;
    position: relative;
}

.ec-flyer-date-item:nth-child(2) { animation-delay: 2.2s; }
.ec-flyer-date-item:nth-child(3) { animation-delay: 2.4s; }
.ec-flyer-date-item:nth-child(4) { animation-delay: 2.6s; }

.ec-flyer-day-label {
    color: white;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    margin-left: 12px;
    vertical-align: middle;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.ec-flyer-day-label.saturday {
    background: #1976d2;
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.4);
}

.ec-flyer-day-label.sunday {
    background: #d32f2f;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.4);
}

.ec-flyer-separator {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.ec-flyer-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
}

.ec-flyer-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: ec-flyerSparkle 3s infinite ease-in-out;
    box-shadow: 0 0 15px #fff;
}

/* アニメーション */
@keyframes ec-flyerSplashFadeOut {
    0% { 
        opacity: 1; 
        transform: translateY(0px) scale(1);
        transform-origin: center center;
    }
    80% { 
        opacity: 1; 
        transform: translateY(0px) scale(1);
        transform-origin: center center;
    }
    85% {
        opacity: 0.9;
        transform: translateY(var(--banner-move-y, -30vh)) translateX(var(--banner-move-x, 0)) scale(0.8);
    }
    95% {
        opacity: 0.6;
        transform: translateY(var(--banner-move-y, -30vh)) translateX(var(--banner-move-x, 0)) scale(0.4);
    }
    100% { 
        opacity: 0; 
        pointer-events: none;
        transform: translateY(var(--banner-move-y, -30vh)) translateX(var(--banner-move-x, 0)) scale(0.15);
    }
}

@keyframes ec-flyerSplashToBanner {
    0% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
    20% {
        opacity: 0.9;
        transform: translateY(var(--banner-move-y, -30vh)) translateX(var(--banner-move-x, 0)) scale(0.8);
    }
    60% {
        opacity: 0.6;
        transform: translateY(var(--banner-move-y, -30vh)) translateX(var(--banner-move-x, 0)) scale(0.4);
    }
    100% { 
        opacity: 0; 
        pointer-events: none;
        transform: translateY(var(--banner-move-y, -30vh)) translateX(var(--banner-move-x, 0)) scale(0.15);
    }
}

@keyframes ec-flyerYearSlide {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes ec-flyerNoticeSlide {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ec-flyerDurationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes ec-flyerNoteWiggle {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.05); }
    50% { transform: rotate(-1deg) scale(1.02); }
    75% { transform: rotate(2deg) scale(1.05); }
}

@keyframes ec-flyerStoreOnlyBoom {
    0% { 
        opacity: 0; 
        transform: scale(0) rotate(-5deg); 
        filter: blur(3px);
    }
    70% { 
        opacity: 1; 
        transform: scale(1.1) rotate(2deg); 
        filter: blur(0px);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
        filter: blur(0px);
    }
}

@keyframes ec-flyerCornerPop {
    0% { transform: scale(0) rotate(-10deg); }
    70% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes ec-flyerTitleExplosion {
    0% { transform: scale(0) rotate(10deg); filter: blur(10px); }
    70% { transform: scale(1.1) rotate(-5deg); filter: blur(0px); }
    100% { transform: scale(1) rotate(0deg); filter: blur(0px); }
}

@keyframes ec-flyerSubtitleSlide {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ec-flyerIconsFloat {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ec-flyerIconPop {
    0% { transform: scale(0) rotate(180deg); }
    70% { transform: scale(1.2) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes ec-flyerDiscountBoom {
    0% { 
        opacity: 0; 
        transform: scale(0.5) rotate(-10deg); 
        filter: blur(5px);
    }
    30% {
        opacity: 0.8;
        transform: scale(1.3) rotate(5deg);
        filter: blur(1px);
    }
    60% { 
        opacity: 1; 
        transform: scale(0.9) rotate(-2deg); 
        filter: blur(0px);
    }
    80% {
        transform: scale(1.1) rotate(1deg);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg); 
        filter: blur(0px);
    }
}

@keyframes ec-flyerDiscountShine {
    0% { transform: translateX(-150%) translateY(-150%) rotate(45deg); opacity: 0; }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); opacity: 1; }
    100% { transform: translateX(150%) translateY(150%) rotate(45deg); opacity: 0; }
}

@keyframes ec-flyerDiscountPulse {
    0%, 100% { 
        transform: scale(1); 
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(211, 47, 47, 0.4);
    }
    50% { 
        transform: scale(1.08); 
        text-shadow: 3px 3px 6px rgba(0,0,0,0.4), 0 0 25px rgba(211, 47, 47, 0.6);
    }
}

@keyframes ec-flyerDatesSlide {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ec-flyerDateFlip {
    0% { transform: rotateY(180deg) scale(0.8); }
    100% { transform: rotateY(0deg) scale(1); }
}

@keyframes ec-flyerSparkle {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .ec-flyer-main-title { font-size: 3.8rem; }
    .ec-flyer-subtitle { font-size: 1.8rem; }
    .ec-flyer-notice-container { gap: 10px; margin: 12px auto; }
    .ec-flyer-store-only { font-size: 1.4rem; padding: 6px 15px; margin: 0 5px; }
    .ec-flyer-subtitle-note { font-size: 1.4rem; padding: 6px 15px; margin: 0 5px; }
    .ec-flyer-product-icons { gap: 8px; max-width: 320px; }
    .ec-flyer-product-icon { width: 50px; height: 50px; }
    .ec-flyer-discount-value { font-size: 4.5rem; }
    .ec-flyer-discount-unit { font-size: 2.8rem; }
    .ec-flyer-discount-label { font-size: 2.2rem; }
    .ec-flyer-discount-section { padding: 20px 45px; gap: 15px; max-width: 520px; }
    .ec-flyer-date-item { font-size: 1.8rem; padding: 10px 18px; }
    .ec-flyer-day-label { width: 32px; height: 32px; font-size: 1.1rem; margin-left: 6px; }
    .ec-flyer-duration-label { font-size: 1.8rem; padding: 8px 20px; }
    .ec-flyer-dates { gap: 12px; }
    .ec-flyer-separator { font-size: 1.8rem; }
    .ec-flyer-dates-container { padding: 15px; max-width: 480px; }
    
    @keyframes ec-flyerSplashFadeOut {
        0% { 
            opacity: 1; 
            transform: translateY(0px) scale(1);
            transform-origin: center center;
        }
        80% { 
            opacity: 1; 
            transform: translateY(0px) scale(1);
            transform-origin: center center;
        }
        85% {
            opacity: 0.9;
            transform: translateY(var(--banner-move-y, -25vh)) translateX(var(--banner-move-x, 0)) scale(0.8);
        }
        95% {
            opacity: 0.6;
            transform: translateY(var(--banner-move-y, -25vh)) translateX(var(--banner-move-x, 0)) scale(0.4);
        }
        100% { 
            opacity: 0; 
            pointer-events: none;
            transform: translateY(var(--banner-move-y, -25vh)) translateX(var(--banner-move-x, 0)) scale(0.15);
        }
    }
    
    @keyframes ec-flyerSplashToBanner {
        0% { 
            opacity: 1; 
            transform: translateY(0) scale(1);
        }
        20% {
            opacity: 0.9;
            transform: translateY(var(--banner-move-y, -25vh)) translateX(var(--banner-move-x, 0)) scale(0.8);
        }
        60% {
            opacity: 0.6;
            transform: translateY(var(--banner-move-y, -25vh)) translateX(var(--banner-move-x, 0)) scale(0.4);
        }
        100% { 
            opacity: 0; 
            pointer-events: none;
            transform: translateY(var(--banner-move-y, -25vh)) translateX(var(--banner-move-x, 0)) scale(0.15);
        }
    }
}

@media (max-width: 480px) {
    .ec-flyer-splash-container { padding: 10px; }
    .ec-flyer-main-title { font-size: 3.2rem; }
    .ec-flyer-subtitle { font-size: 1.6rem; }
    .ec-flyer-notice-container { gap: 8px; margin: 10px auto; flex-wrap: nowrap; }
    .ec-flyer-store-only { font-size: 1.2rem; padding: 5px 12px; margin: 0 3px; }
    .ec-flyer-subtitle-note { font-size: 1.2rem; padding: 5px 12px; margin: 0 3px; }
    .ec-flyer-product-icons { 
        display: grid; 
        grid-template-columns: repeat(4, 1fr); 
        gap: 8px; 
        max-width: 240px; 
        margin: 15px auto;
    }
    .ec-flyer-product-icon { width: 50px; height: 50px; }
    .ec-flyer-discount-section { padding: 15px 30px; gap: 12px; max-width: 420px; }
    .ec-flyer-discount-value { font-size: 3.8rem; }
    .ec-flyer-discount-label { font-size: 1.8rem; }
    .ec-flyer-discount-unit { font-size: 2.4rem; }
    .ec-flyer-day-label { width: 28px; height: 28px; font-size: 0.9rem; margin-left: 4px; }
    .ec-flyer-date-item { font-size: 1.6rem; padding: 8px 12px; }
    .ec-flyer-dates { gap: 8px; flex-wrap: nowrap; }
    .ec-flyer-separator { font-size: 1.5rem; }
    .ec-flyer-dates-container { padding: 12px; max-width: 340px; }
    .ec-flyer-duration-label { font-size: 1.6rem; padding: 6px 15px; }
    
    @keyframes ec-flyerSplashFadeOut {
        0% { 
            opacity: 1; 
            transform: translateY(0px) scale(1);
            transform-origin: center center;
        }
        80% { 
            opacity: 1; 
            transform: translateY(0px) scale(1);
            transform-origin: center center;
        }
        85% {
            opacity: 0.9;
            transform: translateY(var(--banner-move-y, -20vh)) translateX(var(--banner-move-x, 0)) scale(0.8);
        }
        95% {
            opacity: 0.6;
            transform: translateY(var(--banner-move-y, -20vh)) translateX(var(--banner-move-x, 0)) scale(0.4);
        }
        100% { 
            opacity: 0; 
            pointer-events: none;
            transform: translateY(var(--banner-move-y, -20vh)) translateX(var(--banner-move-x, 0)) scale(0.15);
        }
    }
    
    @keyframes ec-flyerSplashToBanner {
        0% { 
            opacity: 1; 
            transform: translateY(0) scale(1);
        }
        20% {
            opacity: 0.9;
            transform: translateY(var(--banner-move-y, -20vh)) translateX(var(--banner-move-x, 0)) scale(0.8);
        }
        60% {
            opacity: 0.6;
            transform: translateY(var(--banner-move-y, -20vh)) translateX(var(--banner-move-x, 0)) scale(0.4);
        }
        100% { 
            opacity: 0; 
            pointer-events: none;
            transform: translateY(var(--banner-move-y, -20vh)) translateX(var(--banner-move-x, 0)) scale(0.15);
        }
    }
}