/* 記事LPキット（エクステリアマウス）— build.py で assets/emk.css に変換
   書き方：:is(.post_content,.editor-styles-wrapper) = 本文（公開画面 .post_content／エディタ .editor-styles-wrapper）
           :is(.x>:not(.wp-block-group__inner-container),.x>.wp-block-group__inner-container>*) = グループ .x の直下（SWELLの公開画面は inner-container を挟むので両方に当てる） */
:root{
  --emk-main:#235c45; --emk-main-d:#173f30; --emk-main-l:#e8f3ee; --emk-main-ll:#f4faf6;
  --emk-accent:#f47c20; --emk-accent-d:#c85a0c; --emk-accent-l:#fff4e6;
  --emk-red:#e0402a; --emk-yellow:#fff3b0; --emk-text:#333;
  --emk-gold:#d4a017; --emk-silver:#9aa4ad; --emk-bronze:#b87333;
  --emk-radius:12px;
  --emk-crown-w:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.55' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23ffffff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle fill='%23ffffff' cx='4' cy='12' r='4'/%3E%3Ccircle fill='%23ffffff' cx='32' cy='4' r='4'/%3E%3Ccircle fill='%23ffffff' cx='60' cy='12' r='4'/%3E%3C/svg%3E");
  --emk-crown:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle cx='4' cy='12' r='4'/%3E%3Ccircle cx='32' cy='4' r='4'/%3E%3Ccircle cx='60' cy='12' r='4'/%3E%3C/svg%3E");
}

/* ブロックの右パネル「LPキットの色・デザイン」で色を選んだとき：濃淡を自動で作る（中のブロックにも効く） */
[style*="--emk-main:"]{--emk-main-d:color-mix(in srgb,var(--emk-main) 68%,#000);--emk-main-l:color-mix(in srgb,var(--emk-main) 13%,#fff);--emk-main-ll:color-mix(in srgb,var(--emk-main) 5%,#fff)}
[style*="--emk-accent:"]{--emk-accent-d:color-mix(in srgb,var(--emk-accent) 80%,#000);--emk-accent-l:color-mix(in srgb,var(--emk-accent) 10%,#fff)}

/* ---------- 段落 ---------- */
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-pr{font-size:12px!important;color:#888;text-align:right;margin:0 0 8px!important}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-lead{font-size:1.25em;font-weight:700;line-height:1.6;text-align:center;color:var(--emk-main-d)}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-label{display:table;margin:24px auto -6px!important;padding:4px 16px;border:2px solid var(--emk-accent);border-radius:999px;background:#fff;color:var(--emk-accent);font-weight:700;font-size:14px;position:relative;text-align:center}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-label::after{content:"";position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);border:6px solid transparent;border-top-color:var(--emk-accent);border-bottom:0}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-band{background:var(--emk-main-l);color:var(--emk-main);font-weight:700;text-align:center;padding:14px 16px;border-radius:10px;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-worry{position:relative;background:#fff;border:1.5px solid var(--emk-main);border-radius:10px;padding:14px 14px 14px 52px!important;font-weight:700;margin:12px 0!important}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-worry::before{content:"?";position:absolute;left:12px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;background:var(--emk-red);color:#fff;font-weight:900;text-align:center;line-height:28px;font-size:17px}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-check{position:relative;padding:12px 14px 12px 42px!important;background:var(--emk-accent-l);border-radius:8px;font-weight:700}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-check::before{content:"✔";position:absolute;left:14px;top:12px;color:var(--emk-accent);font-weight:900}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-point{background:var(--emk-yellow);border-left:5px solid var(--emk-accent);padding:12px 16px!important;border-radius:4px}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-arrow{text-align:center;color:var(--emk-main);font-weight:700;margin:20px 0 6px!important}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-arrow::after{content:"";display:block;width:0;height:0;margin:8px auto 0;border:16px solid transparent;border-top:18px solid var(--emk-accent);border-bottom:0}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-textlink{text-align:center;font-weight:700}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-textlink a{color:var(--emk-accent-d)!important;text-decoration:underline!important;text-underline-offset:3px}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-textlink a::before{content:"＞＞ "}
:is(.post_content,.editor-styles-wrapper) p.is-style-emk-note{font-size:12px!important;color:#777;line-height:1.7}

/* ---------- 見出し（SWELLの見出しデザインを消してから付ける） ---------- */
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading[class*="is-style-emk-h-"]{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;color:var(--emk-text)!important;position:relative;line-height:1.5}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading[class*="is-style-emk-h-"]::before,
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading[class*="is-style-emk-h-"]::after{content:none!important;display:none!important;background:none!important;border:0!important}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading.is-style-emk-h-band{background:var(--emk-main)!important;color:#fff!important;padding:14px 18px!important;border-radius:8px;text-align:center}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading.is-style-emk-h-line{border-left:6px solid var(--emk-main)!important;padding:6px 0 6px 14px!important;background:var(--emk-main-ll)!important}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading.is-style-emk-h-center{text-align:center;color:var(--emk-main-d)!important;padding-bottom:14px!important}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading.is-style-emk-h-center::after{content:""!important;display:block!important;position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:64px;height:4px;border-radius:2px;background:var(--emk-accent)!important}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading.is-style-emk-h-check{padding:4px 0 4px 36px!important;border-bottom:2px solid var(--emk-main-l)!important;padding-bottom:10px!important}
:is(.post_content,.editor-styles-wrapper) :is(h2,h3,h4).wp-block-heading.is-style-emk-h-check::before{content:"✔"!important;display:block!important;position:absolute;left:0;top:2px;width:26px;height:26px;border-radius:50%;background:var(--emk-main)!important;color:#fff;font-size:14px;text-align:center;line-height:26px}

/* ---------- グループ共通 ---------- */
:is(.post_content,.editor-styles-wrapper) .wp-block-group[class*="is-style-emk-"]{margin-top:28px;margin-bottom:28px;box-sizing:border-box}
:is(.wp-block-group[class*="is-style-emk-"]>:not(.wp-block-group__inner-container),.wp-block-group[class*="is-style-emk-"]>.wp-block-group__inner-container>*):first-child{margin-top:0}
:is(.wp-block-group[class*="is-style-emk-"]>:not(.wp-block-group__inner-container),.wp-block-group[class*="is-style-emk-"]>.wp-block-group__inner-container>*):last-child{margin-bottom:0}

/* 見出し付きボックス：1つ目のブロックが緑の見出しになる */
:is(.post_content,.editor-styles-wrapper) .is-style-emk-box{border:2px solid var(--emk-main);border-radius:var(--emk-radius);padding:0 18px 20px;overflow:hidden;background:#fff}
:is(.is-style-emk-box>:not(.wp-block-group__inner-container),.is-style-emk-box>.wp-block-group__inner-container>*):first-child{margin:0 -18px 18px!important;padding:12px 16px!important;background:var(--emk-main)!important;color:#fff!important;font-weight:700;text-align:center;border:0!important;border-radius:0!important;font-size:1.05em}
:is(.is-style-emk-box>:not(.wp-block-group__inner-container),.is-style-emk-box>.wp-block-group__inner-container>*):first-child::before,:is(.is-style-emk-box>:not(.wp-block-group__inner-container),.is-style-emk-box>.wp-block-group__inner-container>*):first-child::after{content:none!important}

/* お悩みボックス */
:is(.post_content,.editor-styles-wrapper) .is-style-emk-worrybox{background:var(--emk-main-ll);border-radius:var(--emk-radius);padding:20px 16px}
:is(.is-style-emk-worrybox>:not(.wp-block-group__inner-container),.is-style-emk-worrybox>.wp-block-group__inner-container>*):first-child{display:table;margin:0 auto 12px!important;padding:6px 18px!important;border-radius:999px;background:var(--emk-main)!important;color:#fff!important;font-weight:700;font-size:14px;border:0!important}
:is(.is-style-emk-worrybox>:not(.wp-block-group__inner-container),.is-style-emk-worrybox>.wp-block-group__inner-container>*):first-child::before,:is(.is-style-emk-worrybox>:not(.wp-block-group__inner-container),.is-style-emk-worrybox>.wp-block-group__inner-container>*):first-child::after{content:none!important}

/* 条件カード：1つ目＝見出し帯（「条件1」などは太字で書くとオレンジの丸ラベル） */
:is(.post_content,.editor-styles-wrapper) .is-style-emk-cond{border:2px solid var(--emk-main);border-radius:var(--emk-radius);padding:0 16px 16px;background:#fff;box-shadow:0 3px 10px color-mix(in srgb,var(--emk-main) 10%,transparent);overflow:hidden}
:is(.is-style-emk-cond>:not(.wp-block-group__inner-container),.is-style-emk-cond>.wp-block-group__inner-container>*):first-child{margin:0 -16px 14px!important;padding:12px 14px!important;background:var(--emk-main)!important;color:#fff!important;font-weight:700;border:0!important;border-radius:0!important}
:is(.is-style-emk-cond>:not(.wp-block-group__inner-container),.is-style-emk-cond>.wp-block-group__inner-container>*):first-child::before,:is(.is-style-emk-cond>:not(.wp-block-group__inner-container),.is-style-emk-cond>.wp-block-group__inner-container>*):first-child::after{content:none!important}
:is(.is-style-emk-cond>:not(.wp-block-group__inner-container),.is-style-emk-cond>.wp-block-group__inner-container>*):first-child strong{display:inline-block;margin-right:8px;padding:2px 10px;border-radius:999px;background:var(--emk-accent);color:#fff;font-size:.85em}

/* 注意ボックス */
:is(.post_content,.editor-styles-wrapper) .is-style-emk-caution{background:#fff8f6;border:2px solid var(--emk-red);border-radius:var(--emk-radius);padding:44px 16px 16px;position:relative}
:is(.post_content,.editor-styles-wrapper) .is-style-emk-caution::before{content:"！ 注意";position:absolute;left:0;top:0;padding:4px 14px;background:var(--emk-red);color:#fff;font-weight:700;font-size:13px;border-radius:9px 0 10px 0}

/* ランキング枠：1つ目＝サービス名。左上にメダルが付く */
:is(.post_content,.editor-styles-wrapper) .wp-block-group:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3){--rk:var(--emk-gold);border:3px solid var(--rk);border-radius:var(--emk-radius);padding:20px 16px 20px;position:relative;background:#fff;margin-top:44px}
:is(.post_content,.editor-styles-wrapper) .is-style-emk-rank1{--rk:var(--emk-gold)!important;--rkc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e7cb7f'/%3E%3Cstop offset='.55' stop-color='%23d4a017'/%3E%3Cstop offset='1' stop-color='%239f7811'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle fill='%23d4a017' cx='4' cy='12' r='4'/%3E%3Ccircle fill='%23d4a017' cx='32' cy='4' r='4'/%3E%3Ccircle fill='%23d4a017' cx='60' cy='12' r='4'/%3E%3C/svg%3E");background:linear-gradient(#fffbea,#fff 160px)!important}
:is(.post_content,.editor-styles-wrapper) .is-style-emk-rank2{--rk:var(--emk-silver)!important;--rkc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c7cdd2'/%3E%3Cstop offset='.55' stop-color='%239aa4ad'/%3E%3Cstop offset='1' stop-color='%23747b82'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle fill='%239aa4ad' cx='4' cy='12' r='4'/%3E%3Ccircle fill='%239aa4ad' cx='32' cy='4' r='4'/%3E%3Ccircle fill='%239aa4ad' cx='60' cy='12' r='4'/%3E%3C/svg%3E")}
:is(.post_content,.editor-styles-wrapper) .is-style-emk-rank3{--rk:var(--emk-bronze)!important;--rkc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23d8b28f'/%3E%3Cstop offset='.55' stop-color='%23b87333'/%3E%3Cstop offset='1' stop-color='%238a5626'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle fill='%23b87333' cx='4' cy='12' r='4'/%3E%3Ccircle fill='%23b87333' cx='32' cy='4' r='4'/%3E%3Ccircle fill='%23b87333' cx='60' cy='12' r='4'/%3E%3C/svg%3E")}
:is(.wp-block-group:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>:not(.wp-block-group__inner-container),.wp-block-group:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>.wp-block-group__inner-container>*):first-child{margin-top:16px!important;text-align:center;font-size:1.4em;font-weight:900;color:var(--emk-main-d)!important;background:none!important;border:0!important;padding:0!important}
:is(.wp-block-group:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>:not(.wp-block-group__inner-container),.wp-block-group:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>.wp-block-group__inner-container>*):first-child::before,
:is(.wp-block-group:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>:not(.wp-block-group__inner-container),.wp-block-group:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>.wp-block-group__inner-container>*):first-child::after{content:none!important}

/* CTAエリア */
:is(.post_content,.editor-styles-wrapper) .is-style-emk-cta{background:var(--emk-accent-l);border-radius:var(--emk-radius);padding:18px 14px;text-align:center}

/* 口コミ */
:is(.post_content,.editor-styles-wrapper) .is-style-emk-review{background:#fff;border:1.5px solid #e6e6e6;border-radius:var(--emk-radius);padding:16px 16px 16px 72px;position:relative}
:is(.post_content,.editor-styles-wrapper) .is-style-emk-review::before{content:"☺";position:absolute;left:16px;top:16px;width:42px;height:42px;border-radius:50%;background:var(--emk-main-l);color:var(--emk-main);font-size:26px;line-height:42px;text-align:center}
:is(.is-style-emk-review>:not(.wp-block-group__inner-container),.is-style-emk-review>.wp-block-group__inner-container>*):first-child{font-weight:700;color:var(--emk-main-d);margin-bottom:6px!important}

/* まとめボックス */
:is(.post_content,.editor-styles-wrapper) .is-style-emk-summary{background:var(--emk-main-ll);border-top:6px solid var(--emk-main);border-radius:0 0 var(--emk-radius) var(--emk-radius);padding:20px 18px}
:is(.is-style-emk-summary>:not(.wp-block-group__inner-container),.is-style-emk-summary>.wp-block-group__inner-container>*):first-child{font-weight:900;color:var(--emk-main-d)!important;font-size:1.15em;text-align:center;background:none!important;border:0!important;padding:0!important}
:is(.is-style-emk-summary>:not(.wp-block-group__inner-container),.is-style-emk-summary>.wp-block-group__inner-container>*):first-child::before,:is(.is-style-emk-summary>:not(.wp-block-group__inner-container),.is-style-emk-summary>.wp-block-group__inner-container>*):first-child::after{content:none!important}

/* 画面下に追従（公開画面だけ固定。エディタではふつうに表示） */
.post_content .is-style-emk-float{position:fixed;left:0;right:0;bottom:0;z-index:99;margin:0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);box-shadow:0 -3px 12px rgba(0,0,0,.12);transform:translateY(110%);transition:transform .3s}
.post_content .is-style-emk-float.emk-show{transform:none}
.post_content .is-style-emk-float :is(p,.wp-block-buttons){margin:0!important}
.post_content .is-style-emk-float .wp-block-button__link{padding:12px 10px!important;font-size:16px!important}
.editor-styles-wrapper .is-style-emk-float{border:2px dashed var(--emk-accent);padding:10px;border-radius:8px}
.editor-styles-wrapper .is-style-emk-float::before{content:"↓ 公開画面では、スクロールすると画面の下に固定で出ます";display:block;font-size:12px;color:var(--emk-accent-d);margin-bottom:6px}

/* ---------- ボタン ---------- */
:is(.post_content,.editor-styles-wrapper) .wp-block-buttons:has(> .wp-block-button[class*="is-style-emk-"]){justify-content:center}
:is(.post_content,.editor-styles-wrapper) .wp-block-button[class*="is-style-emk-"]{width:100%;max-width:600px;margin-left:auto;margin-right:auto}
:is(.post_content,.editor-styles-wrapper) .wp-block-button[class*="is-style-emk-"] .wp-block-button__link{display:block;width:100%;box-sizing:border-box;padding:18px 14px 20px;border-radius:12px;font-weight:900;font-size:19px;line-height:1.4;text-align:center;text-decoration:none!important;color:#fff!important;position:relative;overflow:hidden;letter-spacing:.03em}
:is(.post_content,.editor-styles-wrapper) .wp-block-button:is(.is-style-emk-cta,.is-style-emk-cta-puru) .wp-block-button__link{background:linear-gradient(color-mix(in srgb,var(--emk-accent) 72%,#fff),var(--emk-accent) 50%,color-mix(in srgb,var(--emk-accent) 92%,#000) 51%,color-mix(in srgb,var(--emk-accent) 88%,#000))!important;border-bottom:6px solid var(--emk-accent-d);box-shadow:0 6px 14px color-mix(in srgb,var(--emk-accent-d) 32%,transparent)}
:is(.post_content,.editor-styles-wrapper) .wp-block-button.is-style-emk-green .wp-block-button__link{background:linear-gradient(color-mix(in srgb,var(--emk-main) 82%,#fff),var(--emk-main))!important;border-bottom:6px solid var(--emk-main-d);box-shadow:0 6px 14px color-mix(in srgb,var(--emk-main) 28%,transparent)}
:is(.post_content,.editor-styles-wrapper) .wp-block-button[class*="is-style-emk-"] .wp-block-button__link::after{content:"";position:absolute;left:0;right:0;top:0;height:50%;background:rgba(255,255,255,.12);pointer-events:none}
:is(.post_content,.editor-styles-wrapper) .wp-block-button[class*="is-style-emk-"] .wp-block-button__link:active{transform:translateY(3px);border-bottom-width:3px}
:is(.post_content,.editor-styles-wrapper) .wp-block-button.is-style-emk-cta-puru .wp-block-button__link{animation:emkPuru 2.4s ease-in-out infinite}
@keyframes emkPuru{0%,62%,100%{transform:scale(1,1)}68%{transform:scale(1.06,.94)}74%{transform:scale(.96,1.04)}80%{transform:scale(1.03,.97)}88%{transform:scale(.99,1.01)}}
@media (max-width:599px){:is(.post_content,.editor-styles-wrapper) .wp-block-button[class*="is-style-emk-"] .wp-block-button__link{font-size:17px;padding:16px 10px 18px}}

/* ---------- 表 ---------- */
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec){margin:20px 0;overflow-x:auto}
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec) table{border-collapse:collapse;width:100%;min-width:0;background:#fff;font-size:14px;table-layout:auto}
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec) :is(th,td){border:1px solid var(--emk-main-l)!important;padding:10px 8px!important;text-align:center;vertical-align:middle;line-height:1.5;background:#fff;color:var(--emk-text)}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp thead :is(th,td){background:var(--emk-main)!important;color:#fff!important;font-weight:700}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp tbody :is(th,td):first-child{background:var(--emk-main-l)!important;color:var(--emk-main-d);font-weight:700;white-space:nowrap}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp tbody td:nth-child(2){background:#fffbea!important;font-weight:700}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp thead :is(th,td):nth-child(2){background:var(--emk-accent)!important}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp thead :is(th,td):nth-child(2)::before{content:"";display:inline-block;width:1.1em;height:1.1em;margin-right:4px;vertical-align:-2px;background:currentColor;-webkit-mask:var(--emk-crown) center/contain no-repeat;mask:var(--emk-crown) center/contain no-repeat}
/* 比較表の画像・バナー（emk.js が URL／バナーコードを画像に変える。インライン画像もOK） */
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec) td img{max-width:100%!important;height:auto!important;display:block;margin:0 auto;border-radius:4px}
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec) td .emk-banner{display:block;line-height:0}
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec) td .emk-banner img{border-radius:0}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-spec :is(th,td):first-child{background:var(--emk-main)!important;color:#fff!important;font-weight:700;width:34%}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-spec :is(th,td):not(:first-child){text-align:left}
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec) figcaption{font-size:12px;color:#777;text-align:left}
.emk-m{font-weight:900;font-size:1.15em;margin-right:2px}
.emk-m--a{color:var(--emk-red)}.emk-m--b{color:var(--emk-accent)}.emk-m--c{color:#5b8fd6}.emk-m--x{color:#999}
@media (max-width:599px){:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp table{font-size:12px}:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp :is(th,td){padding:8px 4px!important}}

/* ---------- リスト ---------- */
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list[class*="is-style-emk-"]{list-style:none!important;padding:0!important;margin-left:0!important;border:0;background:none}
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list[class*="is-style-emk-"]>li{position:relative;padding:8px 0 8px 34px!important;border-bottom:1px dashed #dcdcdc;list-style:none!important;margin:0!important;line-height:1.6}
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list[class*="is-style-emk-"]>li::marker{content:none}
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list[class*="is-style-emk-"]>li::before{position:absolute;left:2px;top:9px;width:24px;height:24px;border-radius:50%;color:#fff;font-weight:900;font-size:13px;line-height:24px;text-align:center;border:0;background:none;transform:none}
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list.is-style-emk-check>li::before{content:"✔";background:var(--emk-accent)}
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list.is-style-emk-x>li::before{content:"✕";background:#9a9a9a}
:is(.post_content,.editor-styles-wrapper) ol.wp-block-list.is-style-emk-num,:is(.post_content,.editor-styles-wrapper) ul.wp-block-list.is-style-emk-num{counter-reset:emk}
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list.is-style-emk-num>li{counter-increment:emk}
:is(.post_content,.editor-styles-wrapper) :is(ul,ol).wp-block-list.is-style-emk-num>li::before{content:counter(emk);background:var(--emk-main)}

/* ---------- 画像 ---------- */
:is(.post_content,.editor-styles-wrapper) .wp-block-image.is-style-emk-round img{border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.12)}
:is(.post_content,.editor-styles-wrapper) .wp-block-image.is-style-emk-frame img{border:4px solid #fff;outline:2px solid var(--emk-main-l);border-radius:6px}
:is(.post_content,.editor-styles-wrapper) .wp-block-image:is(.is-style-emk-round,.is-style-emk-frame) figcaption{font-size:12px;color:#777;text-align:center}

/* ---------- よくある質問 ---------- */
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq{border:1.5px solid var(--emk-main-l);border-radius:10px;margin:10px 0;background:#fff;overflow:hidden}
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq>summary{position:relative;list-style:none;cursor:pointer;padding:14px 40px 14px 50px;font-weight:700;background:var(--emk-main-ll);color:var(--emk-main-d)}
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq>summary::-webkit-details-marker{display:none}
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq>summary::before{content:"Q";position:absolute;left:12px;top:12px;width:26px;height:26px;border-radius:50%;background:var(--emk-accent);color:#fff;text-align:center;line-height:26px;font-weight:900}
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq>summary::after{content:"＋";position:absolute;right:14px;top:13px;color:var(--emk-main)}
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq[open]>summary::after{content:"－"}
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq>:not(summary){position:relative;padding:4px 16px 4px 50px!important;margin:12px 0!important}
:is(.post_content,.editor-styles-wrapper) details.is-style-emk-faq>summary+*::before{content:"A";position:absolute;left:12px;top:2px;width:26px;height:26px;border-radius:50%;background:var(--emk-main);color:#fff;text-align:center;line-height:26px;font-weight:900}

/* 王冠デザイン：王冠（王冠の中に数字）— 編集画面の選択枠（::after）とぶつからないよう ::before だけで描く */
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-crown:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3){margin-top:60px!important}
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-crown:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)::before{position:absolute;left:50%;top:-40px;transform:translateX(-50%);width:68px;height:51px;box-sizing:border-box;padding-top:25px;background:var(--rkc) center/contain no-repeat;color:#fff;font:italic 900 19px/1 Georgia,"Times New Roman",serif;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.3);z-index:1}
:is(.post_content,.editor-styles-wrapper) .emk-medal-crown.is-style-emk-rank1::before{content:"1"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-crown.is-style-emk-rank2::before{content:"2"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-crown.is-style-emk-rank3::before{content:"3"}

/* 王冠デザイン：エレガント（小さな王冠＋筆記体の No.1） */
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-elegant:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3){margin-top:92px!important}
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-elegant:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)::before{position:absolute;left:50%;top:-86px;transform:translateX(-50%);padding:30px 4px 0;background:var(--rkc) top center/30px 23px no-repeat;color:var(--rk);font:italic 700 34px/44px Didot,"Bodoni 72","Times New Roman",Georgia,serif;letter-spacing:.03em;white-space:nowrap;text-shadow:0 1px 0 rgba(0,0,0,.08);z-index:1}
:is(.post_content,.editor-styles-wrapper) .emk-medal-elegant.is-style-emk-rank1::before{content:"No.1"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-elegant.is-style-emk-rank2::before{content:"No.2"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-elegant.is-style-emk-rank3::before{content:"No.3"}

/* 王冠デザイン：リボン（左上のななめ帯） */
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-ribbon:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3){overflow:hidden;border-top-left-radius:4px!important}
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-ribbon:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)::before{position:absolute;top:20px;left:-40px;width:150px;padding:5px 0;transform:rotate(-45deg);background:var(--rk);color:#fff;font:italic 900 15px/1.2 Georgia,"Times New Roman",serif;text-align:center;letter-spacing:.08em;box-shadow:0 2px 6px rgba(0,0,0,.2);z-index:1}
:is(.wp-block-group.emk-medal-ribbon:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>:not(.wp-block-group__inner-container),.wp-block-group.emk-medal-ribbon:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)>.wp-block-group__inner-container>*):first-child{padding:0 34px!important}
:is(.post_content,.editor-styles-wrapper) .emk-medal-ribbon.is-style-emk-rank1::before{content:"No.1"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-ribbon.is-style-emk-rank2::before{content:"No.2"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-ribbon.is-style-emk-rank3::before{content:"No.3"}

/* 王冠デザイン：シンプル（丸いメダル） */
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-simple:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)::before{position:absolute;left:50%;top:-24px;transform:translateX(-50%);width:48px;height:48px;border-radius:50%;background:var(--rk);color:#fff;font-weight:900;font-size:16px;line-height:48px;text-align:center;box-shadow:0 3px 8px rgba(0,0,0,.15);z-index:1}
:is(.post_content,.editor-styles-wrapper) .emk-medal-simple.is-style-emk-rank1::before{content:"1位"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-simple.is-style-emk-rank2::before{content:"2位"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-simple.is-style-emk-rank3::before{content:"3位"}

/* 王冠デザイン：タブ（左上に王冠付きの見出しタブ） */
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-tab:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3){margin-top:56px!important;border-top-left-radius:0!important}
:is(.post_content,.editor-styles-wrapper) .wp-block-group.emk-medal-tab:is(.is-style-emk-rank1,.is-style-emk-rank2,.is-style-emk-rank3)::before{position:absolute;left:-3px;bottom:100%;padding:7px 18px 6px 40px;border-radius:10px 10px 0 0;background:var(--emk-crown-w) 13px 50%/20px 15px no-repeat,var(--rk);color:#fff;font-weight:900;font-size:15px;line-height:1.4;letter-spacing:.05em;white-space:nowrap;width:max-content;box-sizing:border-box;z-index:1}
:is(.post_content,.editor-styles-wrapper) .emk-medal-tab.is-style-emk-rank1::before{content:"第1位"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-tab.is-style-emk-rank2::before{content:"第2位"}
:is(.post_content,.editor-styles-wrapper) .emk-medal-tab.is-style-emk-rank3::before{content:"第3位"}

/* ---------- 比較表の王冠（見出し） ---------- */
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp[class*="emk-medal-"] thead :is(th,td):nth-child(n+2){background:#fff!important;color:var(--emk-main-d)!important;border-top:4px solid var(--rk,var(--emk-main-l))!important;vertical-align:top;padding-top:8px!important}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp[class*="emk-medal-"] thead :is(th,td):nth-child(2){background:#fffbea!important}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp[class*="emk-medal-"] thead :is(th,td):nth-child(2)::before{-webkit-mask:none!important;mask:none!important;width:auto;height:auto;vertical-align:baseline;margin-right:0}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp[class*="emk-medal-"] thead :is(th,td):nth-child(2){--rk:#d4a017;--rkc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e7cb7f'/%3E%3Cstop offset='.55' stop-color='%23d4a017'/%3E%3Cstop offset='1' stop-color='%239f7811'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle fill='%23d4a017' cx='4' cy='12' r='4'/%3E%3Ccircle fill='%23d4a017' cx='32' cy='4' r='4'/%3E%3Ccircle fill='%23d4a017' cx='60' cy='12' r='4'/%3E%3C/svg%3E")}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp[class*="emk-medal-"] thead :is(th,td):nth-child(3){--rk:#9aa4ad;--rkc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23c7cdd2'/%3E%3Cstop offset='.55' stop-color='%239aa4ad'/%3E%3Cstop offset='1' stop-color='%23747b82'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle fill='%239aa4ad' cx='4' cy='12' r='4'/%3E%3Ccircle fill='%239aa4ad' cx='32' cy='4' r='4'/%3E%3Ccircle fill='%239aa4ad' cx='60' cy='12' r='4'/%3E%3C/svg%3E")}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp[class*="emk-medal-"] thead :is(th,td):nth-child(4){--rk:#b87333;--rkc:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23d8b28f'/%3E%3Cstop offset='.55' stop-color='%23b87333'/%3E%3Cstop offset='1' stop-color='%238a5626'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M4 14l14 12L32 4l14 22 14-12-6 30H10z'/%3E%3Ccircle fill='%23b87333' cx='4' cy='12' r='4'/%3E%3Ccircle fill='%23b87333' cx='32' cy='4' r='4'/%3E%3Ccircle fill='%23b87333' cx='60' cy='12' r='4'/%3E%3C/svg%3E")}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-simple thead :is(th,td):nth-child(2)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-simple thead :is(th,td):nth-child(3)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-simple thead :is(th,td):nth-child(4)::before{display:block;width:40px;height:40px;margin:0 auto 6px;border-radius:50%;background:var(--rk);color:#fff;font-weight:900;font-size:13px;line-height:40px;text-align:center}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-simple thead :is(th,td):nth-child(2)::before{content:"1位"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-simple thead :is(th,td):nth-child(3)::before{content:"2位"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-simple thead :is(th,td):nth-child(4)::before{content:"3位"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-crown thead :is(th,td):nth-child(2)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-crown thead :is(th,td):nth-child(3)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-crown thead :is(th,td):nth-child(4)::before{display:block;width:48px;height:36px;margin:0 auto 4px;padding-top:17px;box-sizing:border-box;background:var(--rkc) center/contain no-repeat;color:#fff;font:italic 900 14px/1 Georgia,"Times New Roman",serif;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.3)}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-crown thead :is(th,td):nth-child(2)::before{content:"1"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-crown thead :is(th,td):nth-child(3)::before{content:"2"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-crown thead :is(th,td):nth-child(4)::before{content:"3"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-ribbon thead :is(th,td):nth-child(2)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-ribbon thead :is(th,td):nth-child(3)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-ribbon thead :is(th,td):nth-child(4)::before{display:block;width:46px;margin:-8px auto 6px;padding:7px 0 12px;background:var(--rk);color:#fff;font:italic 900 12px/1 Georgia,"Times New Roman",serif;text-align:center;clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%)}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-ribbon thead :is(th,td):nth-child(2)::before{content:"No.1"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-ribbon thead :is(th,td):nth-child(3)::before{content:"No.2"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-ribbon thead :is(th,td):nth-child(4)::before{content:"No.3"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-tab thead :is(th,td):nth-child(2)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-tab thead :is(th,td):nth-child(3)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-tab thead :is(th,td):nth-child(4)::before{display:block;width:max-content;max-width:100%;box-sizing:border-box;margin:0 auto 6px;padding:4px 10px 4px 27px;border-radius:999px;background:var(--emk-crown-w) 9px 50%/14px 11px no-repeat,var(--rk);color:#fff;font-weight:900;font-size:12px;line-height:1.4;letter-spacing:.03em;white-space:nowrap;text-align:left}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-tab thead :is(th,td):nth-child(2)::before{content:"第1位"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-tab thead :is(th,td):nth-child(3)::before{content:"第2位"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-tab thead :is(th,td):nth-child(4)::before{content:"第3位"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-elegant thead :is(th,td):nth-child(2)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-elegant thead :is(th,td):nth-child(3)::before,:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-elegant thead :is(th,td):nth-child(4)::before{display:block;margin:0 auto 4px;padding-top:20px;background:var(--rkc) top center/22px 17px no-repeat;color:var(--rk);font:italic 700 22px/1.1 Didot,"Bodoni 72","Times New Roman",Georgia,serif;text-align:center;white-space:nowrap}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-elegant thead :is(th,td):nth-child(2)::before{content:"No.1"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-elegant thead :is(th,td):nth-child(3)::before{content:"No.2"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table.is-style-emk-cmp.emk-medal-elegant thead :is(th,td):nth-child(4)::before{content:"No.3"}
:is(.post_content,.editor-styles-wrapper) .wp-block-table:is(.is-style-emk-cmp,.is-style-emk-spec) th img{max-width:100%!important;height:auto!important;display:block;margin:0 auto 6px;border-radius:4px}
.editor-styles-wrapper .wp-block-table :is(th,td).emk-drop-on{outline:3px dashed var(--emk-accent)!important;outline-offset:-3px;background:var(--emk-accent-l)!important}
