/* ==========================================================================
   コンポーネント - カード、バッジ、ステップなど
   ========================================================================== */

/* ============================================
   CSS変数定義
   ============================================ */
:root {
    /* カラーパレット */
    --color-main: #F6A7C1;
    --color-sub: #222222;
    --color-aux1: #666666;
    --color-aux2: #E85C88;
    --color-aux3: #FFF6F9;
    --color-border: #DDDDDD;
    --color-bg: #FAFAFA;
    
    /* 状態カラー */
    --color-error: #ef4444;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    --color-purple: #7c3aed;
    
    /* シャドウ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* 角丸 */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* スペーシング */
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
}

/* ============================================
   カード基本スタイル
   ============================================ */

/* カード共通ベース */
.card-base {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

/* 問題提起カード */
/*.problem-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-error);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.problem-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(239, 68, 68, 0.05) 50%);
    pointer-events: none;
}*/

/* 解決策カード */
/*.solution-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-success);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(16, 185, 129, 0.05) 50%);
    pointer-events: none;
}*/

/* クリエイターカード */
.creator-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    /*border-top: 4px solid var(--color-purple);*/
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* お客様の声カード */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-main);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* ============================================
   バッジ
   ============================================ */

/* 基本バッジ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

/* 保証バッジ */
.guarantee-badge {
    background: white;
    border: 2px solid var(--color-success);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.guarantee-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guarantee-badge:hover::before {
    opacity: 1;
}

.guarantee-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
    border-color: var(--color-success);
}

/* 人気バッジ */
.popular-badge {
    background: linear-gradient(135deg, var(--color-warning) 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.popular-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 割引バッジ */
.discount-badge {
    background: var(--color-aux2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* ベータ枠バッジ */
.beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-aux2) 100%);
    box-shadow: 0 6px 14px rgba(232, 92, 136, 0.18);
}

.beta-badge--outline {
    background: transparent;
    color: var(--color-aux2);
    border: 2px solid var(--color-main);
    box-shadow: none;
}

/* ベータ枠の残り表示（小バッジ） */
.beta-remaining {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    background: white;
    border: 1px solid rgba(246, 167, 193, 0.7);
    color: var(--color-aux2);
    line-height: 1;
}

.beta-remaining #betaRemaining,
.beta-remaining .beta-remaining-number {
    font-variant-numeric: tabular-nums;
}

/* 価格表示（通常→ベータ価格） */
.price-old {
    font-weight: 800;
    color: var(--color-aux1);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(232, 92, 136, 0.6);
    margin-bottom: 0.25rem;
}

/* ============================================
   プロセスステップ
   ============================================ */

.process-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 3rem;
    bottom: -2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-main), transparent);
    opacity: 0.5;
}

.process-step:last-child::before {
    display: none;
}

.process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-aux2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(246, 167, 193, 0.3);
    z-index: 1;
}

/* アクティブステップ */
.process-step.active .process-number {
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(246, 167, 193, 0.7);
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: var(--spacing-md) 0;
}

.faq-item:last-child {
    border-bottom: none;
}

/* アコーディオン用のスタイルを追加 */
.faq-question {
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    opacity: 0.8;
}

.faq-answer {
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-answer:not(.hidden) {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* ============================================
   アバター
   ============================================ */

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-aux2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.avatar-placeholder::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-main), var(--color-aux2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-placeholder:hover::after {
    opacity: 0.5;
}

/* ============================================
   価格計算機
   ============================================ */

.price-calculator {
    background: white;
    border: 2px solid var(--color-main);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
}

.price-calculator::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-main), var(--color-aux2));
    z-index: -1;
    opacity: 0.1;
}

/* スクロールバーカスタマイズ */
.price-calculator::-webkit-scrollbar {
    width: 6px;
}

.price-calculator::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.price-calculator::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-main), var(--color-aux2));
    border-radius: 3px;
    transition: all 0.3s ease;
}

.price-calculator::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-aux2), var(--color-main));
}

/* ============================================
   チェックボックスカスタマイズ
   ============================================ */

.checkbox-item {
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.checkbox-item:hover {
    background-color: var(--color-aux3);
    transform: translateX(4px);
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--color-main);
}

.checkbox-item input[type="checkbox"]:checked {
    animation: checkPulse 0.3s ease;
}

@keyframes checkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   ボタンコンポーネント
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--color-main) 0%, var(--color-aux2) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(246, 167, 193, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(246, 167, 193, 0.4);
}

/* ============================================
   タグ
   ============================================ */

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-aux3);
    color: var(--color-sub);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    margin: 0.25rem;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--color-main);
    color: white;
    transform: scale(1.05);
}

/* ============================================
   通知・アラート
   ============================================ */

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    position: relative;
    animation: slideInRight 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--color-success);
    color: #065f46;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--color-error);
    color: #991b1b;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--color-warning);
    color: #92400e;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   ステップ番号（制作フロー）
   ============================================ */

.step-number {
    background: #E85C88;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* ============================================
   レスポンシブ調整
   ============================================ */

@media (max-width: 768px) {
    .process-step {
        padding-left: 3rem;
    }
    
    .card-base,
    .problem-card,
    .solution-card,
    .creator-card {
        padding: var(--spacing-md);
    }
    
    .price-calculator {
        position: static !important;
        margin-top: 2rem;
    }
}