/* ニャフー！ニュース 共通スタイル（Yahoo!ニュース参考パロディ） */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ny-red: #ff0033;
  --ny-red-dark: #cc0029;
  --ny-text: #333;
  --ny-gray: #767676;
  --ny-line: #e2e2e2;
  --ny-bg: #f5f6f7;
  --ny-link: #1f6ee5;
  --ny-visited: #7b57c4;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ny-text);
  background: var(--ny-bg);
  font-size: 15px;
  line-height: 1.7;
}

a { color: var(--ny-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- ヘッダー ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--ny-line); }
.header-inner {
  max-width: 1010px; margin: 0 auto; padding: 10px 12px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.logo { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.logo .brand {
  font-size: 26px; font-weight: 800; color: var(--ny-red);
  letter-spacing: 1px; font-style: italic;
}
.logo .brand .paw { font-style: normal; }
.logo .genre { font-size: 20px; font-weight: 700; color: #222; }
.searchbox { flex: 1; display: flex; min-width: 180px; max-width: 460px; }
.searchbox input {
  flex: 1; border: 2px solid var(--ny-red); border-right: none;
  border-radius: 3px 0 0 3px; padding: 7px 10px; font-size: 14px; outline: none;
}
.searchbox button {
  background: var(--ny-red); color: #fff; border: none; padding: 0 18px;
  border-radius: 0 3px 3px 0; font-size: 14px; font-weight: 700; cursor: pointer;
}
.login-note { font-size: 12px; color: var(--ny-gray); }

/* ---------- カテゴリタブ ---------- */
.gnav { background: #fff; border-bottom: 2px solid var(--ny-red); }
.gnav ul {
  max-width: 1010px; margin: 0 auto; display: flex; list-style: none;
  overflow-x: auto; white-space: nowrap;
}
.gnav li a, .gnav li span {
  display: block; padding: 9px 14px; font-size: 14px; color: #333; font-weight: 600;
}
.gnav li.active a, .gnav li.active span {
  color: var(--ny-red); border-bottom: 3px solid var(--ny-red); font-weight: 800;
}
.gnav li a:hover { text-decoration: none; color: var(--ny-red); }

/* ---------- レイアウト ---------- */
.container {
  max-width: 1010px; margin: 16px auto 40px; padding: 0 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px;
}
@media (max-width: 860px) { .container { grid-template-columns: 1fr; } }

/* ---------- トピックスパネル ---------- */
.panel { background: #fff; border: 1px solid var(--ny-line); border-radius: 4px; margin-bottom: 20px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--ny-line);
}
.panel-head h2 { font-size: 17px; }
.panel-head .more { font-size: 12px; }
.topics { display: grid; grid-template-columns: 1fr 260px; }
@media (max-width: 640px) { .topics { grid-template-columns: 1fr; } }
.topics-list { list-style: none; }
.topics-list li { border-bottom: 1px solid #efefef; }
.topics-list li:last-child { border-bottom: none; }
.topics-list a {
  display: block; padding: 11px 14px; font-size: 15px; font-weight: 700; color: #1a1a1a;
}
.topics-list a:hover { background: #f7f9fb; color: var(--ny-link); text-decoration: none; }
.topics-list .tag {
  display: inline-block; font-size: 10px; font-weight: 700; color: #fff;
  background: var(--ny-red); border-radius: 2px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px;
}
.topics-list .tag.new { background: #f39800; }
.topics-photo { padding: 12px; border-left: 1px solid #efefef; }
.topics-photo img { border-radius: 3px; }
.topics-photo .cap { font-size: 12px; color: var(--ny-gray); margin-top: 6px; }

/* ---------- 記事カード ---------- */
.cards { list-style: none; }
.cards li { border-bottom: 1px solid #efefef; }
.cards li:last-child { border-bottom: none; }
.card {
  display: flex; gap: 14px; padding: 14px; color: inherit;
}
.card:hover { background: #f7f9fb; text-decoration: none; }
.card .thumb {
  width: 120px; height: 84px; object-fit: cover; flex-shrink: 0; border-radius: 3px; background: #ddd;
}
.card h3 { font-size: 16px; color: #1a1a1a; line-height: 1.45; }
.card:hover h3 { color: var(--ny-link); }
.card p { font-size: 13px; color: var(--ny-gray); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 12px; color: var(--ny-gray); margin-top: 4px; }
.card .meta .src { color: #555; }
.card .meta .cmt { color: #2ba2c7; font-weight: 700; margin-left: 8px; }

/* ---------- サイドバー ---------- */
.side .panel-head h2 { font-size: 15px; }
.rank { list-style: none; counter-reset: rank; }
.rank li { border-bottom: 1px solid #efefef; }
.rank li:last-child { border-bottom: none; }
.rank a { display: flex; gap: 10px; padding: 10px 12px; font-size: 13px; color: #1a1a1a; align-items: baseline; }
.rank a:hover { background: #f7f9fb; text-decoration: none; color: var(--ny-link); }
.rank .num {
  counter-increment: rank; font-weight: 800; font-style: italic; font-size: 15px;
  color: var(--ny-gray); min-width: 18px; text-align: center; flex-shrink: 0;
}
.rank li:nth-child(1) .num { color: var(--ny-red); }
.rank li:nth-child(2) .num { color: #e57300; }
.rank li:nth-child(3) .num { color: #b8a200; }
.rank .num::before { content: counter(rank); }

.ad-box { padding: 14px; text-align: center; }
.ad-box .ad-label { font-size: 10px; color: #aaa; text-align: right; }
.ad-box .ad-title { font-size: 16px; font-weight: 800; color: #8a6d1f; margin: 6px 0 2px; }
.ad-box .ad-body { font-size: 12px; color: #666; }
.ad-box .ad-price { display: inline-block; margin-top: 8px; background: var(--ny-red); color: #fff;
  font-weight: 800; border-radius: 3px; padding: 4px 14px; font-size: 14px; }
.ad-box img { margin: 8px auto 0; max-height: 160px; width: auto; }

/* ---------- 記事ページ ---------- */
.article { background: #fff; border: 1px solid var(--ny-line); border-radius: 4px; padding: 22px 22px 30px; }
@media (max-width: 640px) { .article { padding: 16px 14px 24px; } }
.article .breadcrumbs { font-size: 12px; color: var(--ny-gray); margin-bottom: 12px; }
.article h1 { font-size: 24px; line-height: 1.4; margin-bottom: 10px; }
@media (max-width: 640px) { .article h1 { font-size: 20px; } }
.article .byline { font-size: 13px; color: var(--ny-gray); border-bottom: 1px solid var(--ny-line);
  padding-bottom: 12px; margin-bottom: 18px; }
.article .byline .src { color: var(--ny-red-dark); font-weight: 700; }
.article .lead { font-weight: 700; }
.article p { margin-bottom: 1.2em; }
.article figure { margin: 20px 0; }
.article figure img { margin: 0 auto; border-radius: 3px; max-height: 720px; width: auto; max-width: 100%; }
.article figcaption { font-size: 12px; color: var(--ny-gray); text-align: center; margin-top: 6px; }
.article h2.crosshead {
  font-size: 18px; border-left: 4px solid var(--ny-red); padding-left: 10px; margin: 28px 0 12px;
}
.quote {
  background: #f7f7f5; border-left: 3px solid #ccc; padding: 12px 16px; margin: 16px 0;
  font-size: 14px; color: #444;
}
.quote .who { display: block; font-size: 12px; color: var(--ny-gray); margin-top: 6px; text-align: right; }

.video-box { margin: 22px 0; }
.video-box .video-label {
  display: inline-block; background: #111; color: #fff; font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 3px 3px 0 0;
}
.video-box video { width: 100%; border-radius: 0 3px 3px 3px; background: #000; display: block; }

/* ---------- ゲーム記事 ---------- */
.play-btn {
  display: block; text-align: center; background: var(--ny-red); color: #fff !important;
  font-size: 18px; font-weight: 800; border-radius: 6px; padding: 14px 20px; margin: 18px auto;
  max-width: 420px; box-shadow: 0 3px 0 var(--ny-red-dark); letter-spacing: 1px;
}
.play-btn:hover { text-decoration: none; opacity: .92; transform: translateY(1px); box-shadow: 0 2px 0 var(--ny-red-dark); }
.chara-table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14px; }
.chara-table th, .chara-table td { border: 1px solid var(--ny-line); padding: 9px 12px; text-align: left; }
.chara-table th { background: #f7f7f5; white-space: nowrap; }
.chara-table .role { color: var(--ny-red-dark); font-weight: 700; }

/* ---------- コメント欄 ---------- */
.comments { margin-top: 26px; }
.comments-head { display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #333;
  padding-bottom: 8px; margin-bottom: 4px; }
.comments-head h2 { font-size: 17px; }
.comments-head .count { color: var(--ny-red); }
.comment { border-bottom: 1px solid #efefef; padding: 14px 4px; }
.comment .chead { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment .avatar {
  width: 32px; height: 32px; border-radius: 50%; background: #d8e4ee; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.comment .uname { font-weight: 700; }
.comment .badge { font-size: 10px; background: #eee; color: #666; border-radius: 2px; padding: 1px 5px; }
.comment .ctime { color: var(--ny-gray); font-size: 12px; }
.comment .cbody { margin-top: 6px; font-size: 14px; }
.comment .creact { margin-top: 8px; display: flex; gap: 14px; font-size: 12px; color: var(--ny-gray); }
.comment .creact span { border: 1px solid var(--ny-line); border-radius: 14px; padding: 2px 10px; }
.comment .creact .good { color: #d55; }

/* ---------- 関連記事・ページャ ---------- */
.related { margin-top: 26px; }
.related h2 { font-size: 16px; border-bottom: 2px solid #333; padding-bottom: 8px; margin-bottom: 4px; }
.related ul { list-style: none; }
.related li { border-bottom: 1px solid #efefef; }
.related a { display: block; padding: 10px 4px; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.related a:hover { color: var(--ny-link); }
.related .rmeta { font-size: 12px; color: var(--ny-gray); font-weight: 400; }

.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; font-size: 14px; }
.pager a { background: #fff; border: 1px solid var(--ny-line); border-radius: 4px; padding: 10px 14px; flex: 1; }
.pager a.next { text-align: right; }
.pager a:hover { background: #f7f9fb; text-decoration: none; }

/* ---------- フッター ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--ny-line); margin-top: 20px; }
.footer-inner { max-width: 1010px; margin: 0 auto; padding: 20px 12px 30px; text-align: center;
  font-size: 12px; color: var(--ny-gray); }
.footer-inner .fiction {
  display: inline-block; background: #fff4f4; border: 1px solid #f3c1c1; color: #a33;
  border-radius: 4px; padding: 6px 14px; margin-bottom: 10px; font-weight: 700;
}
