/* キッチンカー経営録 ブログ固有スタイル */
/* ヘッダー/フッター/ナビ/比較表のCSSは ../styles.css を利用 */

.index-stack {
  padding-top: 52px;
  padding-bottom: 88px;
}
.index-stack > section:first-child { margin-bottom: 56px; }
.index-stack .section-lead { color: var(--muted); font-size: .92rem; margin: 0; }

/* 記事一覧: 3カラムのカードグリッド */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.blog-cards .blog-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--road);
  border-radius: 8px;
  overflow: hidden;
}
.blog-cards .blog-card > a { display: block; color: inherit; text-decoration: none; }
.blog-cards .card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd7c8;
  border-bottom: 4px solid var(--accent);
}
.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: inline-block;
  font-family: var(--font-head);
  font-size: .72rem;
  background: var(--accent);
  color: #111;
  padding: 0 8px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.blog-cards .card-body h3 { font-size: 1.02rem; line-height: 1.6; margin: 0 0 10px; color: var(--ink); }
.blog-cards .card-body p {
  font-size: .84rem;
  line-height: 1.75;
  margin: 0;
  color: #3c4146;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-cards .blog-card > a:hover h3 { color: var(--accent-2); }

/* 記事本文 */
.article > h1 {
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  line-height: 1.5;
  margin: 0 0 24px;
}
.post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .8rem; color: var(--muted); margin: 0 0 14px; }
.post-meta time { font-family: var(--font-head); background: var(--accent); color: #111; padding: 0 8px; border-radius: 3px; }
.article-eyecatch {
  margin: 0 0 30px;
  border: 2px solid var(--road);
  border-bottom: 6px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
  background: #ddd7c8;
}
.article-eyecatch img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-content h2 { scroll-margin-top: 90px; margin-top: 2.2em; }
.article-content > h2:first-child { margin-top: 0; }
.article-content a { text-decoration: underline; }

/* シェアボックス */
.article > .share-box {
  margin: 46px 0 40px;
  padding: 22px 24px;
  background: #fff7d6;
  border: 2px dashed var(--road);
  border-radius: 8px;
  text-align: center;
}
.article > .share-box > h2::after { display: none; }
.share-box h2 { font-size: 1rem; margin: 0 0 14px; padding: 0; border: 0; }
.share-box .share-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-box a {
  display: inline-block;
  padding: 9px 20px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--road);
  border-radius: 6px;
  font-size: .85rem;
}
.share-box a:hover { background: var(--accent-2); color: #fff; }

/* 広告2枠＋目次で縦に長いため、追従させず通常配置にする */
.content-layout .sidebar { position: static; }

@media (max-width: 800px) {
  .blog-cards { grid-template-columns: 1fr; }
  .index-stack { padding-top: 36px; padding-bottom: 64px; }
  .share-box .share-links { flex-direction: column; }
}

/* デプロイQAゲート必須: article-content の左右パディング（短縮形不可） */
@media (max-width:768px){ .article-content { padding-left:16px; padding-right:16px; } }

/* HEADING-WRAP:START 見出し最終行孤立文字対策 */
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 */

/* ADSENSE-ANNO:BEGIN */
/* Neutralize Google AdSense auto-annotation links that break text flow */
.article-body a.google-anno,
.article-body a[data-google-vignette],
.main a.google-anno,
.content a.google-anno,
a.google-anno,
a[data-google-vignette] {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
  pointer-events: none;
  cursor: text;
}
/* ADSENSE-ANNO:END */
