:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper){
  --nettoge-retro-block-scope: 1;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.wp-block-group.has-background:not(.is-style-parchment):not(.is-style-browser_mac):not(.is-style-desktop):not([class*="is-style-big_icon"]):not([class*="-background-color"]):not([style*="background"]){
  border: 1px solid var(--nettoge-retro-block-card-border);
  border-radius: var(--nettoge-retro-block-radius);
  box-shadow: var(--nettoge-retro-block-card-shadow);
  background: var(--nettoge-retro-block-card-bg);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
:is(ul, ol).wp-block-list:not(.is-style-index):not(.is-style-note_list):not(.is-style-good_list):not(.is-style-bad_list):not(.is-style-check_list):not(.is-style-num_circle):not(.is-style-triangle_list){
  border-left: 0;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
:is(ul, ol) :is(ul, ol).wp-block-list:not(.is-style-index):not(.is-style-note_list):not(.is-style-good_list):not(.is-style-bad_list):not(.is-style-check_list):not(.is-style-num_circle):not(.is-style-triangle_list){
  border-left: 0;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.wp-block-table:not(.etb-table):not(.custom-table-1407):not(.sparkingzerocharacterunlock):not(.sparkingzeroepisode-table){
  border-radius: var(--nettoge-retro-block-radius);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-step:not(.is-style-nettoge-route){
  --swl-step_arrow_color: var(--nettoge-retro-block-step-connector);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-step:not(.is-style-nettoge-route):not(.is-style-big):not(.is-style-small)
> .swell-block-step__item{
  border-color: var(--nettoge-retro-block-panel-border);
  border-radius: var(--nettoge-retro-block-radius);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-step:not(.is-style-nettoge-route) .swell-block-step__title{
  color: var(--nettoge-retro-block-step-title);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-step:not(.is-style-nettoge-route) .swell-block-step__body{
  color: var(--nettoge-retro-block-step-body);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-step.is-style-small .swell-block-step__number .__shape{
  color: var(--nettoge-swell-accent, var(--nettoge-retro-block-step-num-bg, var(--ntg-teal)));
  background: currentColor;
  border-color: currentColor;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-step.is-style-small:not(.is-style-nettoge-route) .swell-block-step__number .__shape[style*="currentColor"],
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-step.is-style-small:not(.is-style-nettoge-route) .swell-block-step__number .__shape[style*="background"]{
  background: currentColor;
  border-color: currentColor;
  opacity: 1;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.cap_box:not(.is-style-parchment){
  /* 2026-09-26 v2 の角丸にそろえる（依頼主「今のサイトデザインとMatchしていないところを直す」） */
  border-radius: var(--ntg2-radius);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.cap_box:not([data-colset]):not(.is-style-parchment){
  --capbox-color: var(--nettoge-retro-block-notice-title-bg);
  --capbox-color--bg: var(--nettoge-retro-block-notice-bg);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-faq:not(.is-style-faq-box):not(.is-style-faq-stripe) .faq_q{
  color: var(--nettoge-retro-block-step-title);
  border-bottom: 1px solid var(--nettoge-retro-block-panel-border);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline){
  --nettoge-retro-acc-accent: var(--nettoge-retro-acc-accent-default);
  /* Open tint mixes onto solid surface (transparent card-bg breaks color-mix). */
  --nettoge-retro-acc-open-bg: color-mix(
    in srgb,
    var(--nettoge-retro-acc-accent) var(--nettoge-retro-acc-open-mix, 12%),
    var(--nettoge-retro-acc-tint-base, var(--ntg-surface-1))
  );
  --ntg-acc-ink: var(--nettoge-retro-acc-title-fg);
  /* Index nums (01) + CSS plus bars use --ntg-acc-muted → accent-colored */
  --ntg-acc-muted: var(--nettoge-retro-acc-accent);
  --ntg-acc-body: var(--ntg-ink, var(--color_text));
  --ntg-acc-line: var(--nettoge-retro-acc-card-border);
  --ntg-acc-line-strong: var(--nettoge-retro-acc-accent);
  --ntg-acc-open-bg: var(--nettoge-retro-acc-card-bg);
  --ntg-acc-summary-open-bg: var(--nettoge-retro-acc-open-bg);
  --ntg-acc-panel-open-bg: var(--nettoge-retro-acc-card-bg);
  --ntg-acc-hover-bg: var(--nettoge-retro-acc-hover-bg);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline){
  background: var(--nettoge-retro-acc-card-bg);
  border: 1px solid var(--nettoge-retro-acc-card-border);
  border-left: 4px solid var(--nettoge-retro-acc-accent);
  border-radius: var(--nettoge-retro-acc-card-radius, var(--nettoge-retro-block-radius));
  box-shadow: var(--nettoge-retro-acc-card-shadow);
  overflow: hidden;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline):is([open], .is-opened){
  border-color: var(--nettoge-retro-acc-accent);
  box-shadow: var(--nettoge-retro-acc-card-open-shadow);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline) > .swell-block-accordion__title{
  padding: 14px 16px 14px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  /* No: :is(.post_content…) ancestor already outweighs SWELL block CSS */
  color: var(--nettoge-retro-acc-title-fg);
  background: transparent;
  border-left: 0;
  text-shadow: none;
  box-shadow: none;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline) > .swell-block-accordion__title:hover{
  background-color: var(--nettoge-retro-acc-hover-bg);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline) > .swell-block-accordion__title:focus-visible{
  outline: 2px solid var(--ntg-focus, var(--ntg-info, #2B6F9E));
  outline-offset: 2px;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline):is([open], .is-opened) > .swell-block-accordion__title{
  color: var(--nettoge-retro-acc-title-fg);
  background-color: var(--nettoge-retro-acc-open-bg);
  border-bottom-color: var(--nettoge-retro-acc-card-border);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline) > .swell-block-accordion__title
.swell-block-accordion__icon{
  width: 30px;
  height: 30px;
  border: 1px solid var(--nettoge-retro-acc-icon-border);
  background: var(--nettoge-retro-acc-icon-bg);
  transition: transform .46s var(--ntg-acc-ease), background-color .3s, border-color .3s;
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline):is([open], .is-opened) > .swell-block-accordion__title
.swell-block-accordion__icon{
  background: var(--nettoge-retro-acc-accent);
  border-color: var(--nettoge-retro-acc-accent);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline):is([open], .is-opened) > .swell-block-accordion__title
.swell-block-accordion__icon::before,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-acc-ff14):not(.is-style-teaser-blur):not(.is-style-teaser-inline)
> .swell-block-accordion__item:not(.is-style-teaser-blur):not(.is-style-teaser-inline):is([open], .is-opened) > .swell-block-accordion__title
.swell-block-accordion__icon::after{
  background: var(--nettoge-retro-acc-icon-bg);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.swell-block-accordion:is(.is-style-simple, .is-style-border)
> .swell-block-accordion__item{
  border-color: var(--nettoge-retro-block-panel-border);
  border-radius: var(--nettoge-retro-block-radius);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
:is(.p-blogCard--nettoge, .p-blogCard.-internal, .p-blogCard.-external):not(.p-blogCard--l04){
  background: var(--nettoge-retro-blogcard-bg, var(--nettoge-retro-content-bg));
  border: 1px solid var(--nettoge-retro-blogcard-border, var(--nettoge-retro-core-card-border));
  border-radius: var(--nettoge-retro-block-radius);
  box-shadow: var(--nettoge-retro-blogcard-shadow, none);
  color: var(--nettoge-retro-blogcard-fg, var(--nettoge-retro-block-list-title));
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
.p-postList .p-postList__title{
  color: var(--nettoge-retro-block-step-title);
}
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper)
:is(.nexus-card, .nmc, .etb-wrapper, .etb-guide, .ng-stepper, .game-mod-block, .isr-block, .ant-container, .inline-gallery-lightbox){
  /* NettogeCore owns chrome — do not inherit block panel vars onto internals */
  --nettoge-retro-block-panel-border: var(--border-swell-box, var(--color_border));
}
