/*
Theme Name: サカつう速報
Theme URI: https://sakatuu.com
Author: sakatuu
Description: サカつう速報 - 5ちゃんねるサッカーまとめサイト専用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sakamatome
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 13px;
  background:
    repeating-linear-gradient(135deg, rgba(212,160,23,0.07) 0px, rgba(212,160,23,0.07) 2px, transparent 2px, transparent 18px),
    linear-gradient(160deg, #0a1a3a 0%, #0d2a5e 40%, #051020 100%);
  background-attachment: fixed;
  color: #333;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ========== HEADER ========== */
.site-header {
  position: static;
  width: 100%;
  background: #0a2240;
  border-bottom: 2px solid #c9a84c;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 44px;
}
.site-title-text {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ========== ロゴバナー ========== */
.logo-banner {
  display: flex;
  align-items: stretch;
  height: 90px;
  background: #fff;
  overflow: hidden;
}
.logo-left {
  background: #0a2240;
  width: 90px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.logo-ball-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
}
.logo-kick-char {
  font-size: 54px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}
.logo-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
  position: relative;
  overflow: hidden;
}
.logo-right::before {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 130px;
  background: #e53935;
  opacity: 0.1;
  border-radius: 50%;
  pointer-events: none;
}
.logo-main-text {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  position: relative;
  letter-spacing: 0;
  white-space: nowrap;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", "MS Mincho", serif;
  background: linear-gradient(180deg, #fff0a0 0%, #d4a017 30%, #f5d060 55%, #a07010 75%, #e8c040 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(1px 1px 1px rgba(80,50,0,0.5));
}
.logo-sub-text {
  font-size: 11px;
  color: #888;
  letter-spacing: 2px;
  margin-top: 5px;
  position: relative;
}

/* ========== 広告スペース ========== */
.ad-space {
  background: #0a2240;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-label { color: #4a6a88; font-size: 12px; letter-spacing: 3px; }

/* ========== 他サイト記事リスト ========== */
.other-list-section {
  background: #fff;
  margin: 0 6px 6px;
  border: 2px solid #c9a84c;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
  overflow: hidden;
}
.other-list-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #efefef;
  gap: 6px;
}
.other-list-item::before {
  content: "›";
  flex-shrink: 0;
  color: #c9a84c;
  font-weight: bold;
}
.other-list-item:last-child { border-bottom: none; }
.other-list-item:hover { background: #f8f8f8; }
.other-list-icon { font-size: 14px; flex-shrink: 0; opacity: 0.7; }
.other-list-title {
  flex: 1;
  font-size: 12px;
  color: #222;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.other-list-item:hover .other-list-title { color: #0d3d6e; }
.other-list-new {
  flex-shrink: 0;
  background: #e84040;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 2px;
}
.other-list-arrow { flex-shrink: 0; font-size: 16px; color: #ccc; }

/* ========== CONTENT WRAP ========== */
.content-wrap { display: flex; flex-direction: column; }
.main-content { background: transparent; }

/* ========== ARTICLE LIST ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: transparent;
}
.article-item {
  background: #fff;
  border-radius: 4px;
  border: 2px solid #c9a84c;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  overflow: hidden;
}
.article-item:hover { background: #f8f9ff; }
.article-link {
  display: flex;
  align-items: flex-start;
  padding: 4px 6px;
  gap: 6px;
}
.article-thumb {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a8a2e, #0d5c1e);
}
.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-thumb-placeholder::after { content: "⚽"; }
.article-body { flex: 1; min-width: 0; }
.article-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.article-item:hover .article-title { color: #0d3d6e; text-decoration: underline; }
.article-meta { display: flex; align-items: center; gap: 8px; }
.meta-date { font-size: 10px; color: #888; }
.meta-comments {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
  font-weight: bold;
  background: #fff0f0;
  color: #e84040;
  border: 1px solid #ffcccc;
}

/* ========== SINGLE POST ========== */
.single-article {
  background: #fff;
  margin: 6px;
  border: 2px solid #c9a84c;
  border-radius: 4px;
  padding: 8px 10px;
}
.single-title {
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
  line-height: 1.6;
  margin-bottom: 8px;
  border-bottom: 2px solid #c9a84c;
  padding-bottom: 8px;
}
.single-meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 14px;
}
.single-content {
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}
.single-content p { margin-bottom: 1em; }
.single-content img { max-width: 100%; height: auto; border-radius: 4px; }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0a2240 0%, #0d3060 50%, #0a2240 100%);
  border-top: 2px solid #c9a84c;
  border-bottom: 2px solid #c9a84c;
  margin-bottom: 8px;
}
.page-btn {
  background: linear-gradient(135deg, #c9a84c, #f0d080, #c9a84c);
  color: #0a1a3a;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  display: inline-block;
}
.page-btn:hover { background: linear-gradient(135deg, #e0c060, #fff0a0, #e0c060); }
.page-current { font-size: 13px; color: #f0d080; font-weight: bold; }
.pagination-wp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0a2240 0%, #0d3060 50%, #0a2240 100%);
  border-top: 2px solid #c9a84c;
  border-bottom: 2px solid #c9a84c;
  margin-bottom: 8px;
}
/* paginate_links type=list で生成される ul に flex を適用 */
.pagination-wp ul.page-numbers {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination-wp ul.page-numbers li {
  display: flex;
  align-items: center;
}
.pagination-wp a, .pagination-wp span {
  background: linear-gradient(135deg, #c9a84c, #f0d080, #c9a84c);
  color: #0a1a3a;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  border: 2px solid #0a1a3a;
}
.pagination-wp .current {
  background: #0a2240;
  color: #f0d080;
  border: 2px solid #c9a84c;
}

/* ========== ARCHIVE ========== */
.archive-section {
  background: #fff;
  margin: 0 6px 6px;
  overflow: hidden;
  border: 2px solid #c9a84c;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.section-title {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #0a2240 0%, #0d3060 60%, #1a4080 100%);
  padding: 7px 10px;
  border-bottom: 2px solid #c9a84c;
}
.archive-list { padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.archive-list a { font-size: 12px; color: #1565c0; padding: 5px 0; border-bottom: 1px dashed #e0e0e0; }
.archive-list a:last-child { border-bottom: none; }

/* ========== SIDEBAR ========== */
.sidebar { margin-top: 0; }
.sidebar-block {
  background: #fff;
  margin: 0 6px 6px;
  overflow: hidden;
  border: 2px solid #c9a84c;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.sidebar-title {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #0a2240 0%, #0d3060 60%, #1a4080 100%);
  padding: 7px 10px;
  border-bottom: 2px solid #c9a84c;
}
.cat-list { list-style: none; padding: 4px 0; }
.cat-list li { border-bottom: 1px dotted #ddd; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px 7px 26px;
  font-size: 13px;
  color: #1a1a1a;
  position: relative;
}
.cat-list a::before { content: "▶"; position: absolute; left: 10px; font-size: 8px; color: #003f8a; }
.cat-list a:hover { background: #f5f5f5; color: #003f8a; }
.cat-list span { color: #888; font-size: 12px; }
.cat-more-item { display: none; }
.cat-toggle-btn {
  display: block;
  width: 100%;
  background: #f5f5f5;
  border: none;
  border-top: 1px dotted #ddd;
  padding: 8px 12px;
  font-size: 12px;
  color: #003f8a;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
}
.cat-toggle-btn:hover { background: #eaeaea; }

/* 最新記事 */
.sidebar-article-list { list-style: none; padding: 6px 10px; }
.sidebar-article-list li { border-bottom: 1px dashed #e8e8e8; padding: 6px 0; }
.sidebar-article-list li:last-child { border-bottom: none; }
.sidebar-article-list a { font-size: 12px; color: #1565c0; line-height: 1.4; }
.sidebar-article-list a:hover { text-decoration: underline; }

/* ========== 人気記事ランキング ========== */
.ranking-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #ccc #f0f0f0;
  padding: 10px 8px 12px;
}
.ranking-scroll::-webkit-scrollbar { height: 4px; }
.ranking-scroll::-webkit-scrollbar-track { background: #f0f0f0; }
.ranking-scroll::-webkit-scrollbar-thumb { background: #bbb; border-radius: 2px; }
.ranking-track { display: flex; gap: 8px; width: max-content; }
.ranking-card {
  display: flex;
  flex-direction: column;
  width: 110px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ranking-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.rank-num { font-size: 11px; font-weight: 900; text-align: center; padding: 3px 0; color: #fff; }
.rank-1  { background: #c8a400; font-size: 13px; }
.rank-2  { background: #888; font-size: 12px; }
.rank-3  { background: #a0622a; font-size: 12px; }
.rank-top { background: #0a2240; }
.rank-mid { background: #2d5a8e; }
.rank-low { background: #888; }
.rank-thumb {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #1a8a2e, #0d5c1e);
}
.rank-thumb-empty { display: none; }

.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-title {
  font-size: 10px;
  color: #222;
  line-height: 1.4;
  padding: 6px 6px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== PAGE (固定ページ) ========== */
.page-content {
  background: #fff;
  margin: 6px;
  border: 2px solid #c9a84c;
  border-radius: 4px;
  padding: 14px;
}
.page-content h1 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c9a84c;
  color: #0a2240;
}
.page-content p { font-size: 13px; line-height: 1.8; margin-bottom: 1em; }
.page-content strong { font-weight: bold; color: #0a2240; }

/* ========== FOOTER ========== */
.site-footer {
  background: linear-gradient(90deg, #0a1a3a, #0d2a5e, #0a1a3a);
  border-top: 2px solid #c9a84c;
  color: #7a9fc0;
  padding: 14px 12px;
  text-align: center;
  margin-top: 8px;
}
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; color: #7a9fc0; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 10px; color: #4a6a88; }
