/*
 * 集客用の解説記事（/lp/*）のスタイル。
 * キャラ紹介ページは lp.css を使っているので、こちらは記事専用に分けている。
 * HTML は tool/build-lp-articles.mjs が生成する。
 */
:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --fg: #1d1f23;
  --muted: #646a73;
  --line: #e5e7eb;
  --soft: #f6f7f9;
  --accent: #e4002b;
  --accent-deep: #b8001f;
  --accent-soft: #fff1f3;
  --accent-line: #ffc9d2;
  --mark: #ffe6a8;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* ── ヘッダー ───────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
/* 正式ロゴ（アプリの assets/image/ic_logo_small_light.webp と同じもの） */
.brand { display: block; line-height: 0; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { font-size: 14px; font-weight: 600; text-decoration: none; color: #3a3e45; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.header-cta {
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  padding: 9px 18px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, #ff2d55, var(--accent));
  box-shadow: 0 4px 14px rgba(228, 0, 43, .28);
}

/* ── 記事の見出し部 ─────────────────────────── */
.article-head {
  background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
  border-bottom: 1px solid var(--line);
}
.article-head .inner { max-width: 1120px; margin: 0 auto; padding: 36px 20px 30px; }
.crumb { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { margin: 0 6px; opacity: .6; }
.article-head h1 {
  font-size: 34px; line-height: 1.45; font-weight: 800; letter-spacing: .01em;
  margin: 0 0 16px; max-width: 900px;
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.chip {
  display: inline-block; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--accent); padding: 2px 11px; border-radius: 999px;
}

/* ── 2カラム ───────────────────────────── */
.layout {
  max-width: 1120px; margin: 0 auto; padding: 36px 20px 64px;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start;
}
.article {
  background: var(--paper); border-radius: var(--radius);
  padding: 40px 44px 48px; box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
  min-width: 0;
}

/* アイキャッチ（CTAバナーを兼ねる） */
.eyecatch { display: block; margin: 0 0 22px; border-radius: 14px; overflow: hidden; text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.eyecatch img { display: block; width: 100%; height: auto; }
.eyecatch span { display: block; padding: 13px 16px; text-align: center; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff2d55, var(--accent)); }

.about-article { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 28px; }
.about-article b { color: var(--fg); }

/* 目次 */
.toc { background: var(--soft); border-radius: 14px; padding: 22px 26px; margin: 0 0 28px; }
.toc-title { font-weight: 800; font-size: 15px; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.4em; }
.toc li { font-size: 14.5px; margin: 4px 0; }
.toc a { text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* この記事のポイント */
.points {
  border: 1.5px solid var(--accent-line); background: var(--accent-soft);
  border-radius: 14px; padding: 20px 26px 12px; margin: 0 0 32px;
}
.points-title { color: var(--accent); font-weight: 800; font-size: 15px; margin: 0 0 6px; }
.points ul { margin: 0; padding-left: 1.2em; }
.points li { margin: 0 0 10px; }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; font-weight: 700; padding: 0 1px; }

/* 本文 */
.article p { margin: 0 0 18px; }
.article .lead { font-size: 16px; }
.article h2 {
  font-size: 23px; line-height: 1.5; font-weight: 800;
  margin: 56px 0 20px; padding: 2px 0 2px 16px;
  border-left: 5px solid var(--accent);
}
.article h3 {
  font-size: 18px; line-height: 1.55; font-weight: 800; margin: 34px 0 12px;
  padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.article ul, .article ol { padding-left: 1.4em; margin: 0 0 20px; }
.article li { margin-bottom: 8px; }
.article a:not(.btn):not(.eyecatch) { color: var(--accent-deep); text-underline-offset: 3px; }

.note {
  font-size: 13.5px; color: var(--muted); background: var(--soft);
  border-radius: 10px; padding: 12px 16px; margin: 20px 0;
}

/* 表 */
.tablewrap { overflow-x: auto; margin: 0 0 22px; border-radius: 12px; border: 1px solid var(--line); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.7; }
.tablewrap th, .tablewrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap thead th, .tablewrap tr:first-child th { background: var(--accent); color: #fff; font-weight: 700; }
.tablewrap td:first-child { font-weight: 700; background: #fafbfc; white-space: nowrap; }
.tablewrap tr:nth-child(even) td:not(:first-child) { background: #fcfcfd; }

/* キャラ写真 */
.shots { margin: 26px 0; }
.shots ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.shots li { margin: 0; }
.shots a { display: block; text-decoration: none; color: inherit; }
.shots img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #eef0f3; display: block; transition: transform .2s; }
.shots a:hover img { transform: translateY(-2px); }
.shots .cap { display: block; margin-top: 6px; font-size: 13px; line-height: 1.5; font-weight: 700; }
.shots .cap small { display: block; font-weight: 400; color: var(--muted); }
.shots figcaption, figure.chat figcaption { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* 会話のイメージ */
figure.chat { margin: 26px 0; }
.chat-box { background: #f3eff4; border-radius: 16px; padding: 20px 18px; }
.chat-stage { font-size: 12px; font-weight: 700; color: var(--accent); background: #fff; display: inline-block;
  padding: 2px 10px; border-radius: 999px; margin: 4px 0 12px; }
.msg { display: flex; gap: 10px; margin: 0 0 14px; align-items: flex-start; }
.msg img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.msg .bubble { background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 14px; font-size: 14.5px; line-height: 1.75;
  max-width: 80%; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.msg .bubble .act { color: var(--muted); }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: linear-gradient(135deg, #ff4d6d, var(--accent)); color: #fff; border-radius: 16px 4px 16px 16px; }

/* 手順 */
.steps { list-style: none; padding: 0 !important; margin: 0 0 24px; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; background: var(--soft); border-radius: 14px;
  padding: 16px 18px 16px 64px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; text-align: center; line-height: 32px; }
.steps b { display: block; font-size: 15.5px; }
.steps span { font-size: 14px; color: var(--muted); }

/* チェックリスト */
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; text-align: center; line-height: 20px; }

/* アプリ画面のキャプチャ。実機の見え方に寄せて枠と影を付ける */
.screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin: 24px 0; }
.screen { margin: 0; text-align: center; }
.screen img { display: block; width: 100%; max-width: 300px; margin: 0 auto; border: 7px solid #1d1f23; border-radius: 22px;
  background: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .14); }
.screen figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* 注意 */
.caution { border: 1.5px solid #f0c36d; background: #fffaf0; border-radius: 14px; padding: 18px 22px 6px; margin: 0 0 24px; }
.caution-title { font-weight: 800; color: #9a6400; margin: 0 0 6px; }
.caution ul { margin-bottom: 12px; }

/* 記事中のCTA */
.cta-card {
  margin: 40px 0; border-radius: 18px; padding: 28px 26px; color: #fff; text-align: center;
  background: radial-gradient(120% 140% at 0% 0%, #ff5a78 0%, var(--accent) 55%, #9d001b 100%);
  box-shadow: 0 10px 30px rgba(228, 0, 43, .25);
}
.cta-card .ttl { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.cta-card p { margin: 0 0 16px; font-size: 14px; opacity: .95; }
.btn {
  display: inline-block; background: #fff; color: var(--accent); font-weight: 800; text-decoration: none;
  padding: 13px 36px; border-radius: 999px; font-size: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.cta-card small { display: block; margin-top: 12px; font-size: 12px; opacity: .85; }

/* まとめ */
.summary { border: 2px solid var(--fg); border-radius: 14px; padding: 22px 26px 8px; margin: 0 0 24px; }
.summary ul { margin-bottom: 14px; }

/* よくある質問 */
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 44px 15px 52px; position: relative; font-weight: 700; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq .a::before {
  position: absolute; left: 16px; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 13px;
  text-align: center; line-height: 26px;
}
.faq summary::before { content: "Q"; top: 50%; transform: translateY(-50%); background: var(--accent); color: #fff; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); line-height: 1; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .a { position: relative; padding: 2px 20px 16px 52px; font-size: 14.5px; color: #40454d; }
.faq .a::before { content: "A"; top: 0; background: var(--accent-soft); color: var(--accent); }

/* 関連記事 */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 8px; padding: 0 !important; list-style: none; }
.related li { margin: 0; }
.related a { display: block; text-decoration: none; color: inherit !important; background: var(--soft); border-radius: 12px; overflow: hidden; height: 100%; }
.related img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.related span { display: block; padding: 10px 12px 12px; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.related a:hover span { color: var(--accent); }

/* ── サイドバー ───────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 28px; align-self: stretch; }
/* サイドバー全体を追従させると、画面より長い分が最後まで見えなくなる。末尾のCTAだけ追従させる */
.side-sticky { position: sticky; top: 88px; }
.side-cta.compact { padding: 20px 20px; }
.side-cta.compact .ttl { font-size: 16px; font-weight: 800; margin: 0 0 12px; line-height: 1.5; }
.side-label { font-size: 11px; color: var(--muted); margin: 0 0 6px; letter-spacing: .08em; }
.side-cta {
  border-radius: 20px; padding: 24px 22px; color: #fff;
  background: radial-gradient(130% 120% at 0% 0%, #ff6b86 0%, var(--accent) 50%, #8f0019 100%);
  box-shadow: 0 10px 28px rgba(228, 0, 43, .22);
}
.side-cta .tag { font-size: 12px; font-weight: 700; opacity: .9; }
/* ロゴの「Luv」は赤なので、赤いカードの上に直接置くと読めない。白い台に載せる */
.side-cta .logo { background: #fff; border-radius: 12px; padding: 12px 16px; margin: 10px 0 14px; line-height: 0; text-align: center; }
.side-cta .logo img { height: 52px; width: auto; }
.side-cta p { font-size: 13.5px; line-height: 1.8; margin: 0 0 18px; opacity: .95; }
.side-cta .btn { display: block; text-align: center; padding: 12px 10px; font-size: 15px; }
.side-cta small { display: block; text-align: center; font-size: 11.5px; margin-top: 10px; opacity: .85; }
.side-title { font-size: 15px; font-weight: 800; margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--accent); line-height: 1.4; }
.side-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-posts a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; text-decoration: none; }
.side-posts img { width: 96px; height: 64px; object-fit: cover; object-position: top; border-radius: 10px; display: block; }
.side-posts span { font-size: 13px; font-weight: 700; line-height: 1.55; }
.side-posts a:hover span { color: var(--accent); }
.side-chars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-chars a { text-decoration: none; display: block; }
.side-chars img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.side-chars span { display: block; font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.side-more { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* ── フッター ───────────────────────────── */
.site-footer { background: #1d1f23; color: #b9bec6; font-size: 13px; }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 36px 20px 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.site-footer a { color: #d5d9df; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 4px 0; }
.footer-logo { display: inline-block; line-height: 0; margin-bottom: 20px; }
.footer-logo img { height: 40px; width: auto; }

/* スマホ下部の固定ボタン。PC ではサイドバーに同じものがある */
.bottom-cta { display: none; }

@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .side-sticky { display: none; }
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .site-header .inner { height: 56px; padding: 0 16px; }
  .brand img { height: 34px; }
  .article-head .inner { padding: 22px 16px 20px; }
  .article-head h1 { font-size: 23px; }
  .layout { padding: 16px 0 96px; gap: 24px; }
  .article { border-radius: 0; padding: 24px 16px 32px; }
  .article h2 { font-size: 20px; margin-top: 44px; }
  .article h3 { font-size: 16.5px; }
  .toc, .points, .summary { padding-left: 18px; padding-right: 18px; }
  .shots ul { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: 1fr; }
  .related a { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
  .related img { height: 100%; aspect-ratio: auto; min-height: 72px; }
  .sidebar { grid-template-columns: 1fr; padding: 0 16px; }
  .tablewrap td:first-child { white-space: normal; }
  /* 1列目が1〜2文字ずつ折り返して読みにくくなるのを防ぐ */
  .tablewrap tr > :first-child { min-width: 6.5em; }
  .tablewrap th, .tablewrap td { padding: 10px 11px; }
  .bottom-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  }
  .bottom-cta a { display: block; text-align: center; padding: 12px; border-radius: 999px; font-weight: 800; color: #fff;
    text-decoration: none; background: linear-gradient(135deg, #ff2d55, var(--accent)); }
}
