/*
Theme Name: 実話スガックルズ
Theme URI: https://sugakkurus.ivress1201.com/
Author: スガーシー
Author URI: https://sugakkurus.ivress1201.com/
Description: フリージャーナリスト「スガーシー」が、おもしろ記事・特ダネ記事をお届けする実話タブロイド風ブログテーマ。紺×赤×ゴールドの大胆配色と、ボルト風アクセントで「実話誌」の世界観を再現しました。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sugakkurus
Tags: blog, news, one-column, two-columns, right-sidebar, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================
   00. CSS Variables / Reset
   ========================================= */
:root {
  --color-bg: #0d1a3a;
  --color-bg-dark: #07112a;
  --color-bg-light: #16275a;
  --color-red: #d8281b;
  --color-red-dark: #a01a10;
  --color-red-light: #ff4d3c;
  --color-gold: #e7b53a;
  --color-gold-dark: #b08820;
  --color-cream: #f6efd9;
  --color-text: #1b1b1b;
  --color-text-light: #555;
  --color-paper: #fffdf3;
  --color-line: rgba(255,255,255,0.15);
  --shadow-strong: 4px 4px 0 #000;
  --font-jp-display: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --font-jp-body: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --font-jp-impact: "Impact", "Hiragino Sans", "Yu Gothic Heavy", "Meiryo", sans-serif;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-jp-body);
  background: var(--color-bg);
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 22px 22px, 60px 60px;
  background-position: 0 0, 11px 11px;
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-red-light); }

/* =========================================
   01. Layout
   ========================================= */
.site-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 32px 0;
}
@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
}

/* =========================================
   02. Header
   ========================================= */
.site-header {
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-bg) 100%);
  border-bottom: 4px solid var(--color-red);
  position: relative;
  box-shadow: 0 4px 0 #000, 0 8px 20px rgba(0,0,0,0.4);
}
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 18px;
  background-image: repeating-linear-gradient(90deg,
    var(--color-gold) 0 2px,
    transparent 2px 28px);
  opacity: 0.6;
}
.site-header::before { top: 0; }
.site-header::after { bottom: 4px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.site-logo-img {
  max-height: 84px;
  width: auto;
  filter: drop-shadow(3px 3px 0 #000);
}
.site-title {
  margin: 0;
  font-family: var(--font-jp-impact);
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--color-red);
  text-shadow:
    2px 2px 0 #000,
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000;
}
.site-title a { color: inherit; }
.site-description {
  margin: 6px 0 0;
  color: var(--color-cream);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.header-tagline {
  background: var(--color-red);
  color: #fff;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-strong);
  transform: rotate(-3deg);
  white-space: nowrap;
}

/* =========================================
   03. Navigation
   ========================================= */
.main-nav {
  background: #000;
  border-top: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.main-nav li { position: relative; }
.main-nav li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 25%;
  width: 1px; height: 50%;
  background: var(--color-gold);
  opacity: 0.5;
}
.main-nav a {
  display: block;
  padding: 14px 22px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  background: var(--color-red);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: var(--color-red);
  color: #fff;
  border: 2px solid var(--color-gold);
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-block; margin: 10px; }
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav.is-open ul { display: flex; }
  .main-nav li + li::before { display: none; }
  .main-nav a { border-bottom: 1px solid var(--color-line); }
}

/* =========================================
   04. Breaking ticker
   ========================================= */
.breaking-ticker {
  background: var(--color-red);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-weight: 700;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}
.breaking-label {
  background: #000;
  color: var(--color-gold);
  padding: 8px 16px;
  letter-spacing: 0.2em;
  flex-shrink: 0;
  font-family: var(--font-jp-impact);
}
.ticker-track {
  display: flex;
  gap: 48px;
  padding-left: 100%;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.ticker-track a { color: #fff; }
.ticker-track a:hover { color: var(--color-gold); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* =========================================
   05. Article card
   ========================================= */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
}
.post-card {
  background: var(--color-paper);
  border: 3px solid #000;
  box-shadow: var(--shadow-strong);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}
.post-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #222;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-bg-light), var(--color-bg-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--color-red);
  font-family: var(--font-jp-impact);
  font-size: 3rem;
  text-shadow: 2px 2px 0 #000;
}
.post-card .category-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--color-red);
  color: #fff;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  border: 1px solid var(--color-gold);
}
.post-card .scoop-stamp {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--color-gold);
  color: #000;
  padding: 6px 8px;
  font-family: var(--font-jp-impact);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transform: rotate(8deg);
  border: 2px solid #000;
}
.post-card .card-body { padding: 18px 18px 14px; }
.post-card h2.entry-title {
  margin: 0 0 10px;
  font-family: var(--font-jp-display);
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 900;
}
.post-card h2.entry-title a { color: #111; }
.post-card h2.entry-title a:hover { color: var(--color-red); }
.post-card .excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0 0 14px;
}
.post-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 2px dashed rgba(0,0,0,0.15);
  background: rgba(0,0,0,0.03);
}

/* =========================================
   06. Author byline (スガーシー)
   ========================================= */
.byline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.byline .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  box-shadow: 0 0 0 2px #000;
  object-fit: cover;
  background: var(--color-bg);
}
.byline .byline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.byline .byline-name {
  font-weight: 800;
  color: var(--color-red-dark);
  font-size: 0.9rem;
}
.byline .byline-role {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
}
.post-date {
  font-size: 0.78rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* =========================================
   07. Single post
   ========================================= */
.single-article {
  background: var(--color-paper);
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 32px;
}
@media (max-width: 640px) { .single-article { padding: 20px; } }
.single-article .entry-header {
  border-bottom: 3px double #000;
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.single-article .entry-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.single-article .cat-link {
  background: var(--color-red);
  color: #fff;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}
.single-article .cat-link:hover { background: #000; color: var(--color-gold); }
.single-article h1.entry-title {
  font-family: var(--font-jp-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.4;
  margin: 0 0 14px;
  font-weight: 900;
  color: #111;
}
.single-article h1.entry-title::before {
  content: "特ダネ";
  display: inline-block;
  margin-right: 10px;
  background: var(--color-gold);
  color: #000;
  font-family: var(--font-jp-impact);
  padding: 4px 10px;
  font-size: 1rem;
  letter-spacing: 0.15em;
  vertical-align: middle;
  border: 2px solid #000;
}
.single-article .featured-image {
  margin: 0 0 24px;
  border: 3px solid #000;
  box-shadow: var(--shadow-strong);
}
.single-article .entry-content {
  font-family: var(--font-jp-display);
  font-size: 1.05rem;
  line-height: 2;
}
.single-article .entry-content p { margin: 0 0 1.4em; }
.single-article .entry-content h2 {
  font-family: var(--font-jp-display);
  font-size: 1.6rem;
  border-left: 8px solid var(--color-red);
  padding: 6px 0 6px 14px;
  margin: 2em 0 1em;
  background: rgba(216,40,27,0.05);
}
.single-article .entry-content h3 {
  font-size: 1.25rem;
  border-bottom: 2px solid #000;
  padding-bottom: 4px;
  margin: 1.6em 0 0.8em;
}
.single-article .entry-content blockquote {
  border-left: 4px double var(--color-red);
  background: rgba(0,0,0,0.03);
  margin: 1.4em 0;
  padding: 1em 1.2em;
  font-style: normal;
  color: #333;
}
.single-article .entry-content a {
  color: var(--color-red-dark);
  border-bottom: 1px dotted;
}
.single-article .entry-content img {
  border: 2px solid #000;
  margin: 1.2em auto;
}

/* Author box (full) */
.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f1ecd0 100%);
  border: 3px solid #000;
  padding: 18px;
  margin-top: 32px;
  box-shadow: var(--shadow-strong);
  position: relative;
}
.author-box::before {
  content: "記者プロフィール";
  position: absolute;
  top: -14px; left: 14px;
  background: #000;
  color: var(--color-gold);
  padding: 2px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}
.author-box .avatar-lg {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid var(--color-red);
  box-shadow: 0 0 0 2px #000;
  flex-shrink: 0;
  object-fit: cover;
}
.author-box .author-name {
  margin: 0;
  font-family: var(--font-jp-impact);
  font-size: 1.4rem;
  color: var(--color-red-dark);
  letter-spacing: 0.1em;
}
.author-box .author-role {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin: 2px 0 8px;
}
.author-box .author-desc { margin: 0; font-size: 0.9rem; line-height: 1.7; }

/* Related / Prev-Next */
.related-posts { margin-top: 36px; }
.section-title {
  font-family: var(--font-jp-impact);
  color: var(--color-cream);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gold);
  position: relative;
}
.section-title::before {
  content: "■";
  color: var(--color-red);
  margin-right: 8px;
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a {
  display: block;
  background: var(--color-bg-light);
  color: var(--color-cream);
  padding: 14px;
  border: 2px solid var(--color-gold);
  font-weight: 700;
}
.post-nav a:hover { background: var(--color-red); color: #fff; }
.post-nav .nav-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 4px;
}

/* =========================================
   08. Sidebar
   ========================================= */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--color-paper);
  border: 3px solid #000;
  box-shadow: var(--shadow-strong);
  padding: 18px;
}
.widget .widget-title {
  margin: -18px -18px 14px;
  background: #000;
  color: var(--color-gold);
  padding: 10px 14px;
  font-family: var(--font-jp-impact);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  border-bottom: 3px solid var(--color-red);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li {
  border-bottom: 1px dotted rgba(0,0,0,0.2);
  padding: 8px 0;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #111; font-weight: 700; }
.widget a:hover { color: var(--color-red); }

/* Profile widget */
.widget-profile { text-align: center; }
.widget-profile .avatar-xl {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--color-red);
  box-shadow: 0 0 0 3px #000;
  object-fit: cover;
}
.widget-profile h3 {
  font-family: var(--font-jp-impact);
  font-size: 1.4rem;
  margin: 0;
  color: var(--color-red-dark);
  letter-spacing: 0.1em;
}
.widget-profile .role { font-size: 0.75rem; letter-spacing: 0.2em; color: #555; margin: 4px 0 10px; }
.widget-profile p { font-size: 0.88rem; margin: 0; text-align: left; }

/* =========================================
   09. Pagination
   ========================================= */
.pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination .page-numbers {
  background: var(--color-bg-light);
  color: var(--color-cream);
  padding: 10px 16px;
  border: 2px solid var(--color-gold);
  font-weight: 700;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-red);
  color: #fff;
}

/* =========================================
   10. Page title (archive / search)
   ========================================= */
.page-title-block {
  background: linear-gradient(90deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  border: 3px solid #000;
  box-shadow: var(--shadow-strong);
  padding: 24px;
  margin: 32px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-title-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(0,0,0,0.1) 0 4px,
    transparent 4px 12px);
  pointer-events: none;
}
.page-title-block h1 {
  margin: 0;
  font-family: var(--font-jp-impact);
  letter-spacing: 0.12em;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-shadow: 2px 2px 0 #000;
  position: relative;
}
.page-title-block .lede {
  margin: 6px 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.9;
  position: relative;
}

/* =========================================
   11. Footer
   ========================================= */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-cream);
  border-top: 4px solid var(--color-red);
  margin-top: 48px;
  padding: 32px 16px 16px;
  text-align: center;
}
.site-footer .footer-logo {
  font-family: var(--font-jp-impact);
  font-size: 1.6rem;
  color: var(--color-red);
  text-shadow: 2px 2px 0 #000;
  letter-spacing: 0.1em;
}
.site-footer .copyright {
  margin: 10px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  opacity: 0.75;
}

/* =========================================
   12. Comments / forms
   ========================================= */
.comments-area {
  margin-top: 32px;
  background: var(--color-paper);
  border: 3px solid #000;
  box-shadow: var(--shadow-strong);
  padding: 24px;
}
.comments-title {
  font-family: var(--font-jp-impact);
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--color-red);
  padding-bottom: 8px;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { border-bottom: 1px dotted rgba(0,0,0,0.2); padding: 14px 0; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #000;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
}
button, input[type="submit"], .button {
  display: inline-block;
  background: var(--color-red);
  color: #fff;
  border: 2px solid #000;
  padding: 10px 22px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
  font-family: inherit;
}
button:hover, input[type="submit"]:hover, .button:hover {
  background: #000;
  color: var(--color-gold);
}

/* =========================================
   13. 404 / Search empty
   ========================================= */
.notice-block {
  background: var(--color-paper);
  border: 3px solid #000;
  box-shadow: var(--shadow-strong);
  padding: 40px;
  text-align: center;
}
.notice-block h1 {
  font-family: var(--font-jp-impact);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--color-red);
  text-shadow: 3px 3px 0 #000;
  margin: 0 0 10px;
  letter-spacing: 0.1em;
}
.notice-block p { margin: 0 0 16px; }

/* =========================================
   14. Utility
   ========================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}
.alignleft  { float: left;  margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.sticky-flag {
  display: inline-block;
  background: var(--color-gold);
  color: #000;
  padding: 2px 8px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-right: 6px;
}
