/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #383838;
    background: #fff;
    overflow-x: hidden;
}

h3 { font-size: 16px; font-weight: bold; }
p { font-size: 14px; }

/* Animations */
@keyframes pop-in {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.fadeIn { animation: fadeIn 0.8s ease-in; }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

/* KV Wrapper */
.kv-wrapper {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #9cc5f2;
    background-image: url('images/sp.png'); /* スマホ版をデフォルトに */
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.kv-fg {
    width: 65%;
    max-width: 500px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 10px 20px rgba(246, 184, 10, 0.3));
    animation: pop-in 0.8s ease-out forwards, floating-main 3s ease-in-out infinite alternate;
}

/* Decorative Items */
.deco-item {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: pop-in 0.8s 0.3s ease-out forwards;
}

.deco1 { width: 15%; top: 10%; left: 5%; animation-delay: 0.5s; animation-name: pop-in, floating-sub; animation-duration: 0.8s, 4s; animation-iteration-count: 1, infinite; }
.deco2 { width: 12%; top: 15%; right: 8%; animation-delay: 0.7s; animation-name: pop-in, floating-sub; animation-duration: 0.8s, 5s; animation-iteration-count: 1, infinite; }
.deco3 { width: 10%; bottom: 15%; left: 10%; animation-delay: 0.9s; animation-name: pop-in, floating-sub; animation-duration: 0.8s, 3.5s; animation-iteration-count: 1, infinite; }
.deco4 { width: 14%; bottom: 10%; right: 5%; animation-delay: 1.1s; animation-name: pop-in, floating-sub; animation-duration: 0.8s, 4.5s; animation-iteration-count: 1, infinite; }

@keyframes floating-main {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}

@keyframes floating-sub {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-10px) rotate(5deg); }
}

canvas#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Countdown and Period Blocks */
.campaign-period-banner {
    background: #ffecb3;
    color: #f64733;
    padding: 10px;
    text-align: center;
    font-weight: 900;
    font-size: 14px;
    border-bottom: 2px solid #f64733;
    letter-spacing: 0.05em;
}

.point1 {
    background: #f64733;
    padding: 20px 10px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* 警告ストライプ背景 */
.point1::before, .point1::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        #f6b80a,
        #f6b80a 10px,
        #333 10px,
        #333 20px
    );
}
.point1::before { top: 0; }
.point1::after { bottom: 0; }

.countdown-label {
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    font-family: 'Courier New', Courier, monospace; /* デジタル感 */
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.time-unit label {
    font-size: 10px;
    margin-top: 4px;
    font-family: 'Zen Maru Gothic', sans-serif;
}

.time-separator {
    font-size: 24px;
    font-weight: 900;
    opacity: 0.7;
    animation: blink 1s infinite;
}

.urgent-sec span {
    color: #f6b80a; /* 秒数だけ色を変えて目立たせる */
}

/* 鼓動アニメーション */
.urgent-pulse {
    animation: urgent-beat 1.5s infinite ease-in-out;
}

@keyframes urgent-beat {
    0% { transform: scale(1); background-color: #f64733; }
    50% { transform: scale(1.01); background-color: #d32f2f; }
    100% { transform: scale(1); background-color: #f64733; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Sections */
.area1 {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
}

.area2 {
    width: 100%;
    padding: 40px 5%;
    background-color: #cbe1f4;
    margin: 30px 0;
}

.midashi {
    text-align: center;
    background: #f6b80a;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.campaign-intro {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #515151;
    font-weight: 700;
    font-size: 14px;
}

.intro-img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    display: block;
}

/* Benefits */
.benefits-relative {
    position: relative;
    padding: 0 10px;
}

.poporo-benefit {
    position: absolute;
    width: 80px;
    top: -10px;
    right: -10px;
    z-index: 5;
    animation: floating-sub 3s infinite alternate ease-in-out;
}

.benefits-container {
    display: grid;
    gap: 15px;
}

.benefit-card {
    background: #fffdf0;
    border: 2px solid #f6b80a;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden; /* Shine effect visibility */
    box-shadow: 0 4px 15px rgba(246, 184, 10, 0.2);
}

/* Shine Effect (Sweeping light) */
.shine-effect::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: shine-sweep 4s infinite;
}

@keyframes shine-sweep {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* Pulse Effect for Reward 2 */
.pulse-effect {
    border: 3px solid #f6b80a;
    background: linear-gradient(135deg, #fffdf0 0%, #fff9e6 100%);
    animation: card-pulse 2s infinite ease-in-out;
}

@keyframes card-pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(246, 184, 10, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 8px 25px rgba(246, 184, 10, 0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(246, 184, 10, 0.2); }
}

.benefit-label {
    background: linear-gradient(90deg, #f6b80a, #ff9800);
    color: #fff;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.benefit-text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.benefit-text b {
    color: #f64733;
    font-size: 1.2em;
}

.campaign-steps {
    text-align: center;
    background: #fffdf0;
    border: 2px dashed #f6b80a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-weight: bold;
    color: #515151;
}

.campaign-steps p {
    font-size: 16px;
    margin: 0;
}

.campaign-steps .arrow {
    font-size: 24px;
    color: #f64733;
    margin: 10px 0;
}

/* Ad Cards */
.flex2 {
    padding-top: 10px;
    padding-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.card {
    width: calc((100% - 30px) / 3);
    background-color: #fff;
    border-radius: 12px;
    padding: 15px 10px 35px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card:active {
    transform: scale(0.95);
}

.card a {
    text-decoration: none;
    display: block;
    height: 100%;
    color: inherit;
}
.card img { 
    width: 100%; 
    height: 110px; 
    object-fit: contain; 
    border-radius: 10px; 
    margin-bottom: 10px;
}
.card .text { 
    font-size: 13px; 
    font-weight: 700; 
    color: #333; 
    margin: 10px 0 5px; 
    line-height: 1.3;
}
.card .text_2 { 
    font-size: 10px; 
    font-weight: 500; 
    color: #666; 
    line-height: 1.4; 
    margin-bottom: 20px;
}
.pt {
    width: 100%;
    font-size: 18px;
    color: #f64733;
    text-align: center;
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    left: 0;
}

/* CTA */
.cta-container { text-align: center; margin: 40px 0; }
.img-btn img {
    width: 85%;
    max-width: 450px;
    transition: transform 0.2s;
}
.img-btn:hover img { transform: scale(1.05); }

/* Details & Disclaimer */
.campaign-details article { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.disclaimer { 
    background: #f9f9f9; 
    padding: 30px 5%; 
    margin-top: 50px; 
    line-height: 1.8;
}
.disclaimer-text p {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    text-align: left;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 20px;
    background: #f6b80a;
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

footer {
    text-align: center;
    padding: 30px;
    background: #333;
    color: #fff;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 767px) {
    .card { 
        width: calc((100% - 15px) / 2); /* スマホは2列 */
    }
    .card:last-child {
        width: calc((100% - 15px) / 2); /* 3枚目が最後なら左に寄るが、justify-content: centerで中央に */
    }
    .flex2 {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .countdown { font-size: 26px; }
    .kv-wrapper { 
        min-height: 75vh; 
        background-image: url('images/bg.png'); /* デスクトップ版 */
    }
}
