/* 参考資料の読み物（流派の入口 4、套路 30、人物 22 の 56 ページだけが読む）
   site.css のあとに読まれる。色・字の大きさ・幅の名前は site.css の :root の物を使う。
   並び：1 紙と右の目次 → 2 題の帯 → 3 本文の字とリンク → 4 見出し → 5 套路 → 6 人物 → 7 流派の入口 → 画面幅 */

/* 1. 紙と右の目次 ------------------------------------------------ */
/* 白い紙の形そのものは site.css（当会についてと同じ）。套路と人物は角を少し丸く、薄い影を付ける */
:is(.kf-reference-form-page, .kf-reference-person-page) .kf-page-article { border-color: rgba(221, 213, 199, 0.76); border-radius: 14px; box-shadow: 0 18px 44px rgba(74, 62, 43, 0.06); }
.kf-page-context-sidebar__panel + .kf-page-context-sidebar__panel { margin-top: 24px; }
.kf-page-context-sidebar__title-link { border-left: 2px solid transparent; color: inherit; }
.kf-page-context-sidebar__title-link:is(:hover, :focus-visible) { color: var(--bronze); }

/* 2. 題の帯 ------------------------------------------------------ */
/* 套路の題の横の読み（小さく、細く） */
.kf-reference-form-title-reading { display: inline-block; margin-left: 0.28em; font-size: var(--fs-23); font-weight: 400; line-height: 1.6; letter-spacing: 0.06em; vertical-align: 0.12em; white-space: nowrap; color: rgba(255, 255, 255, 0.82); }

/* 3. 本文の字とリンク -------------------------------------------- */
/* 紙の中の段落と箇条書きは本文の大きさ（スマホは 17px）。行間と上下の間は site.css の白い紙の決まり */
:where(.kf-page-article) :where(p, li) { font-size: var(--fs-16); }
/* 本文の段落と箇条書き（紙のすぐ下に並ぶ物）は字の間を少しあける */
:is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > p:not(.kf-reference-person-role),
:is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > :is(ul, ol) > li,
.kf-reference-form-content .wp-block-column > p { font-size: var(--fs-16); line-height: 2; letter-spacing: 0.02em; }
/* 本文の中のリンクは青い字に下線 */
.kf-page-article :is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > :is(p, ul, ol) a:not(:has(img)) { color: #1769aa; text-decoration: underline; text-underline-offset: 0.2em; }
.kf-page-article :is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > :is(p, ul, ol) a:not(:has(img)):is(:hover, :focus-visible) { color: #0f4f86; }
/* 入れ子の中のリンク（導入の文、二列の中、人物の略歴）は青い太めの字、下線は無し */
:is(.kf-reference-form-content a:not(.kf-trial-actions *), .kf-reference-person-content p:where(:not(.kf-inline)) a, .kf-reference-person-content > .wp-block-list a, .kf-reference-form-root:not(.kf-reference-form-root--hunyuan) .entry-content p:where(:not(.kf-inline)) a) { font-weight: 600; color: #1769aa; text-underline-offset: 0.2em; }
:is(.kf-reference-form-content a:not(.kf-trial-actions *), .kf-reference-person-content p:where(:not(.kf-inline)) a, .kf-reference-person-content > .wp-block-list a, .kf-reference-form-root:not(.kf-reference-form-root--hunyuan) .entry-content p:where(:not(.kf-inline)) a):is(:hover, :focus-visible) { color: #0f4f86; }
:where(.kf-page-article) :where(strong, b) { font-weight: bolder; }
/* 套路のページの中の体験受講のボタンと字のリンク（前と同じ：ボタンは字の幅、字のリンクは青） */
.kf-reference-form-content .kf-contact-button { width: auto; }
.kf-reference-form-content .kf-sample-text-link { line-height: inherit; color: #1769aa; }
.kf-page-article img { border-radius: 0; }
.kf-page-article blockquote { margin: 34px 0; padding: 22px 26px; border-left: 2px solid var(--bronze); background: color-mix(in srgb, var(--paper) 74%, transparent); }
/* 本文の写真は真ん中に */
:where(.kf-page-article) figure.wp-block-image:not(.wp-block-gallery *, .kf-part-photo) { margin: 0 0 1em; text-align: center; }
:where(.kf-page-article) figure.wp-block-image:not(.wp-block-gallery *, .kf-part-photo) img { margin-inline: auto; }
/* 別のページへつなぐ箱は紙の幅いっぱい */
.kf-page-article .kf-related-page { width: 100%; color: var(--ink); }
.kf-page-article .kf-related-page__kind { line-height: inherit; }
.kf-page-article .kf-related-page__copy > :where(.kf-inline) > strong { font-weight: 500; }
.kf-page-article .kf-related-page--quiet-link .kf-related-page__action { color: var(--bronze); }
.kf-page-article .kf-related-page--quiet-link .kf-related-page__action i { color: var(--ink-soft); }
/* マウスを乗せた時：題は金茶、矢印の丸は塗らない */
.kf-page-article .kf-related-page--quiet-link .kf-related-page__stretched:is(:hover, :focus-visible) { color: var(--bronze); }
.kf-page-article .kf-related-page--quiet-link:is(:hover, :has(.kf-related-page__stretched:focus-visible)) .kf-related-page__action i { border-color: #76664d; background: transparent; color: var(--ink-soft); }

/* 4. 見出し ------------------------------------------------------ */
/* 大見出し：左に金茶の太い線、下に細い線 */
:is(.entry-content > h2, .kf-reference-heading-a2, .kf-reference-person-content > .kf-site-heading-a) { margin: 72px 0 24px; padding: 0 0 14px 18px; border-bottom: 1px solid var(--line-strong); border-left: 4px solid var(--bronze); font-size: var(--fs-28); font-weight: 500; line-height: 1.5; letter-spacing: 0.05em; text-wrap: pretty; color: var(--ink); }
:is(.entry-content > h2, .kf-reference-heading-a2, .kf-reference-person-content > .kf-site-heading-a):first-child { margin-top: 0; }
/* 中見出し：左に線、薄い金茶の地 */
:is(.entry-content > h3:not([class*="lineage-heading"], [class*="branch-heading"]), .kf-reference-heading-a3, .kf-reference-person-subheading) { margin: 48px 0 20px; padding: 12px 16px; border-left: 3px solid var(--line-strong); background: color-mix(in srgb, var(--bronze-bright) 8%, var(--paper-white)); font-size: var(--fs-23); font-weight: 500; line-height: 1.75; letter-spacing: 0.06em; text-wrap: pretty; color: var(--ink); }
/* 小見出し */
:is(.entry-content > h4, .kf-reference-heading-a4) { margin: 42px 0 18px; font-size: var(--fs-16); font-weight: 600; line-height: 1.75; letter-spacing: 0.06em; text-wrap: pretty; color: var(--ink); }

/* 5. 套路のページ ------------------------------------------------ */
.kf-reference-form-page .kf-page-article { padding-bottom: 32px; }
.kf-reference-form-content { width: min(100%, 916px); margin-inline: auto; font-size: var(--fs-16); line-height: 2.08; color: var(--ink-soft); }
.kf-reference-form-content > :first-child { margin-top: 0; }
.kf-reference-form-content > :where(p, ul, .kf-form-intro) :where(p, li), .kf-reference-form-content > :where(p) { font-size: var(--fs-16); line-height: 2.08; color: var(--ink-soft); }
.kf-reference-form-content > .kf-form-intro { margin-bottom: 42px; }
.kf-reference-form-content figcaption { font-size: var(--fs-12); line-height: 1.7; text-align: center; color: var(--ink-soft); }
.kf-reference-form-content .wp-block-list { margin: 20px 0 30px; padding-left: 1.4em; list-style: disc; }
.kf-reference-form-content .wp-block-list li { padding: 8px 0 9px 4px; }
/* 動作の名前の行（五禽戯のほか）。行の間に細い線、二列の時は横に 36px あける */
.kf-reference-form-page:not(.kf-reference-form-page--wuqinxi) :is(.kf-reference-form-content, .kf-reference-form-content .wp-block-column) > p { margin: 0; padding: 18px 4px 19px; border-bottom: 1px solid rgba(221, 213, 199, 0.72); }
.kf-reference-form-page:not(.kf-reference-form-page--wuqinxi) :is(.kf-reference-form-content, .kf-reference-form-content .wp-block-column) > :is(p:first-child, .kf-form-intro + p) { border-top: 1px solid rgba(221, 213, 199, 0.72); }
.kf-reference-form-page:not(.kf-reference-form-page--wuqinxi) :is(.kf-reference-form-content, .kf-reference-form-content .wp-block-column) > p:last-of-type { border-bottom: 0; }
.kf-reference-form-page:not(.kf-reference-form-page--wuqinxi) .kf-reference-form-content .kf-columns--swell { margin-block: 0; }
.kf-reference-form-page:not(.kf-reference-form-page--wuqinxi) .kf-reference-form-content .is-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.kf-reference-form-page--wuqinxi .kf-reference-form-content > .kf-wuqinxi-event-card { margin: 18px auto 0; }

/* 6. 人物のページ ------------------------------------------------ */
/* 題の帯：左が濃い膜（留学記の題の帯と同じ）、名前の横に小さな読み */
.kf-reference-lineage-person .kf-page-title-scene { --title-veil: linear-gradient(90deg, rgba(25, 29, 26, 0.76) 0%, rgba(35, 39, 35, 0.56) 40%, rgba(35, 39, 35, 0.36) 65%, rgba(35, 39, 35, 0.1) 100%); }
.kf-reference-lineage-person .kf-page-title-scene .wp-block-cover__background { opacity: 0; }
.kf-reference-lineage-person .kf-page-title-scene__eyebrow { line-height: 1.8; letter-spacing: 0.08em; }
.kf-reference-title-reading { display: inline-block; margin-left: 0.65em; font-size: var(--fs-19); font-weight: 400; line-height: 1.6; letter-spacing: 0.04em; white-space: nowrap; color: rgba(255, 255, 255, 0.82); }
.kf-reference-person-content { width: min(100%, 916px); margin-inline: auto; }
.kf-reference-person-content > p:not(.kf-reference-person-role, .kf-donghaichuan-lineage) { margin: 0 0 1.45em; color: var(--ink-soft); }
.kf-reference-person-content .wp-block-list { margin: 1em 0; padding-left: 40px; list-style: disc; }
/* 略歴：左に肖像、右に文 */
.kf-reference-person-profile { margin: 0 0 42px; overflow: hidden; }
.kf-reference-person-profile > .is-style-grid { grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 52px); align-items: start; }
.kf-reference-person-profile figure.wp-block-image { width: 100%; margin: 0; }
.kf-reference-person-profile figure img { display: block; width: 100%; height: auto; border: 1px solid rgba(205, 189, 158, 0.78); filter: sepia(0.08) contrast(1.03); }
.kf-reference-person-profile figcaption { margin-top: 10px; font-size: var(--fs-12); line-height: 1.7; text-align: center; color: var(--ink-soft); }
/* 略歴の文は箱にしない */
.kf-reference-person-profile .is-style-big_kakko_box { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: var(--fs-16); line-height: 2.05; color: var(--ink-soft); }
.kf-reference-person-profile .is-style-big_kakko_box::first-line { font-weight: 500; letter-spacing: 0.08em; color: var(--bronze); }
/* 董海川のページの、系譜へつなぐ一段 */
.kf-reference-person-content > .kf-donghaichuan-lineage { margin: 0; padding: 22px 24px; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bronze-bright) 8%, var(--paper-white)); color: var(--ink-soft); }
.kf-donghaichuan-lineage a { font-weight: 500; color: var(--bronze); text-decoration-thickness: 1px; }
/* 前に書いた記事の一覧（日付・分類・題の行） */
.kf-legacy-post-list { margin-block: 28px; border-top: 1px solid rgba(97, 87, 70, 0.2); }
.kf-legacy-post-list a { display: block; padding: 17px 4px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.kf-legacy-post-list a:is(:hover, :focus-visible) strong { color: #1769aa; text-decoration: underline; text-underline-offset: 0.2em; }
.kf-legacy-post-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-bottom: 6px; font-size: var(--fs-12); font-weight: 400; line-height: 1.45; letter-spacing: 0; color: var(--ink-soft); }
.kf-legacy-post-list__meta time::before { content: "◷"; margin-right: 0.28em; }
.kf-legacy-post-list__category::before { content: "■"; margin-right: 0.35em; font-size: 0.72em; vertical-align: 0.08em; }
.kf-legacy-post-list strong { display: block; font-size: var(--fs-16); font-weight: 600; line-height: 1.55; }

/* 7. 流派の入口（陳式・混元・五禽戯・八卦掌） -------------------- */
/* 紙の右下に、太湖石と竹の薄い絵 */
.kf-reference-form-root .kf-page-article { isolation: isolate; overflow: hidden; border-color: rgba(221, 213, 199, 0.7); box-shadow: 0 16px 38px rgba(44, 42, 38, 0.06); }
.kf-reference-form-root .kf-page-article::after { content: ""; position: absolute; right: -54px; bottom: 132px; z-index: 0; width: 290px; height: 400px; background: url("../images/motif-taihu-rock-bamboo-v1-web.webp") right bottom / contain no-repeat; opacity: var(--rock, 0.05); pointer-events: none; }
.kf-reference-form-root .kf-page-article > * { position: relative; z-index: 1; }
/* 絵の濃さは流派ごとに前と同じ（陳式だけ絵が少し大きい） */
.kf-reference-form-root--chen { --rock: 0.052; }
.kf-reference-form-root--hunyuan { --rock: 0.055; }
.kf-reference-form-root--bagua { --rock: 0.065; }
.kf-reference-form-root--chen .kf-page-article::after { right: -64px; width: 300px; height: 410px; }

/* 7-1 書き出しの箱：薄い絵の上に、大きな一文と「○つの章」の目次 */
.kf-martial-opening { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 64px; padding: 48px 46px 40px; border: 1px solid rgba(154, 129, 88, 0.24); background: var(--white); text-align: center; }
.kf-martial-opening::before { content: ""; position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; opacity: 0.22; pointer-events: none; }
.kf-taichi-opening::before { inset: 8px 18px; background-image: url("../images/chenstyle-white-tiger-pearl-background-v1.png"); background-size: 108% auto; }
.kf-bagua-opening::before { inset: 8px 18px; background-image: url("../images/bagua-soaring-dragon-background-v1.png"); background-size: 108% auto; }
.kf-hunyuan-opening::before { background-image: url("../images/hunyuan-heaven-human-unity-background-v1.png"); background-position: center 48%; opacity: 0.29; }
.kf-wuqinxi-opening::before { background-image: url("../images/wuqinxi-five-animals-background-v1.png"); }
.kf-martial-opening > * { position: relative; z-index: 1; }
.kf-martial-opening h2 { padding-bottom: 14px; font-size: var(--fs-36); font-weight: 500; line-height: 1.72; letter-spacing: 0.07em; color: var(--ink); }
.kf-martial-opening__lead { max-width: 650px; margin: 26px auto 0; line-height: 2.05; letter-spacing: 0.018em; color: var(--ink-soft); }
/* 目次。二列、行の間に細い線 */
.kf-martial-opening nav { max-width: 650px; margin: 24px auto 0; padding: 18px 0 0; border-top: 1px solid rgba(154, 129, 88, 0.34); }
.kf-section-guide__heading { display: flex; flex-direction: column; align-items: center; margin-bottom: 13px; }
.kf-section-guide__heading p { margin: 0; font-size: var(--fs-19); font-weight: 500; line-height: 1.55; letter-spacing: 0.09em; color: var(--ink); }
.kf-martial-opening nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px 20px 11px; border-top: 1px solid rgba(154, 129, 88, 0.3); border-bottom: 1px solid rgba(154, 129, 88, 0.18); background: rgba(255, 254, 251, 0.56); }
.kf-martial-opening nav li { border-top: 1px solid rgba(143, 123, 88, 0.15); }
.kf-martial-opening nav li:nth-child(-n+2) { border-top: 0; }
.kf-martial-opening nav li:nth-child(even) { padding-left: 22px; border-left: 1px solid rgba(143, 123, 88, 0.18); }
.kf-martial-opening nav li:nth-child(odd) { padding-right: 22px; }
.kf-martial-opening nav a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; gap: 9px; align-items: baseline; padding: 8px 2px 9px; text-align: left; color: var(--ink); }
.kf-martial-opening nav a::after { content: "›"; align-self: center; font-family: Georgia, "Times New Roman", serif; font-size: var(--fs-14); line-height: 1; color: rgba(154, 101, 95, 0.72); }
.kf-martial-opening nav a > span { font-family: Georgia, "Times New Roman", serif; font-size: var(--fs-12); letter-spacing: 0.14em; color: #9a655f; }
.kf-martial-opening nav a > b { font-size: var(--fs-14); font-weight: 500; line-height: 1.55; letter-spacing: 0.025em; }
.kf-page-article .kf-martial-opening nav a:is(:hover, :focus-visible) { color: #7a4e4f; }
.kf-martial-opening nav a:focus-visible { outline: 1px solid #a96870; outline-offset: 3px; }

/* 7-2 本文の写真と見出し */
.entry-content > figure.wp-block-image { width: fit-content; max-width: 100%; margin: 30px auto 36px; }
.entry-content > figure.wp-block-image figcaption { margin: 12px 6px 3px; letter-spacing: 0.04em; }
/* 系統の名前の見出し（線なし、字の間を広く）と、その下の説明 */
.entry-content > h3[class*="branch-heading"] { margin: 58px 0 26px; font-size: var(--fs-23); font-weight: 400; line-height: 1.55; letter-spacing: 0.1em; text-wrap: pretty; }
.entry-content > [class*="branch-heading"] + p { margin: 0 0 39px; padding: 18px 0 0 19px; color: var(--ink-soft); }
.entry-content > #taijiquan-standardized-forms ~ [class*="branch-heading"] + p { padding-left: 0; }
/* 八卦掌の系統の見出し（右に短い線）と、その下の説明 */
.entry-content > h4.kf-style-branch-heading { display: flex; align-items: center; gap: 12px; margin: 34px 0 12px; font-size: var(--fs-19); line-height: 1.6; letter-spacing: 0.045em; }
.entry-content > h4.kf-style-branch-heading::after { content: ""; width: 54px; height: 1px; background: var(--line-strong); }
.entry-content > h4.kf-style-branch-heading + p { margin: 0 0 31px; padding: 7px 0 0; }
.kf-reference-form-root--bagua .entry-content > :where(p, ul) { color: var(--ink-soft); }
/* 八卦掌は入れ子の中のリンクにも下線 */
.kf-reference-form-root--bagua .entry-content p a { text-decoration: underline; }
.kf-reference-form-root--bagua .entry-content .kf-columns p a:is(:hover, :focus-visible) { text-decoration: none; }
.kf-reference-form-root--wuqinxi .entry-content > .kf-related-page { margin: 8px auto 30px; }
@media (min-width: 783px) {
	#kf-hunyuan-opening-title { word-break: keep-all; } /* 混元の書き出しの一文は、PC では言葉の途中で折らない */
}

/* 7-3 系譜：人の名前の見出し → 肖像と略伝 →「続きを読む」 */
.kf-taichi-genealogy { margin: 30px 0 66px; padding: 26px 30px; border-block: 1px solid rgba(153, 130, 89, 0.44); background: linear-gradient(90deg, transparent, rgba(247, 244, 237, 0.78) 12%, rgba(247, 244, 237, 0.78) 88%, transparent); color: var(--ink-soft); }
.entry-content > h3[class*="lineage-heading"] { position: relative; display: flex; flex-direction: column; align-items: center; margin: 86px 0 0; padding: 28px 20px 27px; border-top: 1px solid rgba(153, 130, 89, 0.34); border-bottom: 1px solid rgba(153, 130, 89, 0.48); background: linear-gradient(90deg, transparent, rgba(246, 242, 233, 0.62) 20%, rgba(246, 242, 233, 0.62) 80%, transparent); text-align: center; }
/* 上下の線の真ん中に小さな菱形 */
.entry-content > h3[class*="lineage-heading"]::before, .entry-content > h3[class*="lineage-heading"]::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; border: 1px solid #9a655e; background: var(--white); transform: translateX(-50%) rotate(45deg); }
.entry-content > h3[class*="lineage-heading"]::before { top: -4px; }
.entry-content > h3[class*="lineage-heading"]::after { bottom: -4px; }
.kf-lineage-heading__role { display: block; font-size: var(--fs-16); font-weight: 600; line-height: 1.4; letter-spacing: 0.2em; color: #925d56; }
.kf-lineage-heading__name { display: block; margin-top: 9px; font-size: var(--fs-28); font-weight: 500; line-height: 1.45; letter-spacing: 0.14em; color: var(--ink); }
.kf-lineage-heading__school { display: block; margin-top: 7px; font-size: var(--fs-14); font-weight: 500; line-height: 1.5; letter-spacing: 0.09em; color: var(--ink-soft); }
.kf-reference-form-root .entry-content > .kf-columns:has(figure) { margin: 0; padding: 38px 0 0; }
.kf-reference-form-root .entry-content > .kf-columns:has(figure) > .is-style-grid { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 50px; align-items: start !important; /* WordPress の列の決まり（!important）に勝つため */ }
.kf-reference-form-root .entry-content > .kf-columns:has(figure) figure.wp-block-image { margin: 0; }
.kf-reference-form-root .entry-content > .kf-columns:has(figure) figure a { display: block; width: fit-content; margin-inline: auto; }
.kf-reference-form-root .entry-content > .kf-columns:has(figure) figcaption { margin-top: 17px; font-size: var(--fs-12); letter-spacing: 0.07em; text-align: center; color: var(--ink-soft); }
.kf-reference-form-root .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box { padding: 0; border: 0; border-radius: 0; background: none; font-size: var(--fs-16); line-height: 2.08; color: var(--ink); }
.kf-reference-form-root .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box::before { content: "人物略伝"; display: inline-block; margin-bottom: 20px; padding: 0 0 7px; border-bottom: 1px solid rgba(153, 130, 89, 0.38); font-family: serif; font-size: var(--fs-12); font-weight: 600; line-height: 1.4; letter-spacing: 0.18em; color: var(--bronze); }
/* 「続きを読む」のボタン：白い地に緑の線、右に細い矢印 */
.entry-content .swell-block-button { display: flex; justify-content: center; width: 100%; margin: 28px auto 24px; }
.entry-content .swell-block-button > .wp-block-button { display: contents; }
.entry-content .swell-block-button .wp-block-button__link { display: flex; gap: 12px; width: 218px; max-width: 100%; min-height: 52px; margin-inline: auto; padding: 12px 26px; border: 1px solid var(--button); background: var(--white); font-size: var(--fs-14); font-weight: 600; line-height: 1.6; letter-spacing: 0.08em; word-break: normal; color: var(--button); transition: background-color 0.2s, border-color 0.2s; }
.entry-content .swell-block-button .wp-block-button__link::after { content: ""; width: 30px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: skewX(42deg) translateY(-2px); flex: none; }
:is(.entry-content, .kf-reference-form-root--bagua .entry-content) .swell-block-button .wp-block-button__link:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--bronze-bright) 48%, var(--paper-white)); background: color-mix(in srgb, var(--bronze-bright) 8%, var(--paper-white)); color: var(--bronze); }
/* 流派ごとに前から少しずつ違う所（前と同じにしてある。そろえるなら、うさぎに聞いてから） */
.kf-reference-form-root--chen .entry-content > .kf-columns:has(figure) > .is-style-grid { gap: 48px; }
.kf-reference-form-root--chen .entry-content > .kf-columns:has(figure) figcaption { margin-top: 16px; letter-spacing: 0.06em; }
.kf-reference-form-root--chen .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box { line-height: 2.04; }
.kf-reference-form-root--chen .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box::before { margin-bottom: 19px; }
.kf-reference-form-root--chen .entry-content .swell-block-button { margin: 27px auto 48px; }
.kf-reference-form-root--chen .entry-content .swell-block-button .wp-block-button__link { gap: 24px; }
.kf-reference-form-root--chen .entry-content .swell-block-button .wp-block-button__link::after { margin-left: 12px; }
.kf-reference-form-root--hunyuan .entry-content > .kf-columns:has(figure) figure.wp-block-image { margin-bottom: 1em; }
.kf-reference-form-root--hunyuan .entry-content > p:empty + .kf-columns:has(figure) figure img { max-width: 230px; }
.kf-reference-form-root--bagua .entry-content > .kf-columns:has(figure) figcaption { line-height: 1.65; }
/* 八卦掌：略伝の下に、続きの文とボタンの段。ボタンは角の四角い金茶の形 */
.kf-reference-form-root--bagua .entry-content > .kf-columns:has(figure) > .is-style-grid > :nth-child(n+3) { display: none; }
.kf-reference-form-root--bagua .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box { margin: 0; }
.kf-reference-form-root--bagua .entry-content > .kf-columns:not(:has(figure)) { margin: 0; padding: 29px 0 24px; }
.kf-reference-form-root--bagua .entry-content > .kf-columns:not(:has(figure)) > .is-style-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 25px; }
.kf-reference-form-root--bagua .entry-content > .kf-columns:not(:has(figure)) p { color: var(--ink); }
.kf-reference-form-root--bagua .entry-content .swell-block-button { margin-bottom: 0; }
.kf-reference-form-root--bagua .entry-content .swell-block-button .wp-block-button__link { min-height: 46px; padding: 10px 23px 11px; border-color: var(--line-strong); border-radius: 2px; background: color-mix(in srgb, var(--paper-white) 96%, var(--paper)); line-height: 1.5; color: var(--bronze); }
.kf-reference-form-root--bagua .entry-content > .kf-columns + .kf-lineage-heading { margin-top: 44px; }
.kf-reference-form-root--bagua .entry-content > .kf-lineage-heading { font-size: var(--fs-23); line-height: 1.55; }
.kf-reference-form-root--hunyuan .entry-content > [class*="lineage-heading"] { margin-top: 80px; }
.kf-reference-form-root--hunyuan .entry-content > p:empty { display: none; }

/* 7-4 套路の一覧（陳式は二列で行の頭に小さな菱形、混元と八卦掌は一列） */
.entry-content > :is(#hunyuan-taijiquan-forms, #baguazhang-forms) + .wp-block-list { margin: 26px 0 0; }
.entry-content > :is(#hunyuan-taijiquan-forms, #baguazhang-forms) + .wp-block-list > li { display: block; padding: 16px 0 17px; border-bottom: 1px solid rgba(221, 213, 199, 0.72); line-height: 1.85; color: var(--ink-soft); }
.entry-content > #baguazhang-forms + .wp-block-list > li { padding-right: 12px; }
.entry-content > #baguazhang-forms + .wp-block-list a { font-weight: 600; }
.entry-content > #taijiquan-forms + .wp-block-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 26px 0 0; border-top: 1px solid rgba(221, 213, 199, 0.72); }
.entry-content > #taijiquan-forms + .wp-block-list > li { position: relative; padding: 15px 6px 16px 24px; border-bottom: 1px solid rgba(221, 213, 199, 0.72); line-height: 1.65; color: var(--ink-soft); }
.entry-content > #taijiquan-forms + .wp-block-list > li::before { content: ""; position: absolute; top: 1.35em; left: 5px; width: 6px; height: 6px; border: 1px solid #a6756e; background: var(--white); transform: rotate(45deg); }
.entry-content > #taijiquan-forms + .wp-block-list a { font-weight: 600; }

/* 画面幅 ---------------------------------------------------------- */
@media (max-width: 1000px) {
	.kf-page-context-sidebar__panel + .kf-page-context-sidebar__panel { margin-top: 0; } /* 前と同じ。箱と箱の間はあけない */
}
@media (max-width: 782px) {
	.kf-related-page__body figure { height: 100%; min-height: 104px; } /* つなぐ箱の写真は、字が増えたら箱の高さまで伸びる */
	:is(.kf-reference-form-page, .kf-reference-person-page) .kf-page-article { border-radius: 10px; }
	.kf-reference-form-title-reading { margin-left: 0.2em; font-size: 17px; }
	.kf-reference-form-page .kf-page-article { padding-bottom: 26px; }
	.kf-reference-form-content { font-size: var(--fs-14); line-height: 2; }
	.kf-reference-form-content > .kf-form-intro { margin-bottom: 32px; }
	.kf-reference-form-page:not(.kf-reference-form-page--wuqinxi) .kf-reference-form-content .is-style-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	:is(.entry-content > h2, .kf-reference-heading-a2, .kf-reference-person-content > .kf-site-heading-a) { margin-top: 58px; padding: 0 0 13px 14px; font-size: var(--fs-23); }
	:is(.entry-content > h3:not([class*="lineage-heading"], [class*="branch-heading"]), .kf-reference-heading-a3, .kf-reference-person-subheading) { margin-top: 44px; font-size: var(--fs-19); }
	:is(.entry-content > h4, .kf-reference-heading-a4) { margin-top: 32px; }
	.kf-reference-title-reading { font-size: var(--fs-12); }
	.kf-reference-person-profile > .is-style-grid { grid-template-columns: 1fr; gap: 24px; }
	.kf-reference-person-profile figure.wp-block-image { width: min(230px, 78%); margin-inline: auto; }
	.kf-reference-person-profile .is-style-big_kakko_box { font-size: var(--fs-14); line-height: 2; }
	.kf-reference-person-content > .kf-donghaichuan-lineage { padding: 18px 20px; }
	.kf-legacy-post-list { margin-block: 22px; }
	.kf-reference-form-root .kf-page-article::after { right: -70px; bottom: 80px; width: 210px; height: 300px; opacity: var(--rock-s, 0.04); }
	.kf-reference-form-root--wuqinxi { --rock-s: 0.035; }
	.kf-reference-form-root--bagua { --rock-s: 0.045; }
	.kf-reference-form-root--chen .kf-page-article::after { right: -72px; bottom: 70px; }
	.kf-martial-opening { padding: 38px 22px 34px; }
	.kf-martial-opening::before { background-position: 56% 32%; background-size: auto 100%; opacity: 0.18; }
	:is(.kf-taichi-opening, .kf-bagua-opening)::before { inset: 6px 10px; background-position: center; background-size: 114% auto; }
	.kf-hunyuan-opening::before { background-position: center 48%; opacity: 0.23; }
	.kf-wuqinxi-opening::before { background-position: center; background-size: cover; opacity: 0.2; }
	.kf-martial-opening h2 { font-size: var(--fs-28); letter-spacing: 0.055em; }
	.kf-martial-opening h2 br { display: none; }
	.kf-martial-opening__lead { margin-top: 20px; font-size: var(--fs-14); line-height: 1.92; text-align: left; }
	.kf-martial-opening nav { margin-top: 22px; padding-top: 16px; }
	.kf-section-guide__heading p { font-size: 17px; }
	.kf-martial-opening nav ol { grid-template-columns: minmax(0, 1fr); padding: 11px 16px 10px; }
	.kf-martial-opening nav li:nth-child(n) { padding-inline: 0; border-top: 1px solid rgba(143, 123, 88, 0.15); border-left: 0; }
	.kf-martial-opening nav li:first-child { border-top: 0; }
	.kf-taichi-genealogy { margin-top: 24px; padding: 21px 14px; }
	.entry-content > h3[class*="lineage-heading"] { margin-top: 68px; padding: 23px 12px 22px; }
	.kf-lineage-heading__role { font-size: var(--fs-14); }
	.kf-lineage-heading__name { margin-top: 8px; font-size: var(--fs-23); }
	.kf-lineage-heading__school { margin-top: 6px; }
	.kf-reference-form-root .entry-content > .kf-columns:has(figure) { padding-top: 31px; }
	.kf-reference-form-root .entry-content > .kf-columns:has(figure) > .is-style-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	.kf-reference-form-root .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box { font-size: var(--fs-14); }
	.entry-content > h3[class*="branch-heading"] { margin: 44px 0 23px; font-size: var(--fs-19); }
	.entry-content > [class*="branch-heading"] + p { margin-bottom: 35px; padding: 16px 0 0 16px; }
	.entry-content > #taijiquan-forms + .wp-block-list { grid-template-columns: minmax(0, 1fr); }
	.entry-content > :is(#hunyuan-taijiquan-forms, #baguazhang-forms) + .wp-block-list > li { padding: 14px 0 15px; }
	.entry-content > #baguazhang-forms + .wp-block-list > li { padding-right: 6px; }
	.entry-content > h4.kf-style-branch-heading { margin-top: 30px; font-size: var(--fs-16); }
	.entry-content > h4.kf-style-branch-heading + p { margin-bottom: 26px; padding-top: 5px; }
	.kf-reference-form-root--wuqinxi .entry-content > .kf-related-page { margin-bottom: 24px; }
	/* 流派ごとに前から少しずつ違う所（前と同じ） */
	.kf-reference-form-root--chen .entry-content > .kf-columns:has(figure) > .is-style-grid { gap: 29px; }
	.kf-reference-form-root--hunyuan .entry-content > [class*="lineage-heading"] { margin-top: 68px; }
	.kf-reference-form-root--hunyuan .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box { font-size: var(--fs-16); }
	.kf-reference-form-root--hunyuan .entry-content > p:empty + .kf-columns:has(figure) figure img { max-width: 220px; }
	.kf-reference-form-root--bagua .entry-content > .kf-columns:has(figure) .is-style-big_kakko_box { line-height: 1.98; }
	.kf-reference-form-root--bagua .entry-content > .kf-columns:not(:has(figure)) { padding: 24px 0 22px; }
	.kf-reference-form-root--bagua .entry-content > .kf-columns:not(:has(figure)) > .is-style-grid { gap: 14px; padding-top: 22px; }
	.kf-reference-form-root--bagua .kf-page-article { padding-block: 40px 48px; }
	.kf-reference-form-root--bagua .entry-content > .kf-lineage-heading { font-size: var(--fs-19); }
	/* 八卦掌の入口だけ、スマホで肖像が列の幅いっぱい（前と同じ） */
	.kf-reference-form-root--bagua .entry-content > .kf-columns:has(figure) figure a { width: 100%; }
	.kf-reference-form-root--bagua .entry-content > .kf-columns:has(figure) figure img { width: 100% !important; /* 記事の中で絵の幅が決めてあるため */ }
	.kf-reference-form-root--bagua .entry-content > .kf-columns + .kf-lineage-heading { margin-top: 38px; }
	.kf-legacy-post-list a { padding: 15px 2px 14px; }
	.kf-legacy-post-list strong { font-size: var(--fs-14); }
}
