/* ============================================================
   カラートークン
   背景：温かみのあるクリーム（#F6F1E7）
   本文：純黒ではなく、温かみのある濃茶炭色（#2B2620）
   アクセント：燻したような赤土色（#B85C38）※装飾ではなくCTAのみに使用
   セカンダリ：オリーブ（#6B7353）※罫線・補助情報に控えめに使用
   ============================================================ */
:root {
  --cream: #F6F1E7;
  --paper: #FFFDF9;
  --ink: #2B2620;
  --ink-soft: #5C5449;
  --rust: #B85C38;
  --olive: #6B7353;
  --line: #DED2BE;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  padding: 28px 24px 20px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.wordmark {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.article-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 8px 24px 100px 24px;
}

.not-found {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

.article-header {
  margin-bottom: 28px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--ink); }
.article-title {
  font-family: "Shippori Mincho", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 10px 0;
  letter-spacing: 0.01em;
}
.article-date {
  font-size: 13px;
  color: var(--ink-soft);
}

.article-hero-image {
  margin: 0 0 32px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-hero-image img {
  width: 100%;
  display: block;
}

.article-body {
  font-size: 16px;
  color: var(--ink);
}
.article-body p {
  margin: 0 0 22px 0;
}
.article-body h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 21px;
  font-weight: 700;
  margin: 40px 0 18px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-cta {
  margin-top: 48px;
}
.article-cta-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  text-align: center;
}
.article-cta-lead {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px 0;
}
.article-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--rust);
  color: #FFFDF9;
  text-decoration: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-footer {
  text-align: center;
  padding: 40px 24px 100px 24px;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.05em;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(43, 38, 32, 0.28);
}

@media (max-width: 480px) {
  .article-title { font-size: 24px; }
  .article-body { font-size: 15.5px; }
}

/* ============================================================
   記事一覧ページ（articles.php）
   ============================================================ */
.list-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 24px 100px 24px;
}
.list-title {
  font-family: "Shippori Mincho", serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 28px 0;
}
.list-rows {
  display: flex;
  flex-direction: column;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.list-row-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--line);
}
.list-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.list-row-body {
  flex: 1 1 auto;
  min-width: 0;
}
.list-row-title {
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-row-date {
  font-size: 12px;
  color: var(--ink-soft);
}

/* ============================================================
   記事一覧ページ（2列カード形式・タグ絞り込み）
   サムネイル画像を大きく見せることを優先し、スマホでも2列で並べる。
   ============================================================ */
.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tag-chip {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
}
.tag-chip-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.list-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.list-card-2col {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}
.list-card-2col-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.list-card-2col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.list-card-2col-noimg {
  font-size: 11px;
  color: var(--ink-soft);
}
.list-card-2col-body {
  padding: 10px 12px 14px 12px;
}
.list-card-2col-title {
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  /* 2行までで省略する */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card-2col-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag-chip-small {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .list-grid-2col {
    grid-template-columns: repeat(3, 1fr);
  }
}