/* ============================================================
   ブログ記事ページ専用スタイル（/moshimoshi-call/blog/配下の全記事で読み込む）
   配色・ヘッダー・フッター・パンくず・カテゴリバッジなどの共通部品は
   /assets/css/site.css にあり、記事ページでは先にそちらを読み込む
   ============================================================ */

.article-main .container {
  max-width: 760px;
}

/* ── 記事ヘッダー ── */
.article-header {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--color-border);
}

.article-title {
  font-size: clamp(24px, 18px + 1.3vw, 32px);
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
}

.article-date {
  font-size: 14px;
  color: var(--color-text-light);
}

/* 読み込み時に記事ヘッダーを順に浮かび上がらせる */
html.js .article-header > * {
  animation: rise-in 0.8s var(--ease) both;
}

html.js .article-header > :nth-child(2) { animation-delay: 0.08s; }
html.js .article-header > :nth-child(3) { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html.js .article-header > * {
    animation: none;
  }
}

/* ── 記事本文 ── */
.article-body {
  padding: 32px 0 48px;
  font-size: 17px;
  line-height: 2;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body h2 {
  font-size: clamp(20px, 17px + 0.6vw, 24px);
  font-weight: 700;
  line-height: 1.6;
  margin: 2.2em 0 0.9em;
  padding: 12px 18px;
  border-left: 5px solid var(--color-primary);
  border-radius: 0 10px 10px 0;
  background: var(--color-bg-green);
}

.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5em;
  padding: 20px 24px 20px 44px;
  border-radius: var(--radius-card);
  background: var(--color-bg-cream);
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.5em;
}

.article-body li::marker {
  color: var(--color-primary);
}

.article-body a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body strong {
  background: linear-gradient(transparent 62%, rgba(210, 180, 140, 0.32) 62%);
}

/* ── 記事末尾CTA ── */
.article-cta {
  background: linear-gradient(135deg, #F2F6F3 0%, #E4ECE6 100%);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  margin: 0 0 40px;
}

.article-cta p {
  color: var(--color-text-light);
  margin-bottom: 18px;
}

/* 旧マークアップ（.cta-btn）も共通ボタンと同じ見た目にする */
.article-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(79, 122, 99, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.article-cta .cta-btn::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

.article-cta .cta-btn:hover {
  background: #436A55;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(79, 122, 99, 0.4);
}

.article-cta .cta-btn:hover::after {
  transform: translateX(4px);
}

/* ── 一覧へ戻る ── */
.back-to-list {
  text-align: center;
  padding-bottom: 80px;
}

.back-to-list a {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.back-to-list a:hover {
  text-decoration: underline;
}

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

  .article-body ul,
  .article-body ol {
    padding: 16px 18px 16px 36px;
  }
}
