:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #DBEAFE;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --bg: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --border: #E5E7EB;
}
* { box-sizing: border-box; }
body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.toc {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.toc-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding-left: 0;
  margin: 0;
}
.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 0.5rem;
}
.toc ol li::before {
  content: counter(toc-counter) ".";
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.5rem;
}
.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.toc a:hover { color: var(--primary); }
.cta-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}
.cta-box h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.cta-button {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.article-content li { margin-bottom: 0.5rem; }
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-content table th {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.article-content table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.article-content table tr:nth-child(even) { background: var(--bg-secondary); }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}
.article-content code {
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.article-content pre {
  background: #1F2937;
  color: #F9FAFB;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.info-box {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box-title {
  font-weight: 700;
  color: #92400E;
  margin-bottom: 0.25rem;
}
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: box-shadow 0.2s, transform 0.1s;
}
.related-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.related-card a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}
.related-card .category-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.tag-howto { background: #DBEAFE; color: #1D4ED8; }
.tag-problem { background: #FEE2E2; color: #DC2626; }
.tag-comparison { background: #D1FAE5; color: #059669; }
.tag-guide { background: #E0E7FF; color: #4338CA; }
.tag-data { background: #FEF3C7; color: #D97706; }
.tag-template { background: #F3E8FF; color: #7C3AED; }
.site-header {
  border-bottom: 1px solid var(--border);
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-footer {
  background: #1F2937;
  color: #9CA3AF;
}
.site-footer a {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover { color: white; }
.article-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.3s, transform 0.2s;
  background: white;
}
.article-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.article-card a { text-decoration: none; }
.article-card h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.article-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: white;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--primary); }
@media (max-width: 768px) {
  .article-content h2 { font-size: 1.3rem; }
  .article-content h3 { font-size: 1.1rem; }
  .toc { padding: 1rem 1.25rem; }
  .cta-box { padding: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
}
