/* static/css/pricing.css */

/* --- Header Section (Pricing固有のレイアウト) --- */
.pricing-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 60px 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.logo-area {
    flex-shrink: 0;
}
.header-logo {
    height: 120px;
    width: auto;
    margin-bottom: 0;
}
.header-content {
    flex-grow: 1;
    max-width: 800px;
}

/* Pricingではタイトルを大きくするオーバーライド */
.pricing-header .hero-title {
    font-size: 2.75rem;
}

/* --- Notification Deck --- */
.notification-deck {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-card:hover {
    background: #fff;
    border-color: var(--ogai-teal);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.info-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.info-card-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ogai-dark-green);
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.info-card-btn:hover {
    border-color: var(--ogai-teal);
    color: var(--ogai-teal);
    background: #f0fdfa;
}

/* --- Toggle Layout --- */
.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.discount-badge {
    background: #ecfdf5;
    color: var(--ogai-dark-green);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
    font-weight: 700;
}

/* --- Pricing Grid --- */
.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    justify-content: center;
}

/* --- Plan Card --- */
.plan-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    max-width: 340px;
    width: 100%;
    margin: 0 auto;
}
.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #e5e7eb;
}
.plan-card.recommended {
    border: 2px solid var(--ogai-teal);
    box-shadow: var(--shadow-lg);
}
.popular-badge {
    position: absolute;
    top: -14px;
    right: 20px;
    background: var(--ogai-gradient);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 99px;
    box-shadow: var(--shadow-sm);
}
.card-content {
    margin-bottom: 2rem;
    text-align: center;
}
.plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.plan-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Price Display */
.price-area {
    margin-bottom: 1rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.price-view {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.original-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.original-price-val {
    font-size: 1rem;
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 500;
}
.launch-badge {
    font-size: 0.65rem;
    background-color: #fee2e2;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.current-price-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
}
.currency {
    font-size: 1.75rem;
    font-weight: 600;
    margin-right: 4px;
    color: var(--text-primary);
}
.price-val {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    font-family: "Inter", sans-serif;
    color: var(--text-primary);
}
.period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 6px;
    font-weight: 500;
}

/* Simple Specs */
.simple-specs {
    margin-bottom: 1rem;
    text-align: left;
    padding: 0 0.5rem;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.spec-label {
    color: var(--text-secondary);
    font-weight: 500;
}
.spec-value {
    color: var(--text-primary);
    font-weight: 700;
}
.spec-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: -0.25rem;
}

/* Footer Notes */
.pricing-footer-notes {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: left;
}
.pricing-footer-notes p {
    margin-bottom: 0.5rem;
    text-indent: -1em;
    padding-left: 1em;
}

/* Modal Layouts (Pricing Specific) */
.modal-body {
    padding: 2rem !important;
}
#checkoutModal .modal-body {
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.info-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-modal-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5em;
    position: relative;
    line-height: 1.6;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.info-modal-list li::before {
    content: "•";
    color: var(--ogai-teal);
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: -2px;
}
.info-modal-highlight {
    color: var(--text-primary);
    font-weight: 700;
}

/* Checkout Steps (Pricing Specific) */
.step-container {
    display: none;
    animation: fadeIn 0.3s ease;
}
.step-container.active {
    display: block;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-half-width {
    width: 40%;
    margin: 0 auto;
    padding: 12px;
    font-size: 0.95rem;
}
.email-display-box {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0.25rem;
    padding: 0;
}
.edit-link {
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.edit-link:hover {
    color: var(--ogai-teal) !important;
}

.message-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f3f4f6;
}
.msg-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
.message-box i {
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
}
.message-box strong {
    font-size: 0.95rem;
    line-height: 1.2;
}
.message-box small {
    display: block;
    font-size: 0.8rem;
    line-height: 1.5;
    padding-left: 0.2rem;
}
.stripe-notice {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
    line-height: 1.4;
}

/* Responsiveness (Pricing Specific) */
@media (max-width: 991px) {
    .pricing-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 60px;
    }
    .header-logo {
        height: 80px;
        margin-bottom: 1rem;
    }
    .header-content {
        max-width: 100%;
    }
    .billing-toggle-wrapper {
        justify-content: center;
    }
    .pricing-header .hero-title {
        font-size: 1.75rem;
    }
    .btn-half-width {
        width: 80%;
    }
    .notification-deck {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (min-width: 576px) {
    .modal-dialog.modal-w-info {
        max-width: 700px;
    }
    .modal-dialog.modal-w-checkout {
        max-width: 480px;
    }
}

.input-group-fixed {
    position: relative;
    padding-bottom: 1.6rem;
    margin-bottom: 1.5rem !important;
}
.input-group-fixed .invalid-feedback {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin-top: 0;
}

/* --- Custom Plan Banner Overrides --- */
/* 既存の .info-card を横長にし、余白を調整 */
.info-card.custom-plan-wide {
    max-width: 100%;
    margin: 0 auto 4rem;
    cursor: default; /* クリック不可の領域であることを示す */
}

/* ホバー時の動き（浮き上がり・色変化）を打ち消して固定表示にする */
.info-card.custom-plan-wide:hover {
    background: #f9fafb;     /* 元の背景色を維持 */
    border-color: #e5e7eb;   /* 元の枠線を維持 */
    transform: none;         /* 浮き上がりなし */
    box-shadow: none;        /* 影の強調なし */
}

/* ボタン（リンク）はクリックできる見た目を維持 */
.custom-plan-wide .info-card-btn {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    min-width: 120px; /* 少し横幅を持たせる */
}