/* cancel-page.css - 解約ページ専用スタイル
 * 有料プランの解約ガイド用
 * 作成日: 2025-12-29
 */

/* ============================================
   Page Header (解約ページ用)
   ============================================ */
.cancel-page .page-header {
    text-align: center !important;
    padding: 40px 20px !important;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    border-radius: 12px !important;
    margin-bottom: 30px !important;
    box-shadow: none !important;
}

.cancel-page .page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #991b1b !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.cancel-page .page-header h1 i {
    color: #dc2626;
}

.cancel-page .page-header p {
    font-size: 1.2rem;
    color: #7f1d1d !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
}

/* ============================================
   Container
   ============================================ */
.cancel-page .container {
    max-width: 900px;
    margin: 40px auto;
    background: var(--color-bg-secondary);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.cancel-page .content {
    padding: 40px 30px;
}

/* ============================================
   Intro Box
   ============================================ */
.intro {
    background: #fee2e2;
    border-left: 4px solid var(--color-error-dark);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.intro h2 {
    color: #991b1b;
    font-size: 20px;
    margin-bottom: 10px;
}

.intro p {
    color: #b91c1c;
    line-height: 1.6;
}

/* ============================================
   Important Notice
   ============================================ */
.important-notice {
    background: #fef3c7;
    border: 2px solid var(--color-warning-dark);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
}

.important-notice h3 {
    color: var(--color-warning-dark);
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.important-notice ul {
    color: #78350f;
    line-height: 1.8;
    margin-left: 20px;
}

.important-notice li {
    margin-bottom: 8px;
}

/* ============================================
   Section
   ============================================ */
.cancel-page .section {
    margin-bottom: 40px;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.cancel-page .section h2 {
    color: #1f2937;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-error-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   Step (解約ページ用)
   ============================================ */
.cancel-page .step {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid var(--color-error-dark);
    position: static;
    padding-left: 20px;
}

.cancel-page .step:before {
    display: none;
}

.cancel-page .step:after {
    display: none;
}

.step-number {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--color-error-dark) 0%, #dc2626 100%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    margin-right: 15px;
    font-size: 18px;
}

.step-title {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-content {
    margin-left: 50px;
    color: #4b5563;
    line-height: 1.8;
}

.step-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.step-content li {
    margin-bottom: 8px;
}

.step-content strong {
    color: #1f2937;
}

.step-intro {
    margin-bottom: 15px;
    color: #1f2937;
    font-weight: 500;
}

.step-subtitle {
    margin-bottom: 15px;
    color: #4b5563;
}

/* ============================================
   Note, Warning, Tip Boxes
   ============================================ */
.cancel-page .note {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.cancel-page .note strong {
    color: #1e40af;
    display: block;
    margin-bottom: 8px;
}

.cancel-page .note p {
    color: #1e3a8a;
    line-height: 1.6;
}

.cancel-page .warning {
    background: #fee2e2;
    border-left: 4px solid var(--color-error-dark);
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.cancel-page .warning strong {
    color: #991b1b;
    display: block;
    margin-bottom: 8px;
}

.cancel-page .warning p {
    color: #b91c1c;
    line-height: 1.6;
}

.tip {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
}

.tip strong {
    color: #065f46;
    display: block;
    margin-bottom: 8px;
}

.tip p {
    color: #047857;
    line-height: 1.6;
}

/* ============================================
   Comparison Table
   ============================================ */
.cancel-page .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cancel-page .comparison-table th {
    background: var(--color-btn-primary);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.cancel-page .comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-btn-cancel);
    color: #4b5563;
}

.cancel-page .comparison-table tr:last-child td {
    border-bottom: none;
}

.cancel-page .comparison-table tr:nth-child(even) {
    background: #f9fafb;
}

/* ============================================
   FAQ
   ============================================ */
.cancel-page .faq {
    margin-top: 40px;
}

.cancel-page .faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--color-btn-cancel);
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.cancel-page .faq-question {
    background: #f3f4f6;
    padding: 15px 20px;
    font-weight: bold;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cancel-page .faq-question:hover {
    background: var(--color-btn-cancel);
}

.cancel-page .faq-answer {
    padding: 20px;
    color: #4b5563;
    line-height: 1.8;
    background: var(--color-bg-secondary);
}

.cancel-page .faq-answer ul {
    margin: 10px 0;
    padding-left: 20px;
}

.cancel-page .faq-answer li {
    margin-bottom: 8px;
}

/* ============================================
   Screenshot
   ============================================ */
.screenshot-container {
    margin: 20px 0;
    text-align: center;
}

.screenshot-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid var(--color-btn-cancel);
}

.screenshot-container .caption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--color-text-muted);
    font-style: italic;
}

.screenshot-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, var(--color-btn-cancel) 100%);
    border: 2px dashed var(--color-btn-disabled);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.screenshot-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--color-btn-disabled);
}

.screenshot-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* ============================================
   Stripe Mockup
   ============================================ */
.stripe-mockup {
    background: var(--color-bg-base);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--color-btn-cancel);
}

.stripe-header {
    background: linear-gradient(135deg, #635bff 0%, #7c3aed 100%);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 16px;
}

.stripe-header i {
    margin-right: 10px;
}

.stripe-content {
    padding: 20px;
}

.stripe-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-btn-cancel);
}

.stripe-section:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.stripe-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.stripe-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 500;
}

.stripe-button {
    display: block;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.stripe-button.cancel {
    background: var(--color-error-dark);
    color: white;
}

.stripe-button.cancel:hover {
    background: #dc2626;
}

/* ============================================
   Cancel Options
   ============================================ */
.cancel-option {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cancel-option h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.cancel-option ul {
    margin-left: 20px;
}

.cancel-option.recommended {
    background: #f3f4f6;
}

.cancel-option.recommended h4 {
    color: #1f2937;
}

.cancel-option.recommended ul {
    color: #4b5563;
}

.cancel-option.immediate {
    background: #fee2e2;
}

.cancel-option.immediate h4 {
    color: #991b1b;
}

.cancel-option.immediate ul {
    color: #b91c1c;
}

/* ============================================
   Contact Box
   ============================================ */
.cancel-page .contact-box {
    background: var(--color-btn-primary);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cancel-page .contact-box h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.cancel-page .contact-box p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.cancel-page .contact-box a {
    display: inline-block;
    background: var(--color-bg-secondary);
    color: var(--color-btn-primary);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}

.cancel-page .contact-box a:hover {
    transform: translateY(-2px);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .cancel-page .page-header h1 {
        font-size: 1.8rem;
    }

    .cancel-page .page-header p {
        font-size: 1rem;
    }

    .cancel-page .content {
        padding: 20px 15px;
    }

    .step-content {
        margin-left: 0;
    }

    .cancel-page .comparison-table {
        font-size: 14px;
    }

    .cancel-page .comparison-table th,
    .cancel-page .comparison-table td {
        padding: 10px;
    }

    .cancel-page .container {
        max-width: 100% !important;
    }
}

/* ============================================
   Dark Mode
   ============================================ */
@media (prefers-color-scheme: dark) {
    .cancel-page .page-header {
        background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%) !important;
    }

    .cancel-page .page-header h1 {
        color: #fecaca !important;
    }

    .cancel-page .page-header p {
        color: #fca5a5 !important;
    }

    .intro {
        background: #450a0a;
        border-left-color: #f87171;
    }

    .intro h2 {
        color: #fecaca;
    }

    .intro p {
        color: #fca5a5;
    }

    .important-notice {
        background: #451a03;
        border-color: #fbbf24;
    }

    .important-notice h3 {
        color: #fcd34d;
    }

    .important-notice ul {
        color: #fde68a;
    }

    .cancel-page .section h2 {
        color: #e5e7eb;
        border-bottom-color: #f87171;
    }

    .cancel-page .step {
        background: #1f2937;
    }

    .step-title {
        color: #e5e7eb;
    }

    .step-content {
        color: #9ca3af;
    }

    .step-content strong {
        color: #e5e7eb;
    }

    .cancel-page .note {
        background: #1e3a5f;
        border-left-color: #5ba3f5;
    }

    .cancel-page .note strong {
        color: #a8d0ff;
    }

    .cancel-page .note p {
        color: #93c5fd;
    }

    .cancel-page .warning {
        background: #450a0a;
        border-left-color: #f87171;
    }

    .cancel-page .warning strong {
        color: #fecaca;
    }

    .cancel-page .warning p {
        color: #fca5a5;
    }

    .tip {
        background: #1c4532;
        border-left-color: #48bb78;
    }

    .tip strong {
        color: #9ae6b4;
    }

    .tip p {
        color: #86efac;
    }

    .cancel-page .comparison-table {
        background: #1f2937;
    }

    .cancel-page .comparison-table th {
        background: #374151;
    }

    .cancel-page .comparison-table td {
        border-bottom-color: #374151;
        color: #9ca3af;
    }

    .cancel-page .comparison-table tr:nth-child(even) {
        background: #111827;
    }

    .cancel-page .faq-item {
        border-color: #374151;
    }

    .cancel-page .faq-question {
        background: #374151;
        color: #e5e7eb;
    }

    .cancel-page .faq-question:hover {
        background: #4b5563;
    }

    .cancel-page .faq-answer {
        background: #1f2937;
        color: #9ca3af;
    }

    .cancel-option.recommended {
        background: #1f2937;
    }

    .cancel-option.recommended h4 {
        color: #e5e7eb;
    }

    .cancel-option.recommended ul {
        color: #9ca3af;
    }

    .cancel-option.immediate {
        background: #450a0a;
    }

    .stripe-mockup {
        background: #1f2937;
        border-color: #374151;
    }

    .stripe-section {
        border-bottom-color: #374151;
    }

    .stripe-value {
        color: #e5e7eb;
    }
}

[data-theme="dark"] .cancel-page .page-header {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%) !important;
}

[data-theme="dark"] .cancel-page .page-header h1 {
    color: #fecaca !important;
}

[data-theme="dark"] .intro {
    background: #450a0a;
}

[data-theme="dark"] .important-notice {
    background: #451a03;
}

[data-theme="dark"] .cancel-page .step {
    background: #1f2937;
}

[data-theme="dark"] .cancel-page .note {
    background: #1e3a5f;
}

[data-theme="dark"] .cancel-page .warning {
    background: #450a0a;
}

[data-theme="dark"] .tip {
    background: #1c4532;
}
