/* =====================================================================
 * diagnosis-tree.css
 * [diagnosis_tree] YES/NO ツリー診断ツール用スタイル
 * 既存 .cm-* / #cm-app（career-match）と衝突しないよう .dt-* 命名で完全分離。
 * ===================================================================== */

.dt-app {
    --dt-green: #26A69A;
    --dt-green-dark: #1f8a80;
    --dt-green-light: #E4F8F6;
    /* 質問フェーズのアクセント＝ブランド緑（オーナー指定で緑に統一） */
    --dt-accent: #26A69A;
    --dt-accent-dark: #1f8a80;
    --dt-accent-light: #E4F8F6;
    --dt-blue: #4a7fd0;
    --dt-blue-dark: #3a6bbf;
    --dt-red: #e04e4e;
    --dt-text: #1f2937;
    --dt-text-sub: #5b6770;
    --dt-border: #d9e0dc;
    --dt-bg-card: #ffffff;
    --dt-radius: 12px;
    /* オーナー指定の確定スタック（Helvetica/Arial→Hiragino、BIZ UDGothic除外）。 */
    --dt-font: "Helvetica", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", YuGothic, "Yu Gothic", "メイリオ", Meiryo, sans-serif;

    max-width: 640px;
    margin: 28px auto;
    padding: 0;
    /* 外枠（島）は付けない。タイトルは質問カードに乗る「タブ」で見せる */
    font-family: var(--dt-font);
    color: var(--dt-text);
    line-height: 1.6;
    box-sizing: border-box;
}

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

/* ---------- タイトルバッジ（タブではなく、カードの上に乗せる丸ピル・質問フェーズのみ） ---------- */
.dt-head {
    display: flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
    max-width: calc(100% - 24px);
    min-height: 34px;
    margin: 0 0 -16px 18px;
    padding: 6px 14px 6px 9px;
    background: linear-gradient(135deg, #19a99b 0%, #078d82 100%);
    color: #fff;
    border: 1px solid rgba(8, 128, 118, 0.55);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(12, 143, 131, 0.24);
    position: relative;
    z-index: 2;
}

/* ゲート／結果フェーズではタブを隠す（中央寄せカードと左端がズレるため） */
.dt-app:has([data-role="gate-wrap"]:not([hidden])) .dt-head,
.dt-app:has([data-role="result-wrap"]:not([hidden])) .dt-head {
    display: none;
}

.dt-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: inherit;
    flex: none;
}

.dt-head-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.dt-head-text {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

/* ---------- 本体（外枠なし・余白も持たせない） ---------- */
.dt-body {
    padding: 0;
}

/* ---------- リード文（intro属性使用時のみ） ---------- */
.dt-lead {
    margin: 0 0 16px;
    color: var(--dt-text-sub);
    font-size: 0.92em;
    line-height: 1.75;
}

/* ---------- 質問エリア ---------- */
.dt-question-area {
    margin: 0;
}

.dt-question-card {
    background: var(--dt-bg-card);
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius);
    padding: 28px 24px 24px;
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.06);
}

/* ---------- 上部バー：N問目 + 進捗 ---------- */
.dt-question-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.dt-question-step {
    display: inline-block;
    padding: 4px 12px;
    color: var(--dt-accent-dark);
    background: var(--dt-accent-light);
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.dt-progress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dt-progress-label {
    color: var(--dt-text-sub);
    font-size: 0.74em;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* 進捗バー（ルートで問題数が変わるのでドットではなく可変バー） */
.dt-progress-track {
    position: relative;
    width: 120px;
    height: 7px;
    border-radius: 999px;
    background: #dfe6e2;
    overflow: hidden;
}

.dt-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--dt-accent);
    transition: width 0.35s ease;
}

@media (max-width: 480px) {
    .dt-progress-track { width: 88px; }
}

/* ---------- 質問画像（任意・質問文の右にちょこっと） ----------
   バナーではなく、質問文の右に小さく添える。正方形に固定し、
   どの比率の元画像でも object-fit:cover で中央を切り抜いて揃える。 */
.dt-question-image {
    flex: 0 0 40%;          /* 幅の割合で固定＝どの画面幅でも同じバランス（2026-07-07 44%→40%に微縮小） */
    max-width: 200px;       /* 幅広画面で大きくなりすぎない上限 */
    margin: 0;
}

.dt-question-image img {
    display: block;
    width: 100%;
    height: 100%;           /* 質問文の高さいっぱいに伸ばして下の余白をなくす */
    min-height: 132px;      /* 質問文が短いときでも潰れない最低の高さ */
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

/* ---------- 質問本文＋画像の横並び ---------- */
.dt-question-body {
    display: flex;
    align-items: stretch;   /* 画像列を質問文の高さに合わせて伸ばす（下の余白を消す） */
    gap: 14px;
    margin: 0 0 16px;      /* 質問文と はい/いいえ ボタンの間隔（上バーの16pxと揃える） */
}

.dt-question-body.has-image .dt-question-text {
    flex: 1 1 auto;
    min-width: 0;
}

.dt-question-text {
    margin: 0;
    color: var(--dt-text);
    font-size: 1.1em;
    font-weight: 900;
    line-height: 1.7;
    word-break: break-word;
}

/* ---------- YES/NO ボタン ---------- */
.dt-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dt-choice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 14px 18px;
    font-family: var(--dt-font);
    font-size: 1em;
    font-weight: 800;
    line-height: 1.3;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dt-choice-btn--yes {
    color: #fff;
    background: var(--dt-accent);
    border: 2px solid var(--dt-accent);
    box-shadow: 0 6px 14px rgba(38, 166, 154, 0.32);
}

.dt-choice-btn--yes:hover,
.dt-choice-btn--yes:focus {
    background: var(--dt-accent-dark);
    border-color: var(--dt-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(38, 166, 154, 0.38);
    outline: none;
}

.dt-choice-btn--no {
    color: var(--dt-accent-dark);
    background: #fff;
    border: 2px solid var(--dt-accent);
}

.dt-choice-btn--no:hover,
.dt-choice-btn--no:focus {
    background: var(--dt-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(38, 166, 154, 0.20);
    outline: none;
}

.dt-choice-btn:active {
    transform: translateY(0);
}

/* 戻るボタン（小さく控えめ） */
.dt-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 16px 0 0;
    padding: 8px 14px;
    color: var(--dt-text-sub);
    background: transparent;
    border: 1px solid var(--dt-border);
    border-radius: 999px;
    font-family: var(--dt-font);
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dt-back-btn:hover {
    background: #f5f7f6;
    color: var(--dt-text);
    border-color: #c1cac4;
}

/* ---------- ゲートエリア ---------- */
.dt-gate-wrap {
    padding: 0;
}

.dt-gate-wrap[hidden] {
    display: none;
}

/* ---------- 診断ツリー専用・コンパクトLINEゲート ----------
   共有ゲートの構造とLINE導線は保ち、見た目だけを .dt-gate-wrap 内で上書きする。 */
.dt-gate-wrap .spi-mini-gate {
    padding: 0;
}

.dt-gate-wrap .spi-mini-gate-card {
    max-width: 390px;
    padding: 14px 16px 18px;
    /* 装飾：カード全体に散らしたキラキラ（緑・オレンジ）＋ドット＋淡い円ブロブ */
    background-color: #FBFFFE;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%2366C6B9'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%23F6C39E'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%2366C6B9'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%23F6C39E'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%2366C6B9'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%23F6C39E'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%2366C6B9'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 L14.6 9.4 22 12 14.6 14.6 12 22 9.4 14.6 2 12 9.4 9.4 Z' fill='%23F6C39E'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 62'%3E%3Cg fill='%23D5EBE5'%3E%3Ccircle cx='5' cy='5' r='2.4'/%3E%3Ccircle cx='23' cy='5' r='2.4'/%3E%3Ccircle cx='41' cy='5' r='2.4'/%3E%3Ccircle cx='59' cy='5' r='2.4'/%3E%3Ccircle cx='5' cy='23' r='2.4'/%3E%3Ccircle cx='23' cy='23' r='2.4'/%3E%3Ccircle cx='41' cy='23' r='2.4'/%3E%3Ccircle cx='59' cy='23' r='2.4'/%3E%3Ccircle cx='5' cy='41' r='2.4'/%3E%3Ccircle cx='23' cy='41' r='2.4'/%3E%3Ccircle cx='41' cy='41' r='2.4'/%3E%3Ccircle cx='59' cy='41' r='2.4'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle 120px at 104% -2%, rgba(38, 166, 154, 0.10), transparent 100%),
        radial-gradient(circle 100px at -6% 104%, rgba(38, 166, 154, 0.08), transparent 100%),
        radial-gradient(circle at 20% 0, rgba(38, 166, 154, 0.10), transparent 45%);
    background-position:
        4% 2.5%, 95% 4%, 97% 21%, 3% 33%, 96% 46%, 4% 61%, 95% 73%, 6% 90%, 9% 15%,
        0 0, 0 0, 0 0;
    background-size:
        16px, 13px, 11px, 12px, 13px, 10px, 12px, 11px, 58px,
        auto, auto, auto;
    background-repeat: no-repeat;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(38, 166, 154, 0.11);
    line-height: 1.5;
}

.dt-gate-wrap .spi-mini-gate .spi-mini-gate-eyebrow,
.dt-gate-wrap .spi-mini-gate-title-main {
    color: var(--dt-accent-dark);
    font-size: clamp(13px, 3.85vw, 16px);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: -0.025em;
    text-shadow: none;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.dt-gate-wrap .spi-mini-gate .spi-mini-gate-eyebrow {
    margin: 0 0 2px;
}

.dt-gate-wrap .spi-mini-gate-blur-card {
    width: 100%;
    max-width: none;
    height: 168px;
    margin: 12px auto 10px;
    border-width: 1px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(38, 166, 154, 0.13);
}

.dt-gate-wrap .spi-mini-gate-blur-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dt-gate-wrap .spi-mini-gate-blur-pill {
    display: flex;
    width: auto;
    height: auto;
    min-height: 22px;
    padding: 4px 5px;
    gap: 3px;
    border-width: 1px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 5px rgba(18, 169, 156, 0.16);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
}

.dt-gate-wrap .spi-mini-gate-blur-lock-icon {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.dt-gate-wrap .spi-mini-gate-blur-pill::before {
    content: none;
}

.dt-gate-wrap .spi-mini-gate-blur-pill::after {
    content: none;
}

/* ---------- ぼかし結果カード（構造化ダミー版） ---------- */
.dt-gate-wrap .spi-mini-gate-blur-card-html {
    height: auto;
    padding: 0;
    background: #ffffff;
    border: 1.5px solid #bfe9e3;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(38, 166, 154, 0.24);
    text-align: center;
}
.dt-gate-wrap .spi-mini-gate-blur-card-html .spi-mini-gate-blur-accent {
    display: none;
}
.dt-gate-wrap .spi-mini-gate-blur-card-html .spi-mini-gate-blur-body {
    filter: none;
    padding: 0 14px 8px;
}
.dt-blur-head {
    margin: 0 -14px 13px;
    padding: 11px 14px;
    background: linear-gradient(90deg, #2bb3a4, #12a49a);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}
.dt-blur-head::before,
.dt-blur-head::after {
    content: "✦";
    margin: 0 7px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    vertical-align: 1px;
}
.dt-blur-jobline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 12px;
}
.dt-blur-suffix {
    font-size: 18px;
    font-weight: 900;
    color: #3b4a4f;
}
.dt-blur-inner {
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(38, 166, 154, 0.1);
    text-align: left;
}
.dt-blur-inner-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 9px;
    font-size: 11px;
    font-weight: 800;
    color: #6b7780;
}
.dt-blur-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}
.dt-blur-check {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dt-blur-checkicon {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: #26a69a;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    line-height: 13px;
    text-align: center;
}
.dt-blur-mask {
    display: inline-block;
    height: 11px;
    border-radius: 3px;
    background: linear-gradient(90deg, #d3e6e2, #e6f2ef);
    filter: blur(2px);
}
.dt-blur-mask-job {
    width: 130px;
    height: 22px;
}
.dt-blur-mask-name {
    width: 34px;
}
.dt-blur-check .dt-blur-mask {
    flex: 1;
    min-width: 0;
}
.dt-gate-wrap .spi-mini-gate-blur-card-html .spi-mini-gate-blur-pill {
    position: absolute;
    left: 50%;
    top: 62%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 94%;
    padding: 13px 22px;
    white-space: nowrap;
    line-height: 1.55;
    text-align: center;
    color: #067a6e !important;
    font-size: 14.5px;
    font-weight: 900;
    background: linear-gradient(180deg, #ffffff 0%, #eefbf8 100%);
    border: 2px solid #12a99c;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(18, 169, 156, 0.32);
}

.dt-gate-wrap .spi-mini-gate .spi-mini-gate-title-sub {
    display: none;
}

/* 「312,887人が登録済み」ブロックは非表示（あおり文言に集約） */
.dt-gate-wrap .spi-mini-gate-proof {
    display: none;
}

.dt-gate-wrap .spi-mini-gate .spi-mini-gate-minute {
    margin: 5px 0 4px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
}

.dt-gate-wrap .spi-mini-gate-line-primary {
    width: 94%;
    max-width: none;
    min-height: 54px;
    padding: 9px 16px;
    border-radius: 18px;
    box-shadow: 0 8px 15px rgba(3, 140, 56, 0.25), 0 4px 0 rgba(3, 102, 41, 0.48);
}

.dt-gate-wrap .spi-mini-gate-line-label {
    left: 48px;
    right: 48px;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.dt-gate-wrap .spi-mini-gate-arrow {
    margin: 10px auto 0;
    border-right-width: 8px;
    border-left-width: 8px;
    border-top-width: 10px;
    border-top-color: var(--dt-accent);
}

.dt-gate-wrap .spi-mini-gate-form {
    margin: 13px 0 0;
}

.dt-gate-wrap .spi-mini-gate-field {
    width: 88%;
    max-width: none;
    height: 46px;
    border-width: 1.5px;
    border-radius: 15px;
}

.dt-gate-wrap .spi-mini-gate-lock {
    display: block;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8b989f;
}

.dt-app .dt-gate-wrap .spi-mini-gate-field .spi-mini-gate-input {
    padding: 0 46px 0 42px;
    font-size: 13px;
}

.dt-gate-wrap .spi-mini-gate-go {
    right: 5px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.dt-gate-wrap .spi-mini-gate-note {
    margin: 6px 0 11px !important;
    font-size: 10px !important;
    font-weight: 800;
}

.dt-gate-wrap .spi-mini-gate-line-bottom {
    display: none;
}
.dt-gate-wrap .spi-mini-gate .spi-mini-gate-section-title {
    margin: 20px 0 12px;
    font-size: 15px;
    font-weight: 800;
    color: #2f9e92;
}

.dt-gate-wrap .spi-mini-gate-benefits {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 6px;
    max-width: none;
}

.dt-gate-wrap .spi-mini-gate-benefit {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    justify-content: initial;
    gap: 10px;
    min-height: 0;
    padding: 6px 14px;
    border-radius: 10px;
    box-shadow: none;
    box-shadow: none;
    text-align: left;
}

.dt-gate-wrap .spi-mini-gate-benefit-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.dt-gate-wrap .spi-mini-gate-benefit-icon svg {
    width: 15px;
    height: 15px;
}

.dt-gate-wrap .spi-mini-gate .spi-mini-gate-benefit-title {
    color: var(--dt-accent-dark) !important;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-align: left;
    word-break: keep-all;
}
/* 全幅1列なので強制改行は消して1行に */
.dt-gate-wrap .spi-mini-gate-benefit-title br {
    display: none;
}

/* ---------- 結果エリア ---------- */
.dt-result-wrap[hidden] {
    display: none;
}

/* =======================================================
   結果カード ─ reveal
   サイトブランド：メイン緑 #26A69A × アクセント青 #4a7fd0。
   ======================================================= */
.dt-result-card {
    position: relative;
    background: var(--dt-bg-card);
    border: 1px solid var(--dt-border);
    border-radius: var(--dt-radius);
    box-shadow: 0 6px 18px rgba(31, 41, 51, 0.06);
    overflow: hidden;
    animation: dtResultPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dtResultPop {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

@keyframes dtRiseIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ---- ヒーロー（おすすめ職種） ---- */
.dt-result-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    padding: 34px 26px 30px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(130% 120% at 50% -15%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(150deg, var(--dt-accent-dark) 0%, var(--dt-accent) 52%, #7fd0c6 100%);
}

/* 斜めのキラッと光 */
.dt-result-head::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -25%;
    width: 55%;
    height: 180%;
    transform: rotate(8deg);
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* 紙吹雪（散らした小さなドット） */
/* ごく控えめな紙吹雪（小さく・低彩度で品よく） */
.dt-result-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 42%, transparent 44%),
        radial-gradient(circle, rgba(255, 255, 255, 0.55) 42%, transparent 44%),
        radial-gradient(circle, rgba(255, 255, 255, 0.7) 42%, transparent 44%),
        radial-gradient(circle, rgba(255, 244, 224, 0.95) 42%, transparent 44%),
        radial-gradient(circle, rgba(255, 255, 255, 0.6) 42%, transparent 44%);
    background-size: 5px 5px, 4px 4px, 4px 4px, 5px 5px, 4px 4px;
    background-position: 14% 26%, 30% 68%, 62% 18%, 80% 62%, 90% 38%;
    background-repeat: no-repeat;
}

.dt-result-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-block;
    padding: 5px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    font-size: 0.74em;
    font-weight: 700;
    letter-spacing: 0.12em;
    animation: dtRiseIn 0.55s ease both 0.28s;
}

.dt-result-name {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 1.62em;
    font-weight: 900;
    line-height: 1.36;
    letter-spacing: 0.005em;
    word-break: break-word;
    text-shadow: 0 2px 8px rgba(125, 60, 0, 0.24);
    animation: dtRiseIn 0.6s ease both 0.38s;
}

/* 名前下のアンダーライン（白系・緑ヒーロー上で品よく） */
.dt-result-name::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    margin: 15px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.55));
    box-shadow: 0 1px 4px rgba(140, 70, 0, 0.18);
}

/* セクション見出し（💡おすすめの理由 / 📋この仕事について） */
.dt-sec-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    color: var(--dt-accent-dark);
    font-size: 1.04em;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.dt-sec-icon {
    font-size: 1.15em;
    line-height: 1;
}

/* 理由セクションの見出しもオレンジで統一 */
.dt-result-reason .dt-sec-head {
    color: var(--dt-accent-dark);
}

/* おすすめの理由（オレンジ系カラウト・「この仕事について」とは枠スタイルで差別化） */
.dt-result-reason {
    padding: 24px 26px 6px;
    text-align: left;
    animation: dtRiseIn 0.6s ease both 0.46s;
}

.dt-reason-card {
    padding: 16px 18px;
    background: linear-gradient(135deg, #FFF4E1 0%, #FFFAF2 100%);
    border: 1px solid #b9e6df;
    border-left: 4px solid var(--dt-accent);
    border-radius: 0 12px 12px 0;
}

.dt-reason-card p {
    margin: 0 0 9px;
    color: var(--dt-text);
    font-size: 1em;
    font-weight: 800;
    line-height: 1.85;
}

.dt-reason-card p:last-child {
    margin-bottom: 0;
}

.dt-result-desc {
    padding: 22px 26px 30px;
    text-align: left;
    animation: dtRiseIn 0.6s ease both 0.56s;
}

/* 細チェックの editorial リスト（罫線区切り・薄い緑チェック） */
.dt-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dt-check-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 14px 2px;
    color: var(--dt-text);
    border-bottom: 1px solid #edf1ef;
    font-size: 1em;
    font-weight: 800;
    line-height: 1.72;
}

.dt-check-item:last-child {
    border-bottom: 0;
}

.dt-check-mark {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 4px;
    fill: none;
    stroke: var(--dt-accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dt-check-text {
    flex: 1 1 auto;
}

/* ---------- パースエラー（編集者向け） ---------- */
.dt-parse-error {
    margin: 16px 0;
    padding: 14px 18px;
    background: #fff5f5;
    border: 1px solid var(--dt-red);
    border-radius: 8px;
    color: #a93232;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 620px) {
    .dt-app {
        margin: 18px auto;
    }

    .dt-head {
        margin: 0 0 -16px 18px;
        padding: 6px 14px 6px 9px;
    }

    .dt-head-text {
        font-size: 14px;
    }

    .dt-question-card {
        padding: 29px 18px 18px;
        border-radius: 14px;
    }

    .dt-question-topbar {
        margin-bottom: 12px;
    }

    .dt-question-text {
        font-size: 15px;
        line-height: 1.65;
    }

    /* スマホも質問文と画像を横並びにし、画像は控えめな固定幅にする。 */
    .dt-question-body {
        gap: 12px;
        margin-bottom: 14px;
    }

    .dt-question-image {
        flex: 0 0 108px;
        width: 108px;
        max-width: 32%;
    }

    .dt-question-image img {
        min-height: 112px;
    }

    .dt-choices {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dt-choice-btn {
        min-height: 50px;
        padding: 11px 14px;
        font-size: 15px;
        font-weight: 900;
    }

    .dt-result-head {
        padding: 28px 20px 26px;
        gap: 11px;
    }

    .dt-result-name {
        font-size: 1.34em;
    }

    .dt-result-reason,
    .dt-result-desc {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 355px) {
    .dt-gate-wrap .spi-mini-gate-card {
        padding-right: 12px;
        padding-left: 12px;
    }

    .dt-gate-wrap .spi-mini-gate .spi-mini-gate-eyebrow,
    .dt-gate-wrap .spi-mini-gate-title-main {
        font-size: 12.5px;
    }

    .dt-question-image {
        flex-basis: 94px;
        width: 94px;
    }

    .dt-gate-wrap .spi-mini-gate .spi-mini-gate-benefit-title {
        font-size: 13px;
    }
}
