:root {
  --paper: #fffef9;      /* 温かい紙色の背景 */
  --ink: #37332C;        /* 本文 */
  --ink-soft: #6E675B;   /* 補足テキスト */
  --line: #E9E2CF;       /* 罫線 */
  --sage: #8FA37E;       /* アクセント（セージ） */
  --sage-soft: #EFF2E6;  /* アクセント淡 */
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
}
img {
  max-width: 100%;
}
.article__header {
  display: flex;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.article__site-title {
  display: flex;
  width: 280px;
}
.category__header {
  text-align: center;
  padding: 2rem 1rem 1rem;
  border-bottom: 1px solid var(--line);
}

.category__title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.category__description {
  font-size: 1rem;
  color: var(--ink-soft);
}

.category__main {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.category__list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 1rem;
}

.category__item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.category__item a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: bold;
  font-size: 1.05rem;
  color: var(--ink);
}

.category__item a:hover {
  opacity: 0.8;
  text-decoration-color: var(--sage);
}

.category__item-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}
.category__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .category__grid {
    grid-template-columns: 1fr 1fr;
  }
}
.category__card a {
  color: inherit;
  text-decoration: none;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(90, 74, 58, 0.05);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.category__card a:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
}
.category__card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.category__card-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.page-back {
  margin-top: 2rem;
  text-align: center;
}

.page-back__link {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* フッター */
.footer {
  text-align: center;
  padding: 2rem 1rem 1rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.footer__policy {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer__policy a {
  color: var(--ink-soft);
  text-decoration: underline;
}
.footer__sns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  list-style: none;
  padding-left: 0;
}

.footer__sns-item a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;

  &:hover {
    opacity: 0.75;
    text-decoration: underline;
    img {
      opacity: 0.75;
    }
  }
}
.footer__sns-icon {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}