/* ランキングページ（/list/…、scripts/lib/list-pages.mjs が作る）の見た目。アプリ（app.css）と同じ色と文字 */
:root { color-scheme: light; --sky: #f7f6fb; --stroke: rgba(27, 23, 51, .12); --ink: #1b1733; --ink-2: #5d5878; --ink-3: #8c88a6; --accent: #c26a00; --gold-1: #ffe29a; --gold-2: #ffa94d; --gold-ink: #2b1700; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sky); color: var(--ink); }
body { font-family: "M PLUS 1", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif; font-size: 15px; line-height: 1.7; font-weight: 500; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.hd { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 0 auto; padding: 10px 16px; background: rgba(247,246,251,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--stroke); }
.logo { font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.logo b { color: var(--accent); }
.hb, .btn { display: inline-block; text-decoration: none; font-weight: 800; border-radius: 999px; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); }
.hb { font-size: 13px; padding: 6px 14px; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px 24px; }
.crumbs { font-size: 12px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); }
h1 { font-size: 22px; line-height: 1.4; font-weight: 900; margin: 8px 0 12px; }
h2 { font-size: 16px; font-weight: 900; margin: 0 0 8px; }
.lead { margin: 0 0 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0 0 12px; }
.stats div { background: #fff; border: 1px solid var(--stroke); border-radius: 14px; padding: 8px 12px; }
.stats dt { font-size: 11px; color: var(--ink-3); font-weight: 800; }
.stats dd { margin: 0; font-weight: 800; font-size: 14px; }
.tip, .how, .note, .empty { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; }
.tip { background: #fff8e6; border: 1px solid #f3dca6; border-radius: 14px; padding: 10px 12px; color: var(--ink); }
.items { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.it { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 12px; background: #fff; border: 1px solid var(--stroke); border-radius: 16px; padding: 10px; }
.it img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; background: #eee; }
.no { position: absolute; left: 4px; top: 4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.it:nth-child(-n+3) .no { background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); }
.tx { min-width: 0; }
.nm { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 800; font-size: 14px; line-height: 1.5; text-decoration: none; }
.mu { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.mt { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; margin-top: 2px; }
.st { color: var(--accent); font-weight: 700; }
.rr { font-size: 11px; font-weight: 900; padding: 0 8px; border-radius: 999px; background: #e8efff; color: #3a5bb0; }
.rr.SR { background: #ffe8ea; color: #c22a38; } .rr.SSR { background: #fff3cf; color: #8a5a00; } .rr.UR { background: linear-gradient(90deg, #ffd6da, #fff3b8, #d4f7ff); color: #8a1030; } .rr.LR { background: #1b1733; color: #f0cf72; }
.ad { font-size: 12px; font-weight: 800; color: #c2185b; }
.go { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--stroke); text-decoration: none; background: #fff; }
.cta { margin: 20px 0; padding: 16px; border-radius: 18px; background: #1b1733; color: #f5f3ff; text-align: center; }
.cta p { margin: 0 0 12px; font-size: 14px; }
.btn { padding: 12px 20px; font-size: 15px; }
.links { margin: 18px 0; }
.links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links li a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--stroke); text-decoration: none; font-size: 13px; font-weight: 700; }
.links li small { margin-left: 4px; font-size: 11px; color: var(--ink-3); }
.grid-wrap { overflow-x: auto; }
.grid { border-collapse: collapse; font-size: 12px; white-space: nowrap; background: #fff; }
.grid th, .grid td { border: 1px solid var(--stroke); padding: 6px 8px; text-align: center; }
.grid th:first-child { text-align: left; }
.grid td span { color: var(--ink-3); }
.ft { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--stroke); }
.ft p { margin: 0 0 6px; }
@media (min-width: 720px) { h1 { font-size: 26px; } .it { grid-template-columns: 110px 1fr; } .it img { width: 110px; height: 110px; } }
/* analysis article (content/list.html・popular.html) */
.post { background: #fff; border: 1px solid var(--stroke); border-radius: 18px; padding: 16px; margin: 0 0 20px; }
.post .upd { font-size: 12px; color: var(--ink-3); margin: 0 0 8px; }
.post h2 { font-size: 18px; margin: 24px 0 8px; padding-left: 10px; border-left: 4px solid var(--gold-2); }
.post h3 { font-size: 15px; font-weight: 900; margin: 16px 0 6px; }
.post p, .post li { font-size: 15px; }
.post ul, .post ol { padding-left: 1.3em; }
.post .it { margin: 12px 0; }
.post .cta { margin: 20px 0 4px; }
.post table { border-collapse: collapse; font-size: 13px; width: 100%; margin: 8px 0 12px; display: block; overflow-x: auto; }
.post th, .post td { border: 1px solid var(--stroke); padding: 6px 8px; text-align: left; white-space: nowrap; }
.post th { background: var(--sky); }
.post .point { background: #fff8e6; border: 1px solid #f3dca6; border-radius: 14px; padding: 10px 12px; }
h2.sec { font-size: 18px; margin: 8px 0; }
/* ふるQuestとは（/top/、web/top.html） */
.top-page .hd { max-width: none; background: rgba(13,10,36,.85); border-bottom-color: rgba(255,255,255,.1); }
.top-page .hd .logo { color: #fff; } .top-page .hd .logo b { color: #ffd15c; }
.tp-hero { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 56px 16px 64px; background: radial-gradient(ellipse 80% 60% at 50% 0%, #3b2a8a 0%, #1a1240 45%, #0d0a24 100%); }
.tp-stars { position: absolute; inset: 0; background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 15%, #ffe29a, transparent), radial-gradient(1px 1px at 75% 55%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 25%, #fff, transparent), radial-gradient(1px 1px at 45% 88%, #ffe29a, transparent), radial-gradient(1px 1px at 92% 80%, #fff, transparent); opacity: .8; }
.tp-cards { position: relative; height: 92px; margin: 0 auto 20px; max-width: 320px; }
.tp-cards .c { position: absolute; top: 0; width: 60px; height: 84px; border-radius: 10px; display: grid; place-items: center; font-family: Unbounded, sans-serif; font-weight: 900; font-size: 15px; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); animation: tp-float 3.2s ease-in-out infinite; }
.tp-cards .r { left: 8%; transform: rotate(-14deg); background: #8fb3ff; color: #102050; }
.tp-cards .sr { left: 30%; transform: rotate(-5deg); background: #ff4f5e; animation-delay: -.8s; }
.tp-cards .ssr { left: 52%; transform: rotate(5deg); background: linear-gradient(135deg, #fff6cf, #ffd15c 40%, #d9901f); color: #2b1700; animation-delay: -1.6s; }
.tp-cards .ur { left: 74%; transform: rotate(14deg); background: linear-gradient(115deg, #ff4d5e, #ffb648, #fff36b, #6effb4, #5ec8ff, #b76bff); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); animation-delay: -2.4s; }
@keyframes tp-float { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .tp-cards .c { animation: none; } }
.tp-kicker { position: relative; margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #c9c3ff; }
.tp-hero h1 { position: relative; margin: 0 0 24px; font-size: clamp(28px, 8vw, 44px); line-height: 1.35; font-weight: 900; }
.tp-hero h1 em { font-style: normal; background: linear-gradient(180deg, #fff6cf, #ffd15c 50%, #ffa94d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn.big { position: relative; padding: 16px 32px; font-size: 17px; box-shadow: 0 10px 30px -8px rgba(255,169,77,.8); }
.tp-free { position: relative; margin: 10px 0 0; font-size: 12px; color: #b9b5dc; }
.tp { max-width: 680px; }
.tp section { margin: 36px 0; }
.tp h2 { font-size: 21px; line-height: 1.45; margin: 0 0 14px; }
.tp p { margin: 0 0 12px; font-size: 16px; line-height: 1.9; }
.tp-check { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tp-check li { position: relative; padding: 12px 14px 12px 42px; background: #fff; border: 1px solid var(--stroke); border-radius: 14px; font-size: 15px; }
.tp-check li::before { content: "✓"; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 900; }
.tp-voice { font-size: 18px !important; font-weight: 800; padding: 14px 16px; border-left: 4px solid var(--ink-3); background: #fff; border-radius: 0 14px 14px 0; color: var(--ink-2); }
.tp-turn { text-align: center; padding: 28px 16px; border-radius: 20px; background: linear-gradient(180deg, #fff8e6, #ffeccc); border: 1px solid #f3dca6; }
.tp-big { font-size: 20px !important; line-height: 1.7 !important; margin: 0 !important; }
.tp-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.tp-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--stroke); border-radius: 16px; }
.tp-steps li > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: Unbounded, sans-serif; font-weight: 900; background: linear-gradient(180deg, var(--gold-1), var(--gold-2)); color: var(--gold-ink); }
.tp-steps b { font-size: 16px; }
.tp-steps p { margin: 2px 0 0 !important; font-size: 14px !important; line-height: 1.7 !important; color: var(--ink-2); }
.tp-why { padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--stroke); }
.tp-reads { display: grid; gap: 10px; }
.tp-reads a { display: block; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--stroke); text-decoration: none; }
.tp-reads a b { display: block; font-size: 16px; margin-bottom: 4px; }
.tp-reads a b::after { content: " ›"; color: var(--accent); }
.tp-reads a span { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.tp-last { text-align: center; padding: 36px 16px; border-radius: 24px; color: #fff; background: radial-gradient(ellipse 90% 70% at 50% 0%, #3b2a8a, #0d0a24); }
.tp-last .tp-big b { background: linear-gradient(180deg, #fff6cf, #ffd15c 50%, #ffa94d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-last .btn.big { margin-top: 18px; }
@media (min-width: 720px) { .tp-reads { grid-template-columns: 1fr 1fr; } .tp-big { font-size: 24px !important; } }
