/**
 * 保険診断バナー スタイルシート
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * 戦略: 16types → 保険診断LP → FP相談（2段階ファネル）
 *
 * 心理学的根拠に基づくデザイン戦略:
 *
 * 1. バナーブラインドネス回避 (NNGroup 2018):
 *    - 広告に見えないようネイティブコンテンツ風デザイン
 *    - 派手な色背景を避け、サイトのトーンに溶け込ませる
 *    - 右レール・トップバナー配置を避ける
 *
 * 2. ナッジ理論 (Thaler & Sunstein 2008):
 *    - デフォルト効果: 自然な導線上にCTAを配置
 *    - フレーミング効果: 「無料」「登録不要」で損失回避を刺激
 *    - 社会的証明: 利用者数や満足度を提示
 *
 * 3. ツァイガルニク効果:
 *    - 診断結果閲覧後の「次のアクション」として自然に提示
 *    - 「あなたのタイプに合った保険」で未完了感を利用
 *
 * 4. 自己関連付け効果 (Rogers et al. 1977):
 *    - 性格タイプと保険を関連付け、パーソナライズ感を演出
 *    - 「あなたの性格タイプから分かる」で自分事化
 */

/* ========================================
   インライン・ネイティブバナー（記事中CTA）
   ======================================== */
.fp-native-banner {
    margin: 32px auto;
    max-width: 520px;
    background: linear-gradient(135deg, rgba(139,92,246,.06), rgba(192,132,252,.04));
    border: 1px solid rgba(139,92,246,.18);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s ease, transform .2s ease;
}
.fp-native-banner:hover {
    box-shadow: 0 8px 32px rgba(139,92,246,.12);
    transform: translateY(-2px);
}

/* ラベル（広告感を出さない「おすすめ」バッジ） */
.fp-native-banner .fp-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    letter-spacing: .05em;
    margin-bottom: 12px;
}

.fp-native-banner .fp-headline {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e1b4b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.fp-native-banner .fp-sub {
    font-size: .82rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.fp-native-banner .fp-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(249,115,22,.25);
    transition: all .2s ease;
    letter-spacing: .03em;
}
.fp-native-banner .fp-cta-btn:hover {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 6px 24px rgba(249,115,22,.35);
    transform: translateY(-1px);
}

.fp-native-banner .fp-trust {
    font-size: .72rem;
    color: #9ca3af;
    margin-top: 10px;
    line-height: 1.5;
}

/* ========================================
   スティッキーボトムバナー（モバイル最適化）
   ======================================== */
.fp-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(139,92,246,.15);
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.fp-sticky-bottom.is-visible {
    transform: translateY(0);
}

.fp-sticky-bottom .fp-sticky-text {
    font-size: .78rem;
    color: #374151;
    font-weight: 600;
    line-height: 1.4;
    flex-shrink: 1;
    min-width: 0;
}
.fp-sticky-bottom .fp-sticky-text small {
    display: block;
    font-size: .65rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 2px;
}

.fp-sticky-bottom .fp-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(249,115,22,.3);
    transition: all .2s ease;
}
.fp-sticky-bottom .fp-sticky-btn:hover {
    background: linear-gradient(135deg, #ea580c, #f97316);
    box-shadow: 0 4px 16px rgba(249,115,22,.4);
}

.fp-sticky-bottom .fp-sticky-close {
    position: absolute;
    top: -12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}
.fp-sticky-bottom .fp-sticky-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

/* ========================================
   レスポンシブ調整
   ======================================== */
@media (max-width: 600px) {
    .fp-native-banner {
        margin: 24px 8px;
        padding: 20px 16px;
    }
    .fp-native-banner .fp-headline {
        font-size: .95rem;
    }
    .fp-native-banner .fp-cta-btn {
        padding: 12px 28px;
        font-size: .88rem;
    }
    .fp-sticky-bottom {
        padding: 8px 12px;
        gap: 8px;
    }
    .fp-sticky-bottom .fp-sticky-text {
        font-size: .72rem;
    }
    .fp-sticky-bottom .fp-sticky-btn {
        padding: 8px 16px;
        font-size: .75rem;
    }
}

/* 印刷時はバナー非表示 */
@media print {
    .fp-native-banner,
    .fp-sticky-bottom {
        display: none !important;
    }
}
