:root {
    --ink: #222222;
    --ink-sub: #5f6b83;
    --bg: #f3f8ff;
    --card: #ffffff;
    --line: #dce3ef;
    --indigo: #2414a3;
    --blue: #4998eb;
    --primary: #3860cf;
    --grad: linear-gradient(72deg, #2414a3, #4998eb);
    --primary-ink: #ffffff;
    --accent: #3860cf;
    --danger: #ff5035;

    --ax1: #dd7222; --ax1-tint: #faead9;
    --ax2: #2f8757; --ax2-tint: #e0efe6;
    --ax3: #2b55c8; --ax3-tint: #e0e6f8;
    --ax4: #d63b2f; --ax4-tint: #fae1dd;
    --gold: #a8842f;
    --gold-bright: #ffd66f;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(20, 40, 90, 0.08);

    --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

.phase-ax1 { --phase: var(--ax1); --phase-tint: var(--ax1-tint); }
.phase-ax2 { --phase: var(--ax2); --phase-tint: var(--ax2-tint); }
.phase-ax3 { --phase: var(--ax3); --phase-tint: var(--ax3-tint); }
.phase-ax4 { --phase: var(--ax4); --phase-tint: var(--ax4-tint); }

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

[hidden] { display: none !important; }

html, body { height: 100%; overflow-x: clip; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    touch-action: manipulation;
    opacity: 1;
}

.grad-text,
h1.page-title {
    background: linear-gradient(45deg, #2414a3 0%, #4998eb 73%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ax-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 64px;
    flex-shrink: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ax-brand { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; padding: 4px 8px; margin: -4px -8px; }
.ax-brand-logo { display: block; height: 30px; width: auto; }
.ax-brand-divider { width: 1px; height: 34px; background: var(--line); }
.ax-brand-text { display: inline-flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3; }
.ax-brand-main {
    font-size: 24px; font-weight: 800; letter-spacing: 0.1em;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    white-space: nowrap;
}
.ax-brand-sub { font-size: 9px; color: var(--ink-sub); letter-spacing: 0.14em; white-space: nowrap; }

.ax-presented { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.ax-presented-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-sub); white-space: nowrap; }
.ax-presented-logo { display: block; height: 30px; width: auto; max-width: 100%; }

.ax-timer-slot { min-width: 64px; min-height: 64px; display: flex; align-items: center; justify-content: flex-end; }

.ax-main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 120px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px;
}

h1.page-title { font-size: 27px; font-weight: 800; line-height: 1.5; letter-spacing: 0.05em; }
p.page-lead { font-size: 16px; color: var(--ink-sub); line-height: 1.9; }

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.06s ease, opacity 0.15s ease;
    text-decoration: none;
    color: var(--ink);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn-primary { background: var(--grad); color: var(--primary-ink); }
.btn-ghost { background: transparent; border: 2px solid var(--line); color: var(--ink-sub); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sub { background: #eef3fb; border: 1px solid var(--line); font-size: 15px; min-height: 52px; color: var(--ink-sub); }

.btn-stack { display: flex; flex-direction: column; gap: 14px; }

.choice-btn {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    min-height: 64px;
    font-size: 19px;
    font-weight: 700;
    width: 100%;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.06s ease, border-color 0.1s ease, background 0.1s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 0 22px;
}

.choice-btn::before {
    content: '';
    flex: none;
    width: 24px; height: 24px;
    border: 2px solid #c3cede;
    border-radius: 50%;
    transition: border-color 0.1s ease, background 0.1s ease;
}
.choice-btn:active::before { border-color: var(--primary); }
.choice-btn.selected::before {
    content: '✓';
    display: flex; align-items: center; justify-content: center;
    background: var(--primary); border-color: var(--primary);
    color: #fff; font-size: 15px; font-weight: 800;
}
.choice-btn:active { transform: scale(0.97); border-color: var(--primary); background: #eef3fd; }
.choice-btn.selected { border-color: var(--primary); background: #e6effd; }

#page-assessment .choice-btn.selected { animation: choicePick 0.35s ease; }
@keyframes choicePick {
    0% { transform: scale(1); }
    35% { transform: scale(0.96); }
    100% { transform: scale(1); }
}
.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.q-nav .btn { flex: 1; min-height: 48px; font-size: 14px; }
.q-nav .btn:disabled { opacity: 0.35; }

#page-badge .choice-btn { transition: none; }
#page-badge .choice-btn::before { content: none; }
#page-badge .choice-btn:active { transform: none; border-color: var(--line); background: var(--card); }

.badge-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    text-align: left;
    min-height: 84px;
    background: var(--phase-tint, var(--card));
    border-color: var(--phase, var(--line));
}
.badge-icon {
    flex: none; width: 54px; height: 54px; border-radius: 50%;
    background: var(--phase, var(--primary)); color: #ffffff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    line-height: 1; gap: 2px;
    box-shadow: 0 2px 10px rgba(20, 40, 90, 0.2);
}
.badge-icon span { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.badge-icon strong { font-size: 23px; font-weight: 900; }
.badge-main { display: flex; flex-direction: column; gap: 4px; }
.badge-name {
    font-size: 19px; font-weight: 800; color: var(--phase, var(--ink)); letter-spacing: 0.02em;
    align-self: flex-start;
    border-bottom: 2px solid var(--phase, var(--line)); padding-bottom: 3px;
}
.badge-desc { font-size: 13px; font-weight: 600; color: var(--ink-sub); line-height: 1.5; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}

.attract {
    position: fixed; inset: 0; z-index: 40;
    background: linear-gradient(72deg, #2414a3 0%, #3860cf 55%, #4998eb 100%);
    display: flex; align-items: center; justify-content: center;
}
.attract video { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.attract-cta {
    position: absolute; left: 0; right: 0; bottom: 48px; margin: 0 auto;
    width: min(640px, calc(100% - 48px));
    min-height: 92px; font-size: 26px;
    z-index: 41;
    box-shadow: 0 10px 34px rgba(4, 8, 24, 0.5);
    animation: pulse 2.2s ease-in-out infinite;
}

.q-progress { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-sub); font-weight: 700; }
.q-progress-bar { flex: 1; height: 8px; background: #e2e9f5; border-radius: 999px; overflow: hidden; }
.q-progress-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width 0.3s ease; width: 0; }

.q-lead { font-size: 15px; font-weight: 700; color: var(--ink-sub); margin-bottom: 8px; min-height: 24px; word-break: auto-phrase; }
.q-text { font-size: 24px; font-weight: 800; line-height: 1.6; min-height: 116px; word-break: auto-phrase; }
.q-hint { font-size: 14px; color: var(--ink-sub); margin-top: 8px; min-height: 22px; }

.timer { position: relative; width: 44px; height: 44px; }
.timer svg { transform: rotate(-90deg); width: 44px; height: 44px; }
.timer circle { fill: none; stroke-width: 5; }
.timer .timer-track { stroke: rgba(36, 20, 163, 0.12); }
.timer .timer-arc { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke 0.3s ease; }
.timer.timer-hide { visibility: hidden; } /* 設問開始直後の非表示期間。レイアウトは保って点滅的なズレを防ぐ */
.timer.timer-mid .timer-arc { stroke: #e89b00; }
.timer.timer-warn .timer-arc { stroke: var(--danger); }
.timer .timer-num {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.timer.timer-mid .timer-num { color: #e89b00; }
.timer.timer-warn .timer-num { color: var(--danger); }

.judging {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 24px; padding: 10vh 0; text-align: center;
}
.judging-spinner {
    width: 72px; height: 72px; border-radius: 50%;
    border: 7px solid #dfe7f5; border-top-color: var(--primary);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.judging-text { font-size: 20px; font-weight: 800; color: var(--ink-sub); }

.qr-panel { display: flex; align-items: center; gap: 20px; }
.qr-panel img { width: 132px; height: 132px; border-radius: 12px; border: 6px solid #ffffff; background: #ffffff; box-shadow: 0 2px 12px rgba(20, 40, 90, 0.12); }
.qr-panel .qr-text { font-size: 14px; color: var(--ink-sub); line-height: 1.8; word-break: auto-phrase; }
.qr-panel .qr-text a { color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-sub); }
.field input {
    font-size: 20px; padding: 16px; border: 2px solid var(--line);
    border-radius: 12px; font-family: inherit; width: 100%;
    background: #fbfdff;
    color: var(--ink);
}
.field input::placeholder { color: #a9b6cd; }
.field input:focus { outline: none; border-color: var(--primary); }

.field select {
    font-size: 20px; padding: 16px 48px 16px 16px; border: 2px solid var(--line);
    border-radius: 12px; font-family: inherit; width: 100%;
    background: #fbfdff;
    color: var(--ink);
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%235f6b83' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.field select:focus { outline: none; border-color: var(--primary); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }

.field input[type="search"] { -webkit-appearance: none; appearance: none; }
.field input[type="search"]::-webkit-search-cancel-button,
.field input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; display: none; }

.error-note { color: var(--danger); font-size: 14px; font-weight: 700; min-height: 20px; }

.export-stats { display: flex; gap: 28px; font-size: 15px; color: var(--ink-sub); flex-wrap: wrap; }
.export-stats .export-num { font-size: 30px; font-weight: 800; color: var(--indigo); margin-right: 6px; }

.exit-btn {
    position: fixed; right: 18px; bottom: 18px; z-index: 20;
    min-height: 52px; padding: 0 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 999px;
    background: rgba(255, 255, 255, 0.94); color: var(--ink-sub);
    font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer;
    box-shadow: var(--shadow);
}
#page-result .exit-btn {
    background: var(--grad); color: var(--primary-ink);
    border: none; font-size: 15px; padding: 0 26px;
    box-shadow: 0 8px 24px rgba(36, 20, 163, 0.35);
}

.overlay {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(10, 18, 40, 0.45);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.overlay[hidden] { display: none; }
.loading-overlay { background: rgba(243, 248, 255, 0.75); }
.overlay-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px 28px; max-width: 440px; width: 100%;
    display: flex; flex-direction: column; gap: 14px; text-align: center;
    box-shadow: 0 16px 48px rgba(10, 20, 50, 0.25);
}
.overlay-title { font-size: 20px; font-weight: 800; line-height: 1.5; }
.overlay-text { font-size: 15px; color: var(--ink-sub); line-height: 1.8; }
.overlay-actions { display: flex; gap: 12px; margin-top: 8px; }
.overlay-actions .btn { min-height: 56px; font-size: 16px; }

.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.small-note { font-size: 13px; color: var(--ink-sub); line-height: 1.8; }
.small-note a { color: var(--accent); }
.ax-footer {
    text-align: center; font-size: 12px; color: var(--ink-sub);
    padding: 18px 16px 22px;
    display: flex; flex-direction: column; gap: 6px;
}
.ax-footer-link { color: var(--ink-sub); text-decoration: underline; }
.consent-box {
    background: #f7faff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; font-size: 14px; line-height: 1.9; color: var(--ink-sub);
    max-height: 260px; overflow-y: auto;
}
.consent-box a { color: var(--accent); font-weight: 700; }

#page-result .ax-main { max-width: none; padding: 0 0 60px; gap: 0; }
.sp-wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px; display: flex; flex-direction: column; gap: 20px; }

.sp-q-axis { font-size: 13px; font-weight: 700; color: var(--ink-sub); }

.scale-btn { min-height: 58px; font-size: 16.5px; gap: 14px; }
.scale-btn::before { content: none; }
.scale-no {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #eaf0fa; color: var(--ink-sub);
    font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.scale-btn.selected .scale-no { background: var(--primary); color: #fff; }

.sp-section-title, .sp-type-name, .sp-next-lead, h1.page-title {
    word-break: auto-phrase;
    text-wrap: balance;
}
.sp-panel, .sp-check-item, .sp-step-desc, .sp-next-card p, .sp-radar-caption, .sp-hero-sub,
.qr-panel .qr-text, p.page-lead, .badge-desc, .small-note {
    word-break: auto-phrase;
    text-wrap: pretty;
}
.sp-gap-pill { white-space: nowrap; }
.sp-phase-chip, .sp-section-chip { white-space: nowrap; }

.sp-band-deep { background: var(--bg); color: var(--ink); }
.sp-band-soft {
    background: #ffffff;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.sp-band-featured {
    background: linear-gradient(180deg, #fffdf5 0%, #fff6dd 100%);
    border-top: 2px solid var(--gold-bright);
    border-bottom: 2px solid var(--gold-bright);
}
.sp-band-featured .sp-section-chip {
    background: #fbeec7; color: var(--gold);
    border-color: rgba(168, 132, 47, 0.45);
}
.sp-band-featured .sp-section-title { background: linear-gradient(45deg, #7d621f 0%, #c39b38 73%); -webkit-background-clip: text; background-clip: text; }
.sp-band-featured .sp-panel,
.sp-band-featured .sp-booth-card { border-color: rgba(168, 132, 47, 0.35); }
.sp-band-featured .sp-panel::before { background: linear-gradient(72deg, var(--gold), var(--gold-bright)); }
.sp-band-featured .sp-panel-title { color: var(--gold); }
.sp-band-featured .sp-booth-no { background: #fbeec7; color: var(--gold); }

#page-result .ax-main > .sp-band:first-of-type {
    background: linear-gradient(120deg, #2414a3 0%, #3860cf 55%, #4998eb 100%);
    color: #ffffff;
}

.sp-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.sp-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sp-reveal { opacity: 1; transform: none; transition: none; } }

.sp-section-chip {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
    padding: 5px 12px; border-radius: 4px;
    background: #e6effd; color: var(--primary);
    border: 1px solid rgba(56, 96, 207, 0.35);
}

.sp-section-title {
    font-size: 24px; font-weight: 800; letter-spacing: 0.05em; line-height: 1.6;
    background: linear-gradient(45deg, #2414a3 0%, #4998eb 73%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    align-self: flex-start;
}
.sp-section-lead { font-size: 14px; color: var(--ink-sub); }

.sp-panel {
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px; padding: 20px 22px;
    font-size: 15px; line-height: 2;
    box-shadow: var(--shadow);
    position: relative; overflow: hidden;
}
.sp-panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.sp-panel-title { font-weight: 800; font-size: 14px; color: var(--primary); margin-bottom: 8px; letter-spacing: 0.04em; }
.sp-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .sp-kpi-grid { grid-template-columns: 1fr; } }

.sp-hero {
    position: relative; text-align: center; gap: 14px; padding-top: 52px;
    animation: heroIn 0.9s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes heroIn { from { transform: scale(0.92) translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }

.sp-hero > p:first-child { position: relative; }
.sp-hero > p:first-child::before {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 460px; height: 300px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 214, 111, 0.25), rgba(255, 214, 111, 0) 70%);
}
.sp-phase-chip {
    display: inline-block; vertical-align: middle;
    font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
    background: rgba(255, 255, 255, 0.18); color: #ffffff;
    padding: 6px 12px; border-radius: 4px; margin-right: 12px;
}
.sp-phase-code {
    font-size: 50px; font-weight: 800; letter-spacing: 0.04em; vertical-align: middle;
    background: linear-gradient(160deg, #fff3d4 10%, var(--gold-bright) 55%, #e8b64f 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    text-shadow: 0 0 34px rgba(255, 214, 111, 0.35);
}
.sp-type-name { font-size: 34px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.5; color: #ffffff; }
.sp-hero-sub { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.sp-hero-sub [data-countup] { color: #ffffff; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.sp-hero-sub .sp-hero-divider { margin: 0 10px; opacity: 0.5; }
.sp-phase-ladder { display: flex; justify-content: center; align-items: flex-start; gap: 10px; }

.sp-phase-ladder .sp-lstep {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
    padding: 6px 16px; border-radius: 999px;
    color: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.35);
    margin-bottom: 18px;
}
.sp-phase-ladder .sp-lstep::after {
    content: attr(data-tag);
    position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%);
    font-size: 10px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap;
}
.sp-phase-ladder .sp-lstep.current { color: #241a5e; background: var(--gold-bright); border-color: var(--gold-bright); }
.sp-phase-ladder .sp-lstep.current::after { color: var(--gold-bright); }
.sp-phase-ladder .sp-lstep.selfed { color: #ffffff; border: 1px dashed rgba(255, 255, 255, 0.85); }
.sp-phase-ladder .sp-lstep.selfed::after { color: rgba(255, 255, 255, 0.8); }
.sp-phase-ladder .sp-lstep.current.selfed { border-style: solid; color: #241a5e; }

.sp-phase-ladder .sp-lstep.current.selfed::after { color: var(--gold-bright); }

.sp-gap-pill {
    display: inline-flex; align-items: center; gap: 6px; margin: 0 auto;
    font-size: 13.5px; font-weight: 800; letter-spacing: 0.04em;
    padding: 7px 18px; border-radius: 999px;
}
.sp-gap-up { background: var(--gold-bright); color: #241a5e; box-shadow: 0 4px 18px rgba(255, 214, 111, 0.4); }

.sp-gap-same { background: var(--gold-bright); color: #241a5e; box-shadow: 0 4px 18px rgba(255, 214, 111, 0.4); }
.sp-gap-down { border: 1px solid rgba(255, 255, 255, 0.45); color: rgba(255, 255, 255, 0.85); }
.sp-radar { max-width: 460px; margin-top: 6px; }
.sp-radar-caption { font-size: 12.5px; color: rgba(255, 255, 255, 0.78); }
.sp-focus-red { color: #ff5a47; font-weight: 800; }
.radar { display: block; width: 100%; max-width: 420px; margin: 0 auto; }

.sp-check-item {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--card); color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px; padding: 16px 18px;
    font-size: 15px; line-height: 1.8; font-weight: 600;
    box-shadow: var(--shadow);
}
.sp-check-mark { flex: none; color: var(--primary); font-weight: 900; }

.sp-booth-lead { margin-top: 18px; }
.sp-booth-card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 10px; padding: 16px 18px;
    box-shadow: var(--shadow);
}
.sp-booth-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sp-booth-no {
    flex: none; font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
    color: var(--primary); background: #e6effd;
    padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.sp-booth-name { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.sp-booth-text { font-size: 14px; color: var(--ink-sub); line-height: 1.9; margin-top: 8px; word-break: auto-phrase; }

.sp-step-card {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 10px; padding: 18px 20px;
    box-shadow: var(--shadow);
}
.sp-step-no {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #ffffff; font-size: 14px; font-weight: 800;
}
.sp-step-head { font-size: 15px; font-weight: 800; letter-spacing: 0.12em; color: var(--primary); }
.sp-step-desc { font-size: 14.5px; color: var(--ink); line-height: 1.9; margin-top: 4px; }

.sp-next-lead { font-size: 21px; line-height: 1.9; }
.sp-next-card {
    background: var(--card);
    border: 1px solid rgba(56, 96, 207, 0.35);
    border-radius: 10px; padding: 24px 22px;
    display: flex; flex-direction: column; gap: 16px;
    font-size: 14.5px; color: var(--ink-sub); line-height: 2;
    box-shadow: var(--shadow);
}

.sp-cert {
    border: 1px solid rgba(56, 96, 207, 0.35);
    background: var(--card);
    flex-direction: row; align-items: center; gap: 20px;
}
.sp-cert-logo {
    flex: none;
    background: #ffffff; border-radius: 12px; padding: 16px 20px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(20, 40, 90, 0.10);
}
.sp-cert-logo img { display: block; height: 44px; width: auto; max-width: 100%; }
.sp-cert-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sp-cert, .sp-cert-body p { color: var(--ink); }
a.sp-cert { text-decoration: none; cursor: pointer; }
a.sp-cert:active { transform: scale(0.99); }
@media (max-width: 560px) {
    .sp-cert { flex-direction: column; }
    .sp-cert-logo { margin: 0 auto; }
}

@media (min-width: 1000px) and (orientation: landscape) {
    #page-result .ax-main {
        display: grid;
        grid-template-columns: minmax(330px, 390px) 1fr 1fr;
        grid-template-areas:
            'hero current symptoms'
            'hero first   plan'
            'hero kpi     kpi'
            'next next    next';
        gap: 8px;
        padding: 8px 16px 8px;
        max-width: none;
        margin: 0 auto;
        align-items: stretch;
    }
    #page-result .ax-main > .sp-band:nth-of-type(1) { grid-area: hero; }
    #page-result .ax-main > .sp-band:nth-of-type(2) { grid-area: current; }
    #page-result .ax-main > .sp-band:nth-of-type(3) { grid-area: symptoms; }
    #page-result .ax-main > .sp-band:nth-of-type(4) { grid-area: first; }
    #page-result .ax-main > .sp-band:nth-of-type(5) { grid-area: plan; }
    #page-result .ax-main > .sp-band:nth-of-type(6) { grid-area: kpi; }
    #page-result .ax-main > .sp-band:nth-of-type(7) { grid-area: next; }

    .sp-band { border-radius: 14px; border: 1px solid var(--line); }
    .sp-band-soft { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .sp-band-featured { border: 2px solid var(--gold-bright); }

    #page-result .sp-wrap { max-width: none; padding: 10px 14px; gap: 5px; height: 100%; }

    .sp-hero { padding-top: 14px; gap: 8px; justify-content: center; }
    .sp-hero > p:first-child::before { width: 340px; height: 220px; }
    .sp-phase-code { font-size: 40px; }
    .sp-phase-chip { font-size: 10px; padding: 4px 9px; margin-right: 10px; }
    .sp-type-name { font-size: 25px; }
    .sp-hero-sub { font-size: 12px; }
    .sp-hero-sub [data-countup] { font-size: 15px; }
    .sp-phase-ladder .sp-lstep { font-size: 10.5px; padding: 4px 12px; margin-bottom: 14px; }
    .sp-phase-ladder .sp-lstep::after { font-size: 9px; }
    .sp-gap-pill { font-size: 11.5px; padding: 5px 14px; }
    .sp-radar { width: 100%; max-width: 300px; margin-top: 0; }
    .sp-radar-caption { font-size: 11px; }

    .sp-section-chip { font-size: 9px; padding: 2px 7px; letter-spacing: 0.14em; }
    .sp-section-title { font-size: 13.5px; }
    .sp-section-lead { display: none; }
    .sp-panel { padding: 8px 11px; font-size: 11.5px; line-height: 1.6; }
    .sp-panel::before { height: 2px; }
    .sp-panel-title { font-size: 11px; margin-bottom: 3px; }
    .sp-kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .sp-check-item { padding: 6px 10px; font-size: 11px; line-height: 1.5; gap: 8px; border-radius: 8px; }
    .sp-step-card { padding: 6px 10px; gap: 8px; border-radius: 8px; align-items: center; }
    .sp-step-no { width: 20px; height: 20px; font-size: 11px; }
    .sp-step-head { display: none; }
    .sp-step-desc { font-size: 11.5px; line-height: 1.55; margin-top: 0; }
    #page-result .ax-main .btn-stack .btn-stack { gap: 6px; }

    #page-result .ax-main > .sp-band:nth-of-type(7) .sp-wrap {
        display: grid; grid-template-columns: 2fr 1fr; gap: 6px 14px; align-items: stretch;
    }
    #page-result .ax-main > .sp-band:nth-of-type(7) .sp-wrap > p:first-child { grid-column: 1 / -1; }

    #page-result .ax-main > .sp-band:nth-of-type(7) .sp-cert { height: 100%; box-sizing: border-box; }
    #page-result .ax-main > .sp-band:nth-of-type(7) .sp-wrap > div:last-child:not(.sp-cert) { display: flex; flex-direction: column; }

    #page-result .ax-main > .sp-band:nth-of-type(7) .sp-cert:last-child { grid-column: 1 / -1; }
    #page-result .ax-main > .sp-band:nth-of-type(7) .qr-panel { flex: 1; }
    .sp-next-lead { display: none; }
    .sp-next-card { padding: 12px 16px; gap: 9px; font-size: 12px; line-height: 1.75; border-radius: 8px; }
    .sp-cert { gap: 22px; justify-content: center; }

    .sp-cert-body { flex: 0 1 auto; max-width: 500px; }
    .sp-cert-logo { padding: 12px 16px; }
    .sp-cert-logo img { height: 36px; }
    .sp-cert-body { gap: 8px; }
    .sp-next-card .btn, #page-result .ax-main .btn { min-height: 36px; font-size: 12.5px; border-radius: 9px; }

    .qr-panel { padding: 12px 14px; gap: 16px; align-items: center; justify-content: center; }
    .qr-panel .qr-side { flex: 0 1 auto; }
    .qr-panel img { width: 112px; height: 112px; border-width: 5px; border-radius: 10px; }
    .qr-panel .qr-text { font-size: 12.5px; line-height: 1.8; font-weight: 600; color: var(--ink); }
    .qr-panel .qr-text a { font-size: 11.5px; font-weight: 600; }
    #page-result .ax-main { padding-bottom: 14px; }

    #page-result .ax-footer { display: none; }
}

@media (min-width: 1500px) and (orientation: landscape) {
    #page-result .ax-main {
        zoom: 1.4;
        grid-template-columns: minmax(360px, 560px) 1fr 1fr;
    }
    #page-result .sp-radar { max-width: 480px; }
}

@media (max-width: 640px) {
    .ax-header { gap: 10px; padding: 10px 14px; }
    .ax-presented { gap: 0; }
    .ax-presented-label { display: none; }
    .ax-presented-logo { height: 17px; }
    .ax-timer-slot { min-width: 0; }
    .ax-brand { gap: 10px; }
    .ax-brand-logo { height: 22px; }
    .ax-brand-divider { height: 24px; }
    .ax-brand-main, #page-result .ax-brand-main { font-size: 16px; letter-spacing: 0.06em; }
    .ax-brand-sub, #page-result .ax-brand-sub { font-size: 7px; letter-spacing: 0.1em; }
    .attract-cta { font-size: 17px; min-height: 60px; bottom: 32px; white-space: nowrap; }
}
