/* 料金プランページのスタイル */
.pricing-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    position: relative;
    overflow: hidden;
}

/* 背景アニメーション */
.pricing-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254, 197, 187, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.pricing-header {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-link {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.back-link:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.pricing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.pricing-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-intro h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.pricing-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* プランカード */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

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

.pricing-card.recommended {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.08); }
}

.recommended-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: badge-bounce 1s ease-in-out;
    box-shadow: 0 5px 15px rgba(254, 197, 187, 0.4);
}

@keyframes badge-bounce {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); opacity: 1; }
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
}

/* 機能リスト */
.plan-features {
    margin-bottom: 2rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

.plan-features li:nth-child(1) { animation-delay: 0.1s; }
.plan-features li:nth-child(2) { animation-delay: 0.2s; }
.plan-features li:nth-child(3) { animation-delay: 0.3s; }
.plan-features li:nth-child(4) { animation-delay: 0.4s; }
.plan-features li:nth-child(5) { animation-delay: 0.5s; }
.plan-features li:nth-child(6) { animation-delay: 0.6s; }
.plan-features li:nth-child(7) { animation-delay: 0.7s; }
.plan-features li:nth-child(8) { animation-delay: 0.8s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.plan-features li.disabled {
    opacity: 0.5;
}

.plan-features li.disabled i {
    color: var(--text-light);
}

.plan-features strong {
    color: var(--primary-color);
}

/* アクションボタン */
.plan-action {
    text-align: center;
}

.btn-plan {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-plan.current {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.btn-plan.premium {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 5px 20px rgba(254, 197, 187, 0.4);
}

.btn-plan.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 197, 187, 0.5);
}

.btn-plan.premium:active {
    transform: translateY(0);
}

/* ローディングアニメーション */
.btn-plan .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* FAQ */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.pricing-faq h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.faq-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.faq-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 特別オファーセクション */
.special-offer {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.special-offer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.special-offer h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.special-offer p {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.recommended {
        transform: none;
        animation: none;
    }
    
    .pricing-intro h2 {
        font-size: 2rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
    
    .special-offer {
        margin: 2rem 0;
        padding: 1.5rem;
    }
}