/* ==========================================
   メグリ キャッチー強化スタイル
   ========================================== */

/* ヒーローセクション - 循環図 */
.payforward-cycle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(127, 212, 184, 0.1) 0%, rgba(165, 216, 230, 0.1) 100%);
    border-radius: 20px;
    flex-wrap: wrap;
}

.cycle-item {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.cycle-item:nth-child(1) { animation-delay: 0.1s; }
.cycle-item:nth-child(3) { animation-delay: 0.2s; }
.cycle-item:nth-child(5) { animation-delay: 0.3s; }
.cycle-item:nth-child(7) { animation-delay: 0.4s; }

.cycle-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 15px rgba(127, 212, 184, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cycle-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(127, 212, 184, 0.5);
}

.cycle-icon i {
    font-size: 2rem;
    color: white;
}

.cycle-item p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.cycle-arrow {
    font-size: 1.5rem;
    color: var(--primary-green);
    animation: pulse 2s ease-in-out infinite;
}

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

/* 実績カウンターセクション */
.stats-counter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F5F2E8 0%, #FDFDFB 100%);
    position: relative;
    overflow: hidden;
}

.stats-counter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 212, 184, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.counter-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
}

.counter-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.counter-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.counter-icon i {
    font-size: 2rem;
    color: white;
}

.counter-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.counter-unit {
    font-size: 0.9rem;
    color: var(--text-light);
}

.stats-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.stats-note i {
    color: var(--primary-green);
    margin-right: 0.5rem;
}

.stats-note a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-green);
    transition: all 0.3s ease;
}

.stats-note a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ストーリーセクション */
.story-section {
    padding: 5rem 0;
    background: white;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: linear-gradient(135deg, #F5F2E8 0%, #FDFDFB 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-card.highlight {
    background: linear-gradient(135deg, rgba(127, 212, 184, 0.15) 0%, rgba(165, 216, 230, 0.15) 100%);
    border: 2px solid var(--primary-green);
}

.story-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-green);
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.story-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
}

.story-icon i {
    font-size: 2rem;
    color: white;
}

.story-arrow {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary-green);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.story-card h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
}

.story-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: center;
}

.story-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(127, 212, 184, 0.1) 0%, rgba(165, 216, 230, 0.1) 100%);
    border-radius: 20px;
}

.story-cta p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* レスポンシブ */
@media (max-width: 768px) {
    .payforward-cycle {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cycle-arrow {
        transform: rotate(90deg);
    }
    
    .cycle-icon {
        width: 70px;
        height: 70px;
    }
    
    .cycle-icon i {
        font-size: 1.8rem;
    }
    
    .stats-counter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .story-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .cycle-icon {
        width: 60px;
        height: 60px;
    }
    
    .cycle-icon i {
        font-size: 1.5rem;
    }
    
    .stats-counter-grid {
        grid-template-columns: 1fr;
    }
    
    .counter-number {
        font-size: 2rem;
    }
}
