/* ログインの QR の本番化 (12/5) の準備の案内 (2026-11-18、課題 Orca-Setup-3tqz)。台本は js/qr-prep.js */

/* メニューの頭の帯 (読み返す口) */
.qp-band {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    width: calc(100% - 32px); max-width: 960px; margin: 12px auto 0; padding: 10px 14px;
    background: #fff8db; border: 2px solid #f2b705; border-radius: 8px;
    font: inherit; font-size: 14px; color: #3a2c00; text-align: left; cursor: pointer;
}
.qp-band:hover { background: #fff1b8; }
.qp-band:focus-visible { outline: 3px solid #0D7377; outline-offset: 2px; }
.qp-band-tag { background: #f2b705; color: #3a2c00; font-weight: 700; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.qp-band-text { flex: 1 1 200px; min-width: 0; font-weight: 700; }
.qp-band-done { font-size: 12px; color: #1f7a4d; border: 1px solid #1f7a4d; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* ポップアップ */
.qp-overlay {
    position: fixed; inset: 0; z-index: 100000;   /* 右下の「元に戻す」(99999) より上 */
    background: rgba(10, 18, 30, 0.55);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
body.qp-open { overflow: hidden; }
.qp-sheet {
    background: #fff; color: #18212e; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    border-radius: 12px; display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.qp-head { padding: 14px 18px 10px; border-bottom: 1px solid #d6dce5; display: flex; flex-direction: column; gap: 8px; }
.qp-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.qp-tabs button {
    font: inherit; font-size: 13px; font-weight: 700; border: 1px solid #d6dce5; background: #fff; color: #18212e;
    padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.qp-tabs button[aria-pressed="true"] { background: #1d3a5f; border-color: #1d3a5f; color: #fff; }
.qp-band-in { background: #f2b705; color: #3a2c00; border-radius: 6px; padding: 6px 10px; font-weight: 700; font-size: 14px; }
.qp-title { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 700; }
.qp-title:focus { outline: none; }
.qp-lead { margin: 0 0 4px; font-size: 13px; color: #5a6577; line-height: 1.6; }
.qp-body { padding: 10px 18px; overflow-y: auto; font-size: 14px; line-height: 1.65; flex: 1 1 auto; min-height: 0; }
.qp-more {
    margin-top: -28px; height: 28px; position: relative; pointer-events: none;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 2px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%);
    font-size: 12px; font-weight: 700; color: #1d3a5f;
}
.qp-more[hidden] { display: none; }
.qp-group { margin: 10px 0 6px; font-weight: 700; color: #1d3a5f; font-size: 13px; }
.qp-group:first-child { margin-top: 2px; }
.qp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.qp-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.qp-steps li > div { min-width: 0; }
.qp-n {
    width: 24px; height: 24px; border-radius: 50%; background: #1d3a5f; color: #fff;
    font-weight: 700; font-size: 12px; display: grid; place-items: center; margin-top: 1px;
}
.qp-steps small { display: block; color: #5a6577; font-size: 12px; line-height: 1.55; }
.qp-foot { padding: 10px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #d6dce5; display: flex; flex-direction: column; gap: 8px; }
.qp-btn { width: 100%; }
.qp-done { background: #1f7a4d; box-shadow: none; }
.qp-btn-sub {
    font: inherit; font-size: 16px; font-weight: 700; padding: 11px 12px; border-radius: 8px; cursor: pointer;
    background: #fff; color: #1d3a5f; border: 2px solid #1d3a5f;
}
.qp-btn-sub:hover { background: #eef2f7; }
.qp-btn:focus-visible, .qp-tabs button:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.qp-error { margin: 0; color: #b42318; font-size: 13px; }
.qp-error:empty { display: none; }
.qp-note, .qp-acked { margin: 0; font-size: 12px; color: #5a6577; text-align: center; }
.qp-acked { color: #1f7a4d; font-weight: 700; }

.qp-toast {
    position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 100001;   /* 右下のボタンと重ならないよう上に */
    max-width: calc(100% - 32px); background: #e5f3eb; color: #1f7a4d; border: 1px solid #1f7a4d;
    border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 14px;
}

/* アカウント管理の頭: 押した人の数 (管理者・開発者) */
.qp-status { background: #fff; border: 2px solid #f2b705; border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; }
.qp-status h2 { margin: 0 0 6px; font-size: 16px; }
.qp-st-note { margin: 0 0 10px; font-size: 12px; color: #5a6577; }
.qp-st-group { margin-top: 10px; }
.qp-st-line { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.qp-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.qp-bar { height: 10px; background: #e3e8ef; border-radius: 5px; overflow: hidden; margin: 4px 0; }
.qp-bar i { display: block; height: 100%; width: 0; background: #1f7a4d; }
.qp-status details summary { cursor: pointer; font-size: 13px; color: #0D7377; }
.qp-st-table { overflow-x: auto; }
.qp-st-table table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.qp-st-table th, .qp-st-table td { border-top: 1px solid #e3e8ef; padding: 4px 6px; text-align: left; }
.qp-yet { color: #b42318; }

@media (max-width: 480px) {
    .qp-overlay { padding: 0; align-items: flex-end; }
    .qp-sheet { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 14px 14px 0 0; }
}
@media print { .qp-band, .qp-overlay, .qp-toast { display: none !important; } }
