:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans JP", sans-serif;
  color: #292d32;
  background: #fff;
  line-height: 1.8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #2563a6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  color: #292d32;
  font-size: 1.35rem;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 20px;
}

main.container {
  min-height: 70vh;
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-heading {
  margin-bottom: 36px;
}

.page-heading h1 {
  margin-bottom: 8px;
}

.post-summary {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.post-summary h3 {
  margin: 0 0 6px;
}

.post-summary p {
  margin: 8px 0 0;
  color: #555;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #777;
  font-size: 0.875rem;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.categories a {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 2px 9px;
  font-size: 0.8rem;
}

.article-header {
  margin-bottom: 36px;
}

.article-header h1 {
  line-height: 1.5;
}

.article-content {
  overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3 {
  margin-top: 2em;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content pre {
  overflow-x: auto;
  padding: 16px;
  background: #f5f5f5;
  border-radius: 5px;
  line-height: 1.6;
}

.article-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.article-content blockquote {
  margin: 1.5em 0;
  padding: 4px 18px;
  border-left: 4px solid #cbd5e1;
  color: #555;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
}

.article-navigation {
  margin-top: 50px;
}

.category-list {
  padding-left: 20px;
}

.category-list li {
  padding: 8px 0;
}

.category-list span {
  margin-left: 10px;
  color: #777;
  font-size: 0.875rem;
}

.more-link {
  margin-top: 24px;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  color: #777;
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .site-header .container {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  main.container {
    padding-top: 24px;
  }
}
