/* R01 AI Writer — Article Body CSS
   すべて .r01-article-body スコープで完全隔離 */

/* ─────────────────────────────────────
   A案: 記事本文スタイリング強化
───────────────────────────────────── */

.r01-article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #1E293B;
}

/* h2 ── グラデーションバンド＋左アクセント */
.r01-article-body h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E293B;
  margin: 2.8em 0 1em;
  padding: 13px 18px;
  background: linear-gradient(90deg, #EFF6FF 0%, #F8FAFF 100%);
  border-left: 4px solid #3B82F6;
  border-radius: 0 8px 8px 0;
  line-height: 1.45;
}
.r01-article-body h2:first-child { margin-top: 0; }

/* h3 ── 左ボーダー */
.r01-article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1E293B;
  margin: 2em 0 0.75em;
  padding-left: 14px;
  border-left: 3px solid #6366F1;
  line-height: 1.5;
}

/* p */
.r01-article-body p { margin: 0 0 1.2em; }

/* ul ── チェックマーク bullet */
.r01-article-body ul {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}
.r01-article-body ul li {
  padding: 5px 0 5px 28px;
  position: relative;
}
.r01-article-body ul li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: #3B82F6;
  font-weight: 800;
  font-size: 0.9em;
}

/* ol */
.r01-article-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.6em;
}
.r01-article-body ol li { padding: 4px 0; }

/* strong ── マーカーハイライト */
.r01-article-body strong {
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(253,224,71,.7) 60%);
  color: #1E293B;
}

/* em */
.r01-article-body em { color: #4338CA; font-style: normal; font-weight: 600; }

/* ─────────────────────────────────────
   B案: Claude が出力する特殊デザインクラス
───────────────────────────────────── */

/* 警告ボックス */
.r01-article-body .r01-warning {
  background: #FFF7ED;
  border: 2px solid #FB923C;
  border-left: 5px solid #EA580C;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 1.8em 0;
}
.r01-article-body .r01-warning::before {
  content: '⚠️ 注意・重要';
  display: block;
  font-weight: 800;
  color: #C2410C;
  font-size: 0.85rem;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* 専門家コメント */
.r01-article-body .r01-expert {
  background: #F0FDF4;
  border: 2px solid #86EFAC;
  border-left: 5px solid #16A34A;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 1.8em 0;
}
.r01-article-body .r01-expert::before {
  content: '👤 専門家コメント';
  display: block;
  font-weight: 800;
  color: #15803D;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

/* ステップボックス */
.r01-article-body .r01-step {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 10px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.r01-article-body .r01-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  color: #fff;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* チェックリスト枠 */
.r01-article-body .r01-check-list {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 1.8em 0;
}
.r01-article-body .r01-check-list ul li::before {
  content: '✅';
  color: unset;
  font-size: 0.85em;
}

/* FAQ アコーディオン */
.r01-article-body .r01-faq-item {
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.r01-article-body .r01-faq-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

.r01-article-body .r01-faq-item .r01-faq-q {
  background: #F8FAFC;
  padding: 14px 44px 14px 18px;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.r01-article-body .r01-faq-item .r01-faq-q::before {
  content: 'Q';
  min-width: 24px;
  height: 24px;
  background: #3B82F6;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.r01-article-body .r01-faq-item .r01-faq-q::after {
  content: '▼';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #94A3B8;
  transition: transform 0.25s;
}
.r01-article-body .r01-faq-item.is-open .r01-faq-q::after {
  transform: translateY(-50%) rotate(-180deg);
}

.r01-article-body .r01-faq-item .r01-faq-a {
  padding: 0 18px;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease, padding 0.32s ease;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.r01-article-body .r01-faq-item .r01-faq-a::before {
  content: 'A';
  min-width: 24px;
  height: 24px;
  background: #10B981;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.r01-article-body .r01-faq-item.is-open .r01-faq-a {
  max-height: 600px;
  padding: 14px 18px;
  border-top: 1px solid #E2E8F0;
}

/* ─────────────────────────────────────
   C案: DESIGN_BLOCK（管理画面から選択挿入）
───────────────────────────────────── */

.r01-design-block { margin: 2em 0; }

/* 警告ブロック */
.r01-design-warning {
  background: #FFF1F2;
  border: 2px solid #FDA4AF;
  border-left: 5px solid #E11D48;
  border-radius: 12px;
  padding: 20px 24px;
}
.r01-design-warning .r01-dblock-title {
  font-weight: 800;
  color: #9F1239;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.r01-design-warning p { margin: 0; color: #881337; }

/* 専門家コメントブロック */
.r01-design-expert {
  background: linear-gradient(135deg, #F0F9FF, #E0F2FE);
  border: 2px solid #7DD3FC;
  border-left: 5px solid #0284C7;
  border-radius: 12px;
  padding: 20px 24px;
}
.r01-design-expert .r01-dblock-title {
  font-weight: 800;
  color: #0C4A6E;
  font-size: 0.95rem;
  margin: 0 0 10px;
}
.r01-design-expert p { margin: 0; color: #164E63; }

/* チェックリストブロック */
.r01-design-checklist {
  background: #F0FDF4;
  border: 2px solid #86EFAC;
  border-radius: 12px;
  padding: 20px 24px;
}
.r01-design-checklist .r01-dblock-title {
  font-weight: 800;
  color: #166534;
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.r01-design-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.r01-design-checklist li {
  padding: 5px 0 5px 28px;
  position: relative;
  color: #14532D;
}
.r01-design-checklist li::before { content: '✅'; position: absolute; left: 0; font-size: 0.9em; }

/* ソフトCTAブロック */
.r01-design-soft-cta {
  background: linear-gradient(135deg, #EFF6FF 0%, #E0E7FF 100%);
  border: 2px solid #BFDBFE;
  border-radius: 14px;
  padding: 28px 32px;
  text-align: center;
}
.r01-design-soft-cta .r01-dblock-title {
  font-weight: 800;
  color: #1E40AF;
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.r01-design-soft-cta p { color: #3730A3; margin: 0 0 18px; }
.r01-design-soft-cta .r01-dblock-btn {
  display: inline-block;
  padding: 13px 30px;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99,102,241,.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.r01-design-soft-cta .r01-dblock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(99,102,241,.5);
  color: #fff !important;
}

/* ─────────────────────────────────────
   D案: 読了メタバー・目次
───────────────────────────────────── */

.r01-article-meta-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.r01-meta-item {
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 500;
}
.r01-meta-sep { color: #CBD5E1; font-size: 0.78rem; }

.r01-toc {
  background: #FAFBFF;
  border: 1.5px solid #E2E8F0;
  border-left: 4px solid #6366F1;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 2.2em;
}
.r01-toc-header {
  font-weight: 800;
  color: #1E293B;
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.r01-toc-list {
  margin: 0;
  padding-left: 1.4em;
}
.r01-toc-list li { margin: 6px 0; }
.r01-toc-list a {
  color: #4F46E5;
  text-decoration: none;
  font-size: 0.865rem;
  font-weight: 500;
  transition: color 0.15s;
}
.r01-toc-list a:hover { color: #3730A3; text-decoration: underline; }
.r01-toc-list a.is-active { color: #6366F1; font-weight: 700; }

/* ─────────────────────────────────────
   LINE誘導CTAバナー（記事内PR）
───────────────────────────────────── */

.r01-line-cta-block {
  position: relative;
  background: linear-gradient(135deg, #f0fff6 0%, #e8fdf1 60%, #dcfce7 100%);
  border: 2px solid #86efac;
  border-left: 5px solid #06C755;
  border-radius: 18px;
  padding: 24px 26px 20px;
  margin: 2em 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(6,199,85,.12);
}
/* 背景の装飾円 */
.r01-line-cta-block::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(6,199,85,.12) 0%, transparent 70%);
  right: -30px;
  top: -40px;
  pointer-events: none;
}

.r01-line-cta-pr-badge {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.68rem;
  color: #6b7280;
  background: rgba(255,255,255,.75);
  border: 1px solid #d1fae5;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.r01-line-cta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.r01-line-cta-logo {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #05A847, #06C755);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 14px rgba(6,199,85,.4);
}

.r01-line-cta-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  color: #15803d;
  margin: 0 0 3px;
  letter-spacing: 0.02em;
}

.r01-line-cta-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #14532d;
  margin: 0;
  line-height: 1.35;
}

.r01-line-cta-desc {
  font-size: 0.875rem;
  color: #166534;
  margin: 0 0 14px;
  line-height: 1.65;
}

.r01-line-cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.r01-line-cta-badges span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #15803d;
  background: rgba(255,255,255,.75);
  border: 1.5px solid #86efac;
  border-radius: 20px;
  padding: 3px 10px;
}

.r01-line-cta-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(135deg, #05A847 0%, #06C755 60%, #00E676 100%);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none !important;
  box-shadow: 0 4px 18px rgba(6,199,85,.45);
  transition: transform 0.18s, box-shadow 0.18s;
  animation: r01-line-glow 2.6s ease-in-out infinite;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.r01-line-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(6,199,85,.6);
  color: #fff !important;
  text-decoration: none !important;
  animation: none;
}
@keyframes r01-line-glow {
  0%, 100% { box-shadow: 0 4px 18px rgba(6,199,85,.45); }
  50%       { box-shadow: 0 6px 30px rgba(6,199,85,.75); }
}

.r01-line-cta-note {
  text-align: center;
  font-size: 0.72rem;
  color: #6b7280;
  margin: 10px 0 0;
}
