
/* ========================================
   サブスクリプション型料金プランページ
   ======================================== */

/* ① Hero Section */
.pricing-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.pricing-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.pricing-hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.hero-benefit-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero-benefit-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.hero-benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-benefit-item p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.hero-cta {
    position: relative;
    z-index: 1;
}

.button-hero-primary {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.button-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* ② プラン比較セクション */
.pricing-plans-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.section-title-centered {
    text-align: center;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.section-subtitle-centered {
    text-align: center;
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 4rem;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem; /* バッジ用のスペースを確保 */
}

/* プラン別カラースキーム */
.light-plan {
    --plan-color: #FFD93D;
    --plan-gradient: linear-gradient(135deg, #FFD93D 0%, #FFAA00 100%);
}

.standard-plan {
    --plan-color: #00B4D8;
    --plan-gradient: linear-gradient(135deg, #00B4D8 0%, #0077b6 100%);
}

.premium-plan {
    --plan-color: #9D4EDD;
    --plan-gradient: linear-gradient(135deg, #9D4EDD 0%, #7209B7 100%);
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible; /* バッジの見切れを防ぐ */
}

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

.pricing-card.recommended {
    transform: scale(1.08);
    box-shadow:
        0 8px 32px rgba(0, 123, 255, 0.3),
        0 16px 64px rgba(0, 123, 255, 0.2),
        0 0 80px rgba(0, 123, 255, 0.15);
    border: 2px solid rgba(0, 123, 255, 0.5);
}

.pricing-card.recommended:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -8px; /* -15px → -8pxに変更（見切れを防ぐ） */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F72585 0%, #ff4d94 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.4);
    animation: pulse 2s ease-in-out infinite;
    white-space: nowrap;
    z-index: 10;
}

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

.pricing-card-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(248,249,250,0.5) 0%, transparent 100%);
}

.plan-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--plan-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-color-dark);
}

.plan-description {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.pricing-card-body {
    padding: 0 2rem 2.5rem;
}

.price-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color-dark);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: #6c757d;
}

.price-note {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.price-total {
    background: linear-gradient(135deg, rgba(0,180,216,0.1) 0%, rgba(0,119,182,0.15) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.price-total-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0077b6;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-total-value {
    font-size: 2.75rem;
    font-weight: 900;
    color: #0077b6;
    line-height: 1;
}

.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
}

.plan-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.plan-features-list i {
    color: var(--accent-color);
    font-size: 1.125rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.button-plan {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--plan-gradient);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.button-plan:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.button-plan-primary {
    background: linear-gradient(135deg, #00B4D8 0%, #0077b6 100%);
    box-shadow: 0 6px 20px rgba(0,180,216,0.3);
}

.button-plan-primary:hover {
    box-shadow: 0 8px 25px rgba(0,180,216,0.4);
}

/* ③ プラン詳細比較表 */
.plan-comparison-section {
    padding: 6rem 2rem;
    background: white;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin: 0 auto;
    max-width: 1200px;
}

.plan-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.plan-comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.plan-comparison-table th {
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.plan-comparison-table th:first-child {
    text-align: left;
}

.plan-comparison-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.plan-comparison-table tbody tr:last-child {
    border-bottom: none;
}

.plan-comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.plan-comparison-table td.feature-name {
    font-weight: 600;
    text-align: left;
    color: var(--text-color-dark);
}

.plan-comparison-table td.highlight {
    background: rgba(0,180,216,0.05);
    font-weight: 600;
    color: #0077b6;
}

.check-icon {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.cross-icon {
    color: #dc3545;
    font-size: 1.25rem;
}

/* ④ サブスク型のメリット */
.subscription-benefits-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.benefit-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* 料金シミュレーション */
.pricing-simulation {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.pricing-simulation h3 {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color-dark);
}

.simulation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.simulation-item {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid #e9ecef;
}

.simulation-period {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0077b6;
    margin-bottom: 1rem;
}

.simulation-formula {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.simulation-example {
    font-size: 1rem;
    color: var(--text-color-dark);
}

.simulation-example strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0077b6;
}

/* ⑤ Nexleteの強み */
.nexlete-strengths-section {
    padding: 6rem 2rem;
    background: white;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.strength-card {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.strength-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102,126,234,0.2);
}

.strength-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.strength-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.strength-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* ⑥ 利用の流れ */
.flow-section {
    padding: 6rem 2rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.flow-step {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: #667eea;
}

.flow-step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
}

.flow-step p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.5rem;
}

/* ⑦ FAQ・安心材料 */
.faq-section {
    padding: 6rem 2rem;
    background: white;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    color: var(--text-color-dark);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.2);
}

.trust-badge i {
    color: #667eea;
    font-size: 1.25rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.faq-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.faq-question i {
    color: #007bff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.faq-answer p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ⑧ 最終CTA */
.final-cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.final-cta-content > p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.cta-feature i {
    color: #28a745;
    font-size: 1.25rem;
}

.button-cta-large {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1.25rem 3.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.button-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.button-cta-large i {
    margin-right: 0.5rem;
}

.cta-note {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* ========================================
   レスポンシブ対応
   ======================================== */

/* タブレット (1024px以下) */
@media (max-width: 1024px) {
    .pricing-cards-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .pricing-card.recommended {
        transform: scale(1);
        order: -1;
    }
    
    .pricing-card.recommended:hover {
        transform: translateY(-10px);
    }
    
    .flow-steps {
        grid-template-columns: 1fr;
    }
    
    .flow-arrow {
        display: none;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
    }
}

/* モバイル (768px以下) */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 4rem 1.5rem;
    }
    
    .pricing-hero-title {
        font-size: 2rem;
    }
    
    .pricing-hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title-centered {
        font-size: 2rem;
    }
    
    .pricing-plans-section,
    .plan-comparison-section,
    .subscription-benefits-section,
    .nexlete-strengths-section,
    .flow-section,
    .faq-section,
    .final-cta-section {
        padding: 4rem 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .simulation-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table-wrapper {
        overflow-x: auto;
    }
    
    .plan-comparison-table {
        font-size: 0.875rem;
    }
    
    .plan-comparison-table th,
    .plan-comparison-table td {
        padding: 1rem 0.5rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .final-cta-content h2 {
        font-size: 1.75rem;
    }
    
    .button-cta-large {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* スクロール時のフェードインアニメーション（オプション） */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}