:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --ink: #23201b;
  --ink-soft: #5f5a52;
  --line: #e4ded3;
  --accent: #e2572b;
  --anime: #d6407a;
  --game: #2f6fd1;
  --net: #2e9a5e;
  --good: #2e9a5e;
  --good-bg: #eaf6ef;
  --bad: #d2493a;
  --bad-bg: #fcecea;
  --neutral: #8a6d1f;
  --neutral-bg: #f8f1dc;
  --shadow: 0 1px 2px rgba(35, 32, 27, .06), 0 4px 16px rgba(35, 32, 27, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17161a; --paper: #222127; --ink: #eeeae3; --ink-soft: #aaa49a; --line: #34323a;
    --good-bg: #1d3027; --bad-bg: #3a2220; --neutral-bg: #352e1b; --neutral: #d9b85a;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #17161a; --paper: #222127; --ink: #eeeae3; --ink-soft: #aaa49a; --line: #34323a;
  --good-bg: #1d3027; --bad-bg: #3a2220; --neutral-bg: #352e1b; --neutral: #d9b85a;
  --shadow: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.85; letter-spacing: .02em;
}
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.main { min-width: 0; }

/* header */
/* header（ネオン：ライト・ダークどちらでも黒い帯） */
.site-header { background: #16151c; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 12px rgba(0, 0, 0, .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.header-bar { height: 3px; background: linear-gradient(90deg, var(--anime), var(--game), var(--net)); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { flex: none; transition: transform .2s; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-family: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif; font-size: 23px; line-height: 1.2; color: #fff; letter-spacing: .04em; }
.logo-text em { font-style: normal; background: linear-gradient(90deg, #ff7a45, #ff4f9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ジャンルが多いので、ロゴの下の1行に並べ、入りきらない分は横にすべらせる */
.cat-nav { display: flex; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: -2px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; color: #bdb8c8; transition: background .15s, color .15s; }
.cat-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cat-nav a.is-active { background: linear-gradient(90deg, #ff7a45, #ff4f9a); color: #fff; }
@media (max-width: 560px) {
  .logo-text { font-size: 19px; }
  .logo-mark { width: 34px; height: 34px; }
  .cat-nav { width: 100%; gap: 4px; }
  .cat-nav a { padding: 5px 11px; font-size: 13.5px; }
}

/* list */
.hero { padding: 28px 0 8px; }
.hero h1 { margin: 0; font-size: 26px; font-weight: 900; }
.hero p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.hero h1 small { font-size: 15px; color: var(--ink-soft); margin-left: 6px; }
.day-head { margin: 22px 0 0; font-size: 15px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.day-head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.cards { display: grid; gap: 12px; padding: 12px 0 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: start; }
.card-thumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.card-title { margin: 6px 0 4px; font-size: 17px; line-height: 1.5; font-weight: 900; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-lead { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.likes { color: #e0245e; font-weight: 700; font-size: 12.5px; }
.label { font-weight: 900; margin-right: 2px; }
.label-悲報 { color: #3c6fd8; }
.label-朗報 { color: #e2572b; }
.label-速報 { color: #d12f2f; }
.label-衝撃 { color: #a020c8; }
.label-続報, .label-延期, .label-公式 { color: #8a6d1f; }

/* pager */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 8px; }
.pager a, .pager span { min-width: 38px; padding: 6px 10px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--line); background: var(--paper); }
.pager .pager-cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager .pager-gap { border: 0; background: none; }

/* sidebar */
.sidebar { display: grid; gap: 16px; align-content: start; padding: 24px 0 16px; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.side-title { margin: 0 0 4px; font-size: 15px; font-weight: 900; border-left: 4px solid var(--accent); padding-left: 8px; }
.side-note { margin: 0 0 8px; font-size: 11.5px; color: var(--ink-soft); }
.rank-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.rank-tabs label { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 700; cursor: pointer; }
.rank-tabs input:checked + label { background: var(--accent); color: #fff; }
.rank-tabs input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.rank-panel { display: none; width: 100%; margin-top: 4px; }
#rank-week:checked ~ .rank-panel-week, #rank-month:checked ~ .rank-panel-month, #rank-all:checked ~ .rank-panel-all { display: block; }
.ranking { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ranking li { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55; }
.ranking li:first-child { border-top: 0; }
.ranking a { text-decoration: none; font-weight: 700; }
.ranking a:hover { color: var(--accent); }
.rank { grid-row: span 2; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg); font-weight: 900; font-size: 13px; }
.rank-1 { background: #e2b33b; color: #fff; } .rank-2 { background: #a3abb5; color: #fff; } .rank-3 { background: #c07a43; color: #fff; }
.rank-likes { grid-column: 2; font-size: 11.5px; color: #e0245e; font-weight: 700; }
.side-cats, .side-latest { list-style: none; margin: 0; padding: 0; }
.side-cats a { display: flex; align-items: center; gap: 8px; padding: 6px 0; text-decoration: none; font-weight: 700; font-size: 14px; }
.side-cats .count { margin-left: auto; color: var(--ink-soft); font-size: 12.5px; background: var(--bg); border-radius: 999px; padding: 0 9px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-anime { background: var(--anime); } .dot-game { background: var(--game); } .dot-net { background: var(--net); }
.side-latest li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55; }
.side-latest li:first-child { border-top: 0; }
.side-latest a { text-decoration: none; }
.side-latest a:hover { color: var(--accent); }
.antenna-list { list-style: none; margin: 4px 0 8px; padding: 0; }
.antenna-list li { padding: 5px 0; border-top: 1px dashed var(--line); font-size: 13px; line-height: 1.5; }
.antenna-list li:first-child { border-top: 0; }
.antenna-list a { text-decoration: none; }
.antenna-list a:hover { color: var(--accent); }
.antenna-sites { margin: 0; font-size: 13px; font-weight: 700; }
.side-links { display: grid; gap: 6px; font-size: 13.5px; }
.search-form { display: flex; gap: 6px; }
.search-form input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.search-form button { padding: 8px 14px; border: 0; border-radius: 8px; background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.search-form.big { margin: 8px 0 4px; }
.search-form.big input { font-size: 16px; padding: 10px 12px; }
.search-status { color: var(--ink-soft); font-size: 14px; }

/* share, prev/next, comments */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; }
.share-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-right: 4px; }
.share a { text-decoration: none; color: #fff; font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; }
.share-x { background: #111; } .share-hatena { background: #00a4de; } .share-line { background: #06c755; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 0; }
.prevnext a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; font-size: 13.5px; line-height: 1.55; font-weight: 700; }
.prevnext a span { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.pn-newer { text-align: right; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.to-comments { margin-left: auto; font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 700; }
.comments h2 { margin-bottom: 4px; }
.comment-list { list-style: none; padding: 0; margin: 10px 0 16px; }
.comment { padding: 10px 0; border-top: 1px dashed var(--line); }
.comment-head { font-size: 12.5px; color: var(--net); font-weight: 700; }
.comment-body { margin: 4px 0 0 !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-empty { color: var(--ink-soft); font-size: 14px; padding: 8px 0; }
.comment-form { display: grid; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.comment-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.comment-form input, .comment-form textarea { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; }
.comment-form button { justify-self: start; padding: 9px 20px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.comment-form button:disabled { opacity: .6; }
.comment-msg { margin: 0 !important; font-size: 13.5px; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; text-decoration: none; font-size: 14px; opacity: .8; box-shadow: var(--shadow); }

.chip { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; color: #fff; text-decoration: none; }
.chip-anime { background: var(--anime); }
.chip-game { background: var(--game); }
.chip-net { background: var(--net); }
.spoiler-tag { font-size: 12px; font-weight: 700; color: var(--bad); border: 1px solid var(--bad); border-radius: 999px; padding: 2px 8px; line-height: 1.3; }

/* article */
.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.crumbs a:not(.chip) { color: var(--ink-soft); }
.article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 8px; margin-top: 12px; box-shadow: var(--shadow); }
.article-head h1 { margin: 0; font-size: 24px; line-height: 1.5; font-weight: 900; }
.article-meta { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.spoiler-banner { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--ink); font-size: 14px; border-left: 4px solid var(--bad); }
.spoiler-banner strong { color: var(--bad); margin-right: 6px; }

.three-lines { margin: 18px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.three-lines h2 { margin: 0 0 4px; font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.three-lines ol { margin: 0; padding-left: 1.4em; }
.three-lines li { margin: 4px 0; font-weight: 700; }

.embed { margin: 20px 0 0; }
.embed-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-lite { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
.yt-lite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 14px; background: rgba(226, 52, 40, .92); transition: transform .15s; }
.yt-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.yt-lite:hover .yt-play { transform: scale(1.08); }
.embed figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

.block { margin: 28px 0 0; }
.block h2 { font-size: 19px; font-weight: 900; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); display: inline-block; }
.block p { margin: 0 0 12px; }
.facts ul { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 8px 0 8px 22px; border-bottom: 1px dashed var(--line); position: relative; font-size: 15px; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.reactions .note { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; }
.rgrid { display: grid; gap: 12px; }
.rgroup { border-radius: 12px; padding: 14px 16px; }
.rgroup h3 { margin: 0 0 6px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.rdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.rgroup ul { margin: 0; padding-left: 1.2em; }
.rgroup li { margin: 3px 0; font-size: 15px; }
.tone-good { background: var(--good-bg); }
.tone-good .rdot { background: var(--good); }
.tone-good h3 { color: var(--good); }
.tone-bad { background: var(--bad-bg); }
.tone-bad .rdot { background: var(--bad); }
.tone-bad h3 { color: var(--bad); }
.tone-neutral { background: var(--neutral-bg); }
.tone-neutral .rdot { background: var(--neutral); }
.tone-neutral h3 { color: var(--neutral); }
.quote { margin: 10px 0 0; padding: 10px 14px; background: var(--paper); border-radius: 10px; position: relative; }
.quote p { margin: 0; font-weight: 700; font-size: 16px; }
.quote cite { display: block; font-style: normal; font-size: 12px; color: var(--ink-soft); }

.editor { background: var(--bg); border-radius: 12px; padding: 14px 18px 4px; border: 1px solid var(--line); }
.editor h2 { border: 0; font-size: 15px; color: var(--accent); padding: 0; margin-bottom: 4px; }

.xpost { margin: 10px 0 0; }
.xpost .twitter-tweet { margin: 0 !important; }
.xpost blockquote.x-lazy, .xpost blockquote.twitter-tweet:not(.twitter-tweet-rendered) { padding: 10px 14px; background: var(--paper); border-radius: 10px; font-size: 14px; }
.xofficial-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 0 0 4px !important; }
.xslot { margin: 24px 0 0; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; color: var(--ink-soft); font-size: 14px; }
.xslot-label { display: block; font-weight: 900; color: var(--ink); margin-bottom: 4px; }

.sources ul { margin: 0; padding-left: 1.2em; font-size: 13.5px; }
.sources li { margin: 4px 0; overflow-wrap: anywhere; }
.sources a { color: var(--ink-soft); }

.related { margin: 32px 0 0; }
.related h2 { font-size: 17px; margin: 0; }

.contact-button { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px; }
.contact-button:hover { opacity: .9; }
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 0 32px; font-size: 12.5px; color: var(--ink-soft); }
.site-footer p { margin: 0 0 6px; }
.footer-name { font-weight: 900; color: var(--ink); }

@media (max-width: 560px) {
  .article { padding: 18px 16px 4px; border-radius: 12px; }
  .article-head h1 { font-size: 20px; }
  .card { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .card-title { font-size: 15px; margin-top: 4px; }
  .card-lead { display: none; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-newer { text-align: left; }
  .header-inner { padding-top: 8px; padding-bottom: 8px; }
}

/* 公式の X 投稿の画像のサムネ（thumbX）：切り抜かずに全体を見せ、出どころを右下に重ねる */
.card-thumb { position: relative; }
.thumb-x { position: absolute; inset: 0; background: #16151c; overflow: hidden; }
.card-thumb .thumb-x img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-thumb .thumb-x-bg { object-fit: cover; filter: blur(14px) brightness(.55); transform: scale(1.15); }
.card-thumb .thumb-x-img { object-fit: contain; }
.thumb-credit { position: absolute; right: 5px; bottom: 5px; font-size: 10.5px; line-height: 1.5; color: #fff; background: rgba(0, 0, 0, .62); padding: 0 6px; border-radius: 4px; }

/* 作品・話題のタグ */
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line, rgba(0, 0, 0, .08)); border-radius: 999px; padding: 2px 10px; text-decoration: none; }
.tag-chip:hover { color: var(--ink); border-color: rgba(0, 0, 0, .2); }
.tag-chip .count { font-weight: 400; opacity: .7; font-size: 12px; }
.tag-index { gap: 8px; }
.tag-index .tag-chip { font-size: 15px; padding: 5px 14px; }
.side-more { margin: 8px 0 0; font-size: 13px; text-align: right; }
.same-tag ul { margin: 0; padding-left: 1.2em; }
.same-tag li { margin: 6px 0; }
.same-tag time { margin-left: 8px; font-size: 12px; color: var(--ink-soft); }

/* ワンタップの投票 */
.vote h2 { margin-bottom: 10px; }
.vote-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vote-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 12px; border: 2px solid var(--line, rgba(0, 0, 0, .1)); border-radius: 12px; background: var(--paper); cursor: pointer; font: inherit; color: var(--ink); overflow: hidden; }
.vote-btn:hover:not(:disabled) { border-color: #ff6a7d; transform: translateY(-1px); }
.vote-btn:disabled { cursor: default; }
.vote-emoji { font-size: 26px; line-height: 1.2; }
.vote-label { font-size: 13px; font-weight: 700; }
.vote-bar { display: none; width: 80%; height: 6px; border-radius: 3px; background: var(--line, rgba(0, 0, 0, .08)); margin-top: 4px; }
.vote-bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: #ff6a7d; transition: width .6s; }
.vote-pct { font-size: 13px; font-weight: 800; color: var(--ink-soft); min-height: 0; }
.voted .vote-bar { display: block; }
.vote-btn.mine { border-color: #ff6a7d; background: rgba(255, 106, 125, .12); }
.vote-msg { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 480px) { .vote-buttons { grid-template-columns: repeat(2, 1fr); } }

/* 週間まとめの順位 */
.ranking-list ol { list-style: none; margin: 0; padding: 0; }
.ranking-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.ranking-list li > .rank { flex: none; margin-top: 14px; }
.ranking-list li > .cards { flex: 1; min-width: 0; display: block; }

/* ジャンルの色（build.mjs で自動生成） */
.chip-anime, .dot-anime { background: #d6407a; }
.chip-manga, .dot-manga { background: #e07b1a; }
.chip-game, .dot-game { background: #2f6fd1; }
.chip-vtuber, .dot-vtuber { background: #8b52d9; }
.chip-movie, .dot-movie { background: #a8323a; }
.chip-tech, .dot-tech { background: #148a9c; }
.chip-geino, .dot-geino { background: #9a6a1c; }
.chip-sports, .dot-sports { background: #56606c; }
.chip-animal, .dot-animal { background: #6a8f1c; }
.chip-net, .dot-net { background: #2e9a5e; }
.header-bar { background: linear-gradient(90deg, #d6407a, #e07b1a, #2f6fd1, #8b52d9, #a8323a, #148a9c, #9a6a1c, #56606c, #6a8f1c, #2e9a5e); }
