body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d){
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--swl-table-modern-bottom-border, var(--swl-table-modern-row-border));
  border-radius: var(--ntg2-radius, 0);
  overflow: hidden;
  line-height: 1.7;
  font-size: var(--swl-table-modern-font-size, 0.875rem);
  background: var(--swl-table-modern-cell-bg);
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(th, td),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(th, td),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table.is-style-stripes :is(th, td),
.editor-styles-wrapper .wp-block-table.is-style-stripes :is(th, td),
body :is(.post_content, .entry-content, .wp-block-post-content) .is-style-stripes tbody :is(th, td),
.editor-styles-wrapper .is-style-stripes tbody :is(th, td){
  padding: var(--swl-table-modern-cell-pad-y, 0.55em) var(--swl-table-modern-cell-pad-x, 0.85em);
  /* SWELL blocks.css が stripes で border-style:none するため上書き。縦線は無し、上に区切りの横線だけ */
  border: 0;
  border-top: 1px solid var(--swl-table-modern-row-border);
  border-image: none;
  vertical-align: middle;
  background: var(--swl-table-modern-cell-bg);
  color: var(--swl-table-modern-cell-text);
  font-size: var(--swl-table-modern-font-size, 0.95rem);
  line-height: var(--ntg2-table-line-height, 1.7);
  text-align: left;
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) thead :is(th, td),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) thead :is(th, td),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table.is-style-stripes thead :is(th, td),
.editor-styles-wrapper .wp-block-table.is-style-stripes thead :is(th, td){
  padding: var(--swl-table-modern-header-pad-y, 0.65em) var(--swl-table-modern-cell-pad-x, 0.85em);
  background: var(--swl-table-modern-header-bg, var(--nettoge-retro-table-header-bg));
  color: var(--swl-table-modern-header-text, var(--nettoge-retro-table-header-fg));
  border: 0;
  border-bottom: 1px solid var(--border-table-header-divider, var(--swl-table-modern-row-border));
  border-image: none;
  font-size: var(--swl-table-modern-header-font-size, 1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.4;
  vertical-align: middle;
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > :is(thead, tbody):first-child > tr:first-child > :is(th, td),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > :is(thead, tbody):first-child > tr:first-child > :is(th, td),
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > thead + tbody > tr:first-child > :is(th, td),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > thead + tbody > tr:first-child > :is(th, td){
  border-top: 0;
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > :is(thead, tbody):first-child > tr:first-child > :is(th, td):first-child,
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > :is(thead, tbody):first-child > tr:first-child > :is(th, td):first-child{
  border-top-left-radius: calc(var(--ntg2-radius, 0px) - 1px);
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > :is(thead, tbody):first-child > tr:first-child > :is(th, td):last-child,
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > :is(thead, tbody):first-child > tr:first-child > :is(th, td):last-child{
  border-top-right-radius: calc(var(--ntg2-radius, 0px) - 1px);
}
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table.is-style-stripes tbody tr:nth-child(even) > :is(th, td),
.editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(even) > :is(th, td){
  background: var(--surface-table-row-even, var(--nettoge-retro-table-stripe));
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tbody tr:hover > :is(th, td),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tbody tr:hover > :is(th, td){
  background: var(--swl-table-modern-hover-bg, var(--nettoge-retro-table-hover));
}
body :is(.post_content, .entry-content, .wp-block-post-content)
  figure:has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d)),
.editor-styles-wrapper figure:has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d)){
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body
  :is(.post_content, .entry-content)
  :is(div, section):has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d):only-child),
.editor-styles-wrapper
  :is(div, section):has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d):only-child){
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body :is(.post_content, .entry-content, .wp-block-post-content)
  table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d)
  :is(tbody, tfoot)
  :is(th, td),
.editor-styles-wrapper
  table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d)
  :is(tbody, tfoot)
  :is(th, td){
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
@media (max-width: 781px){
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d),
  .editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d){
    width: 100%;
    min-width: 0;
    max-width: 100%;
    /* 等分固定をやめ、数値など短い列を縮めて文章列へ幅を回す */
    table-layout: auto;
    font-size: var(--ntg2-table-font-size-sp, var(--swl-table-modern-font-size, 0.875rem));
  }
body :is(.post_content, .entry-content, .wp-block-post-content)
    figure:has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d)),
  .editor-styles-wrapper
    figure:has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d)),
  body
    :is(.post_content, .entry-content)
    :is(div, section):has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d):only-child),
  .editor-styles-wrapper
    :is(div, section):has(> table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d):only-child){
    max-width: 100%;
    overflow-x: clip;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) > table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d),
  .editor-styles-wrapper > table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d){
    display: table;
    overflow-x: visible;
    width: 100%;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(th, td),
  .editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(th, td){
    min-width: 0;
    max-width: none;
    padding: var(--ntg2-table-pad-y-sp, 0.55em) var(--ntg2-table-pad-x-sp, 0.65em);
    font-size: inherit;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) thead :is(th, td),
  .editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) thead :is(th, td){
    min-width: 0;
    max-width: none;
    padding: var(--ntg2-table-pad-y-sp, 0.55em) var(--ntg2-table-pad-x-sp, 0.65em);
    font-size: var(--ntg2-table-font-size-sp, var(--swl-table-modern-header-font-size, 1rem));
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.4;
    vertical-align: middle;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tbody :is(th, td),
  body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tfoot :is(th, td),
  .editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tbody :is(th, td),
  .editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tfoot :is(th, td){
    min-width: 0;
    line-height: var(--ntg2-table-line-height-sp, 1.5);
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(img, video, iframe),
  .editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(img, video, iframe){
    max-width: 100%;
    height: auto;
  }
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(td[data-text-color="black"], th[data-text-color="black"]),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(td[data-text-color="black"], th[data-text-color="black"]){
  color: var(--swl-text_color--black, #222222);
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(td[data-text-color="white"], th[data-text-color="white"]),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(td[data-text-color="white"], th[data-text-color="white"]){
  color: var(--swl-text_color--white, #ffffff);
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) thead[style*="--thead-color--txt"] :is(th, td),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) thead[style*="--thead-color--txt"] :is(th, td){
  color: var(--thead-color--txt);
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tbody[style*="--tbody-th-color--txt"] > tr > :first-child:not(.-no1),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) tbody[style*="--tbody-th-color--txt"] > tr > :first-child:not(.-no1){
  color: var(--tbody-th-color--txt);
}
body :is(.post_content, .entry-content, .wp-block-post-content) table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(td[data-text-color="custom"], th[data-text-color="custom"]),
.editor-styles-wrapper table:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) :is(td[data-text-color="custom"], th[data-text-color="custom"]){
  color: var(--swl-cell-text-color);
}
@media (max-width: 599px){
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d){
    display: block;
    width: 100%;
    border: 0;
    background: none;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > thead,
  body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody > tr:first-child:not(:has(td)){
    display: none;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody{
    display: block;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody > tr{
    display: block;
    margin: 0 0 10px;
    border: 1px solid var(--ntg2-line-2, #d9d4cc);
    border-radius: var(--ntg2-radius, 6px);
    overflow: hidden;
    background: var(--ntg2-paper, #fff);
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody > tr > :is(td, th){
    display: flow-root;
    box-sizing: border-box;
    width: auto;
    min-height: calc(1.6em + 12px);
    padding: 6px 10px 6px calc(6.2em + 18px);
    border: 0;
    border-top: 1px solid var(--ntg2-line, #e6e1d8);
    background: none;
    text-align: left;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody > tr > :is(td, th)[data-label]::before{
    content: attr(data-label);
    float: left;
    width: 6.2em;
    margin-left: calc(-6.2em - 8px);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--ntg2-sub, #6b665e);
    overflow-wrap: anywhere;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody > tr > :is(td, th):first-child{
    padding-left: 10px;
    border-top: 0;
    background: var(--ntg2-paper-2, #f3f0ea);
    font-weight: 700;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody > tr > :is(td, th):first-child::before{
    content: none;
  }
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table[class*="ntg-tw-"] table.ntg-stack:not(.etb-table, .ncg__t, .custom-table-1407, .wp-calendar-table, .sparkingzerocharacterunlock, .sparkingzeroepisode-table, .ff14d) > tbody > tr > :is(td, th){
    width: auto;
  }
}
