/**
 * 料金プランセクション スタイル
 * css/components/pricing.css
 */

/* ================================
   料金プランセクション
================================ */
.pricing-section {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* 料金グリッド */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

/* 料金カード */
.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* おすすめプラン */
.pricing-card.featured {
    border: 2px solid var(--accent);
}

.pricing-card.featured::before {
    content: 'おすすめ';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    border-radius: 20px;
    z-index: 1;
}

/* 料金画像 */
.pricing-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.pricing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pricing-card:hover .pricing-image img {
    transform: scale(1.05);
}

/* 料金画像オーバーレイ */
.pricing-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

/* 料金コンテンツ */
.pricing-content {
    padding: 32px;
}

.pricing-content h3 {
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* 価格表示 */
.price {
    font-size: 28px;
    font-weight: var(--font-weight-light);
    color: var(--accent);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price::before {
    content: '￥';
    font-size: 18px;
    opacity: 0.7;
}

/* 機能リスト */
.price-features {
    list-style: none;
    margin-bottom: 24px;
    padding: 0;
}

.price-features li {
    font-size: 14px;
    font-weight: var(--font-weight-light);
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 24px;
}

.price-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: var(--font-weight-medium);
}

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

/* 詳細リンク */
.pricing-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pricing-link:hover {
    color: var(--accent-hover);
    gap: 8px;
}

.pricing-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.pricing-link:hover::after {
    transform: translateX(4px);
}

/* ================================
   アニメーション
================================ */
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
}

.pricing-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ================================
   レスポンシブ対応
================================ */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-card.featured::before {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .pricing-image {
        height: 180px;
    }
    
    .pricing-content {
        padding: 24px;
    }
    
    .pricing-content h3 {
        font-size: 18px;
    }
    
    .price {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .price-features li {
        font-size: 13px;
        padding: 6px 0 6px 20px;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        gap: 20px;
    }
    
    .pricing-image {
        height: 150px;
    }
    
    .pricing-content {
        padding: 20px;
    }
    
    .pricing-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .price {
        font-size: 22px;
    }
}

/* ================================
   特殊効果
================================ */
/* ホバー時の光沢効果 */
.pricing-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.pricing-card:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* カードの浮遊効果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.pricing-card.featured {
    animation: float 3s ease-in-out infinite;
}

.pricing-card.featured:hover {
    animation-play-state: paused;
}