:root {
  --text: #333333;
  --accent: #2e8b84;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  padding: 40px 0;
}

.site-title {
  margin: 0;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.site-title span {
  color: var(--accent);
}

.site-subtitle {
  margin: 10px 0 0;
  color: #555555;
  font-size: 0.98rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 32px;
  padding: 40px 0 64px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.article-title {
  margin: 10px 0 14px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.45;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #666666;
}

.category-badge {
  display: inline-block;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, white);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyecatch {
  margin: 18px 0 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
}

.eyecatch img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  object-fit: cover;
}

.article-body p {
  margin: 0 0 1.1em;
  color: #4b5563;
}

.article-body h2 {
  margin: 2em 0 0.7em;
  font-size: 1.25rem;
}

.article-body ul {
  color: #4b5563;
  padding-left: 1.2rem;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 0.92rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.article-body thead th {
  background: #f3f4f6;
}

.pager {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pager a {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.widget h2 {
  margin: 0 0 14px;
  font-size: 1.03rem;
}

.widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.widget-list a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer p {
  margin: 0;
  padding: 22px 0;
  color: #666666;
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    padding: 28px 0;
  }

  .article-card,
  .widget {
    border-radius: 12px;
    padding: 16px;
  }

  .eyecatch img {
    min-height: 200px;
  }
}
