/* coffee-culture ブログ専用スタイル（共通スタイルは ../styles.css）*/
/* ヘッダーのCSSはここに書かない。styles.css 側の .site-header 等を利用する。 */

/* ブログ一覧: 3カラムカードグリッド（モバイルは1カラム） */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.blog-cards .blog-card {
  display: block;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px -18px rgba(43, 28, 20, .6);
}

.blog-cards .blog-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-cards .card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--roast-soft);
}

.blog-cards .card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-cards .card-body {
  padding: 16px 18px 20px;
}

.blog-cards .card-body time {
  display: block;
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-cards .card-body h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0 0 8px;
  color: var(--roast);
}

.blog-cards .card-body p {
  font-size: .84rem;
  line-height: 1.75;
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 記事本文ラッパー */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.post-meta time {
  font-family: var(--serif);
  color: var(--roast);
  font-size: .86rem;
}

.article-content h2 {
  scroll-margin-top: 7.5rem;
}

.article-content figure {
  margin: 0 0 1.6em;
}

.article-content figure img {
  border-radius: 14px;
}

.article-content figcaption {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 8px;
}

/* 記事共有ボックス */
.share-box {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  margin-top: 20px;
}

.share-box h2 {
  font-family: var(--serif);
  font-size: 1.1rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.share-box h2::before {
  display: none;
}

.share-box p {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.share-box a {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--rust);
  color: #fff6ea;
  text-decoration: none;
  font-size: .84rem;
}

.share-box a:hover {
  background: var(--rust-deep);
}

/* モバイル: 記事本文の左右余白確保（QAゲート必須要件） */
@media (max-width: 768px) {
  .article-content { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 560px) {
  .blog-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) and (min-width: 561px) {
  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* HEADING-WRAP:START 見出し最終行孤立文字対策 (AGENTS.md NoGo) */
h1,h2,h3,h4,.hero-title,.page-title,.card-title{text-wrap:balance;word-break:auto-phrase;line-break:strict;overflow-wrap:break-word}
/* HEADING-WRAP:END */
