/* リネンサプライ・ユニフォームレポート ブログ固有スタイル */
/* ヘッダー/フッター/ナビ/比較表のCSSは ../styles.css を利用（ここには書かない） */

/* ---------- 一覧ページ ---------- */
.index-stack {
  padding-top: 56px;
  padding-bottom: 88px;
}

.index-stack > section:first-child { margin-bottom: 56px; }

.index-stack > section > h2 {
  position: relative;
  margin: 0 0 10px;
  padding: 2px 0 2px 22px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.index-stack > section > h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; background: var(--accent); }
.index-stack > section > h2::after { content: ""; position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px; background: var(--accent-2); }

.index-stack .section-lead {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

/* ---------- 記事一覧: 3カラムのカードグリッド ---------- */
.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(--surface);
  border: 1px solid var(--line);
  border-left: 2px dashed var(--accent-2);
  border-radius: 4px;
  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: var(--accent-pale);
}

.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-family: var(--font-mono);
  font-size: .74rem;
  color: var(--accent);
  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: .82rem;
  line-height: 1.75;
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-cards .blog-card > a:hover h3 {
  color: var(--accent-deep);
}

/* ---------- 記事本文 ---------- */
.article > h1 {
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  line-height: 1.6;
  letter-spacing: .02em;
  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-mono);
  color: var(--accent);
  font-weight: 500;
}

.article-eyecatch {
  margin: 0 0 30px;
  border: 1px solid var(--line);
  border-bottom: 2px dashed var(--accent-2);
  border-radius: 4px;
  overflow: hidden;
  background: var(--accent-pale);
}

.article-eyecatch img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content h2 {
  scroll-margin-top: 90px;
  margin-top: 2.4em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-2);
  position: relative;
}
.article-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 74px;
  height: 2px;
  background: var(--accent);
}

.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: var(--accent-pale);
  border-top: 2px dashed var(--accent-2);
  border-radius: 4px;
  text-align: center;
}

.article > .share-box > h2:before,
.article > .share-box > h2:after {
  content: none;
  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: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: .82rem;
}

.share-box a:hover {
  background: var(--accent-deep);
  color: #fff;
}

/* ---------- 目次・関連リンク(サイドバー) ---------- */
/* 広告2枠＋目次で縦に長いため、追従(sticky)させず通常配置にする */
.content-layout .sidebar {
  position: static;
}

/* ---------- テキスト広告・バナー枠 ---------- */
.amazon-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px dashed var(--accent-2);
  border-radius: 4px;
  padding: 16px 18px;
}

.amazon-banner a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.6;
}

/* ---------- モバイル ---------- */
@media (max-width: 800px) {
  .blog-cards {
    grid-template-columns: 1fr;
  }

  .index-stack {
    padding-top: 40px;
    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 */
