/* はじめての方へ：ガイドのページの部品（v1.2.0）。ガイドのページだけで読む
 * 読みやすさ優先：章は枠で囲まず、見出しの下線で区切って記事として流す。目立たせる所（人気の章・くわしい記事）だけ色の面にする。 */

.art--guide {
	--t-red: #ffe3e6; --f-red: #d4384a;
	--t-yel: #fff2c2; --f-yel: #866200;
	--t-blu: #dff3fc; --f-blu: #1c759e;
	--t-grn: #dcf6e8; --f-grn: #1d8150;
	--t-pur: #ece5ff; --f-pur: #6347cc;
	--t-org: #ffe8cf; --f-org: #a85500;
	--t-gry: #f2ece4; --f-gry: #5a5466;
	--txt: #3a3646;
}
.art--guide .entry { font-size: 16px; line-height: 1.9; color: var(--txt); margin-top: 14px; }
.art--guide .entry h2[id] { scroll-margin-top: 84px; }

/* ほかのプラグインの見出し・アイコンの飾りを受けない */
.art--guide .entry .sg-h, .art--guide .entry .sg-h::before, .art--guide .entry .sg-h::after { border: 0; background: none; box-shadow: none; padding: 0; }
.art--guide .entry .sg-h::before, .art--guide .entry .sg-h::after { content: none; display: none; }
.art--guide .sg-i { flex: none; display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 11px; line-height: 0 !important; vertical-align: middle; background: var(--t-red); color: var(--f-red); }
.art--guide .sg-i svg { display: block; width: 21px !important; height: 21px !important; margin: 0 !important; padding: 0; flex: none; }
.sg-i--yel { background: var(--t-yel) !important; color: var(--f-yel) !important; }
.sg-i--blu { background: var(--t-blu) !important; color: var(--f-blu) !important; }
.sg-i--grn { background: var(--t-grn) !important; color: var(--f-grn) !important; }
.sg-i--pur { background: var(--t-pur) !important; color: var(--f-pur) !important; }
.sg-i--org { background: var(--t-org) !important; color: var(--f-org) !important; }
.sg-i--gry { background: var(--t-gry) !important; color: var(--f-gry) !important; }
.sg-i--hot { background: var(--red) !important; color: #fff !important; }

/* 吹き出し：イラストの下に名前 */
.sg-talk { display: flex; gap: 14px; align-items: flex-start; margin: 20px 0 0; }
.sg-who-w { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; }
.sg-face { width: 56px; height: 56px; border-radius: 50%; background: var(--grn); color: #fff; font-weight: 900; font-size: 20px; display: grid; place-items: center; border: 2.5px solid var(--ink); overflow: hidden; }
.sg-face img { width: 100%; height: 100%; object-fit: cover; }
.sg-face--img { width: 72px; height: 72px; border: 0; border-radius: 0; background: none; }
.sg-face--img img { object-fit: contain; }
.sg-who { font-size: 11.5px; font-weight: 700; color: var(--sub); line-height: 1.3; }
.sg-say { position: relative; flex: 1; min-width: 0; align-self: center; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 10px 16px; font-size: 15px; line-height: 1.8; }
.sg-say::before { content: ""; position: absolute; left: -9px; top: 22px; width: 14px; height: 14px; background: #fff; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.art--guide .entry .sg-say p { margin: 0; }
.art--guide .entry .sg-say p + p { margin-top: 2px; }
.sg-talk--big .sg-who-w { width: 104px; }
.sg-talk--big .sg-face--img { width: 104px; height: 104px; }
.sg-talk--big .sg-say { font-size: 16px; font-weight: 700; }

/* 最初の枠 */
.sg-hero { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px 18px; margin: 0 0 24px; }
.sg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sg-tag { font-size: 12px; font-weight: 700; line-height: 1.5; padding: 3px 10px; border-radius: 999px; background: var(--t-red); color: var(--f-red); }
.sg-tag--date { background: var(--t-gry); color: var(--f-gry); }
.art--guide .entry .sg-sub { font-weight: 700; color: var(--sub); margin: 0; line-height: 1.7; }
.sg-hero .sg-talk { margin-top: 14px; }

/* 目次：番号つきの文字のリスト */
.sg-toc { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px 10px; margin: 0 0 24px; }
.art--guide .entry .sg-toc-h { margin: 0 0 4px; font-size: 15px; font-weight: 900; color: var(--ink); }
.art--guide .entry .sg-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; column-count: 2; column-gap: 28px; }
.sg-toc li { counter-increment: toc; break-inside: avoid; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; line-height: 1.5; }
.sg-toc li::before { content: counter(toc); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--t-gry); color: var(--f-gry); font-size: 12px; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.sg-toc a { color: var(--ink); font-weight: 700; text-decoration: none; }
.sg-toc a:hover { color: var(--f-red); text-decoration: underline; text-underline-offset: 3px; }
.sg-toc li.is-hot::before { background: var(--red); color: #fff; }
.sg-toc-hot { flex: none; font-size: 11px; font-weight: 900; color: #fff; background: var(--red); border-radius: 6px; padding: 0 6px; line-height: 1.6; }

/* 章：枠で囲まず、見出しの下線で区切る */
.sg-sec { margin: 40px 0 0; }
.art--guide .entry .sg-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 0 0 10px; border-bottom: 2px solid var(--line); font-size: 20px; font-weight: 900; line-height: 1.4; color: var(--ink); }
.art--guide .entry .sg-sec p { margin: 0 0 14px; }
.art--guide .entry .sg-sec > :last-child { margin-bottom: 0; }
/* 目立たせたい章（hot）だけ色の面 */
.sg-sec--hot { background: #fff6f7; border: 2px solid var(--red); border-radius: 20px; padding: 18px 18px 20px; }
.art--guide .entry .sg-sec--hot .sg-h { border-bottom-color: #ffd3d8; }

.art--guide .entry .sg-point { background: #fff4e2; border-radius: 12px; padding: 10px 14px; font-size: 15px; font-weight: 700; line-height: 1.7; color: #5a3f1c; }
.sg-point b { color: var(--f-org); }

.sg-box { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.75; margin: 16px 0; }
.art--guide .sg-box > svg { flex: none; width: 22px !important; height: 22px !important; margin: 3px 0 0 !important; }
.sg-box--tip { background: #fff4e2; color: #5a3f1c; }
.sg-box--tip > svg { color: var(--f-org); }
.sg-box--warn { background: #fff0f1; color: #6b2730; }
.sg-box--warn > svg { color: var(--f-red); }
.sg-box-t { display: block; }
.art--guide .entry .sg-box p { margin: 0; }

/* 手順：縦に読む */
.art--guide .entry .sg-steps { list-style: none; counter-reset: sgs; margin: 0 0 14px; padding: 0; display: grid; gap: 0; }
.sg-steps li { counter-increment: sgs; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 10px 0 14px; }
.sg-steps li::before { content: counter(sgs); grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--f-org); color: #fff; font-weight: 900; font-size: 15px; display: grid; place-items: center; position: relative; z-index: 1; }
.sg-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 44px; bottom: -8px; width: 2px; background: var(--t-org); }
.sg-steps b { font-size: 16px; line-height: 1.5; color: var(--ink); padding-top: 4px; }
.sg-steps span { font-size: 15px; line-height: 1.75; color: var(--txt); }

.art--guide .entry .sg-checks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.sg-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.8; }
.art--guide .sg-checks svg { flex: none; width: 20px !important; height: 20px !important; margin: 5px 0 0 !important; color: var(--f-grn); vertical-align: baseline; }

.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.sg-chips span { font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--t-pur); color: var(--f-pur); }
.sg-chips--red span { background: var(--t-red); color: var(--f-red); }
.sg-chips--blu span { background: var(--t-blu); color: var(--f-blu); }
.sg-chips--grn span { background: var(--t-grn); color: var(--f-grn); }
.sg-chips--org span { background: var(--t-org); color: var(--f-org); }

.sg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 14px; }
.sg-cols > div { background: var(--bg); border-radius: 14px; padding: 12px 16px; }
.sg-cols b { display: block; font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.art--guide .entry .sg-cols ul { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.8; }

.sg-faq { display: grid; gap: 0; }
.sg-faq-i { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.sg-faq-i:first-child { padding-top: 0; }
.art--guide .entry .sg-faq p { margin: 0; }
.sg-faq-q { font-weight: 900; color: var(--ink); }
.sg-faq-q::before { content: "Q."; color: var(--f-red); font-weight: 900; margin-right: 6px; }
.art--guide .entry .sg-faq-a { font-size: 15px; line-height: 1.8; margin-top: 4px; }
.sg-faq-a::before { content: "A."; color: var(--f-blu); font-weight: 900; margin-right: 6px; }

.sg-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; margin: 0; }
.sg-terms > div { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sg-terms dt { font-weight: 900; color: var(--f-blu); }
.sg-terms dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.7; }

/* くわしく解説した記事：色の面で目立たせる */
.sg-picks { background: #fff4c7; border: 2.5px solid var(--ink); border-radius: 20px; padding: 16px; margin: 0 0 24px; }
.art--guide .entry .sg-picks-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.sg-picks-h::before { content: "📚"; font-size: 20px; }
.sg-picks-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.sg-pick { display: flex; gap: 12px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 12px 14px; box-shadow: 0 3px 0 rgba(0,0,0,.12); color: var(--ink); text-decoration: none !important; transition: transform .1s; }
.sg-pick:hover { transform: translateY(-2px); }
.sg-pick--big { grid-column: 1 / -1; padding: 16px; gap: 16px; border-color: var(--red); border-width: 2.5px; }
.art--guide .sg-pick-i { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; }
.art--guide .sg-pick-i svg { width: 26px !important; height: 26px !important; }
.art--guide .sg-pick--big .sg-pick-i { width: 92px; height: 92px; border-radius: 16px; }
.art--guide .sg-pick--big .sg-pick-i svg { width: 42px !important; height: 42px !important; }
.sg-pick-i--img { background: var(--bg) !important; }
.sg-pick-i img { width: 100%; height: 100%; object-fit: cover; }
.sg-pick-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sg-badge { align-self: flex-start; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; line-height: 1.5; padding: 2px 10px; border-radius: 999px; }
.sg-pick-t { font-weight: 900; font-size: 15px; line-height: 1.5; }
.sg-pick--big .sg-pick-t { font-size: 19px; }
.sg-pick-s { font-size: 13px; line-height: 1.6; color: var(--sub); }
.sg-go { flex: none; font-size: 24px; font-weight: 900; color: var(--red); }
.sg-picks .admin-note { margin: 0; }

/* 姉妹サイトのカード */
.sg-sister { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1.5px dashed #d9c4ae; border-radius: 16px; padding: 12px; margin: 18px 0 0; color: var(--ink); text-decoration: none !important; }
.sg-sister:hover { border-color: var(--red); }
.sg-sister-img { flex: none; width: 160px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--t-yel); color: var(--f-yel); }
.sg-sister-img img { width: 100%; height: 100%; object-fit: cover; }
.art--guide .sg-sister-img svg { width: 30px !important; height: 30px !important; }
.sg-sister-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-sister-b small { font-size: 12px; font-weight: 700; color: var(--sub); }
.sg-sister-b b { font-size: 15.5px; line-height: 1.5; }
.sg-sister-d { font-size: 13px; line-height: 1.6; color: var(--sub); }

/* ボタン */
.art--guide .entry .sg-cta { text-align: center; margin: 18px 0 0; }
.sg-btn { display: inline-block; min-width: 260px; background: var(--red); color: #fff !important; font: inherit; font-weight: 900; font-size: 15.5px; border-radius: 999px; padding: 13px 22px; border: 2.5px solid var(--ink); box-shadow: 0 4px 0 rgba(0,0,0,.15); text-decoration: none !important; }
.sg-btn::after { content: " ›"; }

@media (max-width: 600px) {
	.art--guide .entry { font-size: 15.5px; }
	.art--guide .entry .sg-toc ol { column-count: 1; }
	.sg-toc { padding: 12px 16px 8px; }
	.sg-sec { margin-top: 34px; }
	.art--guide .entry .sg-h { font-size: 18px; }
	.sg-sec--hot { padding: 16px 14px 18px; }
	.sg-who-w { width: 64px; }
	.sg-face--img { width: 60px; height: 60px; }
	.sg-talk--big .sg-who-w { width: 84px; }
	.sg-talk--big .sg-face--img { width: 84px; height: 84px; }
	.sg-talk--big .sg-say { font-size: 15px; }
	.sg-picks { padding: 14px 12px; }
	.sg-pick--big { flex-wrap: wrap; }
	.art--guide .sg-pick--big .sg-pick-i { width: 64px; height: 64px; }
	.art--guide .sg-pick--big .sg-pick-i svg { width: 32px !important; height: 32px !important; }
	.sg-sister { flex-direction: column; align-items: stretch; }
	.sg-sister-img { width: 100%; }
	.sg-sister .sg-go { display: none; }
}

/* =========================================================
 * v1.2.1：個別ページを記事として読む（見出し → 文章 → 画面の画像）
 * ======================================================= */
.art--guide .entry > p { margin: 0 0 18px; }
.art--guide .entry h2:not(.sg-h) { display: block; margin: 44px 0 16px; padding: 0 0 10px; border: 0; border-bottom: 2px solid var(--line); background: none; box-shadow: none; font-size: 21px; font-weight: 900; line-height: 1.45; color: var(--ink); }
.art--guide .entry h2:not(.sg-h)::before, .art--guide .entry h2:not(.sg-h)::after { content: none; display: none; }
.art--guide .entry h3 { margin: 30px 0 10px; padding: 0 0 0 12px; border: 0; border-left: 4px solid var(--yel); background: none; font-size: 17.5px; font-weight: 900; line-height: 1.5; color: var(--ink); }
.art--guide .entry h3::before, .art--guide .entry h3::after { content: none; display: none; }
.art--guide .entry img:not(.sg-face img):not(.sg-sister-img img):not(.sg-pick-i img) { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.art--guide .entry figure { margin: 0 0 22px; }
.art--guide .entry figcaption { margin-top: 6px; font-size: 12.5px; color: var(--sub); text-align: center; }

/* この記事でわかること */
.sg-learn { background: #fff4e2; border-radius: 14px; padding: 14px 18px; margin: 0 0 22px; }
.art--guide .entry .sg-learn-h { margin: 0 0 4px; font-weight: 900; color: var(--f-org); font-size: 15px; }
.art--guide .entry .sg-learn ul { margin: 0; padding-left: 1.2em; font-size: 15.5px; line-height: 1.9; }

/* ほかのガイドへの案内 */
.sg-gl { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin: 18px 0; padding: 12px 16px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.1); color: var(--ink) !important; text-decoration: none !important; }
.sg-gl small { flex-basis: 100%; font-size: 12px; font-weight: 700; color: var(--sub); }
.sg-gl b { flex: 1; min-width: 0; font-size: 15.5px; line-height: 1.5; }
.sg-gl:hover { border-color: var(--red); }
.sg-gl + .sg-gl { margin-top: -8px; }
