/* 料金プランページスタイル - STYLE-GUIDE.md準拠 */

/* ======================================
   ページ固有のレイアウト
   ====================================== */

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bb-bg-primary, #fff);
    color: var(--bb-main-text-color, #333);
}

/* ======================================
   プランカードグリッド
   ====================================== */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.plan-card {
    background: var(--bb-bg-container, #fff);
    border: 2px solid var(--bb-gray-300, #dee2e6);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: var(--bb-main-text-color, #333);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--bb-accent-color, #ffd700);
}

.plan-card.recommended {
    border-color: var(--bb-accent-color, #ffd700);
    transform: scale(1.05);
    position: relative;
    background: linear-gradient(135deg, var(--bb-bg-container, #fff) 0%, var(--bb-accent-color-light, #fff8d6) 100%);
}

.plan-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bb-accent-color, #ffd700) 0%, #ffed4a 100%);
    color: var(--bb-main-text-color, #333);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ======================================
   プランヘッダー
   ====================================== */

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bb-gray-200, #e9ecef);
}

.plan-name {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bb-main-text-color, #333);
    text-transform: capitalize;
}

.plan-price {
    font-size: 2.8em;
    font-weight: 800;
    color: var(--bb-sub-color, #282800);
    line-height: 1;
}

.plan-price .period {
    font-size: 1.1em;
    color: var(--bb-gray-600, #495057);
    font-weight: 500;
    margin-left: 5px;
}

/* ======================================
   プラン機能
   ====================================== */

.plan-features {
    margin: 25px 0;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--bb-gray-200, #e9ecef);
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
    color: var(--bb-main-text-color, #333);
    font-size: 1em;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--bb-accent-color, #ffd700);
    font-weight: 800;
    font-size: 1.2em;
    width: 20px;
    height: 20px;
    background: var(--bb-sub-color, #282800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

.plan-features li:last-child {
    border-bottom: none;
}

.monthly-free small {
    color: var(--bb-danger);
}

.monthly-paid small {
    color: var(--bb-success);
}


/* ======================================
   比較テーブル
   ====================================== */

.pricing-info {
    margin-top: 60px;
}

.info-section {
    margin-bottom: 50px;
    background: var(--bb-bg-container, #fff);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--bb-main-text-color, #333);
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bb-accent-color, #ffd700);
    position: relative;
}

.info-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--bb-sub-color, #282800);
}

.comparison-table {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bb-bg-container, #fff);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--bb-gray-200, #e9ecef);
    color: var(--bb-main-text-color, #333);
}

.comparison-table th {
    background: var(--bb-bg-secondary, #f8f9fa);
    font-weight: 700;
    color: var(--bb-sub-color, #282800);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: var(--bb-accent-color-light, #fff8d6);
}

/* ======================================
   FAQセクション
   ====================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bb-bg-secondary, #f8f9fa);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--bb-accent-color, #ffd700);
    transition: all 0.3s ease;
    position: relative;
}

.faq-item:hover {
    transform: translateX(5px);
    background: var(--bb-accent-color-light, #fff8d6);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.faq-item h4 {
    margin: 0 0 12px 0;
    color: var(--bb-main-text-color, #333);
    font-size: 1.2em;
    font-weight: 600;
}

.faq-item p {
    margin: 0;
    color: var(--bb-gray-700, #343a40);
    line-height: 1.7;
    font-size: 1em;
}

/* ======================================
   お問い合わせセクション
   ====================================== */

.pricing-contact {
    background: linear-gradient(135deg, var(--bb-bg-secondary, #f8f9fa) 0%, var(--bb-accent-color-light, #fff8d6) 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-top: 50px;
    border: 1px solid var(--bb-accent-color, #ffd700);
    position: relative;
    overflow: hidden;
}

.pricing-contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-contact h3 {
    margin-bottom: 15px;
    color: var(--bb-main-text-color, #333);
    font-size: 1.6em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.pricing-contact p {
    color: var(--bb-gray-700, #343a40);
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.pricing-contact a {
    color: var(--bb-sub-color, #282800);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.pricing-contact a:hover {
    color: var(--bb-main-color, #333);
    border-bottom-color: var(--bb-accent-color, #ffd700);
}

/* ======================================
   レスポンシブ対応
   ====================================== */

@media (max-width: 968px) {
    .pricing-container {
        padding: 15px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .plan-card.recommended {
        transform: none;
    }

    .plan-card.recommended:hover {
        transform: translateY(-5px);
    }

    .info-section {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .pricing-container {
        padding: 15px;
    }

    .plan-card {
        padding: 25px;
    }

    .plan-price {
        font-size: 2.2em;
    }

    .plan-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .info-section h3 {
        font-size: 1.5em;
    }

    .comparison-table {
        font-size: 0.9em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }

    .pricing-contact {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .plan-card {
        padding: 20px;
    }

    .plan-price {
        font-size: 1.8em;
    }

    .plan-features li {
        padding: 10px 0;
        padding-left: 25px;
        font-size: 0.95em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 6px;
        font-size: 0.85em;
    }

    .faq-item {
        padding: 20px;
    }

    .pricing-contact {
        padding: 25px 15px;
    }
}