/* =============================
   リセット・ベース
============================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #e0e0e0;
  background: #111;
}

a { color: #e06060; text-decoration: none; }
a:hover { color: #ff8080; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* =============================
   ヘッダー
============================= */
#masthead {
  background: #1a1a1a;
  border-bottom: 2px solid #c00;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.site-title:hover { color: #ff8080; text-decoration: none; }

.site-description {
  font-size: 11px;
  color: #888;
  margin-left: 12px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 12px;
}
.nav-menu a { color: #ccc; font-size: 13px; }
.nav-menu a:hover { color: #fff; text-decoration: none; }

/* =============================
   レイアウト
============================= */
.site-content { padding: 20px 0 40px; }

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

@media (max-width: 768px) {
  .layout-wrapper { grid-template-columns: 1fr; }
  #secondary { order: 2; }
}

/* =============================
   グリッド（一覧）
============================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 480px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.post-card {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover {
  border-color: #c00;
  transform: translateY(-2px);
}

.post-card-link { display: block; color: inherit; }
.post-card-link:hover { text-decoration: none; }

.post-thumbnail {
  width: 100%;
  aspect-ratio: 315 / 223;
  overflow: hidden;
  background: #2a2a2a;
}
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.post-card:hover .post-thumbnail img { transform: scale(1.04); }

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 12px;
}

.post-card-body { padding: 8px 10px 10px; }

.post-title {
  font-size: 13px;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.post-date { font-size: 11px; color: #666; }

/* =============================
   アーカイブ見出し
============================= */
.archive-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.archive-count {
  font-size: 13px;
  color: #888;
  margin-left: 8px;
  font-weight: normal;
}

/* =============================
   ページネーション
============================= */
.pagination { margin-top: 32px; text-align: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 3px;
  color: #ccc;
  font-size: 13px;
}
.pagination .page-numbers.current {
  background: #c00;
  border-color: #c00;
  color: #fff;
}
.pagination .page-numbers:hover { border-color: #c00; text-decoration: none; }

/* =============================
   個別ページ
============================= */
.single-article { max-width: 100%; }

.entry-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #c00;
}

.product-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 600px) {
  .product-layout { grid-template-columns: 1fr; }
}

.product-thumb img {
  width: 100%;
  border: 1px solid #333;
  border-radius: 4px;
}

.product-meta { display: flex; flex-direction: column; gap: 10px; }

.meta-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #ccc;
}
.meta-label {
  min-width: 100px;
  color: #888;
  font-size: 12px;
}

.cta-box {
  margin-top: 12px;
  padding: 16px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  text-align: center;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #c00, #900);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.1s;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #e00, #b00);
  color: #fff;
  text-decoration: none;
  transform: scale(1.02);
}

.cta-note { font-size: 11px; color: #888; margin-top: 6px; }

.btn-secondary {
  display: inline-block;
  background: #1e1e1e;
  color: #e06060;
  border: 1px solid #c00;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: #c00;
  color: #fff;
  text-decoration: none;
}

/* エントリーコンテンツ */
.entry-content {
  font-size: 14px;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 24px;
}
.entry-content p { margin-bottom: 12px; }

/* キーワードセクション */
.keyword-section {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #c00;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.keyword-section h2 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 12px;
}
.keyword-section p { font-size: 13px; color: #aaa; margin-bottom: 10px; }

.entry-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #666;
  padding-top: 12px;
  border-top: 1px solid #2a2a2a;
}

/* =============================
   サイドバー
============================= */
#secondary { min-width: 0; }

.widget {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 16px;
}

.widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #333;
}

.category-list { list-style: none; }
.category-list li { padding: 3px 0; }
.category-list a { font-size: 12px; color: #aaa; }
.category-list a:hover { color: #e06060; text-decoration: none; }
.category-list .count { color: #555; font-size: 11px; margin-left: 4px; }

.recent-posts { list-style: none; }
.recent-posts li { padding: 4px 0; border-bottom: 1px solid #222; }
.recent-posts li:last-child { border-bottom: none; }
.recent-posts a { font-size: 12px; color: #aaa; display: block;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.recent-posts a:hover { color: #e06060; text-decoration: none; }

/* =============================
   フッター
============================= */
#colophon {
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  padding: 20px 16px;
  text-align: center;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-nav { margin-bottom: 8px; }
.footer-nav a { font-size: 12px; color: #888; margin: 0 8px; }
.footer-nav a:hover { color: #ccc; text-decoration: none; }

.footer-affiliate-note { font-size: 11px; color: #555; margin-bottom: 4px; }
.footer-copyright { font-size: 11px; color: #444; }
