/* 充電器のW早見の「リコール照合」（/recall/ の下だけ。watt.css の上に重ねる。hq #492）
   世界観は watt.css と同じ「机の上の白い充電器」。リコールは注意の朱（--warn）を足し、
   「一覧に見つからない」にも安全の緑は使わない（「安全」と思い込ませない） */
:root { --warn-ink: #9a2a0e; --warn-soft: #fdebe4; }

/* リコール照合の中の入口 */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--rule); text-decoration: none; font-size: 0.94rem; }
.subnav a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }

/* 冒頭と照合の欄 */
.rhero { margin: 20px 0 0; padding: 22px 18px 18px; background: var(--white); border-radius: 26px; box-shadow: 0 0 0 1px var(--rule), 0 30px 50px -34px rgba(20, 30, 40, .55); }
.rhero h1 { margin: 0 0 14px; font-size: clamp(1.5rem, 6.4vw, 2.2rem); font-weight: 800; line-height: 1.4; }
.rhero .h1-sub { margin-top: 8px; }
.lookup { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.lookup input[type="text"] { font-family: var(--jp); font-size: 1.05rem; }
.lookup .pick-row > button { background: var(--cable); color: #fff; }

/* 結果の札 */
.result { margin-top: 20px; }
.result:empty { display: none; }
.result-h { margin: 0 0 12px; font-size: 1.1rem; }
.result-h::before { display: none; }
.ticket { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--rule); border-top: 6px solid var(--warn); padding: 14px 16px 16px; margin: 0 0 16px; }
.ticket.miss { border-top-color: var(--ink); }
.ticket-badge { display: inline-block; margin: 0 0 6px; padding: 2px 12px; border-radius: 999px; font-weight: 800; font-size: 0.94rem; background: var(--warn-soft); color: var(--warn-ink); }
.miss .ticket-badge { background: var(--bg); color: var(--ink); }
.ticket-note { font-size: 0.94rem; background: var(--warn-soft); border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.ticket-links { margin: 8px 0 0; font-size: 0.94rem; }
.ticket-links a, .links a { display: inline-block; padding: 8px 0; }

/* 「当てはまらなくても安全とは限らない」の注意書き（結果のすぐそばで目立たせる） */
.safety { margin: 16px 0; padding: 14px 16px 14px 18px; border-radius: 16px; background: var(--warn-soft); box-shadow: 6px 0 0 var(--warn) inset; color: var(--ink); font-size: 1rem; line-height: 1.75; }
.safety strong { display: block; color: var(--warn-ink); font-size: 1.05rem; }
.ticket .safety { margin: 8px 0 12px; }

/* 試しに入れる */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { min-height: 44px; padding: 4px 16px; border-radius: 999px; font-weight: 600; letter-spacing: .02em; font-size: 0.94rem; }

/* 一覧の札 */
.rc-year { margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-year .yr { font-family: var(--num); font-size: 1.4rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.rc-year .old { font-size: 0.8rem; padding: 0 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); font-weight: 700; }
.old-note { background: var(--warn-soft); color: var(--ink); padding: 10px 14px; border-radius: 12px; box-shadow: 4px 0 0 var(--warn) inset; }
.rc-maker { margin: 0; color: var(--ink-2); font-size: 0.94rem; }
.rc-name { margin: 2px 0 8px; font-size: 1.1rem; line-height: 1.5; }
.rc-facts { margin: 0; }
.rc-facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 6px 0; border-top: 1px dotted var(--rule); }
.rc-facts dt { font-weight: 800; font-size: 0.94rem; color: var(--ink-2); }
.rc-facts dd { margin: 0; font-size: 0.94rem; }
.rc-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.rc { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--rule); padding: 12px 16px 14px; }

/* 1 件ごとのページ */
.sheet { background: var(--white); border-radius: 20px; box-shadow: 0 0 0 1px var(--rule); padding: 4px 16px 12px; }
.sheet h2 { margin-top: 18px; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 8px 0; border-top: 1px dotted var(--rule); }
.spec dt { font-weight: 800; font-size: 0.94rem; color: var(--ink-2); }
.spec dd { margin: 0; overflow-wrap: anywhere; }
.steps { padding-left: 1.4em; }
.steps li { margin-bottom: 8px; }
.links { padding-left: 1.2em; }
.back { margin-top: 24px; }
.notes { padding-left: 1.2em; }
.notes li { margin-bottom: 6px; }

/* 独自集計 */
.agg { background: var(--white); }
.agg td, .agg th { white-space: nowrap; }
.agg tbody th { font-family: var(--jp); font-weight: 600; white-space: normal; min-width: 7em; }
.rbar { display: block; width: 120px; max-width: 26vw; height: 12px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.rbar span { display: block; height: 100%; background: var(--warn); border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cites { padding-left: 1.2em; font-size: 0.94rem; }
.cites li { margin-bottom: 12px; overflow-wrap: anywhere; }

@media (min-width: 720px) {
  .rhero { padding: 30px 32px 26px; }
  .rc-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .site-main > .rhero, .site-main > .result, .site-main > .safety, .site-main > section, .site-main > .subnav, .site-main > p, .site-main > .rc-list, .site-main > h1, .site-main > .sheet { max-width: 900px; }
}

/* 動き：札が手前にくるっと向く（1 回だけ。動きを減らす設定なら止まる） */
@media (prefers-reduced-motion: no-preference) {
  .result.flip .ticket { animation: flip .25s ease-out both; transform-origin: 50% 0; }
  @keyframes flip { from { transform: perspective(600px) rotateX(-70deg); opacity: .2; } to { transform: none; opacity: 1; } }
}
