/* tools/enhance.mjs が足す要素の見た目。article.css は aio-writer が公開のたびに書き直すので、こちらに分けている */
.doc-store-lead {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--doc-surface); border: 1px solid var(--doc-line); border-radius: 12px;
  padding: 14px 18px; margin: 0 0 24px;
}
.doc-store-lead img { width: 48px; height: 48px; border-radius: 22%; flex-shrink: 0; }
.doc-store-lead-text { flex: 1 1 200px; min-width: 0; }
.doc-store-lead-text p { margin: 0; font-size: 14px; color: var(--doc-muted); line-height: 1.6; }
.doc-store-lead-text .doc-store-lead-name { font-size: 16px; font-weight: 700; color: var(--doc-ink); }
.doc-store-lead-button {
  display: inline-block; background: var(--doc-accent); color: var(--doc-on-accent); font-weight: 700;
  text-decoration: none; padding: 10px 20px; border-radius: 999px; white-space: nowrap; font-size: 15px;
}
.doc-related { margin-top: 48px; }
.doc-related h2 { font-size: 22px; padding-top: 18px; border-top: 1px solid var(--doc-line); }
.doc-related-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.doc-related .doc-card h3 { font-size: 16px; margin: 4px 0 8px; line-height: 1.6; }
.doc-related .doc-card p:last-child {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 600px) {
  .doc-store-lead-button { width: 100%; text-align: center; }
}
/* 比較表（.doc-compare）。スマホでは 1 アプリ 1 枚のカードにして、横に広がらないようにする */
.doc-body .doc-compare { font-size: 14px; line-height: 1.7; }
.doc-body .doc-compare .is-own th, .doc-body .doc-compare .is-own td { background: color-mix(in srgb, var(--doc-accent) 10%, var(--doc-surface)); }
.doc-body .doc-compare .is-own th { color: var(--doc-accent-dark); }
.doc-body a.doc-store-lead-button { color: var(--doc-on-accent); }
@media (max-width: 700px) {
  .doc-body .doc-compare, .doc-body .doc-compare tbody, .doc-body .doc-compare tr,
  .doc-body .doc-compare td, .doc-body .doc-compare tbody th { display: block; width: 100%; }
  .doc-body .doc-compare thead { display: none; }
  .doc-body .doc-compare tr {
    border: 1px solid var(--doc-line); border-radius: 12px; overflow: hidden;
    margin: 0 0 14px; background: var(--doc-surface);
  }
  .doc-body .doc-compare .is-own { border: 2px solid var(--doc-accent); }
  .doc-body .doc-compare tbody th { border: 0; font-size: 16px; padding: 10px 14px; }
  .doc-body .doc-compare td { display: grid; grid-template-columns: 8.2em 1fr; gap: 10px; border: 0; border-top: 1px solid var(--doc-line); padding: 8px 14px; }
  .doc-body .doc-compare td::before { content: attr(data-label); color: var(--doc-muted); font-size: 12px; line-height: 2; }
}
/* 比較記事（LP）の部品 */
.lp-points { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0 0 10px; }
.lp-points li { background: var(--doc-surface); border: 1px solid var(--doc-line); border-radius: 14px; padding: 14px 12px; text-align: center; line-height: 1.5; }
.lp-points b { display: block; color: var(--doc-accent-dark); font-size: 16px; }
.lp-points span { font-size: 12px; color: var(--doc-muted); }
.lp-note, .doc-body .lp-note { font-size: 12px; line-height: 1.7; color: var(--doc-muted); margin: 0 0 24px; }
.lp-shot { margin: 8px auto 24px; max-width: 280px; }
.lp-shot img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--doc-line); }
.doc-body .lp-cta { text-align: center; margin: 24px 0; }
@media (max-width: 640px) { .lp-points { grid-template-columns: 1fr 1fr; } .lp-shot { max-width: 240px; } }
.doc-body .lp-cta .doc-store-lead-button { display: block; width: 100%; max-width: 420px; margin: 0 auto; white-space: normal; text-align: center; }
.lp-plan { border: 1px solid var(--doc-line); border-radius: 16px; background: var(--doc-surface); padding: 16px 18px; margin: 0 0 12px; }
.lp-plan.is-best { border: 2px solid var(--doc-accent); background: var(--doc-soft); }
.doc-body .lp-plan p { margin: 0; line-height: 1.7; }
.lp-plan-name { font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-off { background: var(--doc-accent); color: var(--doc-on-accent); font-size: 15px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.lp-plan-price b { font-size: 30px; color: var(--doc-accent-dark); margin-left: 6px; }
.lp-plan:not(.is-best) .lp-plan-price b { font-size: 22px; color: var(--doc-ink); }
.lp-plan-detail { font-size: 14px; }
.doc-body .lp-plan-free { text-align: center; font-size: 14px; }
.lp-plan-free b { font-size: 18px; color: var(--doc-accent-dark); margin-left: 4px; }
