/* お金の3択ゲーム。サイトの見た目(白地・灰の文字・細い線・角は小さく)に合わせる。色だけで正誤を示さない(✓ と × を付ける) */
.tq { --tq-ink: #222; --tq-mute: #666; --tq-line: #cfcfcf; --tq-ng: #b3431f; --tq-bg: #f7f7f7; max-width: 640px; margin: 0 auto; padding: 8px 0 24px; color: #333; }
.tq *, .tq *::before, .tq *::after { box-sizing: border-box; }
.tq button { font: inherit; letter-spacing: inherit; cursor: pointer; }
.tq-hero, .tq-res { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 20px; }
.tq-h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.3; color: #000; letter-spacing: .08em; }

.tq-lead, .tq-sub, .tq-q, .tq-ex { text-wrap: pretty; word-break: auto-phrase; }
.tq-lead { margin: 0 0 4px; font-size: 18px; line-height: 1.6; color: #000; }
.tq-sub { margin: 0; font-size: 13px; color: var(--tq-mute); }
.tq-mochi { width: 96px; height: auto; flex: none; display: block; }
.tq-mochi-hero { width: 120px; }
.tq-mochi-s { width: 64px; }
.tq-modes { display: grid; gap: 12px; margin: 4px 0 16px; }
.tq-mode { display: grid; gap: 2px; text-align: left; width: 100%; padding: 16px 18px; background: #fff; border: 1px solid var(--tq-ink); border-radius: 4px; color: var(--tq-ink); }
.tq-mode:hover, .tq-mode:focus-visible { background: var(--tq-ink); color: #fff; }
.tq-mode-t { font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.tq-mode-d { font-size: 13px; opacity: .8; }
.tq-mode-s { font-size: 13px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tq-note { font-size: 12px; color: var(--tq-mute); line-height: 1.8; margin: 8px 0; }
.tq-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 10px; font-size: 13px; color: var(--tq-mute); flex-wrap: wrap; }
.tq-prog-t { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.tq-streak { font-variant-numeric: tabular-nums; color: var(--tq-ink); }
.tq-bar { appearance: none; -webkit-appearance: none; width: 100%; height: 4px; border: 0; background: #e6e6e6; border-radius: 0; flex-basis: 100%; }
.tq-bar::-webkit-progress-bar { background: #e6e6e6; }
.tq-bar::-webkit-progress-value { background: var(--tq-ink); }
.tq-bar::-moz-progress-bar { background: var(--tq-ink); }
.tq-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; padding: 0; }
.tq-chips li { font-size: 12px; line-height: 1; padding: 6px 8px; background: var(--tq-bg); border: 1px solid #e0e0e0; color: #444; letter-spacing: .06em; }
.tq-q { margin: 0 0 18px; font-size: 20px; line-height: 1.6; font-weight: 700; color: #000; letter-spacing: .04em; outline: none; }
.tq-choices { display: grid; gap: 10px; }
.tq-choice { display: grid; grid-template-columns: 32px 1fr 28px; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; background: #fff; color: var(--tq-ink); border: 1px solid var(--tq-line); border-radius: 4px; font-size: 17px; line-height: 1.5; }
.tq-choice:not(:disabled):hover, .tq-choice:not(:disabled):focus-visible { border-color: var(--tq-ink); background: var(--tq-bg); }
.tq-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--tq-ink); border-radius: 50%; font-size: 13px; font-weight: 700; }
.tq-mark { font-size: 20px; font-weight: 700; text-align: center; }
.tq-choice:disabled { cursor: default; color: #6b6b6b; }
.tq-prev { margin: 0 0 4px; }
.tq-choice.is-correct { background: var(--tq-ink); border-color: var(--tq-ink); color: #fff; font-weight: 700; }
.tq-choice.is-correct .tq-badge { border-color: #fff; }
.tq-choice.is-wrong { border: 2px solid var(--tq-ng); color: var(--tq-ng); font-weight: 700; background: #fff; }
.tq-choice.is-wrong .tq-badge { border-color: var(--tq-ng); }
.tq-reveal { margin-top: 16px; }
.tq-verdict { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #e6e6e6; }
.tq-vt { margin: 0; font-size: 20px; font-weight: 700; color: #000; }
.tq-verdict.ng .tq-vt { color: var(--tq-ng); }
.tq-va { margin: 2px 0 0; font-size: 15px; }
.tq-ex { margin: 6px 0; font-size: 15px; line-height: 1.8; }
.tq-src { margin: 4px 0; font-size: 12px; color: var(--tq-mute); line-height: 1.7; }
.tq-src a { color: var(--tq-mute); }
.tq-nextrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; align-items: center; }
.tq-next { min-height: 52px; padding: 0 28px; background: var(--tq-ink); color: #fff; border: 1px solid var(--tq-ink); border-radius: 4px; font-size: 16px; font-weight: 700; letter-spacing: .08em; }
.tq-next:hover, .tq-next:focus-visible { background: #000; }
.tq-quiet { min-height: 44px; padding: 0 14px; background: none; border: 0; color: var(--tq-mute); text-decoration: underline; font-size: 14px; }
.tq-score { margin: 0; font-size: 64px; line-height: 1.2; color: #000; outline: none; font-weight: 700; }
.tq-score-of { font-size: 24px; font-weight: 400; color: var(--tq-mute); }
.tq-share { margin: 4px 0 8px; padding: 14px 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; }
.tq-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tq-grid-t { margin: 0 0 12px; font-size: 18px; color: #000; }
.tq-cell { display: inline-grid; place-items: center; width: 32px; height: 32px; font-size: 18px; font-weight: 700; border: 2px solid var(--tq-ink); }
.tq-cell.ok { background: var(--tq-ink); color: #fff; }
.tq-cell.ng { border-color: var(--tq-ng); color: var(--tq-ng); }
.tq-sharerow { display: flex; flex-wrap: wrap; gap: 8px; }
.tq-sb { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--tq-ink); border-radius: 4px; background: #fff; color: var(--tq-ink); font-size: 14px; text-decoration: none; }
.tq-sb:hover, .tq-sb:focus-visible { background: var(--tq-ink); color: #fff; }
.tq-streak-big { margin: 10px 0 0; font-size: 15px; color: #000; font-variant-numeric: tabular-nums; }
.tq-review { margin-top: 20px; font-size: 14px; }
.tq-review summary { cursor: pointer; padding: 10px 0; min-height: 44px; }
.tq-rv { padding: 8px 0; border-top: 1px solid #eee; }
.tq-rv-q { margin: 0 0 2px; font-weight: 700; color: #000; }
.tq-rv-a { margin: 0; color: #444; line-height: 1.7; }
.tq-about { max-width: 640px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid #e6e6e6; font-size: 15px; line-height: 1.9; }
.tq-about h2 { font-size: 18px; margin: 24px 0 6px; color: #000; }
.tq-about p { margin: 0 0 10px; }
.tq-about details { margin: 8px 0; }
.tq-about summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.tq-fig { margin: 12px 0; overflow-x: auto; }
@media (max-width: 480px) {
  .tq-h1 { font-size: 22px; }
  .tq-mochi-hero { width: 96px; }
  .tq-q { font-size: 18px; }
  .tq-choice { font-size: 16px; padding: 10px 12px; }
  .tq-score { font-size: 56px; }
}
@media (prefers-reduced-motion: no-preference) {
  .tq-reveal > * { animation: tq-in .18s ease-out both; }
  @keyframes tq-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}

.tq-about summary::before { content: '▸ '; white-space: pre; }
.tq-about details[open] summary::before { content: '▾ '; }
@media (max-width: 480px) { .tq-grid { gap: 4px; } .tq-cell { width: 30px; height: 30px; font-size: 16px; } }
.tq-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

/* 点数別の共有ページ(/3taku/s/N/)と、友だちの点との比較の1行 */
.tq-vs { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #000; }
.tq-s .tq-score { margin: 0 0 8px; }
.tq-s-card { display: block; width: 100%; height: auto; margin: 8px 0 16px; border: 1px solid #e6e6e6; }
.post-content .tq-s-go, .post-content .tq-s-go:visited { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
