/* QRコード作成ページ専用スタイル (qr- プレフィックスで console.css と非干渉) */
.qr-grid { display:grid; grid-template-columns:minmax(0,420px) minmax(0,1fr); gap:20px; align-items:start; }
@media (max-width:900px) { .qr-grid { grid-template-columns:1fr; } }

/* ---- 左: URL 行 ---- */
.qr-url-row { display:grid; grid-template-columns:52px 1fr auto; gap:8px; align-items:start; margin-bottom:10px; }
.qr-url-row__icon { text-align:center; font-size:18px; padding:8px 4px; }
.qr-url-row__fields { display:flex; flex-direction:column; gap:6px; min-width:0; }
.qr-url-row__btns { display:flex; flex-direction:column; gap:6px; }
.qr-icon-btn {
    border:1px solid var(--border); background:#fff; border-radius:8px; cursor:pointer;
    width:34px; height:34px; font-size:12px; font-weight:700; color:#6B7280; line-height:1;
}
.qr-icon-btn:hover { background:#F3F4F6; }
.qr-icon-btn--danger:hover { background:#FEE2E2; color:#B91C1C; border-color:#FCA5A5; }
.qr-add {
    width:100%; border:1px dashed var(--border); background:#F9FAFB; border-radius:8px;
    padding:9px; cursor:pointer; font-size:13px; font-weight:600; color:#4B5563; font-family:inherit;
}
.qr-add:hover { background:#F3F4F6; }

/* ---- テンプレート選択 ---- */
.qr-tpl-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.qr-tpl {
    border:2px solid var(--border); background:#fff; border-radius:10px; padding:10px 6px;
    cursor:pointer; text-align:center; font-family:inherit;
}
.qr-tpl.is-active { border-color:var(--brand); background:#F0FDF4; }
.qr-tpl__ico { font-size:22px; }
.qr-tpl__name { font-size:12px; font-weight:700; color:#111827; margin-top:4px; }
.qr-tpl__desc { font-size:10px; color:#9CA3AF; margin-top:1px; }

/* ---- 右: プレビュー ---- */
.qr-preview-head { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; flex-wrap:wrap; }
.qr-stage { background:#E5E7EB; border-radius:10px; padding:14px; overflow:hidden; }
#qr-print {
    width:794px; min-height:1123px; background:#fff; transform-origin:top left;
    box-shadow:0 4px 18px rgba(0,0,0,.12);
}

/* ---- 印刷ページ共通 (px設計 = A4@96dpi。印刷時 transform:none で実寸) ---- */
.qp { width:794px; min-height:1123px; box-sizing:border-box; display:flex; flex-direction:column;
      font-family:'Noto Sans JP',sans-serif; color:#111827; }
.qp-empty { align-items:center; justify-content:center; color:#9CA3AF; font-size:15px; text-align:center; padding:48px; }
.qp-qr { display:block; image-rendering:pixelated; background:#fff; }

/* メイン1枚 (説明会ブース掲示) */
.qp--main { padding:64px 60px; }
.qp-hero { text-align:center; }
.qp-eyebrow { display:inline-flex; align-items:center; gap:7px; font-size:14px; font-weight:800;
    letter-spacing:.18em; color:var(--brand); }
.qp-eyebrow-dot { width:8px; height:8px; border-radius:50%; background:var(--brand); }
.qp-company { font-size:42px; font-weight:800; margin:14px 0 6px; word-break:break-word; }
.qp-tagline { font-size:20px; color:#4B5563; }
.qp-message { margin:22px auto 0; max-width:560px; background:#FFFBEB; border:1px solid #FDE68A;
    color:#92400E; border-radius:10px; padding:14px 18px; font-size:16px; font-weight:700; line-height:1.6; }
.qp-qrcard { margin:44px auto; background:#fff; border:2px solid #111827; border-radius:18px;
    padding:34px 40px; text-align:center; max-width:420px; }
.qp-qr-label { font-size:17px; font-weight:700; margin-bottom:16px; }
.qp-qrcard .qp-qr { width:260px; height:260px; margin:0 auto; }
.qp-qr-cta { margin-top:18px; font-size:17px; font-weight:800; color:var(--brand); }
.qp-qr-url { margin-top:6px; font-size:12px; color:#6B7280; word-break:break-all; }
.qp-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:auto; }
.qp-step { text-align:center; padding:18px 8px; background:#F9FAFB; border-radius:12px; }
.qp-step-n { width:30px; height:30px; margin:0 auto 8px; border-radius:50%; background:var(--brand);
    color:#fff; font-weight:800; font-size:15px; line-height:30px; }
.qp-step-t { font-size:13px; font-weight:600; line-height:1.6; color:#374151; }
.qp-foot { margin-top:30px; text-align:center; font-size:12px; letter-spacing:.08em; color:#9CA3AF; }

/* SNS集約 */
.qp--sns { padding:60px 56px; }
.qp-sns-head { text-align:center; margin-bottom:8px; }
.qp-sns-eyebrow { font-size:14px; font-weight:800; letter-spacing:.2em; color:var(--brand); }
.qp-sns-title { font-size:34px; font-weight:800; margin:8px 0 4px; word-break:break-word; }
.qp-sns-tagline { font-size:16px; color:#6B7280; }
.qp-sns-intro { margin:20px auto 28px; max-width:560px; text-align:center; font-size:15px;
    font-weight:700; color:#374151; line-height:1.7; }
.qp-sns-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.qp-sns-card { border:1.5px solid #E5E7EB; border-radius:14px; padding:22px; text-align:center; }
.qp-sns-card__label { font-size:16px; font-weight:700; margin-bottom:14px; }
.qp-sns-card .qp-qr { width:180px; height:180px; margin:0 auto; }
.qp-sns-card__scan { margin-top:12px; font-size:12px; font-weight:800; letter-spacing:.12em; color:var(--brand); }
.qp-sns-foot { margin-top:auto; padding-top:28px; text-align:center; font-size:15px; font-weight:700; color:#374151; }

/* 名刺サイズ切り取り配布 */
.qp--handout { padding:48px 44px; }
.qp-handout-hint { text-align:center; font-size:13px; font-weight:700; color:#6B7280; margin-bottom:6px; }
.qp-handout-msg { text-align:center; font-size:14px; font-weight:700; color:#92400E;
    background:#FFFBEB; border:1px solid #FDE68A; border-radius:8px; padding:10px; margin:0 auto 20px; max-width:560px; }
.qp-handout-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0 auto; }
.qp-card { border:1px dashed #9CA3AF; padding:14px; }
.qp-card__inner { display:flex; gap:14px; align-items:center; height:150px;
    border:1px solid #E5E7EB; border-radius:10px; padding:16px; }
.qp-card__info { flex:1; min-width:0; }
.qp-card__ico { font-size:24px; }
.qp-card__label { font-size:15px; font-weight:800; margin-top:4px; }
.qp-card__company { font-size:12px; color:#6B7280; margin-top:2px; word-break:break-word; }
.qp-card__cta { margin-top:10px; display:inline-block; font-size:11px; font-weight:700;
    color:var(--brand); border:1px solid var(--brand); border-radius:999px; padding:3px 10px; }
.qp-card .qp-qr { width:110px; height:110px; flex-shrink:0; }
.qp-handout-foot { margin-top:22px; text-align:center; font-size:12px; color:#9CA3AF; }

/* ---- 印刷 ---- */
@media print {
    .topbar, .app-dock, .app-footer, #pairing-banner, .page-head,
    #alert-area, .qr-col-edit, .qr-preview-head { display:none !important; }
    .app-main { margin:0 !important; padding:0 !important; max-width:none !important; }
    .qr-grid { display:block !important; }
    #qr-card { border:none !important; padding:0 !important; margin:0 !important; box-shadow:none !important; background:none !important; }
    .qr-stage { background:none !important; padding:0 !important; border-radius:0 !important; overflow:visible !important; height:auto !important; }
    #qr-print { transform:none !important; box-shadow:none !important; width:794px !important; }
    .qp, #qr-print { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    @page { size:A4 portrait; margin:0; }
}
