:root {
  color: #2f241f;
  background: #f8f5f1;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.siteHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  border-bottom: 1px solid #e5ddd5;
  background: #fff;
}

.siteLogo {
  font-weight: 800;
  text-decoration: none;
}

.siteNav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.siteNav a {
  color: #6f5848;
  text-decoration: none;
}

.page {
  box-sizing: border-box;
  min-height: calc(100vh - 134px);
}

.pageInner {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.pageHero {
  padding: 64px 0 56px;
  border-bottom: 1px solid #e5ddd5;
  background: #f3ece4;
}

h1 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: #5c4c42;
  line-height: 1.8;
}

.articleSection {
  padding: 32px 0 64px;
}

.categoryTabs {
  display: flex;
  gap: 28px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e5ddd5;
}

.categoryTabs a {
  padding: 0 0 14px;
  color: #6f5848;
  font-weight: 700;
  text-decoration: none;
}

.categoryTabs a.isActive {
  color: #8b5e34;
  border-bottom: 3px solid #8b5e34;
}

.articleList {
  display: grid;
  gap: 14px;
}

.articleItem {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 20px;
  align-items: start;
  padding: 14px;
  border: 1px solid #e5ddd5;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}

.articleItem.hasThumbnail {
  grid-template-columns: 180px minmax(0, 1fr) 24px;
}

.articleText {
  display: grid;
  gap: 8px;
}

.articleThumbnail {
  width: 180px;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}

.articleItem strong {
  font-size: 18px;
  line-height: 1.5;
}

.articleMeta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #8b735f;
  font-size: 13px;
  font-weight: 700;
}

.categoryBadge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  color: #8b5e34;
  border-radius: 5px;
  background: #f7e7d6;
  font-weight: 800;
}

.articleExcerpt,
.articleMessage {
  color: #6f5848;
  line-height: 1.7;
}

.articleArrow {
  align-self: center;
  color: #2f241f;
  font-size: 34px;
  line-height: 1;
}

.articleMessage {
  margin: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #e5ddd5;
  border-radius: 6px;
  background: #fff;
  color: #6f5848;
  font-weight: 800;
  text-decoration: none;
}

.pagination a.isActive {
  border-color: #8b5e34;
  background: #8b5e34;
  color: #fff;
}

.pageDetail {
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
}

.articleDetail {
  max-width: 760px;
}

.articleDetail h1 {
  font-size: 32px;
  line-height: 1.45;
}

.articleEyecatch {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin-top: 28px;
  border-radius: 8px;
  background: #fff;
}

.backLink {
  display: inline-block;
  margin-bottom: 28px;
  color: #6f5848;
  font-weight: 700;
  text-decoration: none;
}

.articleBody {
  margin-top: 32px;
  color: #3f3129;
  font-size: 16px;
  line-height: 1.9;
}

.articleBody h2,
.articleBody h3,
.articleBody h4 {
  margin: 32px 0 12px;
  line-height: 1.5;
}

.articleBody p {
  margin: 0 0 18px;
}

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

.siteFooter {
  padding: 24px 32px;
  color: #8b735f;
  text-align: center;
  border-top: 1px solid #e5ddd5;
  background: #fff;
}

@media (max-width: 720px) {
  .siteHeader {
    align-items: flex-start;
    flex-direction: column;
  }

  .siteNav {
    flex-wrap: wrap;
  }

  .articleItem.hasThumbnail {
    grid-template-columns: 1fr 24px;
    gap: 12px;
  }

  .articleThumbnail {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 680 / 389;
  }
}
