:root {
  --primary: #1a56db;
  --primary-dark: #1241a8;
  --accent: #ff6b35;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --max-width: 1100px;
}
body {
  font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  background: #fff;
}
.site-header {
  background: var(--primary) !important;
  box-shadow: 0 2px 12px rgba(26,86,219,0.35) !important;
  padding: 0 !important;
}
.site-title a, .site-title a:hover {
  color: #fff !important;
  font-weight: 700;
}
.main-navigation a {
  color: rgba(255,255,255,0.9) !important;
}
.main-navigation a:hover { color: #fff !important; }
.container, .grid-container { max-width: var(--max-width); }
.content-area { width: 70%; }
.widget-area { width: 28%; }
.entry-title {
  font-size: 1.75rem;
  font-weight: 800;
  border-left: 5px solid var(--primary);
  padding-left: 16px;
  margin-bottom: 20px;
}
.post-thumbnail img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
#toc_container {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
}
#toc_container .toc_title { color: var(--primary); font-weight: 700; }
#toc_container ul li a { color: var(--primary); }
.entry-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #1a56db 0%, #1241a8 100%);
  padding: 12px 20px;
  border-radius: 6px;
  margin: 40px 0 20px;
}
.entry-content h3 {
  border-left: 4px solid #ff6b35;
  padding: 4px 0 4px 14px;
  margin: 28px 0 14px;
  font-weight: 700;
}
.entry-content h4 {
  color: var(--primary);
  border-bottom: 2px dotted var(--border);
  padding-bottom: 6px;
}
.cta-button {
  display: block;
  width: fit-content;
  margin: 20px auto;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff !important;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(255,107,53,0.35);
}
.cta-button::after { content: ' →'; }
.ad-unit-in-content {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  margin: 32px 0;
  text-align: center;
}
.sidebar .widget-title {
  border-bottom: 3px solid var(--primary);
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer {
  background: #1f2937;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  padding: 32px 0 16px;
}
.site-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }

/* 3-Layer Header */
.top-info-bar {
  background: #0f172a;
  padding: 5px 0;
  font-size: 0.75rem;
}
.top-info-bar .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-info-bar a, .top-info-bar span { color: rgba(255,255,255,0.45); text-decoration: none; }
.top-info-bar a:hover { color: rgba(255,255,255,0.85); }
.top-info-bar .divider { margin: 0 10px; opacity: 0.2; }
.top-info-bar .new-badge {
  background: #ef4444; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; margin-right: 10px;
}
.top-info-bar .today-date { color: rgba(255,255,255,0.3); font-size: 0.7rem; }
.header-main-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-block { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-icon-box {
  width: 38px; height: 38px; background: #fff;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.logo-texts .site-name {
  display: block; font-size: 1.3rem; font-weight: 800;
  color: #fff; line-height: 1; letter-spacing: -0.02em;
}
.logo-texts .site-tagline {
  display: block; font-size: 0.62rem;
  color: rgba(255,255,255,0.55); margin-top: 3px;
}
.header-search-form {
  flex: 1; max-width: 380px; margin: 0 auto; position: relative;
}
.header-search-form input[type="search"] {
  width: 100%; padding: 9px 16px 9px 38px;
  border: none; border-radius: 50px;
  background: rgba(255,255,255,0.15); color: #fff; font-size: 0.87rem; outline: none;
}
.header-search-form input[type="search"]::placeholder { color: rgba(255,255,255,0.5); }
.header-search-form input[type="search"]:focus { background: rgba(255,255,255,0.25); }
.header-search-icon {
  position: absolute; left: 13px; top: 50%;
  transform: translateY(-50%); color: rgba(255,255,255,0.6); pointer-events: none;
}
.header-cta-area { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.header-cta-btn {
  padding: 7px 15px; border-radius: 6px; font-size: 0.8rem;
  font-weight: 600; text-decoration: none; display: inline-block; white-space: nowrap;
}
.header-cta-btn.filled { background: #fff; color: var(--primary) !important; }
.category-nav-bar {
  background: #1241a8;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.category-nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; overflow-x: auto; scrollbar-width: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 14px; color: rgba(255,255,255,0.75); font-size: 0.85rem;
  text-decoration: none !important; position: relative; white-space: nowrap;
}
.cat-nav-item:hover { color: #fff; }
.cat-nav-item.current-cat { color: #fff; font-weight: 700; }
.cat-nav-item.current-cat::after {
  content: ''; position: absolute; bottom: 0; left: 8px; right: 8px;
  height: 3px; background: #ff6b35; border-radius: 3px 3px 0 0;
}
.cat-dot { width: 7px; height: 7px; border-radius: 50%; }
.cat-dot.vpn { background: #60a5fa; }
.cat-dot.saas { background: #34d399; }
.cat-dot.ai-tools { background: #fbbf24; }
.cat-dot.hosting { background: #a78bfa; }
.cat-dot.security { background: #f87171; }
.cat-dot.ranking { background: #94a3b8; }
.cat-dot.crm { background: #60a5fa; }
.cat-dot.cloud { background: #34d399; }
.cat-dot.erp { background: #a78bfa; }
.cat-new-badge {
  font-size: 0.62rem; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
  background: #ff6b35; color: #fff; margin-left: 2px;
}
.cat-count-label { font-size: 0.7rem; color: rgba(255,255,255,0.35); }
@media (max-width: 768px) {
  .content-area { width: 100%; }
  .widget-area { width: 100%; }
  .header-main-inner { height: 56px; gap: 12px; }
  .header-search-form { max-width: 200px; }
  .logo-texts .site-tagline { display: none; }
}
