/* 会員画面（アドキタCRと同じ見た目の決まり）。公開サイトの ui.css のうち、メールの形（.mt）などの部品だけを使う */
body.cr {
  --cr-rail: #101828; --cr-rail-hover: #1d2939; --cr-rail-text: #98a2b3;
  --cr-brand: #2563eb; --cr-brand-600: #1d4ed8; --cr-brand-50: #eff6ff; --cr-brand-100: #dbeafe; --cr-brand-200: #bfdbfe;
  --cr-bg: #f1f5f9; --cr-side: #f8fafc; --cr-card: #fff; --cr-line: #e2e8f0; --cr-line-2: #d8e0eb; --cr-row: #e6ebf2;
  --cr-head: #eef2f7; --cr-th: #5b6b80; --cr-ink: #111827; --cr-ink-2: #334155; --cr-muted: #5b6b80; --cr-faint: #64748b;
  --cr-top: 56px;
  margin: 0; background: var(--cr-bg); color: var(--cr-ink); font-size: 13px; line-height: 1.6;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
}
body.cr a { color: var(--cr-brand-600); text-decoration: none; }
body.cr a:hover { text-decoration: underline; }
body.cr :where(a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible { outline: 2px solid var(--cr-brand); outline-offset: 2px; border-radius: 4px; }
.cr .muted { color: var(--cr-muted); }
.cr .small { font-size: 11.5px; }
.cr .n { text-align: right; font-variant-numeric: tabular-nums; }
.cr mark { background: #fef08a; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ---- 枠：左のアイコン列・項目の一覧・本文 ---- */
.cr-shell { display: flex; min-height: 100vh; }
.cr-rail { width: 64px; flex: none; background: var(--cr-rail); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; z-index: 40; box-sizing: border-box; }
.cr-rail .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--cr-brand); color: #fff !important; display: grid; place-items: center; font-weight: 900; font-size: 15px; margin-bottom: 6px; }
.cr-rail .logo:hover { text-decoration: none; }
.cr-rail .sep { width: 32px; height: 1px; background: var(--cr-rail-hover); margin: 4px 0; }
.cr-rail a, .cr-rail button { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cr-rail-text); background: none; border: 0; cursor: pointer; }
.cr-rail a:hover, .cr-rail button:hover { background: var(--cr-rail-hover); color: #fff; text-decoration: none; }
.cr-rail a[aria-current="page"] { background: var(--cr-brand); color: #fff; }
.cr-rail svg { width: 22px; height: 22px; }
.cr-rail [data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: #111827; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.2); pointer-events: none; }
.cr-rail .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cr-rail .tag { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--cr-rail-text); }

.cr-nav { width: 232px; flex: none; background: #fff; border-right: 1px solid var(--cr-line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 14px 10px 12px; z-index: 30; box-sizing: border-box; }
body.nav-closed .cr-nav { display: none; }
.cr-nav-head { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; border-bottom: 1px solid var(--cr-line); margin-bottom: 4px; }
.cr-nav-head b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--cr-ink); }
.cr-nav-head .mk { width: 30px; height: 30px; border-radius: 8px; background: var(--cr-brand); color: #fff; display: grid; place-items: center; font-weight: 900; }
.cr-nav h4 { margin: 14px 8px 6px; font-size: 11px; font-weight: 700; color: var(--cr-muted); }
.cr-nav h4 small { display: block; font-weight: 400; color: var(--cr-faint); font-size: 10px; }
.cr-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--cr-ink-2); font-size: 14px; border: 1px solid transparent; }
.cr-nav a:hover { background: var(--cr-side); text-decoration: none; }
.cr-nav a[aria-current="page"] { background: var(--cr-brand-50); color: var(--cr-brand-600); border-color: var(--cr-brand-200); font-weight: 600; }
.cr-nav a svg { width: 18px; height: 18px; flex: none; }
.cr-nav .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--cr-line); display: grid; gap: 2px; }
.cr-nav .who { padding: 6px 10px; font-size: 11px; color: var(--cr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-top { height: var(--cr-top); flex: none; background: #fff; border-bottom: 1px solid var(--cr-line); display: flex; align-items: center; gap: 22px; padding: 0 24px; position: sticky; top: 0; z-index: 20; box-sizing: border-box; }
.cr-top .menu { display: none; width: 36px; height: 36px; flex: none; border: 1px solid var(--cr-line); border-radius: 8px; background: #fff; place-items: center; cursor: pointer; color: var(--cr-ink-2); }
.cr-top .menu svg { width: 20px; height: 20px; }
.cr-tabs { display: flex; gap: 22px; height: 100%; min-width: 0; }
.cr-tabs a { display: flex; align-items: center; color: var(--cr-ink-2); font-size: 14px; border-bottom: 2px solid transparent; }
.cr-tabs a:hover { color: var(--cr-ink); text-decoration: none; }
.cr-tabs a[aria-current="page"] { color: var(--cr-brand-600); border-bottom-color: var(--cr-brand); font-weight: 700; }
.cr-top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--cr-muted); font-size: 11.5px; white-space: nowrap; }
.cr-demo { background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 600; padding: 6px 24px; border-bottom: 1px solid #fde68a; }
.passbar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center; background: var(--cr-brand-50); color: var(--cr-ink); font-size: 13px; font-weight: 600; padding: 9px 24px; border-bottom: 1px solid var(--cr-brand-100); }
.passbar a { font-weight: 700; }

.cr-page { padding: 24px 32px 56px; }
.cr-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; }
.cr-h1 { font-size: 22px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.cr-sub { color: var(--cr-muted); font-size: 12.5px; margin: 2px 0 0; }
.cr-head .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- 部品 ---- */
.cr-card { background: var(--cr-card); border: 1px solid var(--cr-line); border-radius: 8px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.cr-card-h { margin: 0; padding: 14px 16px 0; font-size: 14px; font-weight: 700; }
.cr-card .pad { padding: 12px 16px 16px; }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--cr-brand); background: var(--cr-brand); color: #fff !important; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; text-decoration: none !important; box-sizing: border-box; }
.cr-btn:hover { background: var(--cr-brand-600); }
.cr-btn.white { background: #fff; color: var(--cr-ink-2) !important; border-color: var(--cr-line-2); }
.cr-btn.white:hover { background: var(--cr-side); }
.cr-btn.soft { background: var(--cr-brand-50); color: var(--cr-brand-600) !important; border-color: var(--cr-brand-50); }
.cr-btn.soft:hover { border-color: var(--cr-brand-200); }
.cr-btn.sm { height: 28px; padding: 0 10px; font-size: 11.5px; }
.cr-btn.lg { height: 40px; padding: 0 18px; font-size: 13.5px; }
.cr-btn.block { width: 100%; }
.cr-btn svg { width: 14px; height: 14px; }
.cr-btn.on { background: #ecfdf5; color: #047857 !important; border-color: #a7f3d0; }
.cr-seg { display: inline-flex; background: var(--cr-side); border: 1px solid var(--cr-line); border-radius: 8px; padding: 3px; gap: 2px; }
.cr-seg a { padding: 5px 14px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--cr-ink-2); white-space: nowrap; }
.cr-seg a:hover { text-decoration: none; background: #fff; }
.cr-seg a[aria-current="page"] { background: var(--cr-brand); color: #fff; }
.cr-select, .cr-input { height: 32px; border: 1px solid var(--cr-line-2); border-radius: 6px; background: #fff; color: var(--cr-ink); font: inherit; font-size: 12.5px; padding: 0 10px; box-sizing: border-box; }
.cr-select:hover, .cr-input:hover { border-color: #c5cfdd; }
.cr-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: #f1f5f9; color: #475569; }
.cr-badge.b-sale { background: #fee2e2; color: #b91c1c; }
.cr-badge.b-coupon { background: #fef3c7; color: #b45309; }
.cr-badge.b-point { background: #ede9fe; color: #6d28d9; }
.cr-badge.b-free_shipping { background: #dcfce7; color: #15803d; }
.cr-badge.b-fukubukuro { background: #ffe4e6; color: #be123c; }
.cr-badge.b-new_arrival, .cr-badge.b-restock, .cr-badge.b-preorder { background: var(--cr-brand-50); color: var(--cr-brand-600); }
.cr-badge.b-cat { background: #f0fdfa; color: #0f766e; }
.cr-badge.b-ex { background: #fff; color: #9a3412; box-shadow: inset 0 0 0 1px #fdba74; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cr-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; background: #f1f5f9; color: var(--cr-ink-2); font-size: 11px; white-space: nowrap; }
.cr-chip.hot { background: #fff1f2; color: #be123c; font-weight: 700; }
.cr-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--c, #334155); color: #fff; font-size: 12px; font-weight: 800; }
.cr-av.sm { width: 22px; height: 22px; font-size: 10px; }
.cr-av.lg { width: 44px; height: 44px; font-size: 16px; }
.cr-tile { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--c, #334155); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-align: center; line-height: 1.1; overflow: hidden; padding: 3px; word-break: keep-all; box-sizing: border-box; }
.cr-tile.lg { width: 88px; height: 88px; font-size: 16px; border-radius: 10px; padding: 8px; }
.cr-rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 11px; font-weight: 800; color: var(--cr-muted); }
.cr-rank.r1 { background: #fde68a; color: #92400e; }
.cr-rank.r2 { background: #e2e8f0; color: #334155; }
.cr-rank.r3 { background: #fed7aa; color: #9a3412; }
.cr-spark { display: block; width: 96px; height: 28px; overflow: visible; }
.cr-spark polyline { fill: none; stroke: var(--cr-brand); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.cr-spark circle { fill: var(--cr-brand); }
.cr-meter { display: block; height: 3px; background: #e2e8f0; border-radius: 2px; margin-top: 4px; overflow: hidden; }
.cr-meter i { display: block; height: 100%; background: var(--cr-brand); }
.cr-up { color: #047857; font-weight: 700; }
.cr-down { color: #dc2626; font-weight: 700; }
.notice { border-radius: 8px; padding: 10px 14px; background: var(--cr-brand-50); color: var(--cr-ink); font-size: 13px; margin: 0 0 14px; }
.notice.err { background: #fee2e2; color: #b91c1c; font-weight: 700; }
.notice.ok { background: #d1fae5; color: #047857; font-weight: 700; }
.note { color: var(--cr-muted); font-size: 11.5px; }

/* ---- 数字のまとまり ---- */
.cr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; }
.cr-kpis > div { padding: 12px 16px; border-right: 1px solid var(--cr-line); min-width: 0; }
.cr-kpis > div:last-child { border-right: 0; }
.cr-kpis dt { font-size: 11px; color: var(--cr-muted); font-weight: 600; }
.cr-kpis dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-kpis dd small { font-size: 11.5px; font-weight: 600; color: var(--cr-muted); margin-left: 4px; }
.cr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cr-tiles > div { background: var(--cr-side); border: 1px solid var(--cr-line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.cr-tiles dt { font-size: 11px; color: var(--cr-muted); }
.cr-tiles dd { margin: 2px 0 0; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-tiles dd small { font-size: 11px; font-weight: 600; color: var(--cr-muted); margin-left: 3px; }

/* ---- 表 ---- */
.cr-tablewrap { overflow-x: auto; background: #fff; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cr-table thead th { background: var(--cr-head); color: var(--cr-th); font-size: 10.5px; font-weight: 700; height: 44px; padding: 0 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid #dfe5ee; }
.cr-table thead th.n { text-align: right; }
.cr-table thead th a { color: inherit; }
.cr-table thead th a[aria-current] { color: var(--cr-brand-600); }
.cr-table td { padding: 10px; border-bottom: 1px solid var(--cr-row); vertical-align: middle; }
.cr-table tbody tr:hover { background: #f5f8ff; }
.cr-table tbody tr.sel { background: #eef4ff; box-shadow: inset 3px 0 0 var(--cr-brand); }
.cr-table tr[data-mail], .cr-table tr[data-href] { cursor: pointer; }
.cr-empty { padding: 48px 16px; text-align: center; color: var(--cr-muted); }

/* メルマガの行：小さなメールの形・件名・ブランド */
.m-cell { display: flex; gap: 12px; align-items: center; min-width: 300px; max-width: 540px; }
.m-thumb { width: 64px; height: 80px; flex: none; overflow: hidden; border-radius: 4px; border: 1px solid var(--cr-line); background: #fff; position: relative; }
.m-thumb .mt { width: 160px; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.m-text { min-width: 0; }
.m-subj { font-weight: 700; color: var(--cr-ink) !important; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.m-subj:hover { color: var(--cr-brand-600) !important; text-decoration: none; }
.m-brand { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--cr-muted); font-size: 11.5px; }
.m-brand a { color: var(--cr-ink-2); font-weight: 600; }
.m-snip { font-size: 11.5px; color: var(--cr-ink-2); background: var(--cr-side); border-radius: 4px; padding: 4px 6px; margin-top: 4px; max-width: 520px; }
.m-when { white-space: nowrap; }
.m-when b { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-when small { color: var(--cr-muted); }
.m-dl { font-size: 11.5px; font-weight: 700; color: var(--cr-brand-600); white-space: nowrap; }
.m-dl.ended { color: var(--cr-faint); font-weight: 500; }

/* ---- 検索：左の絞り込み・上の操作 ---- */
.cr-split { display: flex; align-items: stretch; min-height: calc(100vh - var(--cr-top)); }
.cr-filter { width: 208px; flex: none; background: var(--cr-side); border-right: 1px solid var(--cr-line); position: sticky; top: var(--cr-top); height: calc(100vh - var(--cr-top)); overflow-y: auto; }
.cr-filter form { display: flex; flex-direction: column; min-height: 100%; }
.cr-filter .fields { padding: 14px 12px 12px; display: grid; gap: 12px; }
.cr-filter .ttl { font-size: 15px; font-weight: 800; margin: 0; display: flex; align-items: center; justify-content: space-between; }
.cr-filter .ttl button { display: none; }
.cr-filter label { display: grid; gap: 4px; font-size: 11px; font-weight: 700; color: var(--cr-ink-2); }
.cr-filter .cr-select, .cr-filter .cr-input { width: 100%; height: 30px; font-size: 12px; }
.cr-filter .btns { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px 12px; background: var(--cr-side); border-top: 1px solid var(--cr-line); }
.cr-saved { border: 1px solid var(--cr-line-2); background: #fff; border-radius: 6px; overflow: hidden; }
.cr-saved h5 { margin: 0; padding: 7px 10px; font-size: 11px; color: var(--cr-muted); border-bottom: 1px solid var(--cr-line); }
.cr-saved ul { list-style: none; margin: 0; padding: 4px 0; max-height: 180px; overflow-y: auto; }
.cr-saved li { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; }
.cr-saved li a { flex: 1; min-width: 0; font-size: 12px; padding: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cr-ink-2); }
.cr-saved li form { margin: 0; }
.cr-saved li button { border: 0; background: none; color: var(--cr-faint); cursor: pointer; font-size: 15px; line-height: 1; padding: 2px 6px; }
.cr-saved li button:hover { color: #dc2626; }
.cr-results { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--cr-line); }
.cr-toolbar .cond { display: flex; align-items: center; gap: 6px; color: var(--cr-muted); font-size: 12px; min-width: 0; }
.cr-toolbar .cond b { color: var(--cr-ink-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.cr-toolbar .grow { flex: 1; }
.cr-toolbar form { margin: 0; display: flex; gap: 6px; align-items: center; }
.cr-toolbar .cr-input { width: 150px; height: 28px; font-size: 12px; }
.cr-count { font-size: 12px; color: var(--cr-muted); white-space: nowrap; }
.cr-count b { color: var(--cr-ink); font-size: 14px; }
.cr-pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 16px; }
.cr-pager span { color: var(--cr-muted); font-size: 12px; }
.cr-cards { padding: 16px; }
.cr-cards .masonry { column-width: 220px; column-gap: 14px; }

/* 検索結果のまとめ（右下に浮く） */
.cr-sum { position: fixed; right: 20px; bottom: 20px; width: 300px; max-height: calc(100vh - 100px); overflow-y: auto; background: #fff; border: 1px solid var(--cr-line); border-radius: 12px; box-shadow: 0 14px 40px rgba(15,23,42,.18); z-index: 25; }
.cr-sum header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--cr-line); position: sticky; top: 0; background: #fff; }
.cr-sum header b { font-size: 13.5px; }
.cr-sum header .cr-badge { margin-left: auto; }
.cr-sum header button { border: 0; background: none; cursor: pointer; color: var(--cr-muted); font-size: 18px; line-height: 1; padding: 0 2px; }
.cr-sum section { padding: 10px 14px; border-bottom: 1px solid var(--cr-line); }
.cr-sum section:last-child { border-bottom: 0; }
.cr-sum h6 { margin: 0 0 6px; font-size: 11.5px; font-weight: 700; }
.cr-sum .row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin: 4px 0 0; }
.cr-sum .row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-sum .row b { font-variant-numeric: tabular-nums; }
body.sum-closed .cr-sum { display: none; }
.cr-sum-open { display: none !important; }
body.sum-closed .cr-sum-open { display: inline-flex !important; }

/* はじめての人の案内 */
.onboard { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; background: #fff; border-bottom: 1px solid var(--cr-line); padding: 16px; align-items: center; }
.onboard h2 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.onboard p { color: var(--cr-ink-2); margin: 0 0 10px; font-size: 12.5px; }
.onboard-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--cr-line); border-radius: 8px; padding: 6px 8px; margin: 0; }
.ob-item span { flex: 1; font-weight: 700; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 1通の詳細（右から出る） ---- */
.cr-dim { position: fixed; inset: 0; background: rgba(15,23,42,.28); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .15s; }
.cr-dim.open { opacity: 1; pointer-events: auto; }
.cr-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(980px, 100vw); background: var(--cr-bg); z-index: 60; box-shadow: -18px 0 40px rgba(15,23,42,.18); transform: translateX(102%); transition: transform .18s ease-out; display: flex; flex-direction: column; visibility: hidden; }
.cr-panel.open { transform: none; visibility: visible; }
.cr-keys { position: fixed; top: 50%; transform: translateY(-50%); right: calc(min(980px, 100vw) + 16px); z-index: 61; display: grid; gap: 8px; }
.cr-keys button { background: #111827; color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cr-keys[hidden] { display: none; }
.mp { display: flex; flex-direction: column; height: 100%; }
.mp-head { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 12px 0 20px; background: #fff; border-bottom: 1px solid var(--cr-line); flex: none; box-sizing: border-box; }
.mp-head .ttl { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.mp-head .ttl .ic { width: 26px; height: 26px; border-radius: 6px; background: var(--cr-brand-50); color: var(--cr-brand-600); display: grid; place-items: center; }
.mp-head .ttl .ic svg { width: 16px; height: 16px; }
.mp-tabs { display: flex; gap: 18px; height: 100%; }
.mp-tabs a { display: flex; align-items: center; color: var(--cr-ink-2); font-size: 13px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.mp-tabs a:hover { text-decoration: none; color: var(--cr-ink); }
.mp-tabs a[aria-selected="true"] { color: var(--cr-brand-600); border-bottom-color: var(--cr-brand); font-weight: 700; }
.mp-head .act { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.mp-close { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--cr-muted); font-size: 22px; line-height: 1; border-radius: 6px; }
.mp-close:hover { background: var(--cr-side); }
.mp-body { flex: 1; overflow-y: auto; padding: 16px; }
.mp-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.mp-left { display: grid; gap: 12px; position: sticky; top: 0; }
.mp-who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.mp-who b { display: block; font-size: 14px; }
.mp-who small { color: var(--cr-muted); font-size: 11.5px; }
.mp-who .act { margin-left: auto; }
.mp-who .act form { margin: 0; }
.mp-thumb { padding: 14px; border-top: 1px solid var(--cr-line); }
.mp-thumb .mt { max-width: 340px; margin: 0 auto; }
.mp-subj { font-size: 18px; line-height: 1.45; font-weight: 800; margin: 0 0 6px; }
.mp-pre { color: var(--cr-muted); margin: 0 0 10px; font-size: 12.5px; }
.mp-facts { display: grid; margin: 12px 0 0; border-top: 1px solid var(--cr-line); }
.mp-facts > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--cr-line); }
.mp-facts dt { color: var(--cr-muted); font-size: 12px; }
.mp-facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-weight: 600; }
.mp-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.mp-sec[hidden] { display: none; }
.mp-note { font-size: 11px; color: var(--cr-muted); margin: 10px 0 0; }
.mp-page { max-width: 1100px; }
.mp-page .mp { height: auto; border: 1px solid var(--cr-line); border-radius: 8px; overflow: hidden; }
.mp-page .mp-body { overflow: visible; }

/* ---- 市場トレンド ---- */
.cr-trend { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; align-items: stretch; }
.cr-trend .cr-tablewrap { border-radius: 8px 0 0 8px; border: 1px solid var(--cr-line); }
.cr-trend .side { background: #fff; border: 1px solid var(--cr-line); border-left: 0; border-radius: 0 8px 8px 0; }
.cr-trend .side header { padding: 14px 16px; border-bottom: 1px solid var(--cr-line); display: flex; align-items: flex-start; gap: 8px; }
.cr-trend .side header b { font-size: 16px; font-weight: 800; display: block; }
.cr-trend .side header small { color: var(--cr-muted); }
.cr-trend .side header .cr-badge { margin-left: auto; }
.cr-trend .side .mini { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--cr-line); margin: 0; }
.cr-trend .side .mini div { padding: 10px 14px; border-right: 1px solid var(--cr-line); }
.cr-trend .side .mini div:last-child { border-right: 0; }
.cr-trend .side .mini dt { font-size: 10.5px; color: var(--cr-muted); }
.cr-trend .side .mini dd { margin: 0; font-size: 17px; font-weight: 800; }
.cr-trend .side ol { list-style: none; margin: 0; padding: 0; }
.cr-trend .side li { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr); gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--cr-row); align-items: start; }
.cr-trend .side li b { display: block; font-size: 13px; }
.cr-trend .side li small { color: var(--cr-muted); font-size: 11px; display: block; }
.cr-trend .side li .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cr-table tbody tr.trpick { background: #eef4ff; }
.cr-table tbody tr.trpick td:first-child { box-shadow: inset 3px 0 0 var(--cr-brand); }
.cr-top-names { font-size: 11.5px; color: var(--cr-ink-2); max-width: 220px; }
.cr-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.cr-filters .hint { color: var(--cr-muted); font-size: 11.5px; }

/* ---- ブランド ---- */
.b-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.b-cell b { display: block; font-size: 13px; color: var(--cr-ink); }
.b-cell small { color: var(--cr-muted); font-size: 11px; }
.b-cell a:hover { text-decoration: none; }
.b-hero { display: flex; gap: 18px; align-items: center; padding: 18px 20px; margin: 0 0 12px; }
.b-hero h1 { font-size: 22px; font-weight: 800; margin: 0 0 2px; }
.b-hero .meta { color: var(--cr-muted); font-size: 12px; }
.b-hero .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.b-hero .act form { margin: 0; }
.cr-row2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin: 12px 0; }
.bars { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.6em; gap: 8px; align-items: center; font-size: 12px; }
.bar-row .bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cr-ink-2); }
.bar-row .bt { height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.bar-row .b { display: block; height: 100%; background: var(--cr-brand); border-radius: 4px; }
.bar-row .bn { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.months { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.mcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; color: var(--cr-muted) !important; font-size: 10.5px; gap: 4px; }
.mcol:hover { text-decoration: none; }
.mcol .stack { width: 100%; max-width: 28px; background: var(--cr-brand-100); border-radius: 3px 3px 0 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.mcol .stack i { display: block; background: var(--cr-brand); }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--cr-muted); margin: 8px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.heat { border-collapse: collapse; width: 100%; font-size: 10.5px; }
.heat th { color: var(--cr-muted); font-weight: 600; padding: 2px; text-align: center; }
.heat td { width: 3.6%; height: 22px; text-align: center; background: rgba(37, 99, 235, var(--a, 0)); color: #0f172a; border: 1px solid #fff; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* ---- カレンダー ---- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--cr-line); overflow: hidden; border-radius: 8px; border: 1px solid var(--cr-line); }
.cal-h { background: var(--cr-head); text-align: center; font-size: 11px; font-weight: 700; color: var(--cr-th); padding: 8px 0; }
.cal-h.we { color: var(--cr-brand-600); }
.cal-d { background: #fff; min-height: 128px; padding: 8px; display: grid; align-content: start; gap: 4px; }
.cal-d.empty { background: var(--cr-side); }
.cal-d.none .cal-n span { color: var(--cr-faint); }
.cal-n { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 12.5px; }
.cal-n small { font-weight: 600; color: var(--cr-muted); font-size: 10.5px; }
.cal-i { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--cr-ink) !important; background: var(--cr-side); border-radius: 6px; padding: 3px 6px; min-width: 0; }
.cal-i:hover { background: var(--cr-brand-50); text-decoration: none; }
.cal-i .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.cal-i b { font-weight: 800; font-size: 10.5px; color: var(--cr-brand-600); white-space: nowrap; }
.cal-more { font-size: 11px; font-weight: 600; }

/* ---- 比較・アカウント ---- */
.cmp-b { display: flex; align-items: center; gap: 8px; color: var(--cr-ink) !important; font-weight: 700; }
.cmp-tbl th[scope="row"] { color: var(--cr-muted); font-weight: 600; white-space: nowrap; background: var(--cr-side); text-align: left; padding-left: 16px; }
.cmp-tbl td { min-width: 170px; }
.cmp-v { font-weight: 800; font-size: 14px; }
.cr-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.cr-picker .cr-select { min-width: 150px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: grid; grid-template-columns: 8em 1fr; padding: 9px 0; border-bottom: 1px solid var(--cr-line); }
.kv dt { color: var(--cr-muted); }
.kv dd { margin: 0; font-weight: 700; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.acc-grid > .cr-card, .acc-reports { padding: 16px 18px; }
.acc-grid h2, .acc-reports h2 { margin: 0 0 10px; font-size: 14px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; color: var(--cr-ink-2); }
.form input[type=email], .form input[type=password], .form input[type=text] { height: 38px; border: 1px solid var(--cr-line-2); border-radius: 6px; padding: 0 10px; font: inherit; font-size: 13px; }
.upsell { margin-top: 14px; background: var(--cr-brand-50); border: 1px solid var(--cr-brand-100); border-radius: 8px; padding: 12px 14px; display: grid; gap: 6px; justify-items: start; }
.upsell p { margin: 0; font-size: 12.5px; color: var(--cr-ink-2); }
.billing { margin-top: 14px; border-top: 1px solid var(--cr-line); padding-top: 12px; display: grid; gap: 8px; justify-items: start; }
.billing p { margin: 0; color: var(--cr-ink-2); font-size: 12.5px; }
.reports { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.reports th { text-align: left; background: var(--cr-head); color: var(--cr-th); font-size: 10.5px; padding: 8px 10px; }
.reports td { padding: 10px; border-bottom: 1px solid var(--cr-row); }
.rep-st { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.acc-reports { margin-top: 12px; }

/* ---- ログインなど（左の列なし） ---- */
body.cr.bare { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; box-sizing: border-box; }
.bare-wrap { width: 100%; max-width: 420px; }
.bare-logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 0 0 18px; color: var(--cr-ink) !important; font-weight: 800; font-size: 18px; }
.bare-logo:hover { text-decoration: none; }
.bare-demo { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #FEF3C7; color: #92400E; font-size: 12.5px; line-height: 1.6; text-align: center; }
.bare-logo .mk { width: 34px; height: 34px; border-radius: 9px; background: var(--cr-brand); color: #fff; display: grid; place-items: center; font-weight: 900; }
.login-card { padding: 24px 24px 20px; }
.login-card h1 { font-size: 20px; font-weight: 800; margin: 0 0 14px; }
.login-card .note { margin: 14px 0 0; line-height: 1.8; }
.cr-foot { color: var(--cr-muted); font-size: 11px; padding: 16px 32px 24px; }
body.cr .cr-foot a, body.cr p.note a, body.cr .bare-demo a, body.cr .cr-sub a, body.cr .notice a, body.cr .cr-empty a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- 狭い画面 ---- */
/* 検索結果のまとめ：表と重ならない広い画面（1680px〜）だけ最初から出す。それより狭いときは「まとめ」ボタンで開く */
@media (max-width: 1679px) {
  .cr-sum { display: none; }
  body.sum-open .cr-sum { display: block; }
  .cr-sum-open { display: inline-flex !important; }
}
@media (max-width: 1280px) {
  .cr-trend { grid-template-columns: 1fr; }
  .cr-trend .cr-tablewrap { border-radius: 8px; }
  .cr-trend .side { border-left: 1px solid var(--cr-line); border-radius: 8px; margin-top: 12px; }
}
@media (max-width: 1100px) {
  body:not(.nav-open) .cr-nav { display: none; }
  .mp-grid { grid-template-columns: 1fr; }
  .mp-left { position: static; }
  .cr-keys { display: none; }
}
@media (max-width: 900px) {
  .cr-rail { display: none; }
  .cr-top { padding: 0 12px; gap: 12px; }
  .cr-top .menu { display: grid; }
  .cr-top .right { display: none; }
  .cr-tabs { gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .cr-tabs::-webkit-scrollbar { display: none; }
  .cr-tabs a { white-space: nowrap; font-size: 13px; }
  body.nav-open .cr-nav { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; box-shadow: 18px 0 40px rgba(15,23,42,.2); }
  .cr-page { padding: 16px 12px 40px; }
  .cr-split { flex-direction: column; min-height: 0; }
  .cr-filter { width: auto; position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--cr-line); }
  .cr-filter .ttl button { display: inline-flex; }
  .cr-filter .fields { grid-template-columns: 1fr 1fr; }
  .cr-filter .fields > .full { grid-column: 1 / -1; }
  .cr-filter:not(.open) .fields > :not(.full) { display: none; }
  .cr-filter:not(.open) .btns { display: none; }
  .cr-filter .btns { position: static; }
  .cr-kpis, .cr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cr-kpis > div:nth-child(2) { border-right: 0; }
  .cr-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--cr-line); }
  .cr-row2, .acc-grid { grid-template-columns: 1fr; }
  .onboard { grid-template-columns: 1fr; }
  .b-hero { flex-wrap: wrap; }
  .b-hero .act { margin-left: 0; justify-content: flex-start; }
  .cal { grid-template-columns: 1fr; }
  .cal-h, .cal-d.empty, .cal-d.none { display: none; }
  .cal-d { min-height: 0; }
  .hide-sm { display: none; }
  .m-cell { min-width: 230px; }
  .mp-head { padding: 0 8px 0 12px; gap: 10px; }
  .mp-head .ttl span:not(.ic) { display: none; }
}
@media (max-width: 520px) {
  .onboard-list { grid-template-columns: 1fr; }
  .cr-filter .fields { grid-template-columns: 1fr; }
  .cr-toolbar .cr-input { width: 110px; }
  .cr-h1 { font-size: 19px; }
  .cr-seg a { padding: 5px 10px; }
}
/* 文中の小さなアイコン */
.cr-back svg, .cr-toolbar .cond svg, .cr-av svg, .cr-empty svg { width: 14px; height: 14px; vertical-align: -2px; flex: none; }
.cr-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cr-table td b, .cr-trend td a b { white-space: nowrap; }
.cr-trend .cr-table td:nth-child(2) { white-space: nowrap; }
/* 公開サイトの ui.css の「入力欄は横いっぱい」を会員画面では使わない */
body.cr .cr-select, body.cr .cr-input { width: auto; padding: 0 10px; min-width: 0; }
body.cr .cr-filter .cr-select, body.cr .cr-filter .cr-input { width: 100%; }
body.cr input[type=checkbox], body.cr input[type=radio] { width: auto; padding: 0; }
body.cr .cr-picker .cr-select { flex: 0 1 180px; }
.m-brand a, .m-brand span { white-space: nowrap; }
.heat { table-layout: fixed; }
.heat tr > :first-child { width: 28px; }
.heat td { width: auto; }
@media (max-width: 1100px) {
  .mp-left { order: 2; }
  .mp-thumb .mt { max-width: 240px; }
}

/* ---- 無料会員と有料会員 ---- */
.cr-plan { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; background: var(--cr-side); border: 1px solid var(--cr-line); font-size: 12px; font-weight: 700; color: var(--cr-ink-2); }
.cr-plan.paid { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.cr-plan a { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--cr-brand); color: #fff !important; font-size: 11px; border: 0; }
.cr-plan a:hover { background: var(--cr-brand-600); text-decoration: none; }
.cr-plan a svg { width: 12px; height: 12px; }
.cr-as { flex: none; }
.cr-as a { font-size: 11.5px; padding: 4px 10px; }
.cr-lock { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; background: linear-gradient(90deg, #eff6ff, #fff); border: 1px solid var(--cr-brand-200); border-radius: 10px; }
.cr-lock .lk { width: 38px; height: 38px; border-radius: 10px; background: var(--cr-brand); color: #fff; display: grid; place-items: center; }
.cr-lock .lk svg { width: 20px; height: 20px; }
.cr-lock b { display: block; font-size: 14px; }
.cr-lock p { margin: 2px 0 0; color: var(--cr-ink-2); font-size: 12.5px; }
.cr-lock .act { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-lock.compact { padding: 10px 12px; gap: 10px; }
.cr-lock.compact .lk { width: 30px; height: 30px; }
.cr-lock.compact .lk svg { width: 16px; height: 16px; }
.cr-flash { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 24px; background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #9a3412; font-size: 13px; font-weight: 600; }
.cr-flash svg { width: 16px; height: 16px; flex: none; }
.cr-flash a { font-weight: 700; }
.cr-freebar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 16px; background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; font-size: 12.5px; }
.cr-freebar svg { width: 15px; height: 15px; flex: none; }
.cr-freebar a { font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) { .cr-freebar { grid-template-columns: auto minmax(0, 1fr); } .cr-freebar a { grid-column: 2; } }
.lockseg { color: var(--cr-muted) !important; }
.lockseg svg { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-left: 3px; }
.cmp-lock { display: inline-flex; align-items: center; gap: 4px; color: var(--cr-muted); font-size: 12px; }
.cmp-lock svg { width: 12px; height: 12px; }
.blurlock { position: relative; }
.blurlock > .inner { filter: blur(5px); opacity: .6; pointer-events: none; user-select: none; }
.blurlock > .cr-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 32px)); box-shadow: 0 12px 30px rgba(15,23,42,.12); }
.signup-points { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 12.5px; color: var(--cr-ink-2); }
.signup-points li { display: flex; gap: 6px; align-items: flex-start; }
.signup-points svg { width: 15px; height: 15px; color: var(--cr-brand); flex: none; margin-top: 3px; }
.form .chk { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 12.5px; }
.form .chk input { margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
@media (max-width: 900px) {
  .cr-lock { grid-template-columns: auto minmax(0, 1fr); }
  .cr-lock .act { grid-column: 1 / -1; }
  .cr-as a { padding: 4px 7px; font-size: 11px; }
}

/* ---- ホーム ---- */
.cr-home { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.cr-home > .wide { grid-column: 1 / -1; }
.cr-home .cr-card { overflow: hidden; min-width: 0; }
.hm-h { display: flex; align-items: baseline; gap: 10px; padding: 0 16px 10px 0; border-bottom: 1px solid var(--cr-line); }
.hm-h .cr-card-h small { font-size: 11px; font-weight: 600; color: var(--cr-muted); margin-left: 8px; }
.hm-h > a { margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cr-tablewrap.flat { border: 0; border-radius: 0; }
.cr-table.compact td { padding: 8px 12px; }
.cr-table.compact tbody tr:last-child td { border-bottom: 0; }
.cr-table.compact .m-cell { min-width: 0; gap: 10px; }
.cr-table.compact .m-thumb { width: 40px; height: 50px; }
.cr-table.compact .m-thumb .mt { transform: scale(.25); }
.cr-empty.sm { padding: 20px 16px; margin: 0; font-size: 12.5px; color: var(--cr-muted); }
.kpi-g { font-size: 12px; font-weight: 700; margin-left: 6px; }
.hm-list { list-style: none; margin: 0; padding: 0; }
.hm-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--cr-row); cursor: pointer; }
.hm-list li:last-child { border-bottom: 0; }
.hm-list li:hover { background: #f5f8ff; }
.hm-list .t { min-width: 0; }
.hm-list .t a { display: block; color: var(--cr-ink); font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-list .t small { color: var(--cr-muted); font-size: 11px; }
.hm-dl { font-size: 11px; font-weight: 700; color: #be123c; background: #fff1f2; border: 1px solid #fecdd3; border-radius: 99px; padding: 2px 8px; white-space: nowrap; }
.hm-cats td:first-child { width: 36px; }
.hm-cats td:nth-child(2) { width: 55%; }
.hm-cats td:nth-child(5) { width: 96px; }
.hm-cats td { white-space: nowrap; }
.hm-subj { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 16px 16px; align-items: start; }
.hm-subj .cr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hm-words { display: grid; gap: 4px; }
.hm-words h3 { margin: 0 0 4px; font-size: 11.5px; color: var(--cr-muted); font-weight: 700; }
.hm-words .bar-row { color: inherit; text-decoration: none; border-radius: 6px; min-height: 26px; }
.hm-words .bar-row:hover { background: #f5f8ff; }
@media (max-width: 1100px) {
  .cr-home { grid-template-columns: minmax(0, 1fr); }
  .hm-subj { grid-template-columns: minmax(0, 1fr); }
}
/* デモの見え方の切り替え：スマホでは「有料／無料」だけにして、上のタブを隠さない */
@media (max-width: 700px) {
  .cr-as .lg { display: none; }
  .cr-as a { padding: 5px 10px; }
  .cr-top { gap: 10px; }
}
/* ---- ブランド分析：セールの出し方・件名の傾向 ---- */
.cr-row2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cr-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cr-tiles dd small:first-child { margin: 0 3px 0 0; }
.h-note { font-size: 11px; font-weight: 600; color: var(--cr-muted); margin-left: 8px; }
.sub-h { margin: 16px 0 8px; font-size: 11.5px; font-weight: 700; color: var(--cr-muted); }
.bars a.bar-row { color: inherit; text-decoration: none; border-radius: 6px; min-height: 26px; }
.bars a.bar-row:hover { background: #f5f8ff; }
@media (max-width: 1100px) {
  .cr-row2.even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .cr-tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body.cr .cr-table td.hide-sm a { text-decoration: underline; text-underline-offset: 2px; }
/* ---- 有料の機能を開いたときの案内 ---- */
.up-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 880px; }
.up-cmp .cr-table th[scope="row"] { font-weight: 700; text-align: left; background: #fff; color: var(--cr-ink-2); font-size: 12.5px; height: auto; }
.up-cmp .cr-table td { font-size: 12.5px; }
.up-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--cr-line); }
.up-plan { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--cr-line); border-radius: 10px; color: var(--cr-ink) !important; text-decoration: none !important; background: #fff; }
.up-plan:hover { border-color: var(--cr-brand); background: var(--cr-brand-50); }
.up-plan b { font-size: 14px; }
.up-plan span { font-size: 13px; font-weight: 700; color: var(--cr-brand-600); }
.up-plan small { font-size: 11.5px; color: var(--cr-muted); }
.up-plan.feat { border-color: var(--cr-brand); box-shadow: inset 0 0 0 1px var(--cr-brand); }
/* カードの表示：選んだカードを目立たせる */
body.cr .ecard.sel { outline: 2px solid var(--cr-brand); outline-offset: -1px; }
body.cr .ecard:hover { text-decoration: none; }
/* 比較：数字の下の棒（比べているブランドの中でいちばん大きい値を100%） */
.cmp-bar { display: block; height: 4px; margin-top: 6px; background: #eef2f7; border-radius: 2px; overflow: hidden; max-width: 160px; }
.cmp-bar i { display: block; height: 100%; background: var(--cr-brand); border-radius: 2px; }
.cmp-v .cmp-lock { font-size: 12px; font-weight: 600; }
/* ---- 運営画面（顧客管理） ---- */
.cr-rail .logo.ops, .cr-nav-head .mk.ops { background: #0f766e; }
.ops-tag { margin-left: 6px; font-size: 10.5px; font-weight: 800; color: #fff; background: #0f766e; border-radius: 99px; padding: 1px 8px; vertical-align: 2px; }
.cr-plan.ops { background: #f0fdfa; border-color: #99f6e4; color: #115e59; }
.d-block { display: block; }
.ops-todo { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.ops-todo .todo { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--cr-line); color: var(--cr-ink) !important; font-size: 13px; text-decoration: none !important; }
.ops-todo .todo b { font-size: 16px; color: var(--cr-brand-600); }
.ops-todo .todo.red { border-color: #fecdd3; background: #fff1f2; }
.ops-todo .todo.red b { color: #be123c; }
.ops-todo .todo.amber { border-color: #fde68a; background: #fffbeb; }
.ops-todo .todo.amber b { color: #b45309; }
.ops-todo .todo:hover { border-color: var(--cr-brand); }
.ops-kpis > div dd.kpi-sub { margin: 2px 0 0; font-size: 11px; font-weight: 500; color: var(--cr-muted); line-height: 1.5; letter-spacing: 0; white-space: normal; overflow: visible; }
.ops-home { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.ops-legend { margin-left: auto; font-size: 11px; color: var(--cr-muted); display: inline-flex; align-items: center; gap: 6px; }
.ops-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 6px; }
.ops-legend i.f, .ops-bars .stack { background: var(--cr-brand-200); }
.ops-legend i.p, .ops-bars .stack i { background: var(--cr-brand); }
.ops-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; align-items: end; height: 180px; padding: 16px; }
.ops-bars .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.ops-bars .stack { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ops-bars .stack i { display: block; width: 100%; }
.ops-bars small { font-size: 9.5px; color: var(--cr-muted); margin-top: 4px; }
.ops-feed li { grid-template-columns: auto minmax(0, 1fr); cursor: default; }
.ops-feed .t small { display: block; }
.ops-seg { margin: 0 0 10px; flex-wrap: wrap; }
.ops-seg small { color: inherit; font-weight: 600; margin-left: 2px; }
.ops-tbl td { vertical-align: top; }
.ops-who { display: block; color: var(--cr-ink) !important; }
.ops-who b { display: block; font-size: 13px; }
.ops-who small { color: var(--cr-muted); font-size: 11.5px; }
.ops-hero { display: flex; gap: 16px; align-items: center; padding: 16px 20px; margin: 0 0 12px; flex-wrap: wrap; }
.ops-hero h1 { font-size: 19px; font-weight: 800; margin: 0 0 4px; word-break: break-all; }
.ops-hero .meta { color: var(--cr-muted); font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ops-hero .act { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ops-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ops-grid .cr-card { min-width: 0; }
.ops-grid .kv.pad { padding: 8px 16px 4px; }
.ops-form { display: grid; gap: 10px; padding: 12px 16px 16px; }
.ops-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--cr-ink-2); }
.ops-form .cr-select, .ops-form .cr-input { width: 100% !important; box-sizing: border-box; }
.ops-form textarea.cr-input { min-height: 96px; font: inherit; font-size: 13px; padding: 8px 10px; }
.ops-form .note { margin: 0; }
.ops-form > button { justify-self: start; }
.ops-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 16px; }
.ops-actions form { margin: 0; }
.ops-danger { margin-top: 12px; }
.ops-danger summary { padding: 14px 16px; cursor: pointer; font-weight: 700; color: #be123c; }
body.cr .cr-btn.danger { background: #be123c; border-color: #be123c; color: #fff; }
.ops-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 12px; align-items: start; }
.ops-side { position: sticky; top: calc(var(--cr-top) + 12px); }
.ops-steps { margin: 0 0 12px; padding-left: 1.3em; font-size: 13px; line-height: 1.7; }
.ops-secret { margin: 6px 0; padding: 10px 12px; background: var(--cr-side); border: 1px dashed var(--cr-line-2); border-radius: 8px; font: 700 15px/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; word-break: break-all; }
.ops-uri { display: block; margin-top: 6px; font-size: 11px; word-break: break-all; }
@media (max-width: 1100px) {
  .ops-home, .ops-grid, .ops-split { grid-template-columns: minmax(0, 1fr); }
  .ops-side { position: static; }
}
@media (max-width: 700px) {
  .ops-bars { gap: 1px; padding: 12px 8px; }
  .ops-bars small { font-size: 8px; }
  .ops-bars .col:nth-child(even) small { visibility: hidden; }
}
.ops-grid .kv > div { grid-template-columns: 9.5em minmax(0, 1fr); }
.ops-tbl td > .cr-up, .ops-tbl td > .muted, .ops-tbl td > .cr-badge, .ops-tbl td.small { white-space: nowrap; }
.ops-inline { display: inline; margin: 0; }
.passbar.payfail { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.passbar.payfail a { color: #be123c; }
.ops-bars.one .stack { background: var(--cr-brand); }
/* ---- 業種ベンチマーク ---- */
.bn-me { margin: 0 0 12px; }
.bn-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; padding: 12px 16px 16px; align-items: end; }
.bn-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--cr-ink-2); }
.bn-form .cr-input { width: 100% !important; box-sizing: border-box; }
.bn-out { grid-column: 1 / -1; margin: 0; padding: 10px 12px; background: var(--cr-brand-50); border: 1px solid var(--cr-brand-100); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--cr-ink); }
.bn-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bn-slots ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.bn-slots li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 10px; background: var(--cr-side); border: 1px solid var(--cr-line); border-radius: 8px; }
.bn-slots li span { color: var(--cr-muted); font-variant-numeric: tabular-nums; }
.bn-slots .sub-h { margin-top: 0; }
.cr-tiles.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .cr-tiles.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .bn-form { grid-template-columns: minmax(0, 1fr); }
  .bn-slots { grid-template-columns: minmax(0, 1fr); }
  .cr-tiles.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bn-pos { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--cr-brand-50); border: 1px solid var(--cr-brand-100); border-radius: 8px; font-size: 12.5px; }
.bn-pos > b { width: 100%; font-size: 12px; }
.bn-pos > b small { font-weight: 500; color: var(--cr-muted); margin-left: 6px; }
.bn-pos em { font-style: normal; margin-left: 4px; }
.bn-pos a { margin-left: auto; font-weight: 700; }
.bn-slots li small { margin-left: 4px; font-size: 11px; }
.bn-slots li { flex-wrap: wrap; align-items: baseline; }
.bn-slots li b { white-space: nowrap; }
.bn-slots li span { text-align: right; margin-left: auto; }
.ops-use { margin: 0 0 10px; font-size: 13px; }
.ops-bars.mini { height: 70px; padding: 0 0 12px; }
.ops-home .bar-row { grid-template-columns: 9.5em minmax(0, 1fr) 3em; }
.bn-months td.bn-bar { width: 30%; }
.bn-months .bn-bar span { display: block; height: 8px; background: var(--cr-brand); border-radius: 4px; min-width: 2px; }
.bn-months td small { margin-left: 6px; font-size: 11px; font-weight: 700; }
/* これからの行事（ホーム・セールカレンダー） */
.evu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.evu { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--cr-row); }
.evu-date { text-align: center; border: 1px solid var(--cr-brand-200); background: var(--cr-brand-50); border-radius: 8px; padding: 6px 0; align-self: start; }
.evu-date b { display: block; font-size: 15px; color: var(--cr-brand-600); font-variant-numeric: tabular-nums; }
.evu-date small { font-size: 11px; color: var(--cr-muted); }
.evu-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.evu-top h3 { margin: 0; font-size: 14px; color: var(--cr-ink); }
.evu-left { font-size: 11px; font-weight: 700; color: var(--cr-brand-600); background: var(--cr-brand-50); border-radius: 99px; padding: 1px 8px; white-space: nowrap; }
.evu p { margin: 0 0 4px; font-size: 12.5px; line-height: 1.6; color: var(--cr-ink-2); }
.evu p b { color: var(--cr-ink); }
.evu .evu-sub { font-size: 11.5px; color: var(--cr-muted); }
.lockname { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--cr-muted); background: var(--cr-head); border-radius: 4px; padding: 0 6px; }
.lockname svg { width: 11px; height: 11px; }
.cal-up { margin-bottom: 12px; }
.cal-up > summary { cursor: pointer; list-style: none; }
.cal-up > summary::-webkit-details-marker { display: none; }
.cal-up > summary::after { content: "閉じる"; margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--cr-brand-600); font-weight: 600; }
.cal-up:not([open]) > summary::after { content: "開く"; }
.cal-up:not([open]) > summary { border-bottom: 0; }
/* いつもと違う動き（ホーム） */
.mv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.mv-list .t a { display: flex; align-items: center; gap: 8px; }
.mv-k { font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 1px 7px; white-space: nowrap; flex: none; }
.mv-deeper { color: #be123c; background: #fff1f2; }
.mv-back { color: #b45309; background: #fffbeb; }
.mv-more { color: #1d4ed8; background: #eff6ff; }
.mv-b { font-size: 12px; font-weight: 600; white-space: nowrap; }
p.mv-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 10px 16px; font-size: 12px; color: var(--cr-muted); background: transparent; border-top: 1px solid var(--cr-row); }
p.mv-foot svg { width: 13px; height: 13px; }
/* 送料無料の条件（ブランド分析） */
.b-ship { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; padding: 10px 12px; background: #f8fafc; border: 1px solid var(--cr-line); border-radius: 8px; font-size: 12.5px; }
.b-ship > b { width: 100%; font-size: 12px; }
.b-ship > b small { font-weight: 500; color: var(--cr-muted); margin-left: 6px; }
.b-ship a { margin-left: 6px; font-weight: 700; font-size: 12px; }
/* 送料無料になる金額の相場（業種ベンチマーク） */
.bn-ship-sum { margin: 0 0 10px; font-size: 13px; }
.bn-ship-sum b { font-size: 18px; }
.bn-ship-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
.bn-ship-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--cr-row); font-size: 12.5px; }
.bn-ship-list li small { grid-column: 2 / 4; color: var(--cr-muted); font-size: 11px; }
/* 配信の技術対応（ブランド分析・業種ベンチマーク） */
.b-tech .cr-badge { margin-right: 6px; }
.bn-tech-note { margin: 0 0 10px; font-size: 12px; color: var(--cr-muted); line-height: 1.6; }
.bn-tech-bars { display: grid; gap: 8px; margin-bottom: 12px; }
.bn-tech-bars > div { display: grid; grid-template-columns: 17em minmax(0, 1fr) 3.5em; gap: 10px; align-items: center; font-size: 12.5px; }
.bn-tech-bars .bt { height: 10px; background: var(--cr-head); border-radius: 5px; overflow: hidden; }
.bn-tech-bars .b { display: block; height: 100%; background: var(--cr-brand); }
.bn-tech-bars b { text-align: right; }
@media (max-width: 520px) { .bn-tech-bars > div { grid-template-columns: minmax(0, 1fr) 3.5em; } .bn-tech-bars .bt { grid-column: 1 / -1; grid-row: 2; } }
.bn-rhythm .cr-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bn-rhythm dd.kpi-sub { margin: 2px 0 0; font-size: 11px; font-weight: 500; color: var(--cr-muted); white-space: normal; overflow: visible; }
@media (max-width: 520px) { .bn-rhythm .cr-tiles { grid-template-columns: minmax(0, 1fr); } }
/* メルマガからの誘導先 */
.ch-chip { display: inline-block; margin: 2px 6px 2px 0; padding: 1px 8px; border-radius: 99px; background: var(--cr-brand-50); color: var(--cr-brand-600); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.b-ch span b { margin-left: 2px; }
/* メルマガの画面（掲載の許諾を得たブランドだけ） */
.mp-shot { display: block; max-height: 70vh; overflow: auto; border-top: 1px solid var(--cr-line); background: #f2f2f2; cursor: zoom-in; }
.mp-shot img { display: block; width: 100%; height: auto; }

/* ブランドのページ「登録直後のメール」：PCは日付・件名・条件の3列、スマホは縦に積む（件名を切らない） */
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 10px 16px; border-top: 1px solid var(--cr-line, #e5e7eb); }
.wl-d { font-size: 12.5px; color: var(--cr-muted); white-space: nowrap; padding-top: 2px; }
.wl-s b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.wl-s small { display: block; font-size: 12.5px; color: var(--cr-muted); margin-top: 2px; }
.wl-c { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
@media (max-width: 700px) {
  .wl li { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .wl-d, .wl-s small { font-size: 14px; }
  .wl-s b { font-size: 15px; }
  .wl-c { justify-content: flex-start; }
}
.wl-lock { display: flex; align-items: center; gap: 6px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--cr-line); font-size: 13px; color: var(--cr-muted); }
.wl-lock svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 700px) { .wl-lock { font-size: 14px; padding: 12px 14px; } }
