/* ================================================================
   長文読解クイズ CSS — アクセント #0369a1
   ================================================================ */

.passage-quiz-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ── スタート画面 ── */
.pq-start-screen {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.pq-start-inner {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 48px 48px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
}
.passage-quiz-wrap .pq-start-badge {
    display: inline-block;
    background: #0369a1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 18px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.pq-start-section {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 28px;
}
.pq-start-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
}
.pq-start-stat { text-align: center; }
.passage-quiz-wrap .pq-start-stat-num   { display: block; font-size: 22px; font-weight: 700; color: #0369a1; }
.pq-start-stat-label { display: block; font-size: 11px; color: #999; margin-top: 2px; }
.passage-quiz-wrap .pq-start-btn {
    background: #0369a1;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}
.passage-quiz-wrap .pq-start-btn:active { opacity: 0.85; }

/* ================================================================
   パッセージ表示（タイトル＋両端揃え本文）
   ================================================================ */
.pq-passage-title {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 4px;
    padding-bottom: 0;
    line-height: 1.5;
}
.pq-passage-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}
.pq-passage-para {
    font-size: 14px;
    line-height: 1.9;
    color: #222;
    text-align: justify;
    margin-bottom: 12px;
}
.pq-passage-para:last-child { margin-bottom: 0; }

/* ================================================================
   スマホ専用（〜767px）
   ================================================================ */
.pq-mob-header   { display: none; }
.pq-mob-prog-wrap { display: none; }
.pq-mob-scroll   { display: contents; }
.pq-bottom-bar   { display: none; }
.pq-timer-text {
    font-size: 12px;
    color: #888;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.pq-passage-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
}
.pq-passage-label {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

/* ── 設問テキスト ── */
.pq-q-text {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 0 4px;
}

/* ── 選択肢テキストリスト ── */
.pq-choice-text-list  { margin-bottom: 8px; }
.pq-choice-text-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 3px;
}
.pq-choice-text-row:hover { background: #f0f4f8; }
.pq-choice-text-num {
    flex-shrink: 0;
    font-weight: 600;
    color: #0369a1;
    min-width: 20px;
}
.pq-choice-text-content { color: #333; }
.pq-choice-text-row.correct { background: #e8f5e9; }
.pq-choice-text-row.wrong   { background: #fff3f3; }

/* ── 数字ボタン ── */
.pq-num-btn-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.pq-num-btn {
    height: 45px;
    font-size: 24px;
    font-weight: 700;
    color: #555;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.pq-num-btn:active:not(.disabled) { background: #f0f0f0; }
.pq-num-btn.selected  { background: #0369a1; color: #fff; border-color: #0369a1; }
.pq-num-btn.correct   { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.pq-num-btn.wrong     { background: #fff3f3; color: #c62828; border-color: #c62828; }
.pq-num-btn.disabled  { cursor: default; }

/* ── 次へボタン ── */
.pq-next-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: #0369a1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: 8px;
}
.pq-next-btn.show { display: block; }

/* ── ナビゲーション ── */
.pq-q-nav-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 3px;
    margin-bottom: 3px;
    gap: 8px;
}
.pq-nav-prev, .pq-nav-next {
    padding: 8px 16px;
    border: 1.5px solid #b8c4d8;
    border-radius: 20px;
    background: #eef1f7;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    min-width: 64px;
    text-align: center;
    transition: background 0.15s, color 0.15s;
}
.pq-nav-prev { justify-self: start; }
.pq-nav-next { justify-self: end; }
/* 押せない（first question）: 薄いが視認できる */
.pq-nav-prev:disabled {
    background: #f4f4f4;
    border-color: #e0e0e0;
    color: #bbb;
    cursor: default;
}
/* 答え未選択: 見えるがグレー */
.pq-nav-next { color: #888; }
/* 答え選択済み / 採点可能: 青 */
.pq-nav-next.active  { background: #0369a1; border-color: #0369a1; color: #fff; }
.pq-nav-badge { text-align: center; line-height: 1; }
.pq-nav-badge-status { display: none; }
.pq-nav-badge-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 20px;
    background: #eef1f7;
    color: #0369a1;
    font-size: 15px;
    font-weight: 700;
    border: 1.5px solid #c5caed;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.pq-nav-badge-num.ok { background: #c8e6c9; color: #1b5e20; border-color: #a5d6a7; }
.pq-nav-badge-num.ng { background: #ffcdd2; color: #b71c1c; border-color: #ef9a9a; }
.pq-nav-badge-label { display: none; }

/* 選択肢トグルボタン（スマホ専用） */
.pq-choices-toggle {
    display: inline-block;
    background: none;
    border: 1px solid #b8c4d8;
    border-radius: 10px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    margin-left: 6px;
    white-space: nowrap;
    vertical-align: middle;
    font-family: inherit;
    line-height: 1.5;
}
.pq-choices-toggle.is-hidden {
    background: #eef1f7;
    color: #0369a1;
    border-color: #0369a1;
}

/* ================================================================
   スマホ: 上固定ヘッダー / 中央スクロール / 下固定バー
   ================================================================ */
@media (max-width: 767px) {
    .pq-quiz-ui {
        position: fixed;
        inset: 0;
        display: none;
        flex-direction: column;
        background: #f7f8fb;
        z-index: 9999;
        overflow: hidden;
    }
    .pq-quiz-active body, body.pq-quiz-active { overflow: hidden; }

    .pq-mob-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: #0369a1;
        color: #fff;
        flex-shrink: 0;
    }
    .pq-mob-back {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        line-height: 1;
        padding: 0 4px;
        flex-shrink: 0;
    }
    .pq-mob-title-wrap { flex: 1; min-width: 0; }
    .pq-mob-title { font-size: 13px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pq-mob-sub   { font-size: 11px; opacity: 0.8; }
    .pq-mob-header-right { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
    .pq-mob-counter { font-size: 12px; font-weight: 600; }

    .pq-mob-prog-wrap {
        display: block;
        height: 3px;
        background: rgba(255,255,255,0.3);
        flex-shrink: 0;
    }
    .pq-mob-prog-bar { height: 100%; background: #fff; transition: width 0.3s; }

    .pq-mob-timer-wrap {
        height: 3px;
        background: rgba(3,105,161,0.15);
        flex-shrink: 0;
    }
    .pq-mob-timer-fill { height: 100%; background: #0369a1; transition: width 1s linear; }
    .pq-mob-timer-fill.warn { background: #e53935; }

    .pq-mob-scroll {
        display: flex;
        flex-direction: column;
        flex: 1;
        overflow-y: auto;
        padding: 8px 10px 0;
        -webkit-overflow-scrolling: touch;
    }
    .pq-font-btn {
        align-self: flex-end;
        background: #fff !important;
        border: 1px solid #ccc !important;
        border-radius: 6px !important;
        padding: 4px 10px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #333 !important;
        cursor: pointer;
        margin-bottom: 8px;
    }

    /* パッセージカード内余白 */
    .pq-passage-card {
        padding: 10px 10px;
    }

    .pq-mob-scroll.pq-font-2 .pq-passage-para,
    .pq-mob-scroll.pq-font-2 .pq-q-text,
    .pq-mob-scroll.pq-font-2 .pq-choice-text-row { font-size: 15px; }
    .pq-mob-scroll.pq-font-3 .pq-passage-para,
    .pq-mob-scroll.pq-font-3 .pq-q-text,
    .pq-mob-scroll.pq-font-3 .pq-choice-text-row { font-size: 17px; }
    .pq-mob-scroll.pq-font-4 .pq-passage-para,
    .pq-mob-scroll.pq-font-4 .pq-q-text,
    .pq-mob-scroll.pq-font-4 .pq-choice-text-row { font-size: 19px; }

    .pq-bottom-bar {
        display: block;
        background: #fff;
        border-top: 2px solid #c5caed;
        padding: 8px 8px;
        flex-shrink: 0;
        max-height: 55vh;
        overflow-y: auto;
    }

    /* 選択肢の間隔を半分に */
    .pq-choice-text-row {
        padding: 3px 6px;
        margin-bottom: 1px;
    }

    /* 設問テキストの余白を詰める */
    .pq-q-text {
        padding: 0 2px;
    }

    /* 選択肢を非表示にしたとき */
    .pq-bottom-bar.pq-choices-hidden .pq-choices-wrap,
    .pq-bottom-bar.pq-choices-hidden .pq-num-btn-row,
    .pq-bottom-bar.pq-choices-hidden .pq-next-btn {
        display: none;
    }

    /* ボタン強制表示（テーマ上書き対策） */
    .pq-nav-prev,
    .pq-nav-next {
        background: #eef1f7 !important;
        color: #555 !important;
        border: 1.5px solid #b8c4d8 !important;
        border-radius: 20px !important;
        padding: 8px 16px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        min-width: 64px !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .pq-nav-prev:disabled {
        background: #f4f4f4 !important;
        border-color: #e0e0e0 !important;
        color: #bbb !important;
    }
    .pq-nav-next.active {
        background: #0369a1 !important;
        border-color: #0369a1 !important;
        color: #fff !important;
    }
}

/* ================================================================
   結果画面
   ================================================================ */
/* ── 結果グリッド（番号＋⭕/❌） ── */
.pq-result-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 10px 8px 4px;
    margin-bottom: 4px;
}
.pq-result-grid-item {
    position: relative;
    width: 40px;
    height: 40px;
}
.pq-result-grid-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef1f7;
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
}
.pq-result-grid-num.ok { background: #e8f5e9; color: #2e7d32; }
.pq-result-grid-num.ng { background: #fff3f3; color: #c62828; }
.pq-result-grid-mark {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

.pq-result { display: none; padding: 16px 12px; background: #f7f8fb; }
.pq-result.show { display: block; }
@media (max-width: 767px) {
    .pq-result-btn-row {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10000;
        width: calc(100% - 40px);
        max-width: 500px;
        display: flex;
        gap: 12px;
        padding: 0;
    }
    .pq-result-restart,
    .pq-result-back {
        flex: 1;
        padding: 14px 16px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 700;
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .pq-result-restart {
        background: #f5f5f5;
        color: #333;
        border: 2px solid #000;
        font-weight: bold;
    }
    .pq-result-back {
        background: #0369a1;
        color: #fff;
    }
    .pq-result.show { padding-bottom: 96px; }
}
.pq-result-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 5px 0;
    margin-bottom: 16px;
}
.pq-result-score-big   { font-size: 28px; font-weight: 700; color: #0369a1; }
.pq-result-score-label { font-size: 16px; color: #333; }
.pq-result-title       { display: none; }

.pq-answer-summary { margin-bottom: 20px; }
.pq-ans-row {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fff;
}
.pq-ans-row.ok { border-color: #a5d6a7; }
.pq-ans-q      { font-size: 12px; color: #888; margin-bottom: 4px; }
.pq-ans-val    { font-size: 13px; line-height: 1.5; }
.pq-ans-correct { font-size: 13px; font-weight: 500; margin-top: 4px; }
.pq-c-ok { color: #2e7d32; }
.pq-c-ng { color: #c62828; }

.pq-mob-exp { margin-top: 10px; border-top: 1px solid #eee; padding-top: 8px; }
.pq-mob-exp-row { margin-bottom: 6px; font-size: 13px; line-height: 1.6; }
.pq-mob-exp-label {
    display: inline-block;
    background: #e8f0fb;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 3px;
    margin-bottom: 2px;
    margin-right: 4px;
}
.pq-highlight { color: #1a7a1a; font-weight: 600; }

.pq-full-trans {
    display: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}
.pq-full-trans-title     { font-size: 13px; font-weight: 600; color: #0369a1; margin-bottom: 10px; }
.pq-full-trans-title-ja  { text-align: center; font-size: 15px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.pq-full-trans-para      { font-size: 13px; line-height: 1.8; color: #333; margin-bottom: 10px; }
.pq-full-trans-para:last-child { margin-bottom: 0; }
.pq-full-trans-label     { display: block; font-size: 11px; font-weight: 600; color: #888; margin-bottom: 3px; }

/* 解説・日本語訳 共通（PC/モバイル両用） */
.pq-trans-row .pq-pc-exp-label,
.pq-trans-row .pq-mob-exp-label { display: block; margin-bottom: 6px; }
.pq-trans-body { display: block; width: 100%; margin-top: 0; }
.pq-trans-q    { font-weight: 700; margin-bottom: 4px; font-size: 13px; }
.pq-choices-ja-list {
    margin: 4px 0 0 0; padding: 0;
    list-style: none;
    font-size: 13px; line-height: 1.7;
}
.pq-choices-ja-list li { padding: 1px 0; }
.pq-choice-ja-correct  { color: #1a7a1a; font-weight: 600; }

.pq-result-btn-row { display: flex; gap: 10px; margin-top: 20px; }
.pq-result-restart {
    flex: 1; padding: 12px;
    background: #f5f5f5; border: 1px solid #ddd; border-radius: 8px;
    font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
}
.pq-result-back {
    flex: 1; padding: 12px;
    background: #0369a1; color: #fff; border-radius: 8px;
    font-size: 14px; font-weight: 600; text-align: center;
    text-decoration: none; display: flex; align-items: center; justify-content: center;
}
.pq-result-back:hover { opacity: 0.9; text-decoration: none; color: #fff; }

/* ================================================================
   PC / タブレット（≥768px）
   ================================================================ */
@media (min-width: 768px) {
    .pq-topbar {
        display: flex;
        align-items: center;
        gap: 16px;
        background: #0369a1;
        color: #fff;
        padding: 10px 20px;
        border-radius: 10px 10px 0 0;
    }
    .pq-topbar-info    { flex: 1; min-width: 0; }
    .pq-topbar-title   { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pq-topbar-sub     { font-size: 12px; opacity: 0.8; }

    .pq-topbar-meta    { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
    .pq-timer-remain   { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: #fff; }
    .pq-topbar-hint    { font-size: 11px; color: rgba(255,255,255,0.75); }
    .pq-topbar-qcount  { font-size: 11px; color: rgba(255,255,255,0.9); font-weight: 600; }

    /* 全幅タイマーバー */
    .pq-timer-fullbar { background: #0369a1; padding-bottom: 5px; }
    .pq-timer-track {
        height: 5px;
        background: rgba(255,255,255,0.25);
        position: relative;
    }
    .pq-timer-fill  { height: 100%; background: #fff; transition: width 1s linear; }
    .pq-timer-fill.warn { background: #ff8a80; }
    .pq-timer-tick {
        position: absolute;
        top: -3px;
        width: 2px;
        height: 11px;
        background: rgba(255,255,255,0.55);
        transform: translateX(-50%);
    }

    .pq-pc-font-btn {
        background: rgba(255,255,255,0.15);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        border-radius: 6px;
        padding: 4px 10px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        flex-shrink: 0;
    }

    .pq-pc-wrap {
        display: flex;
        border: 1px solid #e0e0e0;
        border-top: none;
        border-radius: 0 0 10px 10px;
        overflow: hidden;
    }

    .pq-pc-passage {
        flex: 1;
        border-right: 1px solid #e0e0e0;
        padding: 24px 32px;
        overflow-y: auto;
        background: #fff;
    }
    /* PC: タイトルと本文 */
    .pq-pc-passage .pq-passage-title    { font-size: 17px; margin-bottom: 4px; padding-bottom: 0; }
    .pq-pc-passage .pq-passage-title-ja { font-size: 14px; margin-bottom: 20px; padding-bottom: 14px; }
    .pq-pc-passage .pq-passage-para     { font-size: 15px; line-height: 2; margin-bottom: 14px; }

    .pq-pc-font-2 .pq-passage-para,
    .pq-pc-font-2 .pq-pc-q-text,
    .pq-pc-font-2 .pq-pc-choice-text-row { font-size: 16px; }
    .pq-pc-font-3 .pq-passage-para,
    .pq-pc-font-3 .pq-pc-q-text,
    .pq-pc-font-3 .pq-pc-choice-text-row { font-size: 18px; }
    .pq-pc-font-4 .pq-passage-para,
    .pq-pc-font-4 .pq-pc-q-text,
    .pq-pc-font-4 .pq-pc-choice-text-row { font-size: 20px; }

    /* 全文訳（PC左カラム） */
    .pq-pc-full-trans { display: none; margin-top: 24px; border-top: 1px solid #e0e0e0; padding-top: 16px; }
    .pq-pc-full-trans-title    { font-size: 13px; font-weight: 600; color: #0369a1; margin-bottom: 10px; }
    .pq-pc-full-trans-title-ja { text-align: center; font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 14px; }
    .pq-pc-full-trans-para     { font-size: 14px; line-height: 1.8; color: #333; margin-bottom: 12px; }
    .pq-pc-full-trans-label { display: block; font-size: 11px; font-weight: 600; color: #888; margin-bottom: 2px; }

    .pq-pc-questions { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; background: #fafafa; }
    .pq-pc-questions-scroll { flex: 1; overflow-y: auto; padding: 16px 18px; }

    .pq-pc-q-block {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 14px 16px;
        margin-bottom: 14px;
    }
    .pq-pc-q-label {
        font-size: 11px; font-weight: 600; color: #888;
        margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em;
    }
    .pq-pc-q-text {
        font-size: 14px; font-weight: 700; color: #1a1a1a;
        line-height: 1.6; margin-bottom: 10px;
    }

    .pq-pc-choice-list { margin-bottom: 10px; }
    .pq-pc-choice-text-row {
        display: flex; align-items: flex-start; gap: 8px;
        padding: 5px 6px; border-radius: 5px;
        font-size: 13px; line-height: 1.5; margin-bottom: 2px;
    }
    .pq-pc-choice-text-num     { flex-shrink: 0; font-weight: 600; color: #0369a1; min-width: 24px; }
    .pq-pc-choice-text-content { color: #333; }
    .pq-pc-choice-text-row.correct { background: #e8f5e9; }
    .pq-pc-choice-text-row.wrong   { background: #fce8e8; }

    .pq-pc-num-row { display: flex; gap: 8px; }
    .pq-pc-num-btn {
        width: 38px; height: 38px;
        border: 2px solid #d0d0d0; border-radius: 50%;
        background: #fff; font-size: 15px; font-weight: 600; color: #444;
        cursor: pointer; font-family: inherit; transition: all 0.1s;
        display: inline-flex; align-items: center; justify-content: center;
        padding: 0; line-height: 1;
    }
    .pq-pc-num-btn:hover:not(:disabled) { border-color: #0369a1; color: #0369a1; }
    .pq-pc-num-btn.selected { background: #0369a1; border-color: #0369a1; color: #fff; }
    .pq-pc-num-btn.correct  { background: #2e7d32; border-color: #2e7d32; color: #fff; }
    .pq-pc-num-btn.wrong    { background: #c62828; border-color: #c62828; color: #fff; }
    .pq-pc-num-btn:disabled { cursor: default; }

    .pq-pc-explanation { margin-top: 12px; border-top: 1px solid #eee; padding-top: 10px; }
    .pq-pc-exp-row     { margin-bottom: 8px; font-size: 13px; line-height: 1.6; }
    .pq-pc-exp-label {
        display: inline-block;
        background: #e8f0fb; color: #0369a1;
        font-size: 11px; font-weight: 600;
        padding: 1px 8px; border-radius: 3px;
        margin-bottom: 4px; margin-right: 4px;
        vertical-align: top;
    }
    .pq-pc-submit-bar { padding: 12px 18px; border-top: 1px solid #e0e0e0; background: #fff; }
    .pq-pc-submit-btn {
        width: 100%; padding: 12px;
        background: #0369a1; color: #fff;
        border: none; border-radius: 8px;
        font-size: 14px; font-weight: 600;
        cursor: pointer; font-family: inherit;
        transition: opacity 0.15s;
        white-space: nowrap;
    }
    .pq-pc-submit-btn.pq-pc-retry-btn {
        width: auto;
        flex: 1;
    }
    .pq-pc-submit-btn.done { background: #555; }
    .pq-pc-submit-btn:hover { opacity: 0.9; }

    .pq-pc-back-btn {
        flex: 1;
        padding: 13px;
        background: #5f72bd;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: opacity 0.15s;
        box-shadow: 0 2px 12px rgba(95,114,189,0.3);
        text-decoration: none;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    .pq-pc-back-btn:hover  { opacity: 0.9; text-decoration: none; color: #fff; }
    .pq-pc-back-btn:active { opacity: 0.8; }
}

.pq-para-break { display: none; }


/* ── セットタブナビゲーション ─────────────────────── */
.lq-set-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.lq-set-tab-btn {
    padding: 5px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lq-set-tab-btn:hover { background: #e2e8f0; }
.lq-set-tab-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

