/* 賛否の長城 — Dシンプル（白・赤 #d42a2a・青 #2456c8・丸いボタン） */
:root {
	--sp-red: #d42a2a;
	--sp-blue: #2456c8;
	--sp-ink: #1a1a1a;
	--sp-sub: #777;
	--sp-line: #e3e3e3;
	--sp-soft: #f6f6f6;
	--sp-bg: #fff;
}
html { -webkit-text-size-adjust: 100%; }
body.sp-body {
	margin: 0;
	background: #ececec;
	color: var(--sp-ink);
	font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
	font-size: 15px;
	line-height: 1.6;
}
.sp-body *, .sp-body *::before, .sp-body *::after { box-sizing: border-box; }
.sp-body :where(a) { color: inherit; }
.sp-body :where(button) { font-family: inherit; color: inherit; }
.sp-body [hidden] { display: none !important; }
.sp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-right { margin-left: auto; }

.sp-wrap { max-width: 640px; margin: 0 auto; background: var(--sp-bg); min-height: 100vh; padding-bottom: 84px; }
.sp-view-single .sp-wrap { padding-bottom: 110px; }

/* ヘッダー */
.sp-header { position: sticky; top: 0; z-index: 20; background: #fff; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--sp-line); }
.sp-back { font-size: 24px; line-height: 1; text-decoration: none; padding: 0 6px 2px 0; }
.sp-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; font-size: 18px; }
.sp-mark { display: flex; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; }
.sp-mark i { flex: 1; background: var(--sp-blue); }
.sp-mark i + i { background: var(--sp-red); }
.sp-sound { margin-left: auto; font-size: 12px; border: 1px solid var(--sp-line); background: #fff; border-radius: 999px; padding: 4px 10px; cursor: pointer; }

.sp-main { display: block; }

/* 下のメニュー */
.sp-footer { padding: 24px 16px 16px; font-size: 11px; color: var(--sp-sub); text-align: center; }
.sp-footer p { margin: 4px 0; }

/* ホーム */
.sp-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--sp-line); overflow-x: auto; scrollbar-width: none; }
.sp-tabs a { flex: none; font-size: 12px; padding: 6px 12px; background: #f3f3f3; border-radius: 999px; text-decoration: none; }
.sp-tabs a.is-on { background: var(--sp-ink); color: #fff; }

.sp-card { display: flex; flex-direction: column; gap: 9px; padding: 14px 14px 12px; border-bottom: 8px solid #f3f3f3; text-decoration: none; }
.sp-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--sp-sub); align-items: baseline; }
.sp-ikioi { color: var(--sp-red); }
.sp-ikioi small { font-weight: 400; color: var(--sp-sub); }
.sp-origin { font-size: 14px; line-height: 1.7; padding: 10px 12px; border: 1px solid var(--sp-line); border-radius: 12px; color: #333; }
.sp-origin-full { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sp-origin-label { font-size: 11px; font-weight: 700; color: var(--sp-sub); }
.sp-origin a { font-size: 13px; color: var(--sp-blue); }
.sp-q { margin: 0; font-weight: 900; font-size: 17px; line-height: 1.4; }
.sp-q a { text-decoration: none; }
.sp-picks { display: flex; flex-direction: column; gap: 6px; }
.sp-pick { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--c); color: var(--c); }
.sp-pick-label { flex: 1; min-width: 0; }
.sp-pick-go { font-size: 12px; font-weight: 900; flex: none; }
.sp-hint { font-size: 11px; color: var(--sp-sub); text-align: center; }
.sp-best { background: #fafafa; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.sp-best-head { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--sp-sub); }
.sp-best-head b { color: var(--sp-ink); }
.sp-best-body { font-size: 13px; line-height: 1.6; display: block; }
.sp-mini-reacts { display: flex; gap: 4px; }
.sp-mini-reacts > span { flex: 1 1 0; min-width: 0; text-align: center; background: #fff; border-radius: 10px; padding: 3px 0; line-height: 1.2; }
.sp-mini-reacts > span span { display: block; font-size: 10px; color: #666; }
.sp-mini-reacts > span b { display: block; font-size: 11px; }
.sp-buzz .sp-mini-reacts > span { background: var(--sp-soft); }
.sp-card-foot { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #555; }
.sp-card-foot a { text-decoration: none; }
.sp-card-foot button { border: 0; background: none; padding: 4px 0; font-size: 12px; color: #555; cursor: pointer; }
.sp-ava { flex: none; display: inline-block; border-radius: 50%; vertical-align: middle; }
.sp-more { display: block; margin: 16px 12px; padding: 12px; text-align: center; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; text-decoration: none; font-size: 14px; width: calc(100% - 24px); cursor: pointer; }
.sp-empty { padding: 24px 16px; color: var(--sp-sub); font-size: 14px; text-align: center; }

/* 広告（ボタンから離す） */
.sp-ad { margin: 28px 12px; padding: 8px 0; text-align: center; clear: both; }
.sp-ad-label { font-size: 10px; color: #aaa; margin-bottom: 4px; }

/* お題ページ */
.sp-topic { padding: 12px 14px 0; }
.sp-title { margin: 14px 0 6px; font-weight: 900; font-size: 22px; line-height: 1.4; }
.sp-detail { font-size: 14px; color: #333; }
.sp-detail p { margin: 0 0 8px; }
.sp-sides { margin: 14px 0 0; padding: 14px; background: var(--sp-soft); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 60px; }
.sp-sides h2 { margin: 0; font-size: 16px; font-weight: 900; }
.sp-side { background: #fff; border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top btn" "bar btn"; gap: 6px 10px; align-items: center; }
.sp-side-top { grid-area: top; display: flex; gap: 8px; align-items: baseline; }
.sp-side-label { font-weight: 700; color: var(--c); flex: 1; min-width: 0; }
.sp-side-pct { font-weight: 900; font-size: 15px; color: #bbb; }
.sp-side.is-shown .sp-side-pct { color: var(--c); }
.sp-bar { grid-area: bar; height: 8px; border-radius: 999px; background: #eee; overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 999px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.sp-side-btn { grid-area: btn; font-size: 13px; font-weight: 900; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--c); background: #fff; color: var(--c); cursor: pointer; white-space: nowrap; min-height: 44px; }
.sp-side.is-mine .sp-side-btn { background: var(--c); color: #fff; }
.sp-side.is-pop .sp-side-btn { animation: spPop .35s ease; }
.sp-side-status b { display: block; }
.sp-side-status .sp-note { display: block; margin-top: 2px; }
.sp-side-status { margin: 0; font-size: 13px; line-height: 1.7; animation: spReveal .4s ease; }
.sp-note { margin: 0; font-size: 11px; color: var(--sp-sub); }
.sp-share-row { display: flex; gap: 8px; margin: 14px 0 0; }
.sp-share-row button { flex: 1; font-size: 13px; font-weight: 700; padding: 10px 0; border-radius: 999px; border: 1px solid var(--sp-line); background: #fff; cursor: pointer; }
.sp-next { display: flex; flex-direction: column; gap: 2px; margin: 14px 0 0; padding: 12px 14px; border: 2px solid var(--sp-ink); border-radius: 14px; text-decoration: none; animation: spReveal .4s ease; }
.sp-next-label { font-size: 11px; color: var(--sp-sub); }
.sp-next-title { font-size: 15px; }
.sp-next-go { font-size: 12px; font-weight: 900; color: var(--sp-red); }

/* コメント */
.sp-comments-wrap { margin-top: 18px; scroll-margin-top: 60px; }
.sp-comments-head { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--sp-line); padding-bottom: 8px; }
.sp-comments-head h2 { margin: 0; font-size: 16px; font-weight: 900; }
.sp-sort { margin-left: auto; display: flex; gap: 4px; }
.sp-sort a { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f3f3f3; text-decoration: none; }
.sp-sort a.is-on { background: var(--sp-ink); color: #fff; }
.sp-c { padding: 12px 0; border-bottom: 1px solid #efefef; display: flex; flex-direction: column; gap: 7px; scroll-margin-top: 70px; }
.sp-c.is-target { background: #fffbe8; }
.sp-c-reply { padding: 10px 0 10px 12px; border-bottom: 0; border-left: 3px solid #eee; margin-left: 4px; }
.sp-c-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sp-sub); flex-wrap: wrap; }
.sp-c-name { color: var(--sp-ink); }
.sp-uid { font-size: 10px; color: #aaa; }
.sp-ago { font-size: 11px; }
.sp-c-claim { font-size: 11px; font-weight: 700; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 0 8px; line-height: 1.6; }
.sp-c-menu { margin-left: auto; border: 0; background: none; color: #999; font-size: 16px; line-height: 1; padding: 2px 6px; cursor: pointer; }
.sp-c-body { font-size: 15px; line-height: 1.75; word-break: break-word; }
.sp-c-hidden { margin: 0; font-size: 13px; color: #999; }
.sp-c-unfold { text-align: left; font-size: 13px; color: #888; background: var(--sp-soft); border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.sp-c.is-muted > :not(.sp-c-head) { display: none; }
.sp-c.is-muted .sp-c-head::after { content: '非表示にしたID'; font-size: 11px; color: #aaa; }

/* 反応ボタン：1行に5つ。名前（上）と数（下）の2段 */
.sp-reacts { display: flex; gap: 4px; }
.sp-r { position: relative; flex: 1 1 0; min-width: 0; min-height: 42px; padding: 3px 2px; border-radius: 12px; border: 2px solid var(--sp-soft); background: var(--sp-soft); color: #555; cursor: pointer; white-space: nowrap; line-height: 1.2; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sp-r-l { display: block; font-size: 11px; }
.sp-r-n { display: block; font-size: 12px; }
.sp-r.is-on { color: var(--c); font-weight: 700; }
.sp-r.is-hit { animation: spPop .32s ease, spFlash 1s ease; }
.sp-plus { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); font-size: 12px; font-weight: 900; color: var(--c); pointer-events: none; animation: spFloat .8s ease forwards; }
@keyframes spPop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes spFlash { 0% { background: var(--bg); border-color: var(--c); } 60% { background: var(--bg); border-color: var(--bg); } 100% { background: var(--sp-soft); border-color: var(--sp-soft); } }
@keyframes spFloat { 0% { opacity: 0; transform: translate(-50%, 4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -22px); } }
@keyframes spReveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sp-c-actions { display: flex; gap: 12px; align-items: center; }
.sp-reply-btn, .sp-replies-toggle { border: 0; background: none; padding: 2px 0; font-size: 12px; color: #555; cursor: pointer; text-align: left; }
.sp-replies-toggle { color: var(--sp-blue); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-replies-first { font-weight: 400; color: #777; }
.sp-reply-btn { margin-left: auto; flex: none; }
.sp-foot-note { font-size: 11px; color: var(--sp-sub); margin: 14px 0; }

/* 書き込み欄（画面下に固定） */
.sp-compose { position: fixed; left: 0; right: 0; bottom: 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important; z-index: 25; max-width: 640px; margin: 0 auto; background: #fff; border-top: 1px solid var(--sp-line); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.sp-compose-row { display: flex; gap: 8px; align-items: flex-end; }
.sp-compose textarea { flex: 1; min-width: 0; font: inherit; font-size: 16px; line-height: 1.5; padding: 9px 14px; border: 1px solid #ddd; border-radius: 20px; resize: none; max-height: 140px; }
.sp-send { flex: none; font-weight: 700; font-size: 14px; padding: 10px 16px; color: #fff; background: var(--sp-ink); border: 0; border-radius: 999px; cursor: pointer; }
.sp-send:disabled { opacity: .5; }
.sp-compose-to { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sp-blue); }
.sp-compose-to button, .sp-addclaim { border: 0; background: none; font-size: 12px; color: var(--sp-sub); cursor: pointer; padding: 0; text-align: left; }
.sp-compose-to button { margin-left: auto; }
.sp-compose-claim { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.sp-compose-claim input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 6px 12px; border: 1px solid #ddd; border-radius: 999px; }

/* ページ共通（投稿する・通知・ランキング） */
.sp-page { padding: 14px; }
.sp-page-title { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.sp-lead { margin: 0 0 14px; font-size: 13px; color: #555; }
.sp-postform { display: flex; flex-direction: column; gap: 8px; }
.sp-postform label, .sp-postform legend { font-size: 13px; font-weight: 700; margin-top: 6px; }
.sp-postform input, .sp-postform textarea, .sp-tip input { font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 14px; width: 100%; }
.sp-primary { margin-top: 10px; font-size: 16px; font-weight: 900; padding: 14px; border-radius: 999px; border: 0; background: var(--sp-red); color: #fff; cursor: pointer; }
.sp-form-msg { margin: 0; font-size: 13px; color: var(--sp-red); }
.sp-tip { margin-top: 22px; background: var(--sp-soft); border-radius: 14px; padding: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.sp-tip p { margin: 0; color: #555; }
.sp-tip button { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--sp-ink); background: #fff; cursor: pointer; }
.sp-code-row { display: flex; gap: 8px; align-items: center; }
.sp-code-row code { flex: 1; min-width: 0; font-size: 12px; background: #fff; padding: 8px 10px; border-radius: 10px; word-break: break-all; }
.sp-code-row input { flex: 1; min-width: 0; }
.sp-my-summary { font-size: 14px; background: #fff4f4; border-radius: 12px; padding: 10px 12px; }
.sp-my-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid #efefef; text-decoration: none; }
.sp-my-item small { color: var(--sp-sub); font-size: 11px; }
.sp-rank-h { font-size: 16px; font-weight: 900; margin: 22px 0 8px; display: flex; flex-direction: column; }
.sp-rank-h small { font-size: 11px; font-weight: 400; color: var(--sp-sub); }
.sp-rank { list-style: none; margin: 0; padding: 0; }
.sp-rank li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #efefef; font-size: 14px; }
.sp-rank-no { width: 22px; text-align: center; font-weight: 900; color: var(--sp-red); }

/* お知らせ（取り消しボタン付き） */
.sp-toast { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 50; background: var(--sp-ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 13px; display: flex; gap: 12px; align-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.18); max-width: calc(100% - 32px); animation: spReveal .2s ease; }
.sp-toast-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-toast-undo { flex: none; white-space: nowrap; border: 0; background: none; color: #ffd36b; font-weight: 700; font-size: 13px; cursor: pointer; padding: 0; }

/* コメントについて（下から出る選択） */
.sp-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; }
.sp-sheet-box { width: 100%; max-width: 640px; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.sp-sheet-title { font-weight: 900; font-size: 15px; margin-bottom: 4px; }
.sp-sheet-main, .sp-sheet-report { display: flex; flex-direction: column; gap: 6px; }
.sp-sheet-report p { margin: 0; font-size: 13px; color: #555; }
.sp-sheet button { text-align: left; font-size: 15px; padding: 12px 14px; border-radius: 12px; border: 0; background: var(--sp-soft); cursor: pointer; }
.sp-sheet .sp-sheet-close { text-align: center; background: #fff; border: 1px solid var(--sp-line); margin-top: 4px; }

/* 言い合いのまとめ・新しいお題へ・似た主張 */
.sp-duel { margin: 8px 0 4px 4px; }
.sp-duel-toggle { width: 100%; text-align: left; font-size: 12px; font-weight: 700; color: #555; padding: 8px 12px; border-radius: 10px; border: 1px solid #e3e3e3; background: #fafafa; cursor: pointer; }
.sp-duel-body { padding-left: 4px; margin-top: 6px; }
.sp-derive { font-size: 12px; font-weight: 700; color: var(--sp-red); text-decoration: none; align-self: flex-start; }
.sp-similar { font-size: 12px; color: var(--sp-blue); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-similar button { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--sp-blue); background: #fff; color: var(--sp-blue); cursor: pointer; }
.sp-cands { list-style: none; margin: 0; padding: 0; }
.sp-cands li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #efefef; }
.sp-cand-title { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; display: flex; flex-direction: column; }
.sp-cand-title small { font-weight: 400; font-size: 11px; color: var(--sp-sub); }
.sp-cands button { flex: none; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--sp-ink); background: #fff; cursor: pointer; }
.sp-want.is-on { background: var(--sp-ink); color: #fff; }

@media (prefers-reduced-motion: reduce) {
	.sp-r.is-hit, .sp-side.is-pop .sp-side-btn, .sp-plus, .sp-next, .sp-side-status, .sp-toast { animation: none !important; }
	.sp-bar i { transition: none; }
}

/* 押せる所が分かるように（指を乗せた・押した・キーボードで選んだとき） */
.sp-body a, .sp-body button { transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease, opacity .15s ease; }
.sp-body button:not(:disabled), .sp-body a[href] { cursor: pointer; }
.sp-body :focus-visible { outline: 3px solid #f0b400; outline-offset: 2px; }
@media (hover: hover) {
	.sp-pick:hover { background: var(--c); color: #fff; }
	.sp-side-btn:hover { background: var(--c); color: #fff; }
	.sp-r:hover { border-color: var(--c); color: var(--c); }
	.sp-tabs a:hover, .sp-sort a:hover, .sp-chips button:hover { background: #e2e2e2; }
	.sp-tabs a.is-on:hover, .sp-sort a.is-on:hover { background: #333; }
	.sp-card-foot button:hover, .sp-card-foot a:hover, .sp-reply-btn:hover, .sp-c-menu:hover, .sp-addclaim:hover, .sp-compose-to button:hover { color: var(--sp-red); }
	.sp-replies-toggle:hover, .sp-duel-toggle:hover { background: #eef3ff; }
	.sp-q a:hover, .sp-today:hover b, .sp-next:hover .sp-next-title { color: var(--sp-blue); }
	.sp-best:hover, .sp-buzz:hover, .sp-my-item:hover { background: #f2f2f2; }
	.sp-share-row button:hover, .sp-send:hover, .sp-primary:hover, .sp-ask-box button:hover { opacity: .85; }
	.sp-more:hover, .sp-tip button:hover, .sp-cands button:hover, .sp-sound:hover { background: var(--sp-ink); color: #fff; }
	.sp-sheet button:hover { background: #e8e8e8; }
	.sp-derive:hover { text-decoration: underline; }
}
/* スマホ：押した瞬間に少し沈む */
.sp-body button:active:not(:disabled), .sp-pick:active, .sp-tabs a:active, .sp-best:active, .sp-next:active, .sp-nav a:active { transform: scale(.97); }
.sp-r:active { background: var(--bg); }
.sp-side-btn:active { background: var(--c); color: #fff; }

/* 投稿者（お題を立てた本人）のコメント */
.sp-op-badge { font-size: 10px; font-weight: 900; color: #fff; background: var(--sp-red); border-radius: 999px; padding: 1px 8px; line-height: 1.6; }
.sp-c.sp-c-op { background: #fff6f6; border-radius: 12px; padding-left: 10px; padding-right: 10px; }
.sp-c-reply.sp-c-op { border-left-color: #f3c4c4; }

/* v1.2：ホームA・炎上中・スクショ・さがす */
.sp-fire { padding: 14px 0 6px; }
.sp-fire-head { display: flex; align-items: baseline; gap: 8px; padding: 0 12px 8px; }
.sp-fire-head h2 { margin: 0; font-size: 16px; font-weight: 900; }
.sp-fire-head span { font-size: 11px; color: var(--sp-sub); }
.sp-fire-row { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sp-fire-row::-webkit-scrollbar { display: none; }
.sp-fire-card { flex: none; width: 210px; scroll-snap-align: start; text-decoration: none; border: 2px solid var(--sp-red); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.sp-fire-meta { display: flex; gap: 6px; align-items: center; font-size: 10px; color: var(--sp-sub); }
.sp-fire-meta b, .sp-fire-badge { color: #fff; background: var(--sp-red); border-radius: 999px; padding: 1px 7px; font-size: 10px; }
.sp-new-badge { color: #fff; background: #777; border-radius: 999px; padding: 1px 7px; font-size: 10px; }
.sp-fire-thumb { display: block; height: 90px; border-radius: 8px; overflow: hidden; background: #eef0f3; }
.sp-fire-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sp-textcard { display: flex; flex-direction: column; justify-content: space-between; height: 90px; border-radius: 8px; background: var(--g); color: #fff; padding: 9px 10px; font-weight: 900; font-size: 14px; line-height: 1.35; }
.sp-textcard small { font-size: 10px; opacity: .9; }
.sp-fire-title { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-fire-sub { font-size: 11px; color: var(--sp-sub); }
.sp-shotcard { display: flex; gap: 10px; text-decoration: none; }
.sp-shotcard-img { position: relative; flex: none; width: 96px; height: 128px; border-radius: 10px; overflow: hidden; background: #eef0f3; }
.sp-shotcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sp-shotcard-img small { position: absolute; right: 4px; bottom: 4px; font-size: 10px; color: #fff; background: rgba(0,0,0,.6); border-radius: 999px; padding: 1px 6px; }
.sp-shotcard-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-shotcard-text span { font-size: 13px; color: #555; line-height: 1.6; }
.sp-gallery { display: flex; gap: 8px; overflow-x: auto; margin: 12px 0 4px; }
.sp-gallery a { flex: none; width: 78%; max-width: 360px; border-radius: 14px; overflow: hidden; background: #eef0f3; }
.sp-gallery a:only-child { width: 100%; }
.sp-gallery img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; object-position: top; }
.sp-lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.sp-lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; }
.sp-lightbox button { font-size: 14px; padding: 8px 18px; border-radius: 999px; border: 0; background: #fff; color: #1a1a1a; }
.sp-stance-row { display: flex; gap: 8px; margin-top: 14px; }
.sp-stance { flex: 1; font-size: 13px; font-weight: 900; padding: 12px 0; border-radius: 999px; cursor: pointer; }
.sp-stance[data-stance="2"] { border: 2px solid var(--sp-red); background: #fff; color: var(--sp-red); }
.sp-stance[data-stance="1"] { border: 2px solid var(--sp-blue); background: var(--sp-blue); color: #fff; }
.sp-center { text-align: center; margin-top: 4px; }
.sp-stance-tag { font-size: 10px; font-weight: 900; border-radius: 999px; padding: 0 7px; line-height: 1.7; border: 1px solid; }
.sp-stance-tag.is-rebut { color: var(--sp-red); border-color: var(--sp-red); }
.sp-stance-tag.is-agree { color: var(--sp-blue); border-color: var(--sp-blue); }
.sp-compose-stance { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.sp-compose-stance.is-rebut { color: var(--sp-red); }
.sp-compose-stance.is-agree { color: var(--sp-blue); }
.sp-compose-stance button { margin-left: auto; border: 0; background: none; font-size: 12px; color: var(--sp-sub); cursor: pointer; }
.sp-rule { font-size: 12px; line-height: 1.7; background: #fff6e8; border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; color: #6b4a12; }
.sp-postform { display: flex; flex-direction: column; gap: 8px; }
.sp-postform input[type="text"], .sp-postform textarea { font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 14px; width: 100%; }
.sp-postform label:not(.sp-check):not(.sp-shot-add) { font-size: 13px; font-weight: 700; }
.sp-step { font-size: 13px; font-weight: 900; margin-top: 8px; }
.sp-shots { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-shot-thumb { width: 104px; display: flex; flex-direction: column; gap: 4px; }
.sp-shot-thumb canvas { width: 104px; height: 150px; object-fit: cover; border-radius: 10px; background: #eef0f3; }
.sp-shot-btns { display: flex; gap: 4px; }
.sp-shot-btns button { flex: 1; font-size: 11px; padding: 5px 0; border-radius: 999px; border: 1px solid var(--sp-line); background: #fff; cursor: pointer; }
.sp-shot-add { width: 104px; height: 150px; border: 2px dashed #ccc; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #777; cursor: pointer; }
.sp-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; font-weight: 700; margin-top: 8px; line-height: 1.6; }
.sp-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.sp-editor { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.sp-editor-box { width: 100%; max-width: 640px; height: 100%; background: #fff; display: flex; flex-direction: column; }
.sp-editor-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--sp-line); }
.sp-editor-head b { font-size: 15px; }
.sp-editor-done { margin-left: auto; font-size: 14px; font-weight: 900; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--sp-ink); color: #fff; cursor: pointer; }
.sp-editor-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px 14px; }
.sp-editor-tools button { font-size: 12px; font-weight: 700; padding: 10px 4px; border-radius: 10px; border: 2px solid var(--sp-ink); background: #fff; cursor: pointer; }
.sp-editor-tools button.is-on { background: var(--sp-ink); color: #fff; }
.sp-editor-tools [data-tool="undo"] { border-color: var(--sp-line); }
.sp-editor-stage { flex: 1; overflow: auto; padding: 0 14px; display: flex; justify-content: center; }
.sp-editor-stage canvas { max-width: 100%; height: auto; touch-action: none; border-radius: 8px; align-self: flex-start; }
.sp-editor .sp-note { padding: 8px 14px 14px; }
.sp-search { display: flex; gap: 8px; margin-bottom: 4px; }
.sp-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 999px; }
.sp-search button { font-size: 13px; font-weight: 700; padding: 0 16px; border-radius: 999px; border: 0; background: var(--sp-ink); color: #fff; cursor: pointer; }
.sp-words { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-words a { text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--sp-line); }
.sp-words a.is-big { font-size: 15px; font-weight: 900; border-color: var(--sp-red); color: var(--sp-red); }
.sp-tabs-inline { padding: 14px 0 6px; border-bottom: 0; }
.sp-target { border: 1px solid var(--sp-line); border-radius: 14px; padding: 12px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sp-target-topic { font-size: 11px; color: var(--sp-sub); text-decoration: none; }
.sp-target-body { font-size: 14px; line-height: 1.7; }
.sp-target-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #555; flex-wrap: wrap; }
.sp-target-go { margin-left: auto; font-size: 13px; font-weight: 900; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--sp-ink); color: #fff !important; }
@media (hover: hover) {
	.sp-fire-card:hover { background: #fff6f6; }
	.sp-stance[data-stance="2"]:hover { background: #fff0f0; }
	.sp-stance[data-stance="1"]:hover { opacity: .88; }
	.sp-editor-tools button:hover:not(.is-on) { background: #f3f3f3; }
}

/* 勢い（炎）と「いま熱い〇位」 */
.sp-flames { display: inline-flex; align-items: flex-end; gap: 1px; vertical-align: middle; }
.sp-flames svg { display: block; }
.sp-flames.is-hot svg:nth-child(2) { transform-origin: 50% 90%; animation: spFlicker 1.6s ease-in-out infinite; }
@keyframes spFlicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06, .96) rotate(-3deg); } 60% { transform: scale(.97, 1.05) rotate(2deg); } }
.sp-rank-badge { font-size: 11px; font-weight: 900; color: #c25e00; }
.sp-rank-badge.is-top { color: #fff; background: var(--sp-red); border-radius: 999px; padding: 1px 8px; }
.sp-meta { align-items: center; }
.sp-fire-sub { display: flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .sp-flames.is-hot svg { animation: none !important; } }

/* 規約・お問い合わせなどのページ */
.sp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.sp-footer-links a { color: var(--sp-sub); }
.sp-info h1 { margin: 0 0 12px; font-size: 22px; font-weight: 900; }
.sp-info h2 { font-size: 16px; font-weight: 900; margin: 22px 0 8px; }
.sp-info p, .sp-info li { font-size: 14px; line-height: 1.85; }
.sp-info ul, .sp-info ol { padding-left: 1.4em; }
.sp-info table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-info th, .sp-info td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--sp-line); vertical-align: top; }
.sp-info th { width: 6.5em; white-space: nowrap; font-size: 13px; color: #555; font-weight: 700; }
.sp-info a { color: var(--sp-blue); }
.sp-contact { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sp-contact label { font-size: 13px; font-weight: 700; margin-top: 6px; }
.sp-contact input, .sp-contact select, .sp-contact textarea { font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 14px; width: 100%; background: #fff; }
.sp-form-done { background: #eef6ff; border-radius: 12px; padding: 10px 12px; color: var(--sp-blue); font-weight: 700; }
.sp-rule a { color: #6b4a12; font-weight: 700; }


/* ---------- v1.4：ヘッダーのアイコン・メニュー・投稿ボタン・共有 ---------- */
.sp-header { position: sticky; top: 0; }
.sp-header .sp-sound { margin-left: auto; }
.sp-icon-btn { position: relative; flex: none; width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--sp-ink); cursor: pointer; text-decoration: none; }
.sp-search-link { margin-left: auto; }
.sp-sound + .sp-search-link { margin-left: 4px; }
.sp-menu-badge { position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--sp-red); color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }
.sp-menu a .sp-menu-badge { position: static; display: inline-block; margin-left: 6px; vertical-align: 2px; }
.sp-menu { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.35); display: flex; justify-content: flex-end; }
.sp-menu[hidden] { display: none; }
.sp-menu-box { width: min(300px, 84vw); height: 100%; overflow-y: auto; background: #fff; padding: 8px 0 24px; display: flex; flex-direction: column; animation: sp-slide .18s ease-out; }
@keyframes sp-slide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; border-bottom: 1px solid var(--sp-line); }
.sp-menu-close { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.sp-menu-box > a { display: block; padding: 14px 20px; font-size: 16px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #f2f2f2; }
.sp-menu-sub { display: flex; flex-direction: column; padding: 12px 20px 0; }
.sp-menu-sub a { padding: 8px 0; font-size: 13px; color: var(--sp-sub); text-decoration: none; }
.sp-fab { position: fixed; right: max(16px, calc(50vw - 320px + 16px)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 6px; padding: 13px 20px; border-radius: 999px; background: var(--sp-red); color: #fff !important; font-size: 15px; font-weight: 900; text-decoration: none; box-shadow: 0 6px 18px rgba(212,42,42,.35); }
.sp-fab span { font-size: 20px; line-height: 1; }
.sp-tabs { position: sticky; top: 59px; z-index: 15; background: #fff; flex-wrap: nowrap; }
.sp-tabs a { flex: none; white-space: nowrap; }
.sp-card-foot .sp-share { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; color: var(--sp-sub); }
.sp-share-row .sp-share-wide { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
@media (hover: hover) {
	.sp-icon-btn:hover { background: #f2f2f2; }
	.sp-menu-box > a:hover { background: #f8f8f8; color: var(--sp-blue); }
	.sp-menu-sub a:hover { color: var(--sp-ink); }
	.sp-fab:hover { opacity: .9; }
}

/* ---------- v1.4：投稿フォーム ---------- */
.sp-postform { display: flex; flex-direction: column; gap: 8px; }
.sp-postform > label, .sp-postform .sp-step, .sp-choices legend { font-size: 13px; font-weight: 700; margin-top: 8px; }
.sp-postform > input, .sp-postform textarea { font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid #ddd; border-radius: 14px; width: 100%; }
.sp-choices { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.sp-choices legend { padding: 0; margin-bottom: 6px; }
.sp-choices input { font: inherit; font-size: 16px; padding: 10px 14px; border: 2px solid color-mix(in srgb, var(--c) 45%, #fff); border-radius: 999px; width: 100%; color: var(--c); font-weight: 700; }
.sp-choices input::placeholder { color: color-mix(in srgb, var(--c) 45%, #fff); font-weight: 500; }
.sp-choices input:focus { outline: none; border-color: var(--c); }
.sp-choice-add { align-self: flex-start; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--sp-sub); cursor: pointer; padding: 4px 0; }
.sp-editor-tools .is-on { background: var(--sp-ink); color: #fff; }

/* ---------- v1.5：運営が消したコメント ---------- */
.sp-c-removed { margin: 0; padding: 10px 12px; font-size: 13px; color: var(--sp-sub); background: #f5f5f5; border-radius: 10px; }
.sp-c-deleted.sp-c-op { background: none; }
.sp-sheet .sp-mod { color: var(--sp-red); }

/* ---------- v1.5.5：選ぶまでコメントを見せない ---------- */
.sp-lock-note { display: none; margin: 18px 0 0; padding: 16px; border-radius: 14px; background: #f5f5f5; text-align: center; font-size: 14px; font-weight: 700; color: #555; }
.sp-topic.is-locked .sp-lock-note { display: block; }
.sp-topic.is-locked .sp-after { display: none !important; }
.sp-topic.is-locked ~ .sp-compose { display: none !important; }
.sp-topic:not(.is-locked) .sp-before { display: none; }

/* ---------- v1.5.6：ホーム画面に追加して開いたとき、下の書き込み欄を持ち上げる ---------- */
.sp-compose { padding-bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px)) !important; }
@media (display-mode: standalone) {
	.sp-compose { padding-bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 14px)) !important; }
	.sp-fab { bottom: max(30px, calc(env(safe-area-inset-bottom, 0px) + 18px)); }
	.sp-view-single .sp-wrap { padding-bottom: 140px; }
}

/* ---------- v1.5.7：次のお題（一覧） ---------- */
.sp-nexts { margin: 16px 0 0; border: 3px solid var(--sp-ink); border-radius: 16px; overflow: hidden; background: #fff; }
.sp-nexts-h { font-size: 14px; font-weight: 900; padding: 10px 14px; border-bottom: 1px solid var(--sp-line); }
.sp-nexts ul { list-style: none; margin: 0; padding: 0; }
.sp-nexts li + li { border-top: 1px solid #f0f0f0; }
.sp-nexts a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.45; }
.sp-nexts-t { flex: 1; min-width: 0; }
.sp-nexts i { font-style: normal; color: var(--sp-red); font-weight: 900; }
.sp-nb { flex: none; font-size: 11px; font-weight: 900; background: var(--sp-red); color: #fff; border-radius: 999px; padding: 1px 8px; }
@media (hover: hover) { .sp-nexts a:hover { background: #f8f8f8; color: var(--sp-blue); } }

/* ---------- v1.6.0：コメントの共有マーク ---------- */
.sp-c-actions .sp-c-share { margin-left: auto; display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--sp-sub); cursor: pointer; }
.sp-c-actions .sp-c-share + .sp-reply-btn { margin-left: 4px; }
@media (hover: hover) { .sp-c-actions .sp-c-share:hover { background: #f2f2f2; color: var(--sp-ink); } }
.sp-q-sub { margin: -2px 0 8px; font-size: 13px; color: #666; line-height: 1.5; }
.sp-nexts-t small { display: block; font-size: 12px; font-weight: 400; color: #777; margin-top: 2px; }

/* ---------- v1.7.0：反応は顔アイコン＋小さい文字の3つ ---------- */
.sp-reacts { gap: 6px; max-width: 360px; }
.sp-r { min-height: 0; padding: 6px 2px 5px; border: 0; border-radius: 12px; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sp-r .sp-r-ic { display: block; transition: transform .12s ease; }
.sp-r-l { font-size: 11px; color: #666; }
.sp-r-n { font-size: 13px; font-weight: 700; color: #444; }
.sp-r.is-on { background: var(--bg); }
.sp-r.is-on .sp-r-l, .sp-r.is-on .sp-r-n { color: var(--c); }
.sp-r.is-on .sp-r-ic { transform: scale(1.12); }
@media (hover: hover) { .sp-r:hover { background: var(--bg); color: inherit; } }
.sp-r:active { background: var(--bg); }
.sp-mod-topic { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--sp-red); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------- v1.7.2：反応は小さな丸で、共有・返信と同じ1行（案C）。IDは出さない ---------- */
.sp-c:not(.sp-c-reply):not(.sp-c-deleted) { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
.sp-c > * { grid-column: 1 / -1; }
.sp-c:not(.sp-c-reply) > .sp-reacts { grid-column: 1; }
.sp-c:not(.sp-c-reply) > .sp-c-actions { grid-column: 2; justify-content: flex-end; }
.sp-reacts { display: flex; gap: 6px; max-width: none; margin-top: 2px; }
.sp-r { flex: none; flex-direction: row; gap: 4px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #f3f3f3; border: 1.5px solid transparent; }
.sp-r-n { font-size: 13px; }
.sp-r.is-on { background: var(--bg); border-color: var(--c); }
.sp-r.is-on .sp-r-ic { transform: none; }
.sp-replies-toggle { display: block; margin-top: 6px; max-width: 100%; }
.sp-c-actions { gap: 4px; }

/* ---------- v1.7.3：名前と「〇〇派」の間を少し空ける ---------- */
.sp-c-head { column-gap: 8px; }
.sp-c-head .sp-c-claim { margin-left: 4px; }
.sp-c-head .sp-ago { margin-left: 2px; }

/* ---------- v1.8.0：共有メニューはXを一番上に ---------- */
.sp-sharesheet .sp-to-x { display: flex; align-items: center; justify-content: center; gap: 8px; background: #000; color: #fff; font-weight: 900; }
@media (hover: hover) { .sp-sharesheet .sp-to-x:hover { background: #222; } }

/* ---------- v1.8.5：共有メニュー（丸いアイコンを横に並べる・案B） ---------- */
.sp-share-icons { display: flex; justify-content: space-around; padding: 10px 0 6px; }
.sp-share-icons button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font-size: 12px; color: #444; cursor: pointer; min-width: 64px; }
.sp-share-icons i { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; transition: transform .12s ease; }
.sp-share-icons button:active i { transform: scale(.92); }
@media (hover: hover) { .sp-share-icons button:hover i { filter: brightness(1.1); } }
.sp-sharesheet .sp-sheet-close { border-radius: 999px; border: 0; background: none; color: #666; }

/* ---------- v1.9.3：ロゴのマークに「賛」「否」の文字 ---------- */
.sp-mark { width: 30px; height: 30px; }
.sp-mark i { display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; line-height: 1; }
.sp-mark i:first-child { padding-left: 3px; }
.sp-mark i + i { padding-right: 3px; }

/* v1.9.6 派で絞り込む（複数選べる・最初は「みんな」） */
.sp-hafilter { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-hafilter::-webkit-scrollbar { display: none; }
.sp-hafilter a { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--c); color: var(--c); background: #fff; text-decoration: none; white-space: nowrap; }
.sp-hafilter a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sp-hafilter a.is-on { background: var(--c); color: #fff; }
.sp-hafilter a.is-on i { background: #fff; }

/* v1.9.7 バズってるコメント一覧の反応も顔マークに（コメント欄と同じ形の小さな丸） */
.sp-buzz .sp-mini-reacts { gap: 6px; }
.sp-buzz .sp-mini-reacts > span.sp-mr { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #f3f3f3; }
.sp-buzz .sp-mini-reacts > span.sp-mr b { display: inline; font-size: 12px; font-weight: 700; }
.sp-buzz .sp-mini-reacts > span.sp-mr svg { display: block; }
