:root{
  --max-width:920px;
  --accent:#0b72c3;
  --muted:#6b7280;
  --bg:#f7f8fa;
  --card:#ffffff;
  --text:#111;
  --radius:12px;
}

/* Reset-ish */
*{box-sizing:border-box}
html{background:var(--bg);height:100%}
body{
  margin:0;
  font-family:"Noto Sans JP","Hiragino Kaku Gothic Pro",system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
}

/* Layout */
.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:28px 18px;
}

/* Header / nav */
.site-header{
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 28px;
}
.site-title{
  font-weight:800;
  font-size:1.5rem;
  margin: 0 0 16px 0; /* Add bottom margin */
  text-align: center; /* Center the title */
}
.site-title a {
  color: inherit;
  text-decoration: none;
}
.site-nav {
  text-align: center; /* Center the nav links */
}
.site-nav a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  margin: 0 10px; /* Use horizontal margin for spacing */
}
.site-nav a:hover{ text-decoration:underline }

/* Hero */
.hero{
  background:linear-gradient(180deg, rgba(11,114,195,0.06), transparent);
  border-radius:10px;
  padding:16px;
  margin-bottom:18px;
}

/* Posts grid */
.posts{
  display:grid;
  gap:18px;
  grid-template-columns: 1fr;
  margin-bottom:28px;
}
@media(min-width:900px){
  .posts{ grid-template-columns: 1fr 1fr; }
}

/* Card */
.post-card{
  background: var(--card);
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(10,10,10,0.04);
  box-shadow: 0 8px 22px rgba(12,30,50,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
  display:flex;
  flex-direction:column;
}
.post-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(12,30,50,0.08);
}

/* Cover image */
.card-cover img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* Card body */
.card-body{
  padding:16px;
  flex:1;
  display:flex;
  flex-direction:column;
}
.post-card h3{
  margin:0 0 6px 0;
  font-size:1.12rem;
  line-height:1.25;
}
.post-meta{
  color:var(--muted);
  font-size:0.9rem;
  margin-bottom:10px;
}
.post-card p{
  margin:0 0 12px 0;
  color:#333;
  flex:0 0 auto;
}

/* Tags */
.post-tags{ margin-top:auto; }
.tag{
  display:inline-block;
  background:#eef6ff;
  color:var(--accent);
  padding:4px 8px;
  border-radius:999px;
  font-size:0.82rem;
  margin-right:8px;
}

/* Article page */
.post-body{
  line-height:1.9;
  font-size:1rem;
  color:#222;
}
.post-body img{ max-width:100%; height:auto; border-radius:6px; }

/* Footer */
.site-footer{
  text-align:center;
  color:var(--muted);
  font-size:0.9rem;
  margin-top:36px;
  padding-top:18px;
  border-top:1px solid rgba(0,0,0,0.04);
}

/* Utilities */
a{color:var(--accent)}
a:hover{text-decoration:underline}

/* Small screens tweaks */
@media(max-width:480px){
  .container{ padding:14px }
  .site-title{ font-size:1.05rem }
  .card-body{ padding:12px; }
  .post-card{ border-radius:10px }
}

/* Pagination */
.pagination{
  display:flex;
  gap:8px;
  justify-content:center;
  align-items:center;
  margin:8px 0 24px;
  flex-wrap:wrap;
}
.page-link{
  display:inline-block;
  padding:6px 10px;
  border:1px solid rgba(0,0,0,0.12);
  border-radius:8px;
  background:#fff;
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
  min-width:32px;
  text-align:center;
}
.page-link:hover{ background:#f3f7fb; }
.page-link.current{
  background:#0b72c3;
  color:#fff;
  border-color:#0b72c3;
  cursor:default;
}
.page-link.disabled{
  pointer-events:none;
  opacity:.45;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  display: inline-block;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  color: #6c757d;
  content: "/";
}

.breadcrumb-item.active {
  color: #6c757d;
}
