/* 移したあとの細かい直し（最後に読む） */

/* ---------------------------------------------------------------- 目次
   2026-11-20 占い調査団の目次の形（夜空の帯・金の CONTENTS・金の 01・点線）に、電話占いらしさを少し足したもの
   - 帯の右の絵：画面に金の月が映ったスマホと、そこから出る吹き出し（icons/toc-call.svg）
   - 見出し3の印：吹き出し（icons/toc-bubble.svg）
   wp.css（SWELL の .p-toc.-double など）より後に読むので、同じ強さの書き方で上書きする。
   目次は全ページ .p-toc.-double（build.py の build_toc が作る） */
.p-toc.-double { --toc-gold: #e2c27a; --toc-line: #ddd;
  padding: 0; border: 1px solid var(--toc-line); border-radius: 10px; overflow: hidden; background: #fff; font-size: .95em; line-height: 1.6; }

.p-toc.-double .p-toc__ttl { display: block; margin: 0; padding: 14px 128px 12px 20px; color: #fff; font-size: 18px; font-weight: bold; line-height: 1.4; text-align: left;
  background: url("icons/toc-call.svg") right 12px center / 104px 52px no-repeat, linear-gradient(120deg, #1e0638 0%, #3b0f6b 60%, #5a2a8c 100%);
  border-bottom: 3px solid var(--toc-gold); }
.p-toc.-double .p-toc__ttl::before { content: "CONTENTS"; display: block; margin: 0 0 2px; padding: 0; font-family: inherit; font-size: 12px; font-weight: bold; letter-spacing: .12em; color: var(--toc-gold); vertical-align: baseline; }

.p-toc.-double .p-toc__list { counter-reset: toc; list-style: none; margin: 0; padding: 4px 20px 12px; }
.p-toc.-double .p-toc__list > .p-toc__item { counter-increment: toc; margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--toc-line); }
.p-toc.-double .p-toc__list > .p-toc__item:last-child { border-bottom: 0; }
.p-toc.-double .p-toc__list > .p-toc__item > .p-toc__link { display: grid; grid-template-columns: 2.2em 1fr; font-weight: bold; line-height: 1.5; }
.p-toc.-double .p-toc__list > .p-toc__item > .p-toc__link::before { content: counter(toc, decimal-leading-zero); color: #b8902f; font-weight: bold; }

.p-toc.-double .p-toc__childList { list-style: none; margin: 6px 0 0; padding: 0 0 0 2.2em; font-size: .93em; }
.p-toc.-double .p-toc__childList .p-toc__item { margin: 0; padding: 0; }
.p-toc.-double .p-toc__childList .p-toc__link { position: relative; display: block; padding: 4px 0 4px 18px; font-weight: normal; line-height: 1.5; }
.p-toc.-double .p-toc__childList .p-toc__link::before { content: ""; position: absolute; left: 0; top: .6em; width: 11px; height: 11px; background: #9731c8;
  -webkit-mask: url("icons/toc-bubble.svg") center / contain no-repeat; mask: url("icons/toc-bubble.svg") center / contain no-repeat; }

.p-toc.-double .p-toc__link { color: #333; text-decoration: none; }
.p-toc.-double .p-toc__link:hover { opacity: 1; color: #9731c8; }

/* 「もっと見る」 */
.p-toc.-double[data-toc-more]:not(.is-open) .p-toc__list { max-height: 340px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.p-toc.-double .p-toc__expandBtn { display: block; width: calc(100% - 40px); min-width: 0; margin: 0 20px 16px; padding: 9px; border: 1px solid var(--toc-line); border-radius: 6px; box-shadow: none; background: #fff; color: var(--color_main, #2c0751); font-size: 14px; line-height: 1.5; }
.p-toc.-double.is-open .p-toc__expandBtn { margin-top: 4px; }
.p-toc.-double .p-toc__expandBtn::before, .p-toc.-double .p-toc__expandBtn::after { display: none; }
@media (hover: hover) {
  .p-toc.-double .p-toc__expandBtn:hover { border-color: var(--color_main, #2c0751); box-shadow: none; }
}

/* スマホ：帯の絵を少し小さく */
@media (max-width: 599px) {
  .p-toc.-double .p-toc__ttl { padding-right: 104px; background-position: right 8px center, 0 0; background-size: 88px 44px, auto; }
  .p-toc.-double .p-toc__list { padding: 4px 16px 12px; }
  .p-toc.-double .p-toc__expandBtn { width: calc(100% - 32px); margin: 0 16px 14px; }
}

/* ---------------------------------------------------------------- 見出し（h2〜h5）
   2026-11-20 目次とそろえる：夜空の紫・金・スマホと吹き出し。
   本文の直下にあるふつうの見出しだけを変える。囲み（cap_box など）の中の見出し、記事ごとの特別な形
   （is-style-st-heading-custom-… ・is-style-section_ttl など）、SWELL の部品の見出しは元のまま。
   wp.css の .post_content hN:where(…)::before（h2 の線・h3 の下線）もここで消す。 */
.post_content { counter-reset: sec; }
.post_content > h2:not([class*="is-style-"]:not(.is-style-default)):not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title):not(.swl-fz):not([style*="background"]) {
  --gold: #e2c27a;
  counter-increment: sec; overflow: hidden;
  padding: 16px 116px 14px 18px; border-radius: 10px; border: 0; border-bottom: 3px solid var(--gold); color: #fff; line-height: 1.5; letter-spacing: .03em;
  background: url("icons/h2-call.svg") right 10px center / 104px 52px no-repeat, linear-gradient(120deg, #1e0638 0%, #3b0f6b 60%, #5a2a8c 100%);
}
.post_content > h2:not([class*="is-style-"]:not(.is-style-default)):not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title):not(.swl-fz):not([style*="background"])::before {
  content: "SECTION " counter(sec, decimal-leading-zero); position: static; display: block; width: auto; height: auto; margin: 0 0 4px; border: 0;
  font-size: 12px; font-weight: bold; letter-spacing: .12em; color: var(--gold); pointer-events: none;
}
.post_content > h2:not([class*="is-style-"]:not(.is-style-default)):not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title):not(.swl-fz):not([style*="background"])::after { content: none; }
.post_content > h2.has-text-align-center:not([class*="is-style-"]:not(.is-style-default)) { padding-left: 18px; padding-right: 18px; background-position: right 8px top 6px, 0 0; background-size: 72px 36px, auto; }

.post_content > h3:not([class*="is-style-"]:not(.is-style-default)):not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title):not(.swl-fz):not([style*="background"]) {
  padding: 10px 14px 10px 42px; background: #f3eff8; border: 0; border-left: 4px solid var(--color_main, #2c0751); border-radius: 0 8px 8px 0; line-height: 1.5;
}
.post_content > h3:not([class*="is-style-"]:not(.is-style-default)):not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title):not(.swl-fz):not([style*="background"])::before {
  content: ""; position: absolute; left: 14px; top: 50%; bottom: auto; width: 18px; height: 18px; margin-top: -9px; border: 0; background: #9731c8;
  -webkit-mask: url("icons/toc-bubble.svg") center / contain no-repeat; mask: url("icons/toc-bubble.svg") center / contain no-repeat;
}

.post_content > h4:not([class*="is-style-"]):not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title):not(.swl-fz) {
  padding: 0 0 .35em; border: 0; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--color_main, #2c0751), #e2c27a 55%, transparent) 1; line-height: 1.5;
}
.post_content > h4:not([class*="is-style-"]):not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title):not(.swl-fz)::before {
  content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .55em; border-radius: 50%; background: #e2c27a; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--color_main, #2c0751); vertical-align: .12em;
}

.post_content > h5:not([class*="is-style-"]):not([class^="swell-block-"]) { margin: 2em 0 .8em; font-size: 1em; line-height: 1.5; color: var(--color_main, #2c0751); }
.post_content > h5:not([class*="is-style-"]):not([class^="swell-block-"])::before { content: "―"; margin-right: .35em; color: #e2c27a; }

/* ---------------------------------------------------------------- リスト
   ふつうのリスト（wp-block-list で is-style なし・本文の直下の class なし）：行頭を吹き出しに／番号はダイヤルのボタン風の丸に
   チェックのリスト（is-style-check_list）：紫の丸に金のチェック。本文の直下にあるものだけ薄い枠で囲む（囲みの中では枠を付けない）
   ほかの形のリスト（good_list・pb-list・sbd-list・AFFINGER の囲みの中など）は元のまま */
.post_content ul.wp-block-list:not([class*="is-style-"]), .post_content > ul:not([class]) { list-style: none; padding-left: .2em; }
.post_content ul.wp-block-list:not([class*="is-style-"]) > li, .post_content > ul:not([class]) > li { position: relative; padding-left: 1.5em; }
.post_content ul.wp-block-list:not([class*="is-style-"]) > li::before, .post_content > ul:not([class]) > li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .8em; height: .8em; background: #9731c8;
  -webkit-mask: url("icons/toc-bubble.svg") center / contain no-repeat; mask: url("icons/toc-bubble.svg") center / contain no-repeat;
}
.post_content ol.wp-block-list:not([class*="is-style-"]), .post_content > ol:not([class]) { list-style: none; padding-left: 0; counter-reset: dial; }
.post_content ol.wp-block-list:not([class*="is-style-"]) > li, .post_content > ol:not([class]) > li { counter-increment: dial; position: relative; min-height: 1.7em; padding-left: 2.3em; }
.post_content ol.wp-block-list:not([class*="is-style-"]) > li::before, .post_content > ol:not([class]) > li::before {
  content: counter(dial); position: absolute; left: 0; top: .1em; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center;
  font-size: .85em; font-weight: bold; line-height: 1; color: var(--color_main, #2c0751); background: #efeaf5; box-shadow: inset 0 -2px 0 #ddd3e9;
}

.post_content .is-style-check_list > li { padding-left: 1.9em; }
.post_content .is-style-check_list > li::before {
  content: ""; top: .3em; width: 1.25em; height: 1.25em; border-radius: 50%; font-family: inherit;
  background: var(--color_main, #2c0751) url("icons/check.svg") center / 70% no-repeat;
}
.post_content > ul.is-style-check_list { padding: .6em 1em; border: 1px solid #e3dcea; border-radius: 8px; background: #fff; }
.post_content > ul.is-style-check_list.-list-under-dashed > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
