* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  background: #f3e7d8; /* 暖かみのある紙色 */
  color: #1b1b1b;
  line-height: 1.8;
  font-size: 16px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 32px 5vw 24px;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.brand-block {
  margin-bottom: 24px;
}

.brand-kicker {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
}

.site-title {
  font-size: 26px;
  letter-spacing: 0.08em;
  margin: 4px 0 12px;
}

.site-lead {
  max-width: 640px;
  font-size: 14px;
  color: rgba(0,0,0,0.75);
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.global-nav a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  text-decoration: none;
  color: rgba(0,0,0,0.8);
  border-bottom: 1px solid transparent;
}

.global-nav a:focus,
.global-nav a:hover {
  border-color: #8b1a1a; /* 深い赤 */
  color: #8b1a1a;
  outline: none;
}

.site-main {
  flex: 1;
  padding: 32px 5vw 40px;
}

.intro-section {
  margin-bottom: 40px;
}

.intro-inner {
  max-width: 840px;
  margin: 0 auto;
}

.section-title {
  font-size: 20px;
  margin: 0 0 12px;
}

.section-note {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

.section-header {
  max-width: 1040px;
  margin: 0 auto 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 24px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin: 0 0 6px;
}

.post-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.post-card {
  background: #f9efe2;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-category {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 4px;
}

.post-title {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.post-title a {
  text-decoration: none;
  color: #1b1b1b;
}

.post-title a:hover,
.post-title a:focus {
  color: #8b1a1a;
  outline: none;
}

.post-meta {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin: 0 0 8px;
}

.post-excerpt {
  font-size: 13px;
  color: rgba(0,0,0,0.78);
  margin: 0 0 10px;
}

.post-points {
  margin: 0 0 10px 1em;
  padding-left: 0.5em;
  font-size: 13px;
}

.post-points li {
  margin-bottom: 2px;
}

.post-keyword {
  font-size: 11px;
  color: rgba(0,0,0,0.6);
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 6px;
  margin-top: auto;
}

.pagination {
  max-width: 1040px;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}

.page-number.current {
  padding: 2px 8px;
  border-radius: 999px;
  background: #1b1b1b;
  color: #f9efe2;
}

.page-next {
  margin-left: auto;
}

.site-footer {
  background: #0f141c; /* とても濃いブルー系 */
  color: #f5eee4;
  padding: 24px 5vw 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.footer-title {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.footer-text {
  font-size: 12px;
  color: rgba(245,238,228,0.8);
  max-width: 720px;
  margin: 0 0 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 11px;
  margin: 0;
}

.footer-copy a {
  color: #f5eee4;
  text-decoration: none;
  border-bottom: 1px solid rgba(245,238,228,0.5);
}

.footer-copy a:hover,
.footer-copy a:focus {
  color: #ffebe6;
  border-color: #ffebe6;
  outline: none;
}

/* アクセシビリティ向けフォーカス */

a:focus-visible {
  outline: 2px solid #8b1a1a;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .site-title {
    font-size: 22px;
  }

  .global-nav ul {
    gap: 12px;
  }

  .post-card {
    padding: 16px;
  }

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