/* ねくキャリ転職サービス診断 — サイト準拠(白ベース × 濃紺 × 青)
   モバイルファースト: 基本スタイルはスマートフォン向け。600px以上で余白を広げる。 */

.ncq {
    --ncq-navy: #00036d;
    --ncq-blue: #2563eb;
    --ncq-blue-dark: #1d4ed8;
    --ncq-text: #0f172a;
    --ncq-muted: #64748b;
    --ncq-line: #e2e8f0;
    --ncq-bg-soft: #f8fafc;
    --ncq-gold: #f7d305;
    --ncq-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);

    max-width: 640px;
    margin: 0 auto;
    color: var(--ncq-text);
    font-size: 16px;
    line-height: 1.7;
}

.ncq *,
.ncq *::before,
.ncq *::after {
    box-sizing: border-box;
}

/* スマホでのタップの引っかかりをなくす */
.ncq button,
.ncq a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.ncq-card {
    background: #fff;
    border: 1px solid var(--ncq-line);
    border-radius: 12px;
    box-shadow: var(--ncq-shadow);
    padding: 22px 16px;
    margin: 0 0 14px;
    text-align: center;
}

.ncq-title {
    margin: 4px 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ncq-navy);
    text-wrap: balance;
}

.ncq-lead {
    margin: 0 0 18px;
    color: var(--ncq-muted);
    font-size: 14px;
    line-height: 1.9;
}

/* スタート画面のヒーロー画像(タイトル+リード文を差し替え) */
.ncq-start-hero {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 18px;
    border-radius: 8px;
}

/* 広告表記(ステマ規制対応)。隠さず、はっきり読めるサイズにする */
.ncq-ad-note {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--ncq-muted);
}

/* マッチ度・掲載順の注記 */
.ncq-disclaimer {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--ncq-muted);
    text-align: left;
}

/* ボタン */

.ncq-btn {
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.ncq-btn:active {
    transform: scale(0.98);
}

.ncq-btn-primary {
    background: var(--ncq-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.ncq-btn-primary:hover {
    background: var(--ncq-blue-dark);
}

.ncq-btn-ghost {
    background: #fff;
    color: var(--ncq-muted);
    border: 1px solid var(--ncq-line);
    margin: 14px auto 0;
}

.ncq-btn-ghost:hover {
    color: var(--ncq-blue);
    border-color: var(--ncq-blue);
}

/* 前の質問へもどる: 選択肢より控えめだが、はっきり見えるボタン */

.ncq-btn-back {
    margin-top: 16px;
    padding: 12px 18px;
    background: var(--ncq-bg-soft);
    color: var(--ncq-navy);
    border: 1px solid var(--ncq-line);
    font-size: 15px;
}

.ncq-btn-back:hover {
    border-color: var(--ncq-blue);
    color: var(--ncq-blue);
    background: #fff;
}

/* 進捗: 現在地と「あと◯問」で残り負荷を見せる(離脱率対策) */

.ncq-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.ncq-progress-label {
    font-weight: 700;
    font-size: 18px;
    color: var(--ncq-navy);
}

.ncq-progress-label small {
    color: var(--ncq-muted);
    font-size: 13px;
}

.ncq-progress-remain {
    font-size: 13px;
    font-weight: 700;
    color: var(--ncq-blue);
}

.ncq-progress-track {
    height: 8px;
    background: var(--ncq-line);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 18px;
}

.ncq-progress-bar {
    height: 100%;
    background: var(--ncq-blue);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* 質問・選択肢 */

.ncq-question {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.5;
    color: var(--ncq-text);
    text-align: left;
    text-wrap: balance;
}

.ncq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ncq-option {
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 13px 40px 13px 16px;
    border: 1px solid var(--ncq-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ncq-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.ncq-option:hover {
    border-color: var(--ncq-blue);
}

.ncq-option:active {
    transform: scale(0.985);
    border-color: var(--ncq-blue);
    background: #eff6ff;
}

.ncq-option.is-selected {
    border-color: var(--ncq-blue);
    background: #eff6ff;
    color: var(--ncq-blue-dark);
}

/* 選んだ瞬間のチェックマーク(押せた感のフィードバック) */
.ncq-option.is-selected::after {
    content: "✓";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 800;
    color: var(--ncq-blue);
}

/* AI分析中 */

.ncq-thinking {
    padding: 44px 16px;
}

.ncq-thinking-message {
    font-size: 16px;
    font-weight: 700;
    margin: 14px 0 20px;
    min-height: 1.7em;
    color: var(--ncq-navy);
}

.ncq-thinking-track {
    height: 10px;
    border-radius: 999px;
    background: var(--ncq-line);
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto;
}

.ncq-thinking-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ncq-blue), var(--ncq-navy));
    transition: width 0.8s ease;
}

/* 結果 */

.ncq-result-card {
    background: #fff;
    border: 1px solid var(--ncq-line);
    border-radius: 12px;
    box-shadow: var(--ncq-shadow);
    padding: 18px 16px;
    margin-bottom: 14px;
    text-align: left;
}

.ncq-result-card.is-first {
    border: 2px solid var(--ncq-navy);
}

.ncq-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ncq-rank-badge {
    background: var(--ncq-navy);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    padding: 4px 14px;
}

.is-first .ncq-rank-badge {
    background: var(--ncq-gold);
    color: var(--ncq-navy);
}

.ncq-match {
    font-size: 26px;
    font-weight: 800;
    color: var(--ncq-blue);
    line-height: 1;
}

.ncq-match small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--ncq-muted);
    text-align: right;
}

.ncq-banner-link {
    display: block;
    line-height: 0;
}

.ncq-result-banner {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin: 10px auto 12px;
    border-radius: 10px;
}

.ncq-result-name {
    margin: 4px 0 6px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ncq-navy);
}

.ncq-type-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ncq-blue-dark);
    background: #eff6ff;
    border-radius: 4px;
    padding: 2px 12px;
    margin-bottom: 8px;
}

.ncq-result-catch {
    margin: 0 0 12px;
    font-size: 14.5px;
}

/* あなたの回答とマッチしたポイント */

.ncq-match-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    padding: 0;
}

.ncq-match-points li {
    font-size: 12px;
    font-weight: 700;
    color: var(--ncq-navy);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 3px 12px;
}

.ncq-match-points li::before {
    content: "✓ ";
    color: var(--ncq-blue);
}

.ncq-reason {
    background: var(--ncq-bg-soft);
    border-left: 3px solid var(--ncq-blue);
    border-radius: 0 8px 8px 0;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.ncq-reason strong {
    display: block;
    color: var(--ncq-navy);
    font-size: 13px;
    margin-bottom: 4px;
}

.ncq-reason p {
    margin: 0;
}

.ncq-cta {
    display: block;
    background: var(--ncq-blue);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    padding: 15px 20px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ncq-cta:hover {
    background: var(--ncq-blue-dark);
}

.ncq-cta:active {
    transform: scale(0.98);
}

.ncq-cta.is-pending {
    background: var(--ncq-line);
    color: var(--ncq-muted) !important;
    cursor: default;
}

/* 1位の最重要CTA: サイズと存在感を上げ、最も温度の高いクリックを取りこぼさない */
.ncq-cta-hero {
    font-size: 18px;
    padding: 18px 22px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    animation: ncq-cta-pulse 2.4s ease-in-out infinite;
}

@keyframes ncq-cta-pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.32); }
    50% { box-shadow: 0 8px 26px rgba(37, 99, 235, 0.55); }
}

/* マッチ度バッジ直下の打消し注記(優良誤認の予防) */
.ncq-match-note {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--ncq-muted);
    text-align: right;
}

/* 併願促進(1人が2〜3社登録する行動を後押しする) */
.ncq-cross-apply {
    margin: 2px 0 14px;
    padding: 12px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ncq-text);
    text-align: left;
}

.ncq-cross-apply strong {
    color: var(--ncq-navy);
}

/* 4位以下 */

.ncq-others {
    text-align: left;
}

.ncq-others-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    text-align: center;
    color: var(--ncq-navy);
}

.ncq-other-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ncq-other-item {
    border-bottom: 1px dashed var(--ncq-line);
}

.ncq-other-item:last-child {
    border-bottom: none;
}

.ncq-other-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 4px;
    color: var(--ncq-text);
    text-decoration: none;
}

.ncq-other-item a:hover .ncq-other-name,
.ncq-other-item a:active .ncq-other-name {
    color: var(--ncq-blue);
}

.ncq-other-item.is-pending {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 4px;
    color: var(--ncq-muted);
}

.ncq-other-rank {
    flex: none;
    font-size: 12px;
    font-weight: 700;
    color: var(--ncq-navy);
    background: var(--ncq-bg-soft);
    border: 1px solid var(--ncq-line);
    border-radius: 4px;
    padding: 2px 10px;
}

.ncq-other-logo {
    flex: none;
    width: 64px;
    height: 32px;
    object-fit: contain;
}

.ncq-other-name {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.ncq-other-cta {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--ncq-blue);
}

.is-pending .ncq-other-cta {
    color: var(--ncq-muted);
}

/* モーション配慮 */

@media (prefers-reduced-motion: reduce) {
    .ncq-progress-bar,
    .ncq-thinking-bar,
    .ncq-option,
    .ncq-btn,
    .ncq-cta {
        transition: none;
    }

    .ncq-cta-hero {
        animation: none;
    }
}

/* タブレット・PC: 余白を広げ、ボタンはコンテンツ幅に */

@media (min-width: 600px) {
    .ncq-card {
        padding: 36px 40px;
        margin-bottom: 16px;
    }

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

    .ncq-title br {
        display: none;
    }

    .ncq-lead {
        font-size: 15px;
    }

    .ncq-btn {
        display: inline-block;
        width: auto;
        padding: 14px 40px;
    }

    .ncq-btn-ghost,
    .ncq-btn-back {
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: 12px 32px;
    }

    .ncq-question {
        font-size: 19px;
        text-align: center;
    }

    .ncq-result-card {
        padding: 26px 30px;
    }

    .ncq-result-name {
        font-size: 20px;
    }

    .ncq-cta {
        display: inline-block;
        min-width: 260px;
        margin: 0 auto;
    }

    .ncq-result-card .ncq-cta {
        display: block;
        max-width: 320px;
    }
}
