/* =====================================================================
 * career-match-gate.css
 * career-match 全ツール共有の LINE ゲート CSS（spi-mini 準拠・スコープなし）
 * 対象: [career_match] [diagnosis_tree] [egogram] [strength_finder] [johari_window]
 * ===================================================================== */

.spi-mini-gate { padding: 1em 0 .5em; }
.spi-mini-gate[hidden] { display: none; }

.spi-mini-gate-card {
    width: 100%;
    max-width: 430px;
    min-width: 0;
    margin: 0 auto;
    background: #fbfffe url('../gate-bg-celebrate.svg?v=4') no-repeat top center;
    background-size: 100% auto;
    border: 1px solid #b6e9e4;
    border-radius: 20px;
    padding: 16px 26px 34px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(38, 166, 154, .12);
    box-sizing: border-box;
    line-height: 1.75;
}

/* ねぎらい（見出し1行目・title-main と同サイズで2行に見せる） */
.spi-mini-gate .spi-mini-gate-eyebrow {
    margin: 0 0 .3em;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    color: #18afa3;
    letter-spacing: .02em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 見出し */
.spi-mini-gate-title { margin: 0; padding: 0; border: 0; background: none; text-align: center; }
.spi-mini-gate-title::before,
.spi-mini-gate-title::after { content: none; display: none; }
.spi-mini-gate-title br { display: inline; }
.spi-mini-gate-title-main {
    display: block;
    color: #12a99d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .01em;
    text-shadow: 0 3px 0 rgba(0,0,0,.04);
    word-break: break-all;
    overflow-wrap: anywhere;
}
/* サブ文言（画像の下に単独配置） */
.spi-mini-gate .spi-mini-gate-title-sub {
    display: block;
    margin: 14px 0 0;
    color: #818181;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-shadow: 0 3px 0 rgba(0,0,0,.04);
}

/* 無料・登録完了コピー */
.spi-mini-gate .spi-mini-gate-minute { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #12a99d; line-height: 20px; }

/* LINE CTA */
.spi-mini-gate-line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
    min-height: 52px;
    margin: 0 auto;
    padding: 10px 16px;
    background: #06c755;
    color: #fff !important;
    border-radius: 24px;
    text-decoration: none !important;
    box-shadow: 0 12px 22px rgba(3,140,56,.38), 0 5px 0 rgba(3,102,41,.55);
    box-sizing: border-box;
    transition: transform .08s ease;
}
.spi-mini-gate-line:hover { color: #fff; }
.spi-mini-gate-line:active { transform: translateY(2px); }
.spi-mini-gate-line-primary { min-height: 60px; }

/* バッジ（LINE アイコン） */
.spi-mini-gate-badge {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none !important;
    flex-shrink: 0;
    box-shadow: none !important;
}
.spi-mini-gate-badge-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.spi-mini-gate-line img.spi-line-mark {
    display: block;
    width: 30px !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    object-fit: contain;
    flex: none;
}
.spi-mini-gate-line-label { position: absolute; left: 0; right: 0; color: #fff !important; font-weight: 700; font-size: 14px; text-align: center; line-height: 1.5; }

/* 下向き三角矢印 */
.spi-mini-gate-arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 13px solid #12a99d;
    margin: 10px auto 0;
}

/* キーワード入力フォーム */
.spi-mini-gate-form { margin: 18px 0 0; }
.spi-mini-gate-field {
    position: relative;
    width: 100%;
    max-width: 291px;
    height: 60px;
    margin: 0 auto;
    background: #eff5f7;
    border: 2px solid #b6e9e4;
    border-radius: 22px;
    box-sizing: border-box;
}
.spi-mini-gate-field:focus-within { border-color: #12a99c; }
.spi-mini-gate-input.is-error { color: #e04e4e; }
.spi-mini-gate-field:has(.spi-mini-gate-input.is-error) { border-color: #e04e4e; }
.spi-mini-gate-lock { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; }
.spi-mini-gate-lock-body { position: absolute; left: 2px; top: 9px; width: 16px; height: 11px; background: #949aa0; border-radius: 2px; }
.spi-mini-gate-lock-shackle { position: absolute; left: 5px; top: 2px; width: 10px; height: 10px; border: 2px solid #949aa0; border-bottom: 0; border-radius: 5px 5px 0 0; }

/* 詳細度を上げてテーマの input 上書きに勝つ */
.jo-app .spi-mini-gate-field .spi-mini-gate-input,
.eg-app .spi-mini-gate-field .spi-mini-gate-input,
.sf-app .spi-mini-gate-field .spi-mini-gate-input,
.dt-app .spi-mini-gate-field .spi-mini-gate-input,
.st-app .spi-mini-gate-field .spi-mini-gate-input,
#cm-gate-wrap .spi-mini-gate-field .spi-mini-gate-input {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0 46px 0 48px;
    margin: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
}
.spi-mini-gate-input::placeholder { color: #949aa0; font-weight: 500; }

.spi-mini-gate-go {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    background: #12a99d;
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .08s ease;
}
.spi-mini-gate-go:hover { background: #0e8e84; }
.spi-mini-gate-go:active { transform: translateY(-50%) scale(.94); }
.spi-mini-gate .spi-mini-gate-error { margin: 8px 0 0; color: #e04e4e; font-size: 13px; }
.spi-mini-gate-error[hidden] { display: none; }

/* 注記 */
.spi-mini-gate-note { display: block !important; margin: 10px 0 20px !important; font-size: 11px; font-weight: 700; color: #ff7a00; }

/* 解説ティーザーカード：ぼかしプレビュー */
.spi-mini-gate-blur-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #b6e9e4;
    border-radius: 14px;
    margin: 14px auto 4px;
    max-width: 240px;
    overflow: hidden;
    text-align: left;
}
.spi-mini-gate-blur-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: #12a99c;
    border-radius: 14px 0 0 14px;
    display: block;
}
.spi-mini-gate-blur-body {
    padding: 13px 14px 14px 20px;
    filter: blur(3.5px);
    pointer-events: none;
    user-select: none;
}
.spi-mini-gate-blur-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.spi-mini-gate-blur-qno { display: inline-block; background: #e9f1f1; border-radius: 4px; padding: 1px 8px; font-size: 11px; font-weight: 700; color: #484a4d; }
.spi-mini-gate-blur-verdict { font-size: 12px; font-weight: 700; color: #12a99c; }
.spi-mini-gate .spi-mini-gate-blur-text { margin: 0 0 10px; font-size: 12px; line-height: 1.7; color: #222831; }
.spi-mini-gate-blur-sep { height: 1px; background: #edf3f3; margin: 0 0 10px; }
.spi-mini-gate-blur-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 10px; margin: 0; font-size: 11px; }
.spi-mini-gate-blur-dt { color: #949aa0; font-weight: 700; }
.spi-mini-gate-blur-dd { color: #222831; }
.spi-mini-gate-blur-dd-ok { color: #12a99c; font-weight: 700; }
.spi-mini-gate-blur-overlay { position: absolute; inset: 10px 8px; background: rgba(255,255,255,.62); border-radius: 10px; }
.spi-mini-gate-blur-img { display: block; width: 100%; height: auto; }
.spi-mini-gate-blur-card-img { padding: 0; }
.spi-mini-gate-blur-card-img .spi-mini-gate-blur-accent { display: none; }
.spi-mini-gate-blur-pill {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #12a99c;
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: #12a99c !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(18,169,156,.18);
    cursor: pointer;
    transition: box-shadow .15s ease, transform .1s ease;
}
.spi-mini-gate-blur-pill:hover { box-shadow: 0 4px 12px rgba(18,169,156,.3); transform: translate(-50%, -52%); color: #12a99c !important; }
.spi-mini-gate-blur-lock-icon { flex-shrink: 0; display: block; }

/* 社会的証明 */
.spi-mini-gate-proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 16px; }
.spi-mini-gate-proof svg { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.spi-mini-gate-proof-num { color: #f56e05; font-weight: 900; font-size: 20px; letter-spacing: .6px; }
.spi-mini-gate-proof-suf { color: #818181; font-weight: 700; font-size: 14px; }

/* セクション見出し */
.spi-mini-gate .spi-mini-gate-section-title { margin: 24px 0 12px; font-size: 15px; font-weight: 700; color: #16a99d; line-height: 22px; text-align: center; }

/* ベネフィット（2×2 タイル・コンパクト） */
.spi-mini-gate-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 320px; margin: 0 auto; }
.spi-mini-gate-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 92px;
    background: #fff;
    border: 1px solid #b6e9e4;
    border-radius: 16px;
    padding: 12px 8px;
    box-shadow: 0 8px 20px rgba(20,153,141,.10);
    text-align: center;
}
.spi-mini-gate-benefit-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #ddf4ef; border: 1px solid #d9f3ef; border-radius: 20px; }
.spi-mini-gate-benefit-icon svg { width: 22px; height: 22px; display: block; }
.spi-mini-gate .spi-mini-gate-benefit-title { margin: 0; color: #14998d !important; font-weight: 900; font-size: 12px; line-height: 1.35; text-align: center; }

/* 下部 CTA */
.spi-mini-gate-line-bottom { margin-top: 20px; max-width: 298px; }

/* SR only */
.spi-mini-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* モバイル */
@media (max-width: 620px) {
    .spi-mini-gate-card { padding: 18px 18px 24px; }
    .spi-mini-gate .spi-mini-gate-eyebrow { font-size: 17px; }
    .spi-mini-gate-title-main { font-size: 17px; word-break: keep-all; overflow-wrap: anywhere; }
    .spi-mini-gate-field { max-width: 92%; }
    .spi-mini-gate-blur-card { max-width: 220px; }
    .spi-mini-gate-blur-pill { font-size: 11px; padding: 7px 11px; }
    .spi-mini-gate-line-primary { max-width: none; }
    .spi-mini-gate-benefits { max-width: 300px; }
}

/* =====================================================================
 * ゲートA/Bテスト（.cm-abg）— A案=1画面型 / B案=多カード型
 * 現行 .spi-mini-gate は温存し、こちらは独立名前空間 .cm-abg-* で自己完結。
 * 変種は career-ab.js が data-cm-ab-variant で1つだけ残す。
 * ===================================================================== */
.cm-abg {
    --gca: #5CCB63;   /* CTA */
    --gdk: #4E8E81;   /* 見出し・本文 */
    --mint: #DDF1EA;  /* 枠線・影 */
    --gbg: #F5FAF8;   /* 背景 */
    --gac: #EF8B3A;   /* 注意 */
    max-width: 430px;
    margin: 0 auto;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    color: var(--gdk);
    -webkit-text-size-adjust: 100%;
}
.cm-abg *,
.cm-abg *::before,
.cm-abg *::after { box-sizing: border-box; }
/* ツール側の広域リセット（例 egogram `.eg-app *{margin:0}` / strength_finder `.sf-app *{margin:0}`）が
 * 共有ゲートの中央寄せ margin:0 auto を打ち消して左寄せになる事故を防ぐ。クラス2重掛けで
 * `.<tool>-app *`(0,1,0) より詳細度を上げる（!important・ラッパー名ハードコード不要／読込順非依存）。 */
.cm-abg.cm-abg { margin-left: auto; margin-right: auto; }
.cm-abg-arm[hidden] { display: none !important; }

/* ---- A/B共通：結果ローディング（SPI採用版） ---- */
.cm-abg.cm-abg-loader-pending > .cm-abg-arm { display: none; }
.cm-abg-result-loader {
    display: flex;
    min-height: 240px;
    padding: 48px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}
.cm-abg-result-loader[hidden] { display: none; }
.cm-abg-result-loader-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #DFFAF6;
    border-top-color: #2AA59A;
    border-radius: 50%;
    animation: cm-abg-result-spin .8s linear infinite;
}
.cm-abg-result-loader-text {
    margin: 0;
    color: #1f8a80;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}
@keyframes cm-abg-result-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .cm-abg-result-loader-spinner { animation-duration: 1.8s; }
}

/* ---- 共通：LINEボタン ---- */
.cm-abg .cm-abg-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 10px 0 0;
    padding: 14px 18px;
    background: var(--gca);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(92, 203, 99, 0.35);
    line-height: 1.3;
    transition: transform 0.15s ease;
}
.cm-abg .cm-abg-line:active { transform: scale(0.98); }
.cm-abg-badge { flex-shrink: 0; width: 30px; height: 30px; }
.cm-abg-badge-inner { display: block; width: 100%; height: 100%; }
.cm-abg-mark { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---- 共通：下矢印 ---- */
.cm-abg-a-arrow, .cm-abg-b-arrow { text-align: center; margin: 8px 0 4px; }
.cm-abg-a-arrow span, .cm-abg-b-arrow span {
    display: inline-block; width: 0; height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 15px solid var(--gdk);
}

/* ---- 共通：キーワードフォーム ---- */
.cm-abg .cm-abg-form { margin: 0; }
.cm-abg .cm-abg-field {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--mint);
    border-radius: 999px;
    padding: 5px 5px 5px 14px;
    box-shadow: 0 2px 10px var(--mint);
}
.cm-abg .cm-abg-lock { font-size: 15px; margin-right: 8px; }
.cm-abg .cm-abg-input {
    flex: 1; border: none; outline: none;
    font-size: 15px; color: var(--gdk);
    background: transparent; min-width: 0;
}
.cm-abg .cm-abg-input::placeholder { color: #adc4bd; }
.cm-abg .cm-abg-input.is-error { color: #e0574b; }
.cm-abg .cm-abg-go {
    flex-shrink: 0; width: 44px; height: 40px;
    border: none; border-radius: 999px;
    background: var(--gca); color: #fff;
    font-size: 16px; font-weight: 700; cursor: pointer;
}
.cm-abg .cm-abg-error {
    margin: 8px 0 0; text-align: center;
    font-size: 12px; font-weight: 700; color: #e0574b;
}
.cm-abg .cm-abg-note {
    margin: 12px 0 0; text-align: center;
    font-size: 11.5px; font-weight: 600; color: var(--gac);
}

/* =====================================================================
 * 変種A：1画面シンプル型
 * ===================================================================== */
.cm-abg-a-page {
    background:
        radial-gradient(circle at 88% 4%, var(--mint) 0%, var(--mint) 110px, transparent 111px),
        radial-gradient(circle at 8% 26%, var(--mint) 0%, var(--mint) 80px, transparent 81px),
        var(--gbg);
    border-radius: 18px;
    padding: 22px 22px 26px;
    overflow: hidden;
}
.cm-abg-a-headline { text-align: center; }
.cm-abg-a-sub { font-size: 15px; font-weight: 700; line-height: 1.6; }
.cm-abg-a-main { margin-top: 8px; font-size: 19px; font-weight: 800; line-height: 1.5; }
.cm-abg-a-desc { margin-top: 12px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.cm-abg-a-result {
    position: relative;
    margin: 14px auto 0;
    max-width: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 16px var(--mint);
    overflow: hidden;
}
.cm-abg-a-result-noimg { min-height: 150px; background: linear-gradient(135deg, #eef7f4, #dcefe8); }
.cm-abg-a-result-img { display: block; width: 100%; height: auto; }
.cm-abg-a-lock {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 6px;
    width: max-content; max-width: calc(100% - 28px);
    padding: 9px 16px;
    border: 1.5px solid var(--gdk);
    border-radius: 999px;
    background: #fff;
    color: var(--gdk);
    font-size: 12px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cm-abg-a-free { margin-top: 14px; text-align: center; font-size: 13.5px; font-weight: 700; }
.cm-abg-a .cm-abg-line-primary { font-size: 18px; }
.cm-abg-a-steps {
    display: flex; align-items: stretch; justify-content: center;
    gap: 2px; margin-top: 20px;
}
.cm-abg-a-step {
    flex: 1; background: #fff; border: 1.5px solid var(--mint);
    border-radius: 12px; padding: 12px 2px; text-align: center;
    box-shadow: 0 2px 8px var(--mint);
}
.cm-abg-a-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 21px; height: 21px; margin-bottom: 6px;
    border-radius: 50%; background: var(--gdk); color: #fff;
    font-size: 12px; font-weight: 700;
}
.cm-abg-a-step p { font-size: 11px; font-weight: 700; line-height: 1.5; }
.cm-abg-a-steparrow { display: flex; align-items: center; color: var(--gdk); opacity: 0.45; font-size: 16px; font-weight: 700; }
.cm-abg-a-benefits-title { margin-top: 26px; text-align: center; font-size: 16px; font-weight: 800; }
.cm-abg-a-benefits { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.cm-abg-a-benefit {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1.5px solid var(--mint);
    border-radius: 999px; padding: 13px 16px;
    font-size: 14px; font-weight: 700;
    box-shadow: 0 2px 8px var(--mint);
}
.cm-abg-a-bicon { flex-shrink: 0; width: 26px; height: 26px; display: block; }
.cm-abg-a-bicon svg { width: 100%; height: 100%; display: block; }

/* =====================================================================
 * 変種B：多カード＋集計ローディング型
 * ===================================================================== */
.cm-abg-b { position: relative; }
.cm-abg-b-page { display: flex; flex-direction: column; gap: 14px; }
.cm-abg-b-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(78, 142, 129, 0.10);
    padding: 20px 16px;
}
.cm-abg-b-lead { text-align: center; font-size: 14px; font-weight: 700; line-height: 1.6; }
.cm-abg-b-headline { margin-top: 8px; text-align: center; font-size: 18px; font-weight: 800; line-height: 1.5; }
.cm-abg-b-resultbox {
    margin: 14px auto 0; max-width: 250px;
    background: var(--gbg); border: 1.5px solid var(--mint);
    border-radius: 12px; padding: 12px 14px 14px; text-align: center;
}
.cm-abg-b-resultlabel { font-size: 11.5px; font-weight: 700; color: #8fb3aa; }
.cm-abg-b-lockicon { margin-top: 6px; font-size: 32px; line-height: 1; }
.cm-abg-b-lockdesc { margin-top: 12px; text-align: center; font-size: 12.5px; line-height: 1.7; }
.cm-abg-b-free { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 800; }
.cm-abg-b-cardtitle { font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.cm-abg-b-scorewrap { display: flex; flex-direction: column; gap: 10px; }
.cm-abg-b-scorerow { display: flex; align-items: center; }
.cm-abg-b-scorebar-bg { flex: 1; height: 13px; background: var(--gbg); border-radius: 999px; overflow: hidden; }
.cm-abg-b-scorebar { display: block; height: 100%; background: #a9cfc6; border-radius: 999px; filter: blur(3.5px); }
.cm-abg-b-blurarea { position: relative; margin-top: 16px; background: var(--gbg); border-radius: 10px; padding: 16px 14px; overflow: hidden; }
.cm-abg-b-blurlines { filter: blur(4px); }
.cm-abg-b-blurlines span { display: block; height: 8px; background: #c2d9d2; border-radius: 999px; margin-bottom: 10px; }
.cm-abg-b-blurlines span:nth-child(1) { width: 92%; }
.cm-abg-b-blurlines span:nth-child(2) { width: 78%; }
.cm-abg-b-blurlines span:nth-child(3) { width: 88%; }
.cm-abg-b-blurlines span:nth-child(4) { width: 64%; }
.cm-abg-b-blurlines span:nth-child(5) { width: 84%; margin-bottom: 0; }
.cm-abg-b-blurlock {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cm-abg-b-steptitle { text-align: center; font-size: 16px; font-weight: 800; }
.cm-abg-b-steplist { margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.cm-abg-b-stepitem { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.cm-abg-b-num {
    flex-shrink: 0; width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--gdk); color: #fff;
    font-size: 11px; font-weight: 700;
}
.cm-abg-b-benefits { display: flex; flex-direction: column; gap: 11px; }
.cm-abg-b-benefit { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; line-height: 1.5; }
.cm-abg-b-bicon { flex-shrink: 0; width: 24px; height: 24px; display: block; }
.cm-abg-b-bicon svg { width: 100%; height: 100%; display: block; }
.cm-abg-b-count {
    margin-top: 16px; padding-top: 14px;
    border-top: 1.5px dashed var(--mint);
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-size: 13px; font-weight: 800; color: var(--gac);
}

@media (max-width: 420px) {
    .cm-abg-a-sub { font-size: 14px; }
    .cm-abg-a-main { font-size: 17.5px; }
    .cm-abg .cm-abg-line { font-size: 15.5px; }
}

/* =====================================================================
 * 変種B：承認済み結果ゲートモック（2026-07-28）への表示調整
 * HTML・LINE導線・計測は変えず、B案の見た目だけを上書きする。
 * ===================================================================== */
.cm-abg-b {
    --gca: #52c568;
    --gdk: #205e56;
    --mint: #c4e2dc;
    --gbg: #eef7f5;
    --gac: #ff7a00;
}

.cm-abg-b .cm-abg-b-page {
    gap: 14px;
}

.cm-abg-b .cm-abg-b-card {
    padding: 28px 16px 30px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(32, 94, 86, 0.08);
}

.cm-abg-b .cm-abg-b-page > .cm-abg-b-card:first-child {
    background: #fff url("../gate-bg-career-b.svg?v=1") center / 100% 100% no-repeat;
}

.cm-abg-b .cm-abg-b-lead {
    margin: 0;
    color: #2ea99d;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.55;
}

.cm-abg-b .cm-abg-b-headline {
    margin: 14px 0 0;
    color: #19584f;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.cm-abg-b .cm-abg-b-resultbox {
    display: flex;
    min-height: 92px;
    max-width: 160px;
    margin: 18px auto 0;
    padding: 15px 12px 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef7f5;
    border: 0;
    border-radius: 11px;
}

.cm-abg-b .cm-abg-b-resultlabel {
    margin: 0;
    color: #205e56;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.cm-abg-b .cm-abg-b-lockicon {
    position: relative;
    z-index: 0;
    width: max-content;
    margin: 10px auto 0;
    font-size: 28px;
    line-height: 1;
    isolation: isolate;
}

.cm-abg-b .cm-abg-b-lockicon::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 40px;
    background: rgba(93, 207, 194, 0.48);
    border-radius: 50%;
    content: "";
    filter: blur(13px);
    transform: translate(-50%, -50%);
}

.cm-abg-b .cm-abg-b-lockdesc {
    margin: 16px 0 0;
    color: #6a7e79;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.75;
}

.cm-abg-b .cm-abg-b-free {
    margin: 15px 0 0;
    color: #205e56;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.cm-abg-b .cm-abg-line {
    position: relative;
    min-height: 58px;
    margin: 8px 0 0;
    padding: 13px 48px;
    background: #52c568;
    border-radius: 999px;
    box-shadow: none;
    font-size: 17px;
    line-height: 1.35;
}

.cm-abg-b .cm-abg-badge {
    position: absolute;
    top: 50%;
    left: 17px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
}

.cm-abg-b .cm-abg-b-arrow {
    margin: 12px 0 9px;
    line-height: 0;
}

.cm-abg-b .cm-abg-b-arrow span {
    border-left-width: 9px;
    border-right-width: 9px;
    border-top: 15px solid #2ea99d;
}

.cm-abg-b .cm-abg-field {
    min-height: 64px;
    padding: 6px 6px 6px 16px;
    background: #f8fbfa;
    border: 2px solid #c4e2dc;
    border-radius: 999px;
    box-shadow: none;
}

.cm-abg-b .cm-abg-lock {
    margin-right: 10px;
    font-size: 17px;
}

.cm-abg-b .cm-abg-input {
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cm-abg-b .cm-abg-input::placeholder {
    color: #858b8a;
    opacity: 1;
}

.cm-abg-b .cm-abg-go {
    width: 50px;
    height: 50px;
    background: #ff9902;
    border-radius: 50%;
    box-shadow: 0 4px 0 #d97800;
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
}

.cm-abg-b .cm-abg-note {
    margin: 14px 0 0;
    color: #ff7a00;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 420px) {
    .cm-abg-b .cm-abg-b-card {
        padding: 27px 15px 29px;
    }

    .cm-abg-b .cm-abg-b-headline {
        font-size: 19px;
    }

    .cm-abg-b .cm-abg-line {
        padding-right: 42px;
        padding-left: 42px;
        font-size: 16px;
    }

    .cm-abg-b .cm-abg-input {
        font-size: 14px;
    }
}
/* =====================================================================
 * LINEゲート ファーストビュー（LP版）— career_gate_lpfv_20260731（diagnosis_tree限定）
 * 出所：~/Downloads/LINEゲートFV改善案_20260731.zip（野口案）をそのまま採用。2026-07-31実装。
 *
 * - Bアーム1枚目のカード（.cm-abg-b-card）に .cm-abg-lpfv-hero を付けて使う
 * - CTA・入力欄・▼ は本番の既存スタイル（.cm-abg-line / .cm-abg-field /
 *   .cm-abg-b-arrow）をそのまま流用するので、ここでは定義しない
 * - 2枚目以降のカードには一切影響しない（クラス名で分離）
 * ===================================================================== */

.cm-abg-lpfv-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 15px 22px;
    text-align: center;
}

/* ---- 紙吹雪（上から降り続ける） ---- */
.cm-abg-lpfv-confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.cm-abg-lpfv-confetti i {
    position: absolute;
    top: -16px;
    display: block;
    border-radius: 2px;
    opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
    .cm-abg-lpfv-confetti i {
        animation: cm-abg-lpfv-fall linear infinite;
    }
    .cm-abg-lpfv-confetti i:nth-child(even) {
        animation-name: cm-abg-lpfv-fall2;
    }
    @keyframes cm-abg-lpfv-fall {
        0%   { transform: translate(0, 0) rotate(0deg);        opacity: 0; }
        6%   { opacity: .9; }
        85%  { opacity: .9; }
        100% { transform: translate(18px, 360px) rotate(260deg); opacity: 0; }
    }
    @keyframes cm-abg-lpfv-fall2 {
        0%   { transform: translate(0, 0) rotate(0deg);          opacity: 0; }
        6%   { opacity: .9; }
        85%  { opacity: .9; }
        100% { transform: translate(-22px, 360px) rotate(-300deg); opacity: 0; }
    }
}

/* ---- 見出し ---- */
.cm-abg-lpfv-done {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: #14432F;
}
.cm-abg-lpfv-headline {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.5;
    color: #14432F;
    /* 見出しに<br>が入らない診断でも不自然な位置で折れないように */
    text-wrap: balance;
}
/* 主要語の黄マーカー */
.cm-abg-lpfv-hl {
    padding: 0 2px;
    background: linear-gradient(
        transparent 62%,
        #FFD75E 62%,
        #FFD75E 92%,
        transparent 92%
    );
}

/* ---- 結果ロック（チャートのぼかし＋鍵） ---- */
.cm-abg-lpfv-visual {
    position: relative;
    width: min(272px, 100%);
    margin: 0 auto 12px;
    padding: 13px 16px 10px;
    background: linear-gradient(180deg, #FDFEFD, #EAF6F0);
    border: 1.5px solid #D8EAE1;
    border-radius: 16px;
}
.cm-abg-lpfv-visual-label {
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #6E9486;
}
.cm-abg-lpfv-chart {
    display: block;
    width: 100%;
    height: auto;
    filter: blur(2.5px);
    opacity: .8;
}
.cm-abg-lpfv-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, .18);
    border-radius: 16px;
}
.cm-abg-lpfv-lockbadge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    background: #fff;
    border-radius: 50%;
    /* 緑のリングで鍵を目立たせる（アニメーションは使わない） */
    box-shadow:
        0 6px 20px rgba(31, 92, 70, .28),
        0 0 0 6px  rgba(82, 197, 104, .4),
        0 0 0 13px rgba(82, 197, 104, .14);
}
.cm-abg-lpfv-lockbadge svg {
    width: 40px;
    height: 40px;
}
.cm-abg-lpfv-overlay p {
    margin: 2px 0 0;
    padding: 4px 16px;
    font-size: 13px;
    font-weight: 800;
    color: #14432F;
    background: rgba(255, 255, 255, .95);
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(31, 92, 70, .12);
}

/* ---- 説明文・訴求行・注意書き（FV内だけの上書き） ---- */
.cm-abg-lpfv-hero .cm-abg-b-lockdesc {
    margin-top: 10px;
    line-height: 1.6;
}
.cm-abg-lpfv-free {
    margin: 10px 0 9px;
    font-size: 13px;
    font-weight: 800;
    color: #205E56;
}
/* CTAは既存 .cm-abg-line を流用。現行の .cm-abg-b .cm-abg-line は既に padding:13px 48px
   （検証済み・元案の「42px」というコメントは古い前提）なので、この上書きは実質no-op。
   将来の本体側の値変更に追随できるよう明示しておく。 */
.cm-abg-lpfv-hero .cm-abg-line {
    padding-left: 48px;
    padding-right: 48px;
}
.cm-abg-lpfv-hero .cm-abg-line-label {
    font-size: 14px;
}
.cm-abg-lpfv-note {
    margin: 14px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #E04E4E;
}
/* =====================================================================
 * LINEゲート ver1「B：多カード＋集計ローディング型」— career_gate_fvimg_20260806
 * ---------------------------------------------------------------------
 * このファイル内の「変種B：多カード＋集計ローディング型」基本ブロック
 * （.cm-abg-b-card 〜 .cm-abg-b-free）の見た目に戻すための打ち消し。
 * その後ろにある現行の化粧直し（.cm-abg-b .cm-abg-b-* の上書き）を、
 * 詳細度を1つ上げて基本値で上書きし直している。
 *
 *   基本（ver1）              現行の上書き（ver2）
 *   白いカード                背景に gate-bg-career-b.svg の飾り
 *   結果ボックス250px・ミント枠 160px・枠線なし・🔒の後光あり
 *   緑丸の送信ボタン           オレンジの丸ボタン（下に影）
 *
 * ver1はアームに .cm-abg-v1base が付くだけで、マークアップは現行と完全に同一。
 * ＝CTA・実フォーム・計測・集計ローディングはver2とまったく同じものが動く。
 * ここに書く値はすべて本ファイル上部の基本ブロックからの引き写しで、新しい値は足さない。
 * ===================================================================== */

.cm-abg-b.cm-abg-v1base .cm-abg-b-card,
.cm-abg-b.cm-abg-v1base .cm-abg-b-page > .cm-abg-b-card:first-child {
    padding: 20px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 3px 14px rgba(78, 142, 129, 0.10);
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-lead {
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.6;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-headline {
    margin: 8px 0 0;
    color: inherit;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: normal;
    line-height: 1.5;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-resultbox {
    display: block;
    min-height: 0;
    max-width: 250px;
    margin: 14px auto 0;
    padding: 12px 14px 14px;
    background: var(--gbg);
    border: 1.5px solid var(--mint);
    border-radius: 12px;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-resultlabel {
    margin: 0;
    color: #8fb3aa;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-lockicon {
    width: auto;
    margin: 6px 0 0;
    font-size: 32px;
    line-height: 1;
}

/* 現行で足した🔒の後光を消す（基本ブロックには無い） */
.cm-abg-b.cm-abg-v1base .cm-abg-b-lockicon::before {
    content: none;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-lockdesc {
    margin: 12px 0 0;
    color: inherit;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.7;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-free {
    margin: 12px 0 0;
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: normal;
}

/* CTA・矢印・入力欄は共通スタイル（.cm-abg .cm-abg-line ほか）の値に戻す */
.cm-abg-b.cm-abg-v1base .cm-abg-line {
    min-height: 0;
    margin: 10px 0 0;
    padding: 14px 18px;
    background: var(--gca);
    box-shadow: 0 6px 18px rgba(92, 203, 99, 0.35);
    font-size: 17px;
    line-height: 1.3;
}

.cm-abg-b.cm-abg-v1base .cm-abg-badge {
    position: static;
    width: 30px;
    height: 30px;
    transform: none;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-arrow {
    margin: 8px 0 4px;
    line-height: normal;
}

.cm-abg-b.cm-abg-v1base .cm-abg-b-arrow span {
    border-top: 15px solid var(--gdk);
}

.cm-abg-b.cm-abg-v1base .cm-abg-field {
    min-height: 0;
    padding: 5px 5px 5px 14px;
    background: #fff;
    border: 2px solid var(--mint);
    box-shadow: 0 2px 10px var(--mint);
}

.cm-abg-b.cm-abg-v1base .cm-abg-lock {
    margin-right: 8px;
    font-size: 15px;
}

.cm-abg-b.cm-abg-v1base .cm-abg-input {
    color: var(--gdk);
    font-size: 15px;
    font-weight: 400;
}

.cm-abg-b.cm-abg-v1base .cm-abg-input::placeholder {
    color: #adc4bd;
}

.cm-abg-b.cm-abg-v1base .cm-abg-go {
    width: 44px;
    height: 40px;
    background: var(--gca);
    border-radius: 999px;
    box-shadow: none;
    font-size: 16px;
}

.cm-abg-b.cm-abg-v1base .cm-abg-note {
    margin: 12px 0 0;
    color: var(--gac);
    font-size: 11.5px;
    font-weight: 600;
}

/* =====================================================================
 * LINEゲート ver3「A"（画像大きく）」— career_gate_fvimg_20260806
 * ---------------------------------------------------------------------
 * 本番 career-match-gate.css の末尾に、そのまま追記する差分。
 *
 * - Bアーム1枚目のカードにある「あなたの結果」ボックス（.cm-abg-b-resultbox）に
 *   .cm-abg-fvw が付いたときだけ効く。ver1（LP版FV）・ver2（現行）には一切かからない。
 * - 変えるのは横幅と背面の絵柄だけ。ラベル「あなたの結果」・🔒・縦幅（min-height:92px）は
 *   現行の値をそのまま引き継ぐ（＝ .cm-abg-b .cm-abg-b-resultbox の定義に乗る）。
 * - CTA・入力欄・▼ は既存スタイル（.cm-abg-line / .cm-abg-field / .cm-abg-b-arrow）の
 *   ままなので、ここでは定義しない。
 * ===================================================================== */

/* 横幅：160px固定 → CTAボタンと同じ全幅へ */
.cm-abg-b .cm-abg-b-resultbox.cm-abg-fvw {
    position: relative;
    width: 100%;
    max-width: none;
    overflow: hidden;
    background: #eef7f5;
    isolation: isolate;
}

/* 背面のぼかし層（レーダー＋横棒。中身はJSが差し込む） */
.cm-abg-fvw-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 13px;
    filter: blur(4px);
    pointer-events: none;
}

.cm-abg-fvw-radar {
    flex-shrink: 0;
    width: 74px;
    height: 74px;
}

.cm-abg-fvw-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cm-abg-fvw-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cm-abg-fvw-label {
    flex-shrink: 0;
    width: 62px;
    overflow: hidden;
    color: #7ba399;
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.cm-abg-fvw-track {
    flex: 1;
    height: 9px;
    overflow: hidden;
    background: #e6f3ee;
    border-radius: 5px;
}

.cm-abg-fvw-bar {
    display: block;
    height: 100%;
    border-radius: 5px;
}

/* 中央の白ベール：ぼかし絵の上に敷いて「あなたの結果」と🔒を立たせる。
   これが無いとバーの緑にラベルが埋もれて可読性が落ちる（2026-08-06 修正）。 */
.cm-abg-b .cm-abg-b-resultbox.cm-abg-fvw::after {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(closest-side at 50% 50%,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.75) 45%,
        rgba(255, 255, 255, 0) 100%);
    content: "";
    pointer-events: none;
}

/* ラベルと🔒を最前面へ（マークアップは現行のまま＝JSは触らない） */
.cm-abg-b .cm-abg-fvw .cm-abg-b-resultlabel,
.cm-abg-b .cm-abg-fvw .cm-abg-b-lockicon {
    position: relative;
    z-index: 1;
}

.cm-abg-b .cm-abg-fvw .cm-abg-b-resultlabel {
    color: #14432f;
    font-size: 13px;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 16px #fff;
}

/* 🔒の後光は、現行のミント色ではなく白にする（背面が絵柄になったため） */
.cm-abg-b .cm-abg-fvw .cm-abg-b-lockicon::before {
    width: 64px;
    height: 46px;
    background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 420px) {
    /* 狭い端末では行ラベルの取り分を削ってバーの長さを確保する */
    .cm-abg-fvw-art {
        gap: 10px;
        padding: 8px 11px;
    }

    .cm-abg-fvw-radar {
        width: 66px;
        height: 66px;
    }

    .cm-abg-fvw-label {
        width: 56px;
        font-size: 9.5px;
    }
}
