/* ══════════════════════════════════════════
   blog-template-article.css
   ブログ記事（Article）ページ固有スタイル
   ══════════════════════════════════════════ */

/* ── コンテナ幅（記事は1180px） ── */
:root { --max: 1180px; }
.container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }

/* ── ナビゲーション ── */
.nav { color: var(--text); }
.nav a:hover { color: var(--green); }

/* ── パンくずリスト ── */
.breadcrumb      { padding: 18px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.breadcrumb span { opacity: .5; }

/* ── アイキャッチ ── */
.article-hero     { margin-top: 24px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/7; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }

/* 画像を見切れさせず全体表示したい場合（class="article-hero article-hero--fit"） */
.article-hero--fit img { object-fit: contain; transform: scale(.9); background: var(--beige); }

/* ── レイアウト（本文 + サイドバー） ── */
.article-wrap { padding: 40px 0 80px; }
.layout       { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }

/* ── 記事ヘッダー ── */
.article-head    { margin-bottom: 32px; }
.tag-row         { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.article-head h1 { margin: 0 0 16px; font-size: 32px; line-height: 1.5; font-family: "Zen Kaku Gothic New", sans-serif; color: var(--green); }
.article-meta    { display: flex; gap: 20px; font-size: 13px; color: var(--muted); font-weight: 600; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.article-meta .author { display: flex; align-items: center; gap: 8px; }
.author-icon          { width: 36px; height: 36px; font-size: 13px; }
.author-box .author-icon { width: 56px; height: 56px; font-size: 20px; }

/* ── 記事本文 ── */
.article-body          { line-height: 1.95; font-size: 16px; color: #2D3E39; }
.article-body h2       { font-size: 24px; font-family: "Zen Kaku Gothic New", sans-serif; color: var(--green); margin: 48px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }
.article-body h3       { font-size: 18px; font-family: "Zen Kaku Gothic New", sans-serif; color: var(--text); margin: 32px 0 12px; }
.article-body p        { margin: 0 0 20px; }
.article-body ul,
.article-body ol       { padding-left: 24px; margin: 0 0 20px; }
.article-body li       { margin-bottom: 8px; }
.article-body blockquote { margin: 28px 0; padding: 20px 24px; background: var(--beige); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; font-style: italic; color: #4a5e59; }
.article-body .note    { background: #f0f8f4; border: 1px solid rgba(31,77,58,.15); border-radius: 8px; padding: 18px 22px; margin: 24px 0; font-size: 14px; }
.article-body .note strong { color: var(--green); }
.article-body figure   { margin: 28px 0; }
.article-body figure img { border-radius: 8px; width: 100%; }
.article-body figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

/* ── シェア（記事はmargin-topが少し小さい） ── */
.share-row { margin-top: 40px; }

/* ── 著者ボックス ── */
.author-box { margin-top: 40px; }

/* ── 関連記事 ── */
.related    { margin-top: 52px; }
.related h3 { font-size: 18px; font-family: "Zen Kaku Gothic New", sans-serif; color: var(--green); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ── サイドバー ── */
.sidebar       { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 20px; }
.sidebar-box   { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: #fff; }
.sidebar-box h3 { margin: 0 0 16px; font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: .04em; }
.toc           { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.toc a         { display: block; padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--muted); border-radius: 4px; border-left: 2px solid var(--line); }
.toc a:hover,
.toc a.active  { color: var(--green); border-left-color: var(--gold); background: var(--beige); }
.cta-box       { background: linear-gradient(135deg, var(--green), #0e674d); color: #fff; border-radius: 10px; padding: 22px; }
.cta-box h3    { margin: 0 0 10px; font-size: 15px; color: #fff; font-family: "Zen Kaku Gothic New", sans-serif; }
.cta-box p     { margin: 0 0 16px; font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.75; }
.cta-box a     { display: block; background: #fff; color: var(--green); text-align: center; padding: 12px; border-radius: 6px; font-size: 13px; font-weight: 800; }
.recent-item   { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item img { width: 70px; height: 52px; object-fit: cover; border-radius: 4px; }
.recent-item b   { display: block; font-size: 12px; line-height: 1.5; color: var(--text); margin-bottom: 4px; }
.recent-item span { font-size: 11px; color: var(--muted); }

/* ── CTA（記事ページは padding が少し小さい） ── */
.cta-inner { min-height: 120px; padding: 40px 0; }

/* ── レスポンシブ ── */
@media (max-width: 1024px) {
  .container { width: min(var(--max), calc(100% - 40px)); }
  .layout    { grid-template-columns: 1fr; }
  .sidebar   { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .article-head h1 { font-size: 24px; }
  .related-grid    { grid-template-columns: 1fr; }
}
