/*
Theme Name: holonews24
Description: ホロライブまとめサイト holonews24 カスタムテーマ
Author: holonews24
Version: 1.0.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #f5f5f0;
  --bg2: #ffffff;
  --border: #ddd;
  --accent: #e8453c;
  --accent2: #1a73e8;
  --text: #222;
  --muted: #666;
  --header-bg: #1a1a2e;
  --nav-bg: #e8453c;
}
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
header { background: var(--header-bg); padding: 10px 0; border-bottom: 3px solid var(--accent); }
.header-inner { max-width: 1060px; margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 12px; }
.site-title-link { font-size: 24px; font-weight: 900; color: #fff; text-decoration: none; letter-spacing: -0.5px; }
.site-title-link span { color: var(--accent); }
.site-desc { font-size: 11px; color: #aaa; margin-left: 4px; }
nav.global-nav { background: var(--nav-bg); border-bottom: 2px solid #c0392b; }
.nav-inner { max-width: 1060px; margin: 0 auto; padding: 0 12px; display: flex; overflow-x: auto; }
.nav-inner a { color: #fff; text-decoration: none; padding: 7px 14px; font-size: 13px; font-weight: bold; white-space: nowrap; display: block; transition: background 0.15s; }
.nav-inner a:hover { background: rgba(0,0,0,0.2); }
.container { max-width: 1060px; margin: 0 auto; padding: 14px 12px; display: grid; grid-template-columns: 1fr 230px; gap: 16px; align-items: start; }
.popular-section { background: var(--bg2); border: 1px solid var(--border); border-radius: 3px; margin-bottom: 14px; overflow: hidden; }
.popular-title { background: var(--header-bg); color: #fff; font-size: 13px; font-weight: bold; padding: 7px 14px; border-bottom: 2px solid var(--accent); }
.popular-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.popular-item { border-right: 1px solid var(--border); padding: 10px 12px; text-decoration: none; color: var(--text); display: flex; gap: 8px; align-items: flex-start; transition: background 0.15s; }
.popular-item:last-child { border-right: none; }
.popular-item:hover { background: #f5f2ea; }
.popular-rank { font-size: 20px; font-weight: 900; color: var(--accent); line-height: 1; min-width: 22px; margin-top: 2px; }
.popular-rank.rank2 { color: #888; }
.popular-rank.rank3 { color: #c0834a; }
.popular-item-title { font-size: 12.5px; line-height: 1.5; font-weight: bold; }
.popular-bottom { border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(3, 1fr); }
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-card { background: var(--bg2); border: 1px solid var(--border); border-bottom: none; overflow: hidden; }
.article-card:first-child { border-radius: 3px 3px 0 0; }
.article-card:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 3px 3px; }
.article-card-inner { padding: 14px 16px; border-bottom: 1px solid #f0ede5; }
.article-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cat-label { display: inline-block; color: #fff; font-size: 11px; font-weight: bold; padding: 2px 7px; border-radius: 2px; white-space: nowrap; }
.cat-hot { background: var(--accent); }
.cat-news { background: #2980b9; }
.cat-fun { background: #27ae60; }
.cat-talk { background: #8e44ad; }
.cat-mgmt { background: #e67e22; }
.article-date { font-size: 11px; color: var(--muted); }
.article-card-title { font-size: 16px; font-weight: 900; line-height: 1.5; color: #111; margin-bottom: 8px; text-decoration: none; display: block; }
.article-card-title:hover { color: var(--accent); }
.article-preview { background: #f8f6f0; border-left: 3px solid var(--accent); padding: 8px 12px; font-size: 13px; color: #444; line-height: 1.65; border-radius: 0 2px 2px 0; }
.article-preview strong { display: block; font-size: 13px; color: #222; margin-bottom: 2px; }
.article-card-footer { padding: 7px 16px; display: flex; align-items: center; justify-content: space-between; background: #fafaf7; }
.read-more { color: var(--accent2); font-size: 12px; font-weight: bold; text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.article-stats { font-size: 11px; color: var(--muted); display: flex; gap: 10px; }
.sidebar { display: flex; flex-direction: column; gap: 12px; }
.sidebar-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.sidebar-title { background: var(--header-bg); color: #fff; font-size: 13px; font-weight: bold; padding: 7px 12px; border-bottom: 2px solid var(--accent); }
.sidebar-list { list-style: none; padding: 4px 0; }
.sidebar-list li { border-bottom: 1px solid #f0ede5; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: block; padding: 7px 12px; color: var(--text); text-decoration: none; font-size: 12.5px; line-height: 1.45; transition: background 0.12s; }
.sidebar-list a:hover { background: #f5f2ea; color: var(--accent); }
.lbl { display: inline-block; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 2px; margin-right: 3px; font-weight: bold; vertical-align: middle; }
.lbl-hot { background: var(--accent); }
.lbl-new { background: #27ae60; }
.sidebar-ranking { counter-reset: rank; }
.sidebar-ranking li { counter-increment: rank; }
.sidebar-ranking a::before { content: counter(rank); display: inline-block; font-size: 12px; font-weight: 900; color: var(--accent); min-width: 18px; margin-right: 4px; }
.ad-box { background: #f8f8f8; border: 1px dashed #ccc; border-radius: 3px; padding: 20px 14px; text-align: center; color: #aaa; font-size: 12px; }
.ad-box .ad-label { font-size: 10px; color: #bbb; margin-bottom: 6px; display: block; }
footer.site-footer { background: var(--header-bg); color: #888; text-align: center; padding: 16px; font-size: 12px; margin-top: 20px; border-top: 2px solid var(--accent); }
footer.site-footer a { color: #aaa; text-decoration: none; margin: 0 6px; }
footer.site-footer a:hover { color: #fff; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.pagination a, .pagination span { display: inline-block; padding: 5px 11px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); text-decoration: none; font-size: 13px; border-radius: 2px; }
.pagination a:hover, .pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.post-content { background: var(--bg2); border: 1px solid var(--border); border-radius: 3px; padding: 20px; margin-bottom: 16px; }
.post-title { font-size: 20px; font-weight: 900; line-height: 1.5; color: #111; margin-bottom: 10px; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.post-content blockquote { background: #f8f6f0; border-left: 3px solid var(--accent); padding: 10px 14px; margin: 12px 0; font-size: 13px; color: #444; line-height: 1.65; border-radius: 0 2px 2px 0; }
.post-content blockquote strong { display: block; color: #222; margin-bottom: 4px; }
.editor-comment { background: #fffbea; border-left: 3px solid #f39c12; padding: 10px 14px; margin: 14px 0; font-size: 13px; color: #555; border-radius: 0 2px 2px 0; }
.editor-comment::before { content: "編集部コメント："; font-weight: bold; color: #e67e22; display: block; margin-bottom: 4px; }
.single-container { max-width: 1060px; margin: 0 auto; padding: 14px 12px; display: grid; grid-template-columns: 1fr 230px; gap: 16px; align-items: start; }
.admin-bar header { margin-top: 32px; }
@media (max-width: 700px) {
  .container, .single-container { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .popular-grid, .popular-bottom { grid-template-columns: 1fr; }
  .popular-item { border-right: none; border-bottom: 1px solid var(--border); }
  .admin-bar header { margin-top: 46px; }
}