/* ========================================
   料金体系更新用CSS - 3段階プラン & 年払いディスカウント
   ======================================== */

/* 3段階プラン用のグリッド調整 */
.pricing-tiers-three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

/* 税込み表記 */
.tier-tax-note {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
}

/* プラン特徴テキスト */
.tier-features {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tier-features p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* 年払いディスカウントバナー */
.yearly-discount-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    }
}

.yearly-discount-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.yearly-discount-icon i {
    font-size: 35px;
    color: white;
}

.yearly-discount-content {
    flex: 1;
}

.yearly-discount-content h4 {
    font-size: 22px;
    color: white;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yearly-discount-content h4 i {
    font-size: 20px;
}

.yearly-discount-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.7;
}

.yearly-discount-content strong {
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.tax-note-banner {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* 支払い方法切り替え */
.payment-type-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
}

.payment-type-option {
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-type-option input[type="radio"] {
    display: none;
}

.payment-type-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* STEAM Labo時は背景が白のままで文字色が白になるため、黒に強制 */
body.steam-system .payment-type-label {
    color: #333;
}

.payment-type-label i {
    font-size: 18px;
}

.payment-type-option input[type="radio"]:checked + .payment-type-label {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.payment-type-option:hover .payment-type-label {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.discount-tag {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 8px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: bold;
    border-radius: 8px;
    vertical-align: middle;
}

.payment-type-option input[type="radio"]:checked + .payment-type-label .discount-tag {
    background: #ffd700;
    color: #333;
}

/* シミュレーター結果の追加スタイル */
.result-discount {
    margin-top: 8px;
    font-size: 13px;
}

.result-savings {
    margin-top: 8px;
    font-size: 13px;
}

.result-item-secondary {
    opacity: 0.9;
}

.result-value-small {
    font-size: 24px !important;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .pricing-tiers-three {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .yearly-discount-banner {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .yearly-discount-icon {
        width: 60px;
        height: 60px;
    }

    .yearly-discount-icon i {
        font-size: 28px;
    }

    .yearly-discount-content h4 {
        font-size: 18px;
        justify-content: center;
    }

    .yearly-discount-content p {
        font-size: 14px;
    }

    .payment-type-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .payment-type-label {
        justify-content: center;
    }

    .simulator-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pricing-tier {
        padding: 20px 12px;
    }

    .tier-range {
        font-size: 16px;
    }

    .tier-amount {
        font-size: 28px;
    }

    .yearly-discount-banner {
        padding: 20px 15px;
    }

    .yearly-discount-content h4 {
        font-size: 16px;
    }

    .yearly-discount-content p {
        font-size: 13px;
    }

    .payment-type-label {
        padding: 10px 20px;
        font-size: 14px;
    }
}

