/* ===== 記事ページ共通スタイル ===== */

/* パンくずリスト */
.breadcrumb {
  background: var(--orange-pale);
  padding: 10px 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--orange); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #CCC; }

/* 記事ヘッダー */
.article-hero {
  background: linear-gradient(135deg, var(--orange-pale) 0%, #FFE0B2 100%);
  padding: 40px 24px;
}
.article-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 32px;
  align-items: center;
}
.article-category-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.article-hero h1 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  font-family: 'Noto Serif JP', serif;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-hero-chara {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.article-hero-chara img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12));
  animation: float-big 4s ease-in-out infinite;
  object-fit: contain;
}

/* メインレイアウト */
.article-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* 記事本文 */
.article-body {
  min-width: 0;
}

/* この記事でわかること */
.article-summary {
  background: var(--orange-pale);
  border: 2px solid var(--orange-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.article-summary h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.article-summary h2::before { display: none; }
.article-summary ul { list-style: none; }
.article-summary li {
  font-size: 0.9rem;
  padding: 4px 0;
  display: flex;
  gap: 8px;
}
.article-summary li::before { content: "✅"; flex-shrink: 0; }

/* 目次 */
.toc {
  background: #F8F8F8;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc li { font-size: 0.875rem; }
.toc a { color: var(--orange); }
.toc a:hover { text-decoration: underline; }

/* 見出し */
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 48px 0 18px;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--orange-pale), transparent);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.4;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange-pale);
  color: var(--text);
}
.article-content p {
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 18px;
  color: var(--text);
}
.article-content ul, .article-content ol {
  list-style: none;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-content ul li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
}
.article-content ul li::before {
  content: "🍊";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
}
.article-content ol {
  list-style: decimal;
  padding-left: 24px;
}
.article-content ol li {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ポイントボックス */
.point-box {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 4px solid #1565C0;
}
.point-box-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #1565C0;
  margin-bottom: 8px;
}
.point-box p { font-size: 0.9rem; margin-bottom: 0; line-height: 1.7; }

/* キャラクター吹き出し */
.chara-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 28px 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.chara-callout.right { flex-direction: row-reverse; }
.chara-callout-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.chara-callout-bubble {
  background: var(--orange-pale);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
  position: relative;
}
.chara-callout.right .chara-callout-bubble {
  border-radius: 16px 4px 16px 16px;
  background: #E8FAF7;
}
.chara-callout-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 4px;
  display: block;
}
.chara-callout.right .chara-callout-name { color: #00B898; }

/* アフィリエイトボックス */
.affiliate-box {
  background: var(--white);
  border: 2px solid var(--orange-light);
  border-radius: var(--radius);
  padding: 20px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: center;
}
.affiliate-box-icon { font-size: 2.5rem; flex-shrink: 0; }
.affiliate-box-body { flex: 1; }
.affiliate-box-label {
  font-size: 0.68rem;
  background: #eee;
  color: #888;
  padding: 1px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 4px;
}
.affiliate-box-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.affiliate-box-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.affiliate-box-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* まとめボックス */
.summary-box {
  background: linear-gradient(135deg, var(--orange-pale), #FFE0B2);
  border-radius: var(--radius);
  padding: 24px;
  margin: 36px 0;
  border: 1px solid #FFD699;
}
.summary-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 12px;
  border: none;
  padding: 0;
}
.summary-box h3::after { display: none; }
.summary-box ul { margin-bottom: 0; }

/* 関連記事 */
.related-articles {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--orange-pale);
}
.related-articles h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: none;
  border-left: none;
  padding: 0;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s;
}
.related-card:hover { transform: translateY(-2px); }
.related-card-icon { font-size: 1.8rem; }
.related-card-text { flex: 1; min-width: 0; }
.related-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 2px;
}
.related-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .article-main { grid-template-columns: 1fr; }
  .article-hero-inner { grid-template-columns: 1fr; }
  .article-hero-chara { display: none; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .affiliate-box { flex-direction: column; text-align: center; }
  .chara-callout { flex-direction: column; align-items: flex-start; }
  .chara-callout.right { flex-direction: column; }
}
