/*
Theme Name: 補助金DB
Theme URI: https://hojyokin-db.com/
Author: 補助金・助成金DB
Description: 補助金・助成金DBサイト専用テーマ
Version: 1.0
*/

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
  background: #f8fafc;
  margin: 0;
}

/* ============================================================
   Post content wrapper (.entry-content / .post-content)
   ============================================================ */
.post-content {
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
}

/* ============================================================
   Headings inside post content
   ============================================================ */
.post-content h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e3a5f;
  border-bottom: 3px solid #2563eb;
  padding-bottom: 0.5rem;
  margin: 2rem 0 1rem;
  line-height: 1.4;
}

.post-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e3a5f;
  background: linear-gradient(90deg, #eff6ff 0%, transparent 100%);
  border-left: 4px solid #2563eb;
  padding: 0.6rem 0.9rem;
  margin: 2.5rem 0 1rem;
  border-radius: 0 6px 6px 0;
}

.post-content h2::before {
  content: '▋ ';
  color: #2563eb;
  font-size: 0.8em;
}

.post-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e40af;
  padding-left: 0.8rem;
  border-left: 3px solid #93c5fd;
  margin: 1.8rem 0 0.7rem;
}

.post-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  margin: 1.4rem 0 0.5rem;
}

/* ============================================================
   Paragraphs, lists
   ============================================================ */
.post-content p {
  margin: 0 0 1rem;
}

.post-content ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.2rem;
}

.post-content ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
}

.post-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.85em;
  top: 0.1em;
}

.post-content ol {
  padding-left: 1.6rem;
  margin: 0.5rem 0 1.2rem;
}

.post-content ol li {
  margin-bottom: 0.45rem;
}

.post-content strong {
  font-weight: 700;
  color: #111827;
}

.post-content a {
  color: #2563eb;
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

/* ============================================================
   Tables
   ============================================================ */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.post-content table thead th {
  background: #1d4ed8;
  color: #fff;
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 600;
}

.post-content table tbody tr:nth-child(even) {
  background: #f0f6ff;
}

.post-content table tbody td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.post-content table tbody tr:hover {
  background: #dbeafe;
}

/* ============================================================
   Post-specific component classes
   (generated content uses .container / .statistics / etc.)
   ============================================================ */

/* .container — outermost wrapper in generated posts */
.post-content .container {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* .statistics — summary numbers block */
.post-content .statistics {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
}

.post-content .statistics::before {
  content: '📊 ';
  font-size: 1rem;
}

.post-content .statistics h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
  border: none;
  padding: 0;
  margin: 0 0 0.6rem;
}

.post-content .statistics p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  color: #1e3a5f;
}

.post-content .statistics ul li::before {
  color: #1d4ed8;
}

/* .category-box — category description block */
.post-content .category-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0ea5e9;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #0c4a6e;
}

.post-content .category-box::before {
  content: '📁 ';
}

.post-content .category-box p {
  margin: 0;
}

/* .subsidy-item — individual subsidy card */
.post-content .subsidy-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.3rem;
  margin: 0.9rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.post-content .subsidy-item:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.09);
}

.post-content .subsidy-item::before {
  content: '💴 ';
  font-size: 0.9rem;
}

.post-content .subsidy-item p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.post-content .subsidy-item strong {
  color: #065f46;
}

/* .highlight — important / warning callout */
.post-content .highlight {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  font-size: 0.9rem;
  color: #78350f;
}

.post-content .highlight::before {
  content: '⚠️ ';
}

.post-content .highlight p {
  margin: 0.2rem 0;
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 2rem 0;
  font-size: 0.85rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s;
  background: #fff;
  line-height: 1;
}

.pagination .page-numbers:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.pagination .page-numbers.current {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #9ca3af;
}

/* ============================================================
   Category tag links in archive/index
   ============================================================ */
.cat-links a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  margin-right: 4px;
  transition: all 0.15s;
}

.cat-links a::before {
  content: '🏷';
  font-size: 0.7em;
}

.cat-links a:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
