/* Article parts: Design Family's warm white, orange and yellow palette.
   Scope stays inside post content or the editor canvas, never fixed-page layouts. */
:is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta){
 --dfw-ink:#333;--dfw-orange:#f0831e;--dfw-yellow:#fad134;
 box-sizing:border-box;position:relative;isolation:isolate;max-width:100%;
 margin:40px 0;padding:28px 32px;border-radius:18px;color:var(--dfw-ink);
 font-family:inherit;font-size:16px;line-height:1.9;overflow-wrap:anywhere;
}
:is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) :is(h2,h3,h4){
 margin:0 0 16px;padding:0;border:0;background:none;box-shadow:none;
 font-size:21px;font-weight:700;line-height:1.6;color:#333;
}
:is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) :is(h2,h3,h4)::after{display:none}
:is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) p{margin:12px 0 0;font-size:16px;line-height:1.9;font-weight:400}
:is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) :is(ul,ol){margin:12px 0 0;padding-left:1.5em;line-height:1.9}
:is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) li+li{margin-top:8px}
:is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) li::marker{color:#a7500c;font-weight:700}
:is(.entry-body,.editor-styles-wrapper) .dfw-points{background:#fff9e8;border:1px solid #efdfa5;border-top:5px solid #fad134}
:is(.entry-body,.editor-styles-wrapper) .dfw-points h3{display:flex;align-items:flex-start;gap:12px}
:is(.entry-body,.editor-styles-wrapper) .dfw-points h3::before{content:'✓';display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#fad134;color:#333;font:700 19px/1 sans-serif;margin-top:2px}
:is(.entry-body,.editor-styles-wrapper) .dfw-qa{background:#fff;border:1px solid #e5e3dd;box-shadow:0 5px 20px #55421706}
:is(.entry-body,.editor-styles-wrapper) .dfw-qa h3{position:relative;padding-left:48px;min-height:34px;margin-bottom:20px}
:is(.entry-body,.editor-styles-wrapper) .dfw-qa h3::before{content:'Q';position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#fff0e0;color:#a74608;font:700 19px/1 Arial,sans-serif}
:is(.entry-body,.editor-styles-wrapper) .dfw-qa p{position:relative;padding-left:48px;margin:0}
:is(.entry-body,.editor-styles-wrapper) .dfw-qa p:first-of-type::before{content:'A';position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#f0831e;color:#242424;font:700 19px/1 Arial,sans-serif}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta{background:#fff7ef;border:1px solid #f2ddc6;text-align:center;padding:38px 32px 32px;overflow:hidden}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta::before{content:'';position:absolute;left:calc(50% - 22px);top:16px;width:8px;height:8px;background:#f0831e;border-radius:50%;box-shadow:18px 0 #fad134,36px 0 #4da77b}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta h3{font-size:23px;margin:8px 0 12px}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin:24px 0 0}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button{max-width:100%}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link{
 display:inline-flex;align-items:center;justify-content:center;gap:20px;box-sizing:border-box;
 min-height:54px;max-width:100%;padding:12px 18px 12px 26px;border:1px solid transparent;
 border-radius:999px;background:#f0831e;color:#242424;text-decoration:none;
 font-family:inherit;font-weight:700;font-size:16px;line-height:1.6;
 transition:background-color .18s ease,box-shadow .18s ease;overflow-wrap:anywhere;
}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link::after{content:'→';display:inline-grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:#fff;color:#333;font:400 22px/1 Arial,sans-serif}
.entry-body .dfw-cta .wp-block-button__link:hover{background:#fad134;box-shadow:0 4px 12px #b96b1420}
.entry-body :is(.dfw-cta a,.wp-block-file a):focus-visible{outline:3px solid #247896;outline-offset:4px}
/* Existing speech blocks keep their markup and member information. */
.entry-body .entry-quote{
 display:flex;flex-direction:row;align-items:flex-start;gap:24px;margin:36px 0;
 grid-template-columns:none;max-width:100%;color:#333;
}
.entry-body .entry-quote.entry-quote--right{flex-direction:row-reverse;grid-template-columns:none}
.entry-body .entry-quote .entry-quote__person{flex:0 0 88px;width:88px;margin:4px 0 0;text-align:center;min-width:0;grid-column:auto;grid-row:auto}
.entry-body .entry-quote .entry-quote__face{display:block;box-sizing:border-box;width:88px;height:88px;max-width:100%;object-fit:cover;border:4px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #f0dfcc;margin:0}
.entry-body .entry-quote .entry-quote__name{font-size:13px;font-weight:700;line-height:1.5;margin:10px 0 0;overflow-wrap:anywhere}
.entry-body .entry-quote .entry-quote__bubble{position:relative;box-sizing:border-box;flex:1;min-width:0;margin:0;padding:24px 28px;background:#fffaf3;border:1px solid #eedfcb;border-radius:18px;grid-column:auto;grid-row:auto}
.entry-body .entry-quote .entry-quote__bubble::before{content:'';position:absolute;top:28px;left:-7px;width:12px;height:12px;background:#fffaf3;border:0;border-left:1px solid #eedfcb;border-bottom:1px solid #eedfcb;transform:rotate(45deg)}
.entry-body .entry-quote.entry-quote--right .entry-quote__bubble::before{left:auto;right:-7px;transform:rotate(225deg)}
.entry-body .entry-quote .entry-quote__bubble p{margin:0;padding:0;font-size:16px;line-height:1.9;font-weight:400;overflow-wrap:anywhere}
.entry-body .entry-quote .entry-quote__bubble p+p{margin-top:12px}
/* Media and files from the writing palette, plus existing native file blocks. */
:is(.entry-body,.editor-styles-wrapper) figure.dfw-image{margin:36px 0;width:auto;max-width:100%}
:is(.entry-body,.editor-styles-wrapper) figure.dfw-image img{display:block;max-width:100%;height:auto;border-radius:16px}
:is(.entry-body,.editor-styles-wrapper) figure.dfw-image figcaption{margin:12px auto 0;padding:0 8px;color:#666;font-size:13px;line-height:1.7;text-align:center;overflow-wrap:anywhere}
:is(.entry-body,.editor-styles-wrapper) .wp-block-file{box-sizing:border-box;display:flex;align-items:center;flex-wrap:wrap;gap:14px 20px;margin:32px 0;padding:22px 24px;max-width:100%;border:1px solid #dfE6e6;border-radius:14px;background:#f6f9f9;line-height:1.7;overflow-wrap:anywhere}
:is(.entry-body,.editor-styles-wrapper) .wp-block-file>a:not(.wp-block-file__button){flex:1;min-width:0;font-size:16px;font-weight:700;color:#33575e;text-decoration:underline;text-underline-offset:4px}
:is(.entry-body,.editor-styles-wrapper) .wp-block-file .wp-block-file__button{display:inline-flex;justify-content:center;align-items:center;flex:none;box-sizing:border-box;max-width:100%;min-height:44px;margin:0;padding:10px 20px;border:1px solid #58797e;border-radius:999px;background:#fff;color:#33575e;font-size:14px;font-weight:700;text-decoration:none}
.entry-body .wp-block-file .wp-block-file__button:hover{background:#e8f0ef}
:is(.entry-body,.editor-styles-wrapper) .wp-block-file :is(object,iframe){width:100%;max-width:100%;flex-basis:100%;height:400px;border:0;border-radius:8px}
:is(.entry-body,.editor-styles-wrapper) .dfw-list{margin:24px 0;padding-left:1.5em;line-height:1.9}
:is(.entry-body,.editor-styles-wrapper) .dfw-list li+li{margin-top:10px}
:is(.entry-body,.editor-styles-wrapper) .dfw-list li::marker{color:#ad510b;font-weight:700}
/* Keep the authoring preview close to the output. */
.dfw-balloon-editor .dfw-comment{background:#fffaf3;border-color:#eedfcb}
.dfw-balloon-editor .dfw-comment::before{background:#fffaf3;border-color:#eedfcb}
.dfw-balloon-editor .dfw-person img{box-sizing:border-box;border:4px solid #fff;box-shadow:0 0 0 1px #f0dfcc}
@media(max-width:600px){
 :is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta){margin:28px 0;padding:22px 20px;border-radius:14px;font-size:15px}
 :is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) :is(h2,h3,h4){font-size:18px;line-height:1.65}
 :is(.entry-body,.editor-styles-wrapper) :is(.dfw-points,.dfw-qa,.dfw-cta) p{font-size:15px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-qa h3{padding-left:40px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-qa p{padding-left:40px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-qa :is(h3,p)::before{width:28px;height:28px;font-size:17px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta{padding-top:36px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link{font-size:14px;gap:8px;padding:12px 14px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link::after{width:26px;height:26px}
 .entry-body .entry-quote,.entry-body .entry-quote.entry-quote--right{gap:14px;margin:28px 0}
 .entry-body .entry-quote .entry-quote__person{flex-basis:56px;width:56px;margin-top:4px}
 .entry-body .entry-quote .entry-quote__face{width:56px;height:56px;border-width:2px}
 .entry-body .entry-quote .entry-quote__name{font-size:11px;margin-top:7px}
 .entry-body .entry-quote .entry-quote__bubble{padding:17px 18px;border-radius:14px}
 .entry-body .entry-quote .entry-quote__bubble p{font-size:15px;line-height:1.85}
 .entry-body .entry-quote .entry-quote__bubble::before{top:21px}
 :is(.entry-body,.editor-styles-wrapper) .wp-block-file{padding:18px;gap:14px;align-items:stretch;flex-direction:column}
 :is(.entry-body,.editor-styles-wrapper) .wp-block-file>a:not(.wp-block-file__button){flex:auto;font-size:15px}
 :is(.entry-body,.editor-styles-wrapper) .wp-block-file :is(object,iframe){flex-basis:auto;height:280px}
}
@media(prefers-reduced-motion:reduce){.entry-body .dfw-cta .wp-block-button__link{transition:none}}

/* Gutenberg's empty-block appender is editor UI, not an answer paragraph. */
.editor-styles-wrapper .dfw-qa .block-editor-default-block-appender p::before{display:none}
.editor-styles-wrapper .dfw-qa .block-editor-default-block-appender p{padding:0}

/* ---- 記事CTA：崩れの修正と、タイプ別（A 相談／B 資料・セミナー／C 会社・採用）の追加。T-0112 2026-10-05 ----
   文言・リンクは編集プラグインの「記事づくり → よく使うパーツ」が本文に入れる（標準ブロック）。ここは見た目だけ */
/* 見出しは目次（本文の h2〜h5 から自動生成）に載せないため段落で置く */
:is(.entry-body,.editor-styles-wrapper) .dfw-cta p.dfw-cta__title{margin:8px 0 12px;font-size:23px;font-weight:700;line-height:1.6;color:#333;word-break:auto-phrase;text-wrap:balance}
/* ボタン：サイトの基本ボタン（親テーマの .btn-pill と .deco-arrow）の形に合わせる。T-0112 2026-10-07
   丸みのあるボタンの右端に小さい矢印（丸なし）。主ボタンはオレンジ地に白文字（記事下の「この機能について相談する」と同じ色）、
   副ボタン（ボタンのスタイル「輪郭」）は .btn-pill--outline と同じ、線だけ・濃いグレーの文字。
   親テーマの .entry-body .wp-block-button__link と同じ組みだが、編集画面には親テーマの CSS が入らないため、ここに全部書く */
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link{position:relative;gap:0;min-width:min(260px,100%);min-height:54px;padding:12px 56px 12px 32px;border:0;background:#f0831e;color:#fff;font-size:16px;line-height:1.5;text-align:center;transition:opacity 0.2s}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link::after{content:"";position:absolute;right:22px;top:50%;translate:0 -50%;display:block;width:10px;height:9px;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.5 7.364'%3E%3Cpath fill='%23fff' d='M8.354 4.036a.5.5 0 0 0 0-.708L5.172.147a.5.5 0 1 0-.708.707l2.829 2.828-2.829 2.829a.5.5 0 1 0 .708.707l3.182-3.182ZM0 3.682v.5h8v-1H0v.5Z'/%3E%3C/svg%3E") center / contain no-repeat}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .is-style-outline .wp-block-button__link{border:1px solid #333;background:none;color:#333}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .is-style-outline .wp-block-button__link::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8.5 7.364'%3E%3Cpath fill='%23333' d='M8.354 4.036a.5.5 0 0 0 0-.708L5.172.147a.5.5 0 1 0-.708.707l2.829 2.828-2.829 2.829a.5.5 0 1 0 .708.707l3.182-3.182ZM0 3.682v.5h8v-1H0v.5Z'/%3E%3C/svg%3E") center / contain no-repeat}
.entry-body .dfw-cta .wp-block-button__link:hover{background:#f0831e;box-shadow:none;opacity:.8}
.entry-body .dfw-cta .is-style-outline .wp-block-button__link:hover{background:none;opacity:.8}
@media(prefers-reduced-motion:reduce){:is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link{transition:none}}
/* ボタンの下のテキストリンク */
:is(.entry-body,.editor-styles-wrapper) .dfw-cta p.dfw-cta__link{display:inline-block;margin:18px 12px 0;font-size:14px;line-height:1.7;overflow-wrap:anywhere}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta p.dfw-cta__link a{color:#333;text-decoration:underline;text-underline-offset:4px}
/* 文節のかたまり：折り返すなら切れ目だけ（T-0112 2026-10-07）。かたまりが枠より長いときは中で折り返す。リンクの行には使わない */
:is(.entry-body,.editor-styles-wrapper) .dfw-cta .dfw-ph{display:inline-block}
/* C：会社・採用紹介型（軽量。点の飾りなし・小さい文字・テキストリンクだけ） */
:is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light{padding:22px 24px 20px}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light::before{display:none}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light p.dfw-cta__title{margin:0;font-size:15px;line-height:1.8;text-wrap:pretty}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light p.dfw-cta__link{margin-top:8px}
:is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light p.dfw-cta__link a::after{content:' →'}
@media(max-width:600px){
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link{min-width:min(240px,100%);padding:12px 48px 12px 24px;font-size:14px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta .wp-block-button__link::after{right:18px;width:10px;height:9px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta p.dfw-cta__title{font-size:18px;line-height:1.65}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta p.dfw-cta__link{margin:14px 8px 0;font-size:13px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light{padding:18px 16px 16px}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light p.dfw-cta__title{font-size:14px;line-height:1.8}
 :is(.entry-body,.editor-styles-wrapper) .dfw-cta.dfw-cta--light p.dfw-cta__link{margin-top:6px}
}
