/* ============================================================
   True Connection - 料金プランページ専用スタイル
   ============================================================ */

.plans-page {
    margin-top: 80px;
    padding: 60px 40px 80px;
    background: #F5F1EB;
    min-height: 100vh;
}

.plans-inner {
    max-width: 900px;
    margin: 0 auto;
}

.plans-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 8px;
}

.plans-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 40px;
}

.plans-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 20px 0;
}

/* ワンプラン訴求 */
.plans-highlight {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3e0 100%);
    border: 2px solid #C9A775;
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 40px;
}

.plans-highlight-text {
    font-size: 18px;
    color: var(--color-text);
    margin: 0;
    line-height: 1.8;
}

.plans-highlight-text strong {
    color: var(--color-primary);
    font-size: 22px;
}

/* 機能比較表 */
.plans-comparison {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.plans-comparison-wrapper {
    overflow-x: auto;
}

.plans-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 320px;
}

.plans-comparison-table th,
.plans-comparison-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.plans-feature-header {
    text-align: left;
    font-weight: 600;
    color: var(--color-text);
    background: #f9f6f1;
}

.plans-member-header {
    font-weight: 600;
    color: #666;
    background: #f9f6f1;
    min-width: 110px;
}

.plans-premium-header {
    color: var(--color-primary);
    background: #fdf8f0;
}

.plans-feature-cell {
    text-align: left;
    font-size: 14px;
    color: var(--color-text);
}

.plans-status-cell {
    font-size: 14px;
    vertical-align: middle;
}

.plans-premium-cell {
    background: #fefdfb;
}

.plans-even-row {
    background: #fafaf7;
}

.plans-even-row .plans-premium-cell {
    background: #fdf9f3;
}

.plans-status-yes {
    color: #4caf50;
    font-size: 18px;
    font-weight: 600;
}

.plans-status-no {
    color: #999;
    font-size: 18px;
    font-weight: 600;
}

.plans-status-partial {
    color: #ff9800;
    font-size: 18px;
    font-weight: 600;
}

.plans-status-with-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.plans-status-note {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

/* 料金プランカード */
.plans-cards-section {
    margin-bottom: 24px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.plan-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* グリッドで揃えた高さ内でコンテンツを縦中央寄せ
       （月額プランのように内容が少ないカードでも上寄せにならない） */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 一番おすすめ（6ヶ月） */
.plan-card-recommended {
    border-color: var(--color-primary);
    background: linear-gradient(180deg, #FAF6F0 0%, #F5F1EB 100%);
    box-shadow: 0 4px 16px rgba(166, 139, 91, 0.25);
}

/* 月額プラン（お試し導入） */
.plan-card-monthly {
    background: linear-gradient(180deg, #FAFAF8 0%, #F4F2EE 100%);
    border-color: #d8d3cb;
}

.plan-card-tagline {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-top: 6px;
}

.plan-card-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 0;
    color: white;
    text-align: center;
    letter-spacing: 1px;
}

.plan-card-badge-main {
    background: linear-gradient(135deg, #A68B5B, #8B7355);
}

.plan-card-badge-sub {
    background: linear-gradient(135deg, #6BAAE0, #5B9BD5);
}

.plan-card-badge-best {
    background: linear-gradient(135deg, #F09098, #E8838A);
}

/* おすすめ（3ヶ月） */
.plan-card-sub-recommended {
    border-color: #5B9BD5;
}

/* 一番お得（12ヶ月） */
.plan-card-best-value {
    border-color: #E8838A;
}

.plan-card-recommended .plan-card-header,
.plan-card-sub-recommended .plan-card-header,
.plan-card-best-value .plan-card-header {
    margin-top: 20px;
}

.plan-card-header {
    margin-bottom: 16px;
}

.plan-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}

.plan-card-discount {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
}

.plan-card-pricing {
    margin-bottom: 8px;
}

.plan-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.plan-card-tax {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.plan-card-total {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}

.plans-note {
    font-size: 13px;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 16px;
    line-height: 1.8;
}

/* ============================================================
   プレオープン記念キャンペーン
   ============================================================ */

/* キャンペーン告知バナー（True Connection 系のエレガントなゴールド）
   注: --color-primary-light/-dark は legal/styles.css で未定義のため、HEXハードコードで指定 */
.plans-campaign-banner {
    background: linear-gradient(135deg, #C9B389 0%, #A68B5B 55%, #8B7355 100%);
    color: #fff;
    text-align: center;
    padding: 22px 28px;
    border-radius: 14px;
    margin: 0 auto 28px;
    max-width: 640px;
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.plans-campaign-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.96;
}

.plans-campaign-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.25;
}

/* 取り消し線（左上の角→右下の角を SVG で正確に描画・枠外まで少し延長） */
.plan-card-strikethrough {
    /* SVG が枠外までハミ出る分を表示するため overflow を解除 */
    overflow: visible;
}

/* overflow: visible にすると badge の角が四角くなるので、明示的に丸める */
.plan-card-strikethrough .plan-card-badge {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.plan-card-strikeline {
    position: absolute;
    /* 5%ずつ枠外に拡張 → 線がカード対角線を超えて少しはみ出る */
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

/* 取り消し線: 太いハロー（外側）+ メイン（内側）の2層構造で
   単一の機械的な線ではなく、奥行きのあるデザイン的な仕上がりに */
.plan-card-strikeline .strike-halo {
    stroke: #D03A3A;
    stroke-width: 12;
    stroke-opacity: 0.16;
    /* スケール（preserveAspectRatio=none による引き伸ばし）の影響を受けず線幅一定 */
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
}

.plan-card-strikeline .strike-main {
    stroke: #C92E2E;
    stroke-width: 3.5;
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    filter: drop-shadow(0 1px 2px rgba(201, 46, 46, 0.5));
}

/* 下矢印（誘導アニメーション付き） */
.plans-arrow-down {
    text-align: center;
    margin: 20px 0 24px;
    color: var(--color-primary);
}

.plans-arrow-down svg {
    width: 56px;
    height: 56px;
    animation: plans-arrow-bounce 1.6s ease-in-out infinite;
}

@keyframes plans-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* プレオープン特価カード「さらに30%OFF!!」バッジ
   True Connection のブランドカラー（ワインレッド + クリーム）で「上品なプライスタグ」に */
.plan-card-extra-discount {
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 5px 16px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FAF0E4 100%);
    color: #A02828;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 2px;
    border: 1.5px solid #A02828;
    box-shadow: 0 2px 6px rgba(160, 40, 40, 0.12);
}

/* キャンペーン価格セクション見出し（ゴールド系） */
.plans-campaign-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .plans-campaign-banner {
        padding: 16px 18px;
        margin-bottom: 22px;
    }

    .plans-campaign-label {
        font-size: 13px;
        letter-spacing: 3px;
    }

    .plans-campaign-title {
        font-size: 20px;
    }

    .plans-campaign-section-title {
        font-size: 17px;
    }

    .plans-arrow-down svg {
        width: 44px;
        height: 44px;
    }

    /* SP版: 取り消し線は四角枠の中だけに収める（枠外への延長は無し） */
    .plan-card-strikeline {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ============================================================
   レスポンシブ - タブレット（768px以下）
   ============================================================ */
@media (max-width: 768px) {
    .plans-page {
        padding: 40px 16px 60px;
    }

    .plans-title {
        font-size: 24px;
    }

    .plans-section-title {
        font-size: 18px;
    }

    .plans-highlight {
        padding: 24px 16px;
    }

    .plans-highlight-text {
        font-size: 16px;
    }

    .plans-highlight-text strong {
        font-size: 18px;
    }

    .plans-comparison {
        padding: 20px 12px;
    }

    .plans-comparison-table th,
    .plans-comparison-table td {
        padding: 10px 6px;
    }

    .plans-feature-cell {
        font-size: 13px;
    }

    .plans-status-note {
        font-size: 10px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }
}
