/* 取りラボ 解説記事。LP(../lp/lp.css)と同じ配色(生成り+朱)。インラインのスタイルは使わない(CSP の style-src 'self')。 */
:root {
  --bg: #f5f3ee; --surface: #ffffff; --surface-2: #ece8df; --text: #2a241c; --muted: #655c4e;
  --primary: #a8452f; --primary-dark: #8a3623; --on-primary: #ffffff; --primary-soft: #f6e8e3;
  --green: #2f6b4f; --green-soft: #e6f1ea; --border: #ded7c9; --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120e; --surface: #201c17; --surface-2: #2b2620; --text: #ece6da; --muted: #a69b8c;
    --primary: #d8694f; --primary-dark: #e07b63; --on-primary: #1a0f0b; --primary-soft: #3a221b;
    --green: #6fb592; --green-soft: #1d2f26; --border: #3a342c; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.9;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー・フッター(LPと同じ) */
.hd { border-bottom: 1px solid var(--border); background: var(--surface); }
.hd .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.hd__brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.hd__brand img { width: 28px; height: 28px; border-radius: 7px; }
.hd__brand small { font-weight: 500; color: var(--muted); font-size: .75rem; margin-right: 4px; }
.hd__link { font-size: .875rem; font-weight: 700; text-decoration: none; padding: 8px 0; }
.ft { padding: 28px 0 40px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 56px; }
.ft .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.ft nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft a { color: var(--muted); padding: 6px 0; }
.ft__small { width: 100%; font-size: .8125rem; line-height: 1.7; }

/* 記事 */
.art { padding: 20px 0 0; }
.crumb ol { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.crumb li + li::before { content: "›"; margin-right: 8px; }
.crumb a { color: var(--muted); }
.prose { margin-top: 18px; }
.eyebrow { font-size: .8125rem; font-weight: 800; color: var(--green); letter-spacing: .06em; }
.prose h1 { font-size: clamp(1.55rem, 5.2vw, 2.1rem); line-height: 1.4; font-weight: 900; margin-top: 4px; }
.lead { margin-top: 18px; }
.lead p + p, .prose p + p { margin-top: 1em; }
.prose h2 { font-size: clamp(1.25rem, 4vw, 1.5rem); line-height: 1.5; font-weight: 900; margin-top: 2.6em; padding-top: .9em; border-top: 3px solid var(--primary); scroll-margin-top: 16px; }
.prose h3 { font-size: 1.0625rem; line-height: 1.6; font-weight: 800; margin-top: 1.8em; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul, .prose h2 + ol, .prose h3 + ol { margin-top: .9em; }
.prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p { margin-top: 1em; }
.prose ul li { position: relative; padding-left: 1.3em; margin-top: .35em; }
.prose ul li::before { content: ""; position: absolute; left: .3em; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 2em; margin-top: .5em; counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .35em; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; font-size: .8rem; display: grid; place-items: center; line-height: 1; }
.prose strong { font-weight: 800; }

/* 目次 */
.toc { margin-top: 28px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.toc__title { font-weight: 800; font-size: .9375rem; }
.toc ol { margin-top: 8px; counter-reset: t; }
.toc li { counter-increment: t; margin-top: 4px; padding-left: 1.8em; position: relative; line-height: 1.7; }
.toc li::before { content: counter(t) "."; position: absolute; left: 0; color: var(--muted); font-weight: 700; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* 画像 */
.shot { margin: 1.6em auto 0; max-width: 300px; text-align: center; }
.shot img { border-radius: 14px; border: 1px solid var(--border); margin: 0 auto; }
.shot figcaption { margin-top: 8px; font-size: .8125rem; color: var(--muted); line-height: 1.6; }

/* 補足・ポイント・比較 */
.note, .point { margin-top: 1.4em; padding: 14px 16px; border-radius: var(--radius); font-size: .9375rem; line-height: 1.8; }
.note { background: var(--surface-2); }
.point { background: var(--green-soft); }
.note p + p, .point p + p { margin-top: .6em; }
.note__t, .point__t { display: block; font-weight: 800; margin-bottom: 2px; }
.cmp { margin-top: 1.4em; display: grid; gap: 12px; }
.cmp > div { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cmp h3 { margin: 0; font-size: .9375rem; color: var(--primary-dark); }
.cmp p { margin-top: .4em !important; font-size: .9375rem; line-height: 1.8; }
.cmp ul { margin-top: .4em; font-size: .9375rem; }
@media (min-width: 720px) { .cmp { grid-template-columns: 1fr 1fr; } }

/* CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 28px;
  background: var(--primary); color: var(--on-primary); border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 1.05rem; box-shadow: 0 4px 14px rgba(168, 69, 47, .35);
}
.btn:hover { background: var(--primary-dark); }
.cta { margin-top: 48px; padding: 28px 20px; background: var(--primary-soft); border-radius: var(--radius); text-align: center; }
.cta__lead { font-weight: 800; line-height: 1.7; margin-bottom: 14px; }
.cta__note { margin-top: 10px; font-size: .875rem; color: var(--muted); font-weight: 700; }
.cta__more { margin-top: 10px; font-size: .9375rem; }

/* 関連記事 */
.related { margin-top: 40px; }
.related h2 { font-size: 1.125rem; font-weight: 900; }
.related ul { margin-top: 10px; }
.related li { margin-top: 8px; }
.related li a { display: block; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font-weight: 700; line-height: 1.6; }
.related li a:hover { border-color: var(--primary); }
.related p, .related-only { margin-top: 14px; font-size: .9375rem; }
.related-only { margin-top: 24px; }

/* 記事一覧 */
.idx { margin-top: 36px; }
.idx h2 { font-size: 1.25rem; font-weight: 900; border-top: 3px solid var(--primary); padding-top: .7em; }
.idx__lead { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.idx__list { margin-top: 12px; }
.idx__list li { margin-top: 10px; }
.idx__list a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.idx__list a:hover { border-color: var(--primary); }
.idx__list strong { display: block; font-weight: 800; line-height: 1.6; color: var(--primary-dark); }
.idx__list span { display: block; margin-top: 4px; font-size: .875rem; color: var(--muted); line-height: 1.7; }
