#site-banner {
  width: 100%;
  height: 200px;
  background-image: url("https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?w=1600&auto=format&fit=crop&q=80");
  background-size: cover;
  background-position: center 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#site-banner-inner {
  background: rgba(10, 20, 40, 0.65);
  padding: 1.2rem 3rem;
  border-radius: 8px;
}
#site-banner-inner span {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
#layout-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}
main.main {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}
#site-sidebar {
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
  padding: 1.2rem;
  border-left: 3px solid #2A5298;
  margin-top: 2rem;
  position: sticky;
  top: 1rem;
  box-sizing: border-box;
}
.sidebar-title { font-size: 1rem; font-weight: 700; color: #2A5298; margin-bottom: 0.5rem; }
.sidebar-hr { border: none; border-top: 1px solid #C0622A; margin-bottom: 0.8rem; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0.7rem; font-size: 0.85rem; line-height: 1.4; border-bottom: 1px dotted rgba(42,82,152,0.2); padding-bottom: 0.5rem; word-break: break-all; }
.sidebar-list a { color: var(--primary); text-decoration: none; }
.sidebar-list a:hover { color: #C0622A; }
#access-counter-widget { margin-bottom: 2rem; }
.counter-body { display: flex; flex-direction: column; align-items: center; padding: 0.75rem 0.5rem; background: #f5f7fc; border-radius: 8px; border: 1px solid #dde3f0; text-align: center; }
.counter-icon { font-size: 1.6rem; margin-bottom: 4px; }
.counter-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.counter-value { font-size: 1.5rem; font-weight: 700; color: #2a5298; }

@media only screen and (max-width: 768px) {
  #site-banner { height: 120px !important; }
  #site-banner-inner { padding: 0.7rem 1.2rem !important; }
  #site-banner-inner span { font-size: 1.2rem !important; letter-spacing: 1px !important; }
  #layout-wrapper { flex-direction: column !important; padding: 0 0.75rem !important; gap: 1rem !important; }
  main.main { width: 100% !important; order: 1 !important; }
  #site-sidebar { width: 100% !important; min-width: unset !important; border-left: none !important; border-top: 3px solid #2A5298 !important; position: static !important; margin-top: 1rem !important; padding: 1rem 0 !important; order: 2 !important; }
}
/* ===== カテゴリリスト ===== */
.sidebar-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-cat-list li {
  margin-bottom: 0.5rem;
}

.sidebar-cat-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(42,82,152,0.15);
  transition: background 0.2s;
}

.sidebar-cat-list a:hover {
  background: rgba(42,82,152,0.08);
  border-color: #2A5298;
  color: #2A5298;
}

.cat-icon { font-size: 1.1rem; flex-shrink: 0; }
.cat-name { flex: 1; }
/* ===== カテゴリブロック ===== */
.cat-block {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: #2A5298 !important;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.04em;
}

.cat-icon { font-size: 1.1rem; flex-shrink: 0; }
.cat-name { flex: 1; }

.cat-article-list {
  list-style: none;
  padding: 0.4rem 0;
  margin: 0;
  background: var(--theme);
  border: 1px solid rgba(42,82,152,0.15);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.cat-article-list li {
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  border-bottom: 1px dotted rgba(42,82,152,0.12);
}

.cat-article-list li:last-child {
  border-bottom: none;
}

.cat-article-list a {
  color: var(--primary);
  text-decoration: none;
  display: block;
  word-break: break-all;
}

.cat-article-list a:hover {
  color: #C0622A;
  text-decoration: underline;
}

.cat-empty {
  font-size: 0.8rem;
  color: #999;
  padding: 0.4rem 1rem;
  margin: 0;
}