/*
 * WordPress core blocks harmonization (front + editor).
 * Moved from main.css Phase 7-D.
 * Sync: enqueued on front@59 and editor content styles.
 *
 * Phase 11-C: SWELL build/css/blocks.css #333 upstream is allowlisted;
 * article/editor core blocks use var(--color_text) bridges below.
 * Phase 12-L: extended WP core block token bridge (light/dark via theme tokens).
 * Phase 12-L2: file / code / query / comments / html 追補 + FSE post-content スコープ統一。
 * Phase 12-L3: Nettoge core chrome（details / search / code / 他）— blog card 系統。
 * Phase 13 / 13-N: SWELL native blocks（tab / box / button / FAQ / cap / accordion）— editor 同期。
 * Phase 13-O: review / speech balloon / icon box / linkList / DL / box-menu / banner-link 追補。
 */

/* Phase 12-L — base text color for core blocks (no [data-nettoge-theme] in modules) */
.editor-styles-wrapper :is(
    .wp-block-paragraph,
    .wp-block-heading,
    .wp-block-list,
    .wp-block-quote,
    .wp-block-pullquote,
    .wp-block-preformatted,
    .wp-block-verse,
    .wp-block-table,
    .wp-block-columns,
    .wp-block-column,
    .wp-block-group,
    .wp-block-media-text,
    .wp-block-cover,
    .wp-block-gallery,
    .wp-block-image,
    .wp-block-video,
    .wp-block-audio,
    .wp-block-embed,
    .wp-block-file,
    .wp-block-details,
    .wp-block-code,
    .wp-block-buttons,
    .wp-block-button,
    .wp-block-search,
    .wp-block-calendar,
    .wp-block-tag-cloud,
    .wp-block-latest-posts,
    .wp-block-latest-comments,
    .wp-block-categories,
    .wp-block-archives,
    .wp-block-rss,
    .wp-block-page-list,
    .wp-block-navigation,
    .wp-block-social-links,
    .wp-block-read-more,
    .wp-block-loginout,
    .wp-block-post-content,
    .wp-block-post-excerpt,
    .wp-block-footnotes,
    .wp-block-html,
    .wp-block-shortcode,
    .wp-block-classic,
    .wp-block-freeform,
    .wp-block-more,
    .wp-block-nextpage,
    .wp-block-query,
    .wp-block-post-template,
    .wp-block-query-title,
    .wp-block-query-pagination,
    .wp-block-query-no-results,
    .wp-block-post-title,
    .wp-block-post-date,
    .wp-block-post-author,
    .wp-block-post-terms,
    .wp-block-post-featured-image,
    .wp-block-site-logo,
    .wp-block-site-title,
    .wp-block-site-tagline,
    .wp-block-avatar,
    .wp-block-comments,
    .wp-block-comment-template,
    .wp-block-post-navigation-link,
    .wp-block-term-description,
    .wp-block-spacer,
    .wp-block-pattern,
    .wp-block-template-part,
    .wp-block-navigation-link,
    .wp-block-home-link,
    .wp-block-comment-author-name,
    .wp-block-comment-content,
    .wp-block-comment-date,
    .wp-block-comment-reply-link,
    .wp-block-comment-edit-link,
    .wp-block-comment-avatar,
    .wp-block-post-author-name,
    .wp-block-post-author-biography,
    .wp-block-query-pagination-next,
    .wp-block-query-pagination-previous
),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(
    .wp-block-paragraph,
    .wp-block-heading,
    .wp-block-list,
    .wp-block-quote,
    .wp-block-pullquote,
    .wp-block-preformatted,
    .wp-block-verse,
    .wp-block-table,
    .wp-block-columns,
    .wp-block-column,
    .wp-block-group,
    .wp-block-media-text,
    .wp-block-cover,
    .wp-block-gallery,
    .wp-block-image,
    .wp-block-video,
    .wp-block-audio,
    .wp-block-embed,
    .wp-block-file,
    .wp-block-details,
    .wp-block-code,
    .wp-block-buttons,
    .wp-block-button,
    .wp-block-search,
    .wp-block-calendar,
    .wp-block-tag-cloud,
    .wp-block-latest-posts,
    .wp-block-latest-comments,
    .wp-block-categories,
    .wp-block-archives,
    .wp-block-rss,
    .wp-block-page-list,
    .wp-block-navigation,
    .wp-block-social-links,
    .wp-block-read-more,
    .wp-block-loginout,
    .wp-block-post-content,
    .wp-block-post-excerpt,
    .wp-block-footnotes,
    .wp-block-html,
    .wp-block-shortcode,
    .wp-block-classic,
    .wp-block-freeform,
    .wp-block-more,
    .wp-block-nextpage,
    .wp-block-query,
    .wp-block-post-template,
    .wp-block-query-title,
    .wp-block-query-pagination,
    .wp-block-query-no-results,
    .wp-block-post-title,
    .wp-block-post-date,
    .wp-block-post-author,
    .wp-block-post-terms,
    .wp-block-post-featured-image,
    .wp-block-site-logo,
    .wp-block-site-title,
    .wp-block-site-tagline,
    .wp-block-avatar,
    .wp-block-comments,
    .wp-block-comment-template,
    .wp-block-post-navigation-link,
    .wp-block-term-description,
    .wp-block-spacer,
    .wp-block-pattern,
    .wp-block-template-part,
    .wp-block-navigation-link,
    .wp-block-home-link,
    .wp-block-comment-author-name,
    .wp-block-comment-content,
    .wp-block-comment-date,
    .wp-block-comment-reply-link,
    .wp-block-comment-edit-link,
    .wp-block-comment-avatar,
    .wp-block-post-author-name,
    .wp-block-post-author-biography,
    .wp-block-query-pagination-next,
    .wp-block-query-pagination-previous
) {
    color: var(--color_text);
}

/* Phase 12-L2 — Nettoge file download card (blog card L01 系統・token のみ) */
.editor-styles-wrapper .wp-block-file,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file {
    --nf-bg: var(--nettoge-file-card-bg);
    --nf-fg: var(--nettoge-file-card-border);
    --nf-line: var(--nettoge-file-card-line);
    --nf-mute: var(--blogcard-external-domain, var(--text-comment-muted));
    --nf-body: var(--nettoge-file-card-body);
    --nf-accent: var(--color_main, var(--brand-terracotta));
    --nf-thumb-pattern: var(--nettoge-file-card-thumb-pattern);
    --nf-thumb-base: var(--nettoge-file-card-thumb-base);
    --nf-thumb-stripe-a: var(--nettoge-file-card-thumb-stripe-a, var(--nf-thumb-base));
    --nf-thumb-stripe-b: var(--nettoge-file-card-thumb-stripe-b, var(--nf-thumb-pattern));
    --nf-thumb-ink: var(--nettoge-file-thumb-ink, var(--color_text));
    --nf-thumb-icon-filter: var(--nettoge-file-thumb-icon-filter, none);

    position: relative;
    display: grid;
    grid-template-columns: minmax(64px, 4.75rem) minmax(0, 1fr) auto;
    grid-template-areas:
        "thumb main action"
        "preview preview preview";
    align-items: stretch;
    gap: 0;
    margin: 1.5em 0;
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--nf-body) !important;
    background: var(--nf-bg) !important;
    border: 1px solid var(--nf-fg) !important;
    box-shadow: none;
    transform: translate(0, 0);
    transition: box-shadow .18s ease, transform .18s ease;
}

.editor-styles-wrapper .wp-block-file:is(:hover, :focus-within),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file:is(:hover, :focus-within) {
    overflow: visible;
    box-shadow: 4px 4px 0 var(--nf-fg);
    transform: translate(-3px, -3px);
}

/* 左サムネ列 — FILE ラベル + ドキュメントアイコン */
.editor-styles-wrapper .wp-block-file::before,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file::before {
    content: "";
    grid-area: thumb;
    align-self: stretch;
    min-height: 4.75rem;
    background: repeating-linear-gradient(
        135deg,
        var(--nf-thumb-stripe-a) 0 5px,
        var(--nf-thumb-stripe-b) 5px 10px
    );
    border-right: 1px solid var(--nf-fg);
}

.editor-styles-wrapper .wp-block-file::after,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file::after {
    content: "FILE";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(4.75rem, 20vw);
    min-height: 4.75rem;
    padding: .35rem .25rem;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    text-align: center;
    color: var(--nf-thumb-ink);
    pointer-events: none;
    filter: var(--nf-thumb-icon-filter);
    --nf-file-icon: var(--nettoge-file-card-icon);
    background-image: var(--nf-file-icon);
    background-repeat: no-repeat;
    background-position: center calc(50% + .55rem);
    background-size: 1.35rem auto;
    padding-top: .15rem;
    padding-bottom: 1.65rem;
}

.editor-styles-wrapper .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent) {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    min-width: 0;
    margin: 0;
    padding: 1rem calc(4.5rem + 1.7rem) 1rem calc(min(4.75rem, 20vw) + 1.1rem);
    color: var(--nf-body);
    text-decoration: none;
}

.editor-styles-wrapper .wp-block-file > a:not(.wp-block-file__button),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file > a:not(.wp-block-file__button) {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
    align-self: stretch;
    min-width: 0;
    margin: 0;
    padding: 1rem calc(4.5rem + 1.7rem) 1rem calc(min(4.75rem, 20vw) + 1.1rem);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    color: var(--nf-body);
    word-break: break-word;
}

.editor-styles-wrapper .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent) a,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent) a {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    color: inherit;
    word-break: break-word;
}

.editor-styles-wrapper .wp-block-file a:not(.wp-block-file__button):is(:hover, :focus-visible),
.editor-styles-wrapper .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent):is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file a:not(.wp-block-file__button):is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent):is(:hover, :focus-visible) {
    background-color: transparent;
    color: var(--nf-body);
    text-decoration: none;
}

.editor-styles-wrapper .wp-block-file :is(strong, .wp-block-file__textcontent),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file :is(strong, .wp-block-file__textcontent) {
    font-weight: 700;
    color: var(--color_htag, var(--nf-body));
}

.editor-styles-wrapper .wp-block-file > :is(object, embed, iframe),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file > :is(object, embed, iframe) {
    grid-area: preview;
    width: 100%;
    max-height: min(28rem, 70vh);
    margin: 0;
    border: 0;
    border-top: 1px solid var(--nf-line);
    background: var(--nettoge-page-bg);
}

.editor-styles-wrapper .wp-block-file .wp-block-file__button,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file .wp-block-file__button {
    grid-area: action;
    position: relative;
    z-index: 2;
    align-self: center;
    justify-self: center;
    display: inline-grid;
    place-items: center;
    width: 4.5rem;
    height: 2.5rem;
    min-width: 4.5rem;
    margin: .75rem .85rem .75rem 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    overflow: hidden;
    background: var(--nf-accent) !important;
    border: 1px solid var(--nf-accent) !important;
    color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none;
    pointer-events: auto;
}

.editor-styles-wrapper .wp-block-file .wp-block-file__button::before,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file .wp-block-file__button::before {
    content: none !important;
    display: none !important;
}

.editor-styles-wrapper .wp-block-file .wp-block-file__button::after,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file .wp-block-file__button::after {
    content: "";
    display: block;
    width: 1.55rem;
    height: 1.55rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3v10' stroke='%23fff' stroke-width='2.25' stroke-linecap='round'/%3E%3Cpath d='M7.5 10.5 12 15l4.5-4.5' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.5 20.5h15' stroke='%23fff' stroke-width='2.25' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.editor-styles-wrapper .wp-block-file .wp-block-file__button:is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file .wp-block-file__button:is(:hover, :focus-visible) {
    background: var(--nf-accent) !important;
    border-color: var(--nf-accent) !important;
    color: transparent !important;
    box-shadow: none !important;
    transform: none;
}

@media (max-width: 640px) {
    .editor-styles-wrapper .wp-block-file,
    body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file {
        grid-template-columns: minmax(64px, 4.75rem) minmax(0, 1fr) auto;
        grid-template-areas:
            "thumb main action"
            "preview preview preview";
    }

    .editor-styles-wrapper .wp-block-file::after,
    body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file::after {
        width: min(4.75rem, 24vw);
        min-height: 4.75rem;
    }

    .editor-styles-wrapper .wp-block-file > a:not(.wp-block-file__button),
    body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file > a:not(.wp-block-file__button),
    .editor-styles-wrapper .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent),
    body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file :is(.wp-block-file__content-wrapper, .wp-block-file__textcontent) {
        padding: 1rem calc(4rem + 1.45rem) 1rem calc(min(4.75rem, 24vw) + 1.1rem);
    }

    .editor-styles-wrapper .wp-block-file .wp-block-file__button,
    body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-file .wp-block-file__button {
        width: 4rem;
        height: 2.35rem;
        min-width: 4rem;
        justify-self: center;
        margin: .5rem .65rem .5rem 0;
    }
}

/* Phase 12-L3 — Nettoge core chrome: details */
.editor-styles-wrapper .wp-block-details,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details {
    --nc-fg: var(--border-blogcard-accent, var(--color_text));
    --nc-accent: var(--color_main, var(--brand-terracotta));

    margin: 1.5em 0;
    padding: .8rem 1rem .95rem;
    background: var(--surface-blogcard, var(--surface-widget));
    border: 1px solid var(--nc-fg);
    border-left: 4px solid var(--nc-accent);
    border-radius: 0;
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-details > summary,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details > summary {
    position: relative;
    margin: 0;
    padding: .65rem 2.25rem .65rem calc(6px + 16px);
    color: var(--color_htag, var(--color_text));
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.editor-styles-wrapper .wp-block-details > summary::-webkit-details-marker,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details > summary::-webkit-details-marker {
    display: none;
}

.editor-styles-wrapper .wp-block-details > summary::marker,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details > summary::marker {
    content: none;
    display: none;
}

.editor-styles-wrapper .wp-block-details > summary::before,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details > summary::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 6px;
    background: var(--nc-accent, var(--color_main, var(--brand-terracotta)));
}

.editor-styles-wrapper .wp-block-details > summary::after,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details > summary::after {
    content: "";
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 1rem;
    width: 10px;
    height: 10px;
    border-inline-end: 2px solid var(--color_htag, var(--color_text));
    border-block-end: 2px solid var(--color_htag, var(--color_text));
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s ease;
}

.editor-styles-wrapper .wp-block-details[open] > summary::after,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details[open] > summary::after {
    transform: translateY(-35%) rotate(-135deg);
}

.editor-styles-wrapper .wp-block-details[open] > summary,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-details[open] > summary {
    margin-bottom: .65rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--border-blogcard-line, var(--border-table-row));
}

/* Phase 12-L3 — code / preformatted */
.editor-styles-wrapper :is(.wp-block-code:not(pre), pre.wp-block-code, .wp-block-preformatted),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-code:not(pre), pre.wp-block-code, .wp-block-preformatted) {
    --nc-fg: var(--border-blogcard-accent, var(--color_text));

    position: relative;
    margin: 1.5em 0;
    overflow: hidden;
    color: var(--text-code-block-body, var(--color_text));
    background: var(--surface-code-block, var(--surface-widget));
    border: 1px solid var(--nc-fg);
    border-radius: 0;
}

.editor-styles-wrapper :is(.wp-block-code:not(pre), pre.wp-block-code)::before,
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-code:not(pre), pre.wp-block-code)::before {
    content: "CODE";
    display: block;
    padding: .4rem .75rem;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.2;
    color: var(--text-code-block-muted, var(--text-comment-muted));
    background: var(--border-code-block-header, color-mix(in srgb, var(--color_text) 6%, transparent));
    border-bottom: 1px solid var(--border-code-block-header, var(--border-blogcard-line));
}

.editor-styles-wrapper pre.wp-block-code,
body :is(.post_content, .entry-content, .wp-block-post-content) pre.wp-block-code {
    padding: 0;
}

.editor-styles-wrapper .wp-block-code :is(pre, code),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-code :is(pre, code) {
    margin: 0;
    padding: 1rem 1.05rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: inherit;
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.55;
}

.editor-styles-wrapper .wp-block-preformatted,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-preformatted {
    padding: 1rem 1.05rem;
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.55;
}

.editor-styles-wrapper .wp-block-code figcaption,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-code figcaption {
    padding: .45rem .75rem .6rem;
    color: var(--text-comment-muted);
    border-top: 1px solid var(--border-blogcard-line, var(--border-table-row));
}

/* Phase 12-L3 — search */
.editor-styles-wrapper .wp-block-search,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-search {
    --nc-fg: var(--border-blogcard-accent, var(--color_text));
    --nc-accent: var(--color_main, var(--brand-terracotta));

    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .65rem;
    margin: 1.5em 0;
    padding: .85rem;
    background: var(--surface-blogcard, var(--surface-widget));
    border: 1px solid var(--nc-fg);
    border-radius: 0;
}

.editor-styles-wrapper .wp-block-search__label,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-search__label {
    flex: 0 0 100%;
    margin: 0 0 .15rem;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blogcard-external-domain, var(--text-comment-muted));
}

.editor-styles-wrapper .wp-block-search__input,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-search__input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: .62em .75em;
    background: var(--nettoge-page-bg);
    border: 1px solid var(--border-form-input, var(--border-blogcard-line));
    border-radius: 0;
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-search__button,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-search__button {
    padding: .62em 1.1em;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--nc-accent) !important;
    border: 1px solid var(--nc-accent) !important;
    color: var(--text-on-accent, #fff) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.editor-styles-wrapper .wp-block-search__button:is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-search__button:is(:hover, :focus-visible) {
    background: var(--color_main_dark, var(--nc-accent)) !important;
    border-color: var(--color_main_dark, var(--nc-accent)) !important;
    color: var(--text-on-accent, #fff) !important;
}

.editor-styles-wrapper .wp-calendar-table.wp-calendar-table,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-calendar-table.wp-calendar-table {
    background: var(--nettoge-page-bg);
    border-color: var(--border-table-row, #e0ddd6);
    color: var(--color_text);
}

.editor-styles-wrapper .wp-calendar-table thead th,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-calendar-table thead th {
    background: var(--surface-table-header, #e3e0d8);
}

.editor-styles-wrapper .wp-calendar-table #today,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-calendar-table #today {
    background: var(--brand-terracotta);
}

.editor-styles-wrapper :is(.wp-block-latest-posts, .wp-block-categories, .wp-block-archives) li,
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-latest-posts, .wp-block-categories, .wp-block-archives) li {
    border-bottom: 1px solid var(--border-table-row, var(--nettoge-border-warm));
    padding-bottom: .45em;
}

.editor-styles-wrapper :is(.wp-block-latest-posts, .wp-block-categories, .wp-block-archives) li:last-child,
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-latest-posts, .wp-block-categories, .wp-block-archives) li:last-child {
    border-bottom: 0;
}

.editor-styles-wrapper .wp-block-tag-cloud :is(a, .tag-cloud-link),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-tag-cloud :is(a, .tag-cloud-link) {
    display: inline-block;
    padding: .4em .78em !important;
    margin: 0 .35em .35em 0;
    font-family: var(--font-mono);
    font-size: 11px !important;
    letter-spacing: .04em;
    text-decoration: none;
    color: var(--color_text) !important;
    background: var(--surface-blogcard, var(--surface-widget)) !important;
    border: 1px solid var(--border-blogcard-accent, var(--border-table-row)) !important;
    border-radius: 0;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.editor-styles-wrapper .wp-block-tag-cloud :is(a, .tag-cloud-link):is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-tag-cloud :is(a, .tag-cloud-link):is(:hover, :focus-visible) {
    color: var(--color_main, var(--color_link));
    box-shadow: 2px 2px 0 var(--border-blogcard-accent, var(--color_text));
    transform: translate(-1px, -1px);
}

.editor-styles-wrapper .wp-block-separator,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-separator {
    border-color: var(--border-table-row, var(--nettoge-border-warm));
    opacity: 1;
}

.editor-styles-wrapper .wp-block-separator.is-style-dots::before,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-separator.is-style-dots::before {
    color: var(--border-table-row, var(--nettoge-border-warm));
}

/* Phase 12-L — quote / pullquote (typography-nettoge と併用、枠・引用元) */
.editor-styles-wrapper :is(.wp-block-quote, .wp-block-pullquote),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-quote, .wp-block-pullquote) {
    border-color: var(--border-blockquote, var(--nettoge-border-warm));
    background: var(--surface-blockquote, var(--surface-widget));
    color: var(--text-blockquote, var(--color_text));
}

.editor-styles-wrapper :is(.wp-block-quote cite, .wp-block-pullquote cite),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-quote cite, .wp-block-pullquote cite) {
    color: var(--text-blockquote, var(--text-comment-muted));
}

.editor-styles-wrapper .wp-block-pullquote :is(blockquote, p),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-pullquote :is(blockquote, p) {
    color: var(--text-blockquote, var(--color_text));
}

/* Phase 12-L / L3 — buttons */
.editor-styles-wrapper .wp-block-button__link,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-button__link {
    background: var(--color_main, var(--brand-terracotta));
    border: 1px solid var(--color_main, var(--brand-terracotta));
    color: var(--text-on-accent, #fff);
    border-radius: 0;
    font-family: var(--font-body);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.editor-styles-wrapper .wp-block-button__link:is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-button__link:is(:hover, :focus-visible) {
    box-shadow: 3px 3px 0 var(--border-blogcard-accent, var(--color_text));
    transform: translate(-1px, -1px);
}


.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--color_main, var(--color_link));
}

.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:hover,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--color_main, var(--brand-terracotta));
    color: var(--text-on-accent, #fff);
}

/* Phase 12-L — table block (Figures + striped) */
.editor-styles-wrapper .wp-block-table table,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table table {
    border-color: var(--border-table-row);
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-table :is(thead th, thead td),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table :is(thead th, thead td) {
    background: var(--surface-table-header);
    color: var(--color_htag, var(--color_text));
    border-color: var(--border-table-header-divider);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    vertical-align: top;
    line-height: 1.35;
}

.editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background: var(--surface-table-row-odd);
}

.editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(even),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table.is-style-stripes tbody tr:nth-child(even) {
    background: var(--surface-table-row-even);
}

.editor-styles-wrapper .wp-block-table figcaption,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-table figcaption {
    color: var(--text-comment-muted);
}

/* Phase 12-L — group / columns / media-text */
.editor-styles-wrapper :is(.wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-media-text),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-media-text) {
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-media-text__content,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-media-text__content {
    background: var(--nettoge-page-bg);
    color: var(--color_text);
}

/* Phase 12-L — cover */
.editor-styles-wrapper .wp-block-cover__inner-container,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-cover__inner-container {
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-cover.has-background-dim .wp-block-cover__background,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-cover.has-background-dim .wp-block-cover__background {
    background-color: color-mix(in srgb, var(--color_text) 45%, transparent);
}

/* Phase 12-L — gallery / image / video / audio / embed captions */
.editor-styles-wrapper :is(.wp-block-gallery, .wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed) figcaption,
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-gallery, .wp-block-image, .wp-block-video, .wp-block-audio, .wp-block-embed) figcaption {
    color: var(--text-comment-muted);
    background: transparent;
}

.editor-styles-wrapper .wp-block-embed,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-embed {
    --nc-fg: var(--border-blogcard-accent, var(--color_text));
    margin: 1.5em 0;
}

.editor-styles-wrapper .wp-block-embed :is(.wp-block-embed__wrapper, iframe),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-embed :is(.wp-block-embed__wrapper, iframe) {
    border: 1px solid var(--nc-fg, var(--border-table-row));
    border-radius: 0;
}

.editor-styles-wrapper .wp-block-audio,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-audio {
    margin: 1.5em 0;
    padding: .85rem;
    background: var(--surface-blogcard, var(--surface-widget));
    border: 1px solid var(--border-blogcard-accent, var(--border-table-row));
    border-radius: 0;
}

.editor-styles-wrapper .wp-block-audio audio,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-audio audio {
    width: 100%;
}

/* Phase 12-L — verse / preformatted */
.editor-styles-wrapper .wp-block-verse,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-verse {
    background: var(--surface-inline-code-article, var(--nettoge-page-bg));
    border: 1px solid var(--border-inline-code-markup, var(--border-form-input));
    color: var(--color_text);
    font-family: var(--font-mono);
}

/* Phase 12-L — navigation / social / RSS / page-list */
.editor-styles-wrapper .wp-block-navigation :is(a, .wp-block-navigation-item__content),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-navigation :is(a, .wp-block-navigation-item__content) {
    color: var(--color_link, var(--color_text));
}

.editor-styles-wrapper .wp-block-navigation :is(a:hover, a:focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-navigation :is(a:hover, a:focus-visible) {
    color: var(--color_main, var(--color_link));
}

.editor-styles-wrapper .wp-block-social-links .wp-block-social-link-anchor,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-social-links .wp-block-social-link-anchor {
    color: var(--color_text);
}

.editor-styles-wrapper :is(.wp-block-rss, .wp-block-page-list) :is(a, li),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-rss, .wp-block-page-list) :is(a, li) {
    color: var(--color_text);
    border-color: var(--border-table-row, var(--nettoge-border-warm));
}

.editor-styles-wrapper :is(.wp-block-rss, .wp-block-page-list) a,
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-rss, .wp-block-page-list) a {
    color: var(--color_link, var(--color_text));
}

/* Phase 12-L3 — read-more / loginout / post-excerpt */
.editor-styles-wrapper .wp-block-read-more,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-read-more {
    display: inline-block;
    margin: 1.25em 0;
    padding: .55em 1.05em;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color_main, var(--color_link));
    background: var(--surface-blogcard, var(--surface-widget));
    border: 1px solid var(--color_main, var(--brand-terracotta));
    border-radius: 0;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.editor-styles-wrapper .wp-block-read-more:is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-read-more:is(:hover, :focus-visible) {
    color: var(--text-on-accent, #fff);
    background: var(--color_main, var(--brand-terracotta));
    box-shadow: 3px 3px 0 var(--border-blogcard-accent, var(--color_text));
    transform: translate(-1px, -1px);
}

.editor-styles-wrapper .wp-block-post-excerpt,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-post-excerpt {
    margin: 1.5em 0;
    padding: 1rem 1.1rem;
    color: var(--text-blockquote, var(--color_text));
    background: var(--surface-blockquote, var(--surface-widget));
    border: 1px solid var(--border-blockquote, var(--border-blogcard-line));
    border-left: 4px solid var(--color_main);
    border-radius: 0;
}

.editor-styles-wrapper .wp-block-loginout,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-loginout {
    margin: 1.5em 0;
    padding: .85rem;
    background: var(--surface-blogcard, var(--surface-widget));
    border: 1px solid var(--border-blogcard-accent, var(--border-table-row));
    border-radius: 0;
}

.editor-styles-wrapper .wp-block-loginout :is(a, input, label),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-loginout :is(a, input, label) {
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-loginout input,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-loginout input {
    padding: .55em .7em;
    background: var(--nettoge-page-bg);
    border: 1px solid var(--border-form-input, var(--border-blogcard-line));
    border-radius: 0;
}

.editor-styles-wrapper .wp-block-loginout a,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-loginout a {
    color: var(--color_link, var(--color_main));
}

.editor-styles-wrapper .wp-block-footnotes,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-footnotes {
    color: var(--text-comment-muted);
    border-top: 1px solid var(--border-table-row, var(--nettoge-border-warm));
}

.editor-styles-wrapper .wp-block-latest-comments :is(.wp-block-latest-comments__comment, .wp-block-latest-comments__comment-excerpt),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-latest-comments :is(.wp-block-latest-comments__comment, .wp-block-latest-comments__comment-excerpt) {
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-latest-comments__comment-date,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-latest-comments__comment-date {
    color: var(--text-comment-muted);
}

/* Phase 12-L — has-background blocks (editor palette / custom) */
.editor-styles-wrapper :is(.wp-block-paragraph, .wp-block-group, .wp-block-columns).has-background,
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-paragraph, .wp-block-group, .wp-block-columns).has-background {
    background-color: var(--surface-widget, var(--color_gray)) !important;
    color: var(--color_text);
}

/* Phase 12-L2 — html / shortcode / classic / freeform */
.editor-styles-wrapper :is(.wp-block-html, .wp-block-shortcode, .wp-block-classic, .wp-block-freeform),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-html, .wp-block-shortcode, .wp-block-classic, .wp-block-freeform) {
    color: var(--color_text);
}

.editor-styles-wrapper :is(.wp-block-more, .wp-block-nextpage),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-more, .wp-block-nextpage) {
    color: var(--text-comment-muted);
}

/* Phase 12-L2 — query loop + post meta (FSE patterns in post content) */
.editor-styles-wrapper :is(.wp-block-query, .wp-block-post-template, .wp-block-query-no-results),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-query, .wp-block-post-template, .wp-block-query-no-results) {
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-query-title,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-query-title {
    color: var(--color_htag, var(--color_text));
}

.editor-styles-wrapper .wp-block-query-pagination :is(a, .page-numbers),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-query-pagination :is(a, .page-numbers) {
    color: var(--color_link, var(--color_text));
}

.editor-styles-wrapper .wp-block-query-pagination :is(a:hover, a:focus-visible, .page-numbers.current),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-query-pagination :is(a:hover, a:focus-visible, .page-numbers.current) {
    color: var(--color_main, var(--color_link));
}

.editor-styles-wrapper :is(
    .wp-block-post-title,
    .wp-block-post-date,
    .wp-block-post-author,
    .wp-block-post-terms,
    .wp-block-site-title,
    .wp-block-site-tagline,
    .wp-block-term-description
),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(
    .wp-block-post-title,
    .wp-block-post-date,
    .wp-block-post-author,
    .wp-block-post-terms,
    .wp-block-site-title,
    .wp-block-site-tagline,
    .wp-block-term-description
) {
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-post-title a,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-post-title a {
    color: var(--color_link, var(--color_text));
}

.editor-styles-wrapper :is(.wp-block-post-date, .wp-block-post-author) :is(a, time),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-post-date, .wp-block-post-author) :is(a, time) {
    color: var(--text-comment-muted);
}

.editor-styles-wrapper .wp-block-post-terms a,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-post-terms a {
    color: var(--color_link);
}

.editor-styles-wrapper .wp-block-post-featured-image figcaption,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-post-featured-image figcaption {
    color: var(--text-comment-muted);
}

.editor-styles-wrapper .wp-block-post-navigation-link a,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-post-navigation-link a {
    color: var(--color_link);
}

/* Phase 12-L2 — comments block */
.editor-styles-wrapper .wp-block-comments,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-comments {
    color: var(--color_text);
    border-top: 1px solid var(--border-table-row, var(--nettoge-border-warm));
    padding-top: 1.25rem;
}

.editor-styles-wrapper .wp-block-comment-template :is(.comment, .wp-block-comment),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-comment-template :is(.comment, .wp-block-comment) {
    border-bottom: 1px solid var(--border-table-row, var(--nettoge-border-warm));
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.editor-styles-wrapper .wp-block-comment-template :is(.comment-author, .wp-block-comment-author-name),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-comment-template :is(.comment-author, .wp-block-comment-author-name) {
    color: var(--color_htag, var(--color_text));
}

.editor-styles-wrapper .wp-block-comment-template :is(.comment-meta, .wp-block-comment-date),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-comment-template :is(.comment-meta, .wp-block-comment-date) {
    color: var(--text-comment-muted);
}

.editor-styles-wrapper .wp-block-comment-template :is(.comment-content, .wp-block-comment-content),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-comment-template :is(.comment-content, .wp-block-comment-content) {
    color: var(--color_text);
}

.editor-styles-wrapper .wp-block-comment-template :is(.comment-reply-link, .wp-block-comment-reply-link, .wp-block-comment-edit-link) a,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-comment-template :is(.comment-reply-link, .wp-block-comment-reply-link, .wp-block-comment-edit-link) a {
    color: var(--color_link);
}

/* Phase 12-L3 — query pagination / post navigation / RSS lists */
.editor-styles-wrapper .wp-block-query-pagination,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-query-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-blogcard-line, var(--border-table-row));
}

.editor-styles-wrapper .wp-block-query-pagination :is(a, span),
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-query-pagination :is(a, span) {
    display: inline-block;
    min-width: 2rem;
    padding: .4em .65em;
    font-family: var(--font-mono);
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    color: var(--color_text);
    background: var(--surface-blogcard, var(--surface-widget));
    border: 1px solid var(--border-blogcard-accent, var(--border-table-row));
    border-radius: 0;
}

.editor-styles-wrapper .wp-block-query-pagination .page-numbers.current,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-query-pagination .page-numbers.current {
    color: var(--text-on-accent, #fff);
    background: var(--color_main, var(--brand-terracotta));
    border-color: var(--color_main, var(--brand-terracotta));
}

.editor-styles-wrapper .wp-block-post-navigation-link,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-post-navigation-link {
    margin: 1.25em 0;
    padding: .75rem 0;
    border-top: 1px solid var(--border-blogcard-line, var(--border-table-row));
    border-bottom: 1px solid var(--border-blogcard-line, var(--border-table-row));
}

.editor-styles-wrapper :is(.wp-block-latest-posts, .wp-block-rss) a,
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-latest-posts, .wp-block-rss) a {
    font-weight: 600;
    text-decoration: none;
    color: var(--color_link, var(--color_text));
}

.editor-styles-wrapper :is(.wp-block-latest-posts, .wp-block-rss) a:is(:hover, :focus-visible),
body :is(.post_content, .entry-content, .wp-block-post-content) :is(.wp-block-latest-posts, .wp-block-rss) a:is(:hover, :focus-visible) {
    color: var(--color_main, var(--color_link));
    text-decoration: underline;
}

.editor-styles-wrapper .wp-block-pullquote,
body :is(.post_content, .entry-content, .wp-block-post-content) .wp-block-pullquote {
    border-top: 3px solid var(--color_main);
    border-bottom: 3px solid var(--color_main);
    border-radius: 0;
}

/* Phase 10-B — moved from main.css Nettoge section */

body :is(
  [class^="wp-block-swell-"],
  [class*=" wp-block-swell-"],
  [class*="swell-block-"],
  .swell-block,
  .nexus-card,
  .nmc,
  .etb-wrapper,
  .etb-guide,
  .inline-gallery-lightbox,
  #igl-lightbox-root,
  .igl-lightbox,
  .twentytwenty-container,
  .ics-toggle-container,
  .ics-toggle-actions,
  .isr-spoiler,
  .isr-block,
  .game-mod-block,
  .game-mod-title,
  .ng-stepper,
  .ng-stepper__header,
  .ant-container,
  .article-nav-tooltip,
  .nexus-mods-card,
  .swell-block-step
) {
  font-family: var(--font-sans-base);
}

body
  :is(
    [class^="wp-block-swell-"],
    [class*=" wp-block-swell-"],
    [class*="swell-block-"],
    .swell-block,
    .nexus-card,
    .nmc,
    .etb-wrapper,
    .etb-guide,
    .inline-gallery-lightbox,
    #igl-lightbox-root,
    .igl-lightbox,
    .twentytwenty-container,
    .ics-toggle-container,
    .ics-toggle-actions,
    .isr-spoiler,
    .isr-block,
    .game-mod-block,
    .game-mod-title,
    .ng-stepper,
    .ng-stepper__header,
    .ant-container,
    .article-nav-tooltip,
    .nexus-mods-card,
    .swell-block-step
  )
  :where(
    :not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-light):not(.fa-thin):not(.fa-duotone):not([class*="fa-"]):not(.fa-brands):not(.etb-icon)
  ) {
  font-family: var(--font-sans-base);
}

body :is(.post_content, .entry-content, .wp-block-post-content) .swell-block-button__link .__icon,
body :is(.post_content, .entry-content, .wp-block-post-content) .swell-block-button__link .__icon path {
  fill: currentColor;
  color: currentColor;
}

.l-mainContent .swl-inline-color.has-swl-deep-01-color,
body :is(.post_content, .entry-content, .wp-block-post-content) .swl-inline-color.has-swl-deep-01-color {
  color: var(--color_htag, var(--color_text));
}

body :is(.post_content, .entry-content, .wp-block-post-content) :is(.has-swl-main-color, .has-swl-main-thin-color, .u-col-main) {
  color: var(--text-accent-prose, var(--color_main)) !important;
}

body :is(.post_content, .entry-content, .wp-block-post-content) :is(.has-swl-deep-01-color, .has-swl-deep-02-color, .has-swl-deep-03-color, .has-swl-deep-04-color) {
  color: var(--text-deep-prose, var(--color_deep01, #e44141)) !important;
}

p,
ul,
ol,
dl,
blockquote {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.game-mod-block :where(p, h1, h2, h3, h4, h5, h6, ul, ol, figure, blockquote) {
  margin-block-start: revert;
  margin-block-end: revert;
}

.wp-block-game-mod-block-main.game-mod-block {
  margin-block-end: var(--wp--style--block-gap, 1.5rem);
}

.code-box {
    margin: 10px 0;
}

.code-box pre {
    max-height: 500px;
    overflow-y: scroll;
    background-color: var(--nettoge-page-bg);
    padding: 10px;
    border: 1px solid var(--border-form-input);
    font-size: 11px;
    font-family: var(--font-mono);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.size_s img,
img.size_s {
    max-width: 80%;
}

body :is(.post_content, .entry-content, .wp-block-post-content) .twentytwenty-left-arrow {
    top: 13px;
}

body :is(.post_content, .entry-content, .wp-block-post-content) table {
    line-height: 1.45;
}

body :is(.post_content, .entry-content, .wp-block-post-content) thead td,
body :is(.post_content, .entry-content, .wp-block-post-content) thead th {
    background-color: var(--surface-table-header);
    color: var(--color_htag, var(--color_text));
    border-bottom-color: var(--border-table-header-divider);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    vertical-align: top;
    line-height: 1.35;
}

body :is(.post_content, .entry-content, .wp-block-post-content) table th,
body :is(.post_content, .entry-content, .wp-block-post-content) table td {
    border-color: var(--border-table-row);
}

body :is(.post_content, .entry-content, .wp-block-post-content) table th {
    font-weight: 700;
}

body :is(.post_content, .entry-content, .wp-block-post-content) tbody tr:nth-child(odd) > th,
body :is(.post_content, .entry-content, .wp-block-post-content) tbody tr:nth-child(odd) > td {
    background: var(--surface-table-row-odd);
}

body :is(.post_content, .entry-content, .wp-block-post-content) tbody tr:nth-child(even) > th,
body :is(.post_content, .entry-content, .wp-block-post-content) tbody tr:nth-child(even) > td {
    background: var(--surface-table-row-even);
}

.custom-table-1407 {
  width: 100%;
  border-collapse: collapse;
}

.custom-table-1407 td {
  border: 0;
  padding: 1px;
}

.custom-chances-cell-1407 {
    white-space: nowrap;
}

.custom-title-cell {
    font-size: 1.1em;
    padding: .5em;
    font-weight: 900;
}

.custom-materia-icon-1407 {
    max-width: 22px;
    max-height: auto;
}

.custom-item-icon-cell-1407 {
    text-align: center;
    vertical-align: middle;
}

.custom-img-1407 {
    max-width: 55px;
    padding: 3px;
}

.custom-level-1407 {
    text-align: center;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step .swell-block-step__title {
    background: none;
    border: 0;
    box-shadow: none;
    color: inherit;
    display: block;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    text-transform: none;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step .swell-block-step__title::before,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step .swell-block-step__title::after {
    content: none;
    display: none;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step:not(.is-style-big):not(.is-style-small) > .swell-block-step__item > .swell-block-step__title {
    display: flex;
}

.is-style-small .swell-block-step__title {
    border-left: 0;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step h6::before {
    content: none;
}

/* Default step numbers: override u-col-main + inline background:currentColor */
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step:not(.is-style-big):not(.is-style-small) .swell-block-step__number .__shape {
    background: var(--color_main, var(--color-step)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step:not(.is-style-big):not(.is-style-small) .swell-block-step__number .__shape.u-col-main {
    color: var(--text-on-accent, #fff) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step:not(.is-style-big):not(.is-style-small) .swell-block-step__number .__shape[style*="currentColor"] {
    background: var(--color_main, var(--color-step)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step:not(.is-style-big):not(.is-style-small) .swell-block-step__number .__shape[style*="--color_main"] {
    background: var(--color_main, var(--color-step)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-step {
    --swl-step_arrow_color: var(--border-step-arrow, #dedede);
}

/* Phase 13 — SWELL tab token bridge */
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-default > .c-tabList .c-tabList__button:hover,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-default > .c-tabList .c-tabList__button[aria-selected="true"] {
    background-color: var(--surface-tab-active, var(--color_text));
    color: var(--text-tab-active, var(--color_content_bg));
    opacity: 1;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-simple > .c-tabList .c-tabList__button {
    border-color: var(--border-tab-simple, #ddd);
    color: var(--text-tab-simple, #666);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-simple > .c-tabList .c-tabList__button:hover,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-simple > .c-tabList .c-tabList__button[aria-selected="true"] {
    background: var(--surface-tab-simple-hover, #ddd);
    color: var(--text-tab-simple-active, #333);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-tab > .c-tabBody,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-default .c-tabBody {
    border-color: var(--surface-tab-body-border, var(--color_text));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-balloon > .c-tabList .c-tabList__button:hover,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-balloon > .c-tabList .c-tabList__button[aria-selected="true"] {
    color: var(--text-on-accent, #fff);
}

/* Phase 13 — Nettoge カードタブ（旧 is-style-win7 をサイト chrome に統一） */
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) {
    --ntg-tab-pad: 1rem 1.1rem;
    --ntg-tab-pad-t: 1rem;
    --ntg-tab-pad-r: 1.1rem;
    --ntg-tab-pad-b: 1rem;
    --ntg-tab-pad-l: 1.1rem;
    --ntg-tab-fg: var(--border-blogcard-accent, var(--color_text));
    --ntg-tab-bg: var(--surface-blogcard-tint, var(--surface-widget));
    --ntg-tab-active-bg: var(--surface-blogcard, var(--nettoge-page-bg));
    --ntg-tab-line: var(--border-blogcard-line, var(--color_border));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) > .c-tabList {
    gap: 0;
    margin: 0 0 -1px !important;
    padding: 0 !important;
    border-bottom: 0;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) .c-tabList__button[role="tab"] {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 2.25rem;
    padding: .45em .95em;
    margin: 0;
    border: 1px solid var(--ntg-tab-fg);
    border-bottom: 0;
    border-radius: 0;
    background: var(--ntg-tab-bg);
    color: var(--color_text);
    box-shadow: none;
    opacity: 1;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) .c-tabList__button[role="tab"]:hover {
    background: var(--surface-blogcard-soft, var(--ntg-tab-bg));
    color: var(--color_htag, var(--color_text));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) .c-tabList__button[role="tab"][aria-selected="true"] {
    background: var(--ntg-tab-active-bg);
    color: var(--color_htag, var(--color_text));
    border-color: var(--ntg-tab-fg);
    border-bottom-color: var(--ntg-tab-active-bg);
    position: relative;
    z-index: 2;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) > .c-tabBody,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) > .c-tabBody > .c-tabBody__item[aria-hidden="false"] {
    background: var(--ntg-tab-active-bg);
    border: 1px solid var(--ntg-tab-fg);
    color: var(--color_text);
    padding: var(--ntg-tab-pad, var(--w7-pad, 1rem 1.1rem));
    box-shadow: 2px 2px 0 color-mix(in srgb, var(--ntg-tab-line) 90%, transparent);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-ntg-tab-pad="each"] > .c-tabBody,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-ntg-tab-pad="each"] > .c-tabBody > .c-tabBody__item[aria-hidden="false"],
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-win7-pad="each"] > .c-tabBody,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-win7-pad="each"] > .c-tabBody > .c-tabBody__item[aria-hidden="false"] {
    padding: var(--ntg-tab-pad-t, var(--w7-pad-t, 1rem)) var(--ntg-tab-pad-r, var(--w7-pad-r, 1.1rem)) var(--ntg-tab-pad-b, var(--w7-pad-b, 1rem)) var(--ntg-tab-pad-l, var(--w7-pad-l, 1.1rem));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-ntg-tab-border="off"] > .c-tabBody,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-ntg-tab-border="off"] > .c-tabBody > .c-tabBody__item[aria-hidden="false"],
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-win7-border="off"] > .c-tabBody,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7)[data-win7-border="off"] > .c-tabBody > .c-tabBody__item[aria-hidden="false"] {
    border-width: 0;
    box-shadow: none;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) > .c-tabBody > .c-tabBody__item[aria-hidden="false"],
.p-postListTab:is(.is-style-nettoge-card, .is-style-win7) .c-tabBody__item[aria-hidden="false"] {
    animation: nettogeTabReveal .22s ease-out both;
}

@keyframes nettogeTabReveal {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    :is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-nettoge-card, .is-style-win7) > .c-tabBody > .c-tabBody__item[aria-hidden="false"],
    .p-postListTab:is(.is-style-nettoge-card, .is-style-win7) .c-tabBody__item[aria-hidden="false"] {
        animation: none;
    }
}

.editor-styles-wrapper :is(.is-style-nettoge-card, .is-style-win7) .c-tabList__button {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: 0;
}

.editor-styles-wrapper :is(.is-style-nettoge-card, .is-style-win7) .c-tabList__item.is-active .c-tabList__button {
    background: var(--ntg-tab-active-bg);
    border-bottom-color: var(--ntg-tab-active-bg);
}

/* Phase 13-N — SWELL box/button: !important beats main.css #fff / #f7f7f7 (dark via html token flip) */
/* Phase 13 — SWELL callout / box styles */
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-balloon_box2, .is-style-emboss_box, .is-style-sticky_box) {
    background-color: var(--surface-callout-box, #fff) !important;
    color: var(--text-callout-box, #333) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) [class*="is-style-icon_"]:not([class*="is-style-big_icon_"]) {
    color: var(--text-callout-box, var(--color_text)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-icon_good {
    background: var(--color_icon_good_bg) !important;
    border-color: var(--color_icon_good) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-icon_bad {
    background: var(--color_icon_bad_bg) !important;
    border-color: var(--color_icon_bad) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-icon_info {
    background: var(--color_icon_info_bg) !important;
    border-color: var(--color_icon_info) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-icon_announce {
    background: var(--color_icon_announce_bg) !important;
    border-color: var(--color_icon_announce) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-icon_pen {
    background: var(--color_icon_pen_bg) !important;
    border-color: var(--color_icon_pen) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-icon_book {
    background: var(--color_icon_book_bg) !important;
    border-color: var(--color_icon_book) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-balloon_box2 {
    border-color: var(--border-swell-box, var(--color_border)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) [class*="is-style-big_icon_"] {
    background: var(--surface-callout-box, var(--color_content_bg)) !important;
    color: var(--text-callout-box, var(--color_text)) !important;
    border: 1px solid var(--border-swell-box, var(--color_border)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) [class*="is-style-big_icon_"]::before {
    color: var(--text-on-accent, #fff) !important;
    border-color: var(--surface-callout-box, var(--color_content_bg)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-note_box, .is-style-stitch) {
    background: var(--surface-note-box, #f7f7f7) !important;
    color: var(--text-note-box, #5f5a59) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-note_box, .is-style-stitch):before {
    border-color: var(--border-note-box-dash, hsla(0, 0%, 78%, 0.6)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-crease {
    background-color: var(--surface-crease-box, #f7f7f7) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-crease:before {
    border-color: var(--color_content_bg) var(--color_content_bg) var(--nettoge-border-hairline, rgba(0, 0, 0, 0.1)) var(--nettoge-border-hairline, rgba(0, 0, 0, 0.1));
    box-shadow: -1px 1px 1px var(--nettoge-border-hairline, rgba(0, 0, 0, 0.05));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-dent_box {
    background: var(--surface-dent-box, rgba(0, 0, 0, 0.05)) !important;
    color: var(--text-callout-box, var(--color_text)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-kakko_box, .is-style-big_kakko_box) {
    color: var(--text-callout-box, var(--color_text));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-bg_stripe, .is-style-bg_grid, .is-style-bg_gray) {
    color: var(--text-callout-box, var(--color_text));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-border_sg, .is-style-border_dg) {
    border-color: var(--border-swell-box, var(--color_border));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-border_sm, .is-style-border_dm) {
    border-color: var(--text-accent-prose, var(--color_main));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-border_left {
    border-left-color: var(--text-accent-prose, var(--color_main));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-bg_main {
    color: var(--text-on-accent, #fff) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .has-white-background-color {
    background-color: var(--surface-widget, #fff) !important;
    color: var(--color_text) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-bg_main_thin {
    background-color: color-mix(in srgb, var(--color_main) 12%, var(--surface-widget, var(--color_content_bg)));
    color: var(--text-callout-box, var(--color_text));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-section_ttl {
    color: var(--color_text);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-balloon_box {
    background-color: var(--surface-balloon-inline-bg, var(--color_main)) !important;
    color: var(--text-balloon-inline, var(--text-on-accent, #fff)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-balloon_box:before {
    border-top-color: var(--surface-balloon-inline-bg, var(--color_main)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-faq-stripe .faq_q {
    background-color: var(--surface-faq-stripe, var(--color_gray)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) [data-q="fill-text"] .faq_q::before,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) [data-a="fill-text"] .faq_a::before {
    color: var(--color_bg, #1e1e1e) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-browser_mac {
    --frame-color: var(--surface-browser-frame, #ced1d5);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-browser_mac.wp-block-image img,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-browser_mac.wp-block-video video,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-browser_mac > .wp-block-group__inner-container,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-browser_mac.is-style-browser_mac > figcaption {
    background: var(--surface-callout-box, #fff) !important;
    color: var(--text-callout-box, var(--color_text)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-desktop > .wp-block-group__inner-container {
    background-color: var(--surface-callout-box, #fff) !important;
    color: var(--text-callout-box, var(--color_text)) !important;
}

/* Phase 13 — SWELL button / FAQ box / cap_box / accordion */
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-btn_normal, .is-style-btn_solid, .is-style-btn_shiny) :is(a, .swell-block-button__link) {
    color: var(--text-on-accent, #fff) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-btn_normal :is(a, .swell-block-button__link):hover {
    box-shadow: var(--shadow-btn-normal-hover, 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 24px -12px rgba(0, 0, 0, 0.2)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-btn_solid :is(a, .swell-block-button__link) {
    box-shadow: var(--shadow-btn-solid, 0 4px 0 var(--the-solid-shadow, var(--color_main_dark))) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-btn_line :is(a, .swell-block-button__link) {
    color: var(--the-btn-color, var(--color_main)) !important;
    background: transparent !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-btn_line :is(a, .swell-block-button__link):hover {
    color: var(--text-on-accent, #fff) !important;
    background-color: var(--the-btn-color, var(--color_main)) !important;
    border-color: transparent !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-more_btn a {
    background: var(--surface-more-btn, #fff) !important;
    box-shadow: 0 0 0 1px var(--border-more-btn, #dcdcdc) !important;
    color: var(--text-more-btn, #666) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-more_btn a:hover {
    background-color: var(--color_main) !important;
    box-shadow: none !important;
    color: var(--text-on-accent, #fff) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-faq-box .swell-block-faq__item {
    border-color: var(--border-swell-box, var(--color_border));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-faq-box .faq_q {
    border-bottom-color: var(--border-swell-box, var(--color_border));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-faq-border .swell-block-faq__item + .swell-block-faq__item {
    border-top-color: var(--border-swell-box, var(--color_border));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .cap_box_content {
    background-color: var(--surface-capbox-content, var(--capbox-color--bg, var(--color_content_bg))) !important;
    border-color: var(--border-capbox, var(--capbox-color, var(--color_main))) !important;
    color: var(--text-capbox-content, inherit) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-shadow.cap_box:not([data-colset]) {
    --capbox-color--bg: var(--surface-capbox-content, #fff);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-shadow.cap_box:not([data-colset]) > .cap_box_content {
    color: var(--text-capbox-content, var(--color_text)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-onborder_ttl, .is-style-onborder_ttl2) > :is(.cap_box_ttl, .cap_box_content) {
    background-color: var(--surface-capbox-content, var(--color_content_bg)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion {
    color: var(--color_text);
}

: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-teaser-blur) {
    --ntg-acc-ink: var(--color_htag, var(--color_text));
    --ntg-acc-body: var(--color_text);
    --ntg-acc-muted: var(--text-comment-muted, var(--color_text));
    --ntg-acc-line: var(--border-swell-box, var(--color_border));
    --ntg-acc-line-strong: var(--nettoge-border-muted, var(--border-blogcard-accent));
    --ntg-acc-open-bg: var(--surface-widget, var(--surface-blogcard));
    --ntg-acc-summary-open-bg: var(--surface-widget, var(--surface-blogcard));
    --ntg-acc-panel-open-bg: var(--nettoge-page-bg);
    --ntg-acc-hover-bg: color-mix(in srgb, var(--surface-widget, var(--surface-blogcard)) 92%, var(--color_text));
}

: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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) {
    background: var(--surface-blogcard, var(--surface-widget));
    border-color: var(--ntg-acc-line);
    color: var(--ntg-acc-body);
}

: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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur):hover {
    background: var(--ntg-acc-hover-bg);
    border-color: var(--ntg-acc-line-strong);
}

: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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur):is([open], .is-opened) {
    background: var(--ntg-acc-open-bg);
    border-color: var(--ntg-acc-line-strong);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--color_text) 14%, transparent);
}

: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 > .swell-block-accordion__title {
    background: var(--surface-accordion-title, var(--color_gray)) !important;
    color: var(--color_htag, var(--color_text)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion.is-style-main > .swell-block-accordion__item > .swell-block-accordion__title {
    background: var(--color_main) !important;
    color: var(--text-on-accent, #fff) !important;
}

: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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) > .swell-block-accordion__title {
    background: transparent !important;
    color: var(--ntg-acc-ink, var(--color_htag, var(--color_text))) !important;
    border-color: var(--ntg-acc-line, var(--border-swell-box, var(--color_border)));
    list-style: 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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) > .swell-block-accordion__title::-webkit-details-marker {
    display: none !important;
}

: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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) > .swell-block-accordion__title::marker {
    content: none !important;
    display: none !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion__title :is(.swell-block-accordion__label, h1, h2, h3, h4, h5, h6) {
    color: inherit !important;
}

: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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur):is([open], .is-opened) > .swell-block-accordion__title {
    background: var(--ntg-acc-summary-open-bg, var(--surface-widget)) !important;
    border-bottom-color: var(--ntg-acc-line);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion.is-style-acc-guide:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) > .swell-block-accordion__title {
    grid-template-columns: 6px minmax(0, 1fr) auto;
    column-gap: 16px;
    padding: 0 18px 0 0;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion.is-style-acc-guide:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) > .swell-block-accordion__title::before {
    width: 6px;
    min-height: 100%;
    background: var(--ntg-acc-line);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion.is-style-acc-guide:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur):is([open], .is-opened) > .swell-block-accordion__title::before {
    background: var(--ntg-acc-ink, var(--color_text));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion.is-style-acc-guide:not(.is-style-simple):not(.is-style-border):not(.is-style-main):not(.is-style-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) > .swell-block-accordion__title .swell-block-accordion__icon {
    margin: 0;
    flex-shrink: 0;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion__body,
: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-teaser-blur) > .swell-block-accordion__item:not(.is-style-teaser-blur) > .swell-block-accordion__body {
    background: var(--ntg-acc-panel-open-bg, var(--nettoge-page-bg)) !important;
    color: var(--ntg-acc-body, var(--color_text)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion__body :is(p, li, dd, dt, figcaption, span),
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-accordion__body :is(h1, h2, h3, h4, h5, h6) {
    color: inherit;
}

/* SWELL accordion open animation sets transform on __body > * — restore card lift on front */
: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-teaser-blur)
> .swell-block-accordion__item:not(.is-style-teaser-blur)
> .swell-block-accordion__body
> :is(.wp-block-file, .p-blogCard--nettoge, .p-blogCard.-internal, .p-blogCard.-external) {
    transform: translate(0, 0);
    transition: box-shadow .18s ease, transform .18s ease;
}

: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-teaser-blur)
> .swell-block-accordion__item:not(.is-style-teaser-blur):is([open], .is-opened)
> .swell-block-accordion__body
> :is(.wp-block-file, .p-blogCard--nettoge, .p-blogCard.-internal, .p-blogCard.-external) {
    opacity: 1;
    transform: translate(0, 0);
}

: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-teaser-blur)
> .swell-block-accordion__item:not(.is-style-teaser-blur):is([open], .is-opened)
> .swell-block-accordion__body
> .wp-block-file:is(:hover, :focus-within) {
    overflow: visible;
    box-shadow: 4px 4px 0 var(--nf-fg, var(--border-blogcard-accent));
    transform: translate(-3px, -3px);
}

: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-teaser-blur)
> .swell-block-accordion__item:not(.is-style-teaser-blur):is([open], .is-opened)
> .swell-block-accordion__body
> .p-blogCard--nettoge:is(:hover, :focus-visible) {
    overflow: visible;
    transform: translate(-2px, -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-teaser-blur)
> .swell-block-accordion__item:not(.is-style-teaser-blur):is([open], .is-opened)
> .swell-block-accordion__body
> :is(.p-blogCard.-internal, .p-blogCard.-external):hover
.p-blogCard__inner {
    transform: translate(-2px, -2px);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-border, .is-style-simple) > .swell-block-accordion__item {
    background: var(--surface-blogcard, var(--surface-widget));
    border-color: var(--border-swell-box, var(--color_border)) !important;
    color: var(--color_text);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-simple, .is-style-border) .swell-block-accordion__title {
    background: var(--surface-accordion-title, transparent) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) :is(.is-style-simple, .is-style-border) .swell-block-accordion__body {
    border-top-color: var(--border-swell-box, var(--color_border)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-linkList {
    --the-color: var(--color_link, var(--color_text));
}

/* Phase 13-O — SWELL blocks 手付かず */
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .cap_box_ttl {
    color: var(--text-on-accent, #fff) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .c-balloon__text {
    background: var(--surface-callout-box, var(--color_content_bg)) !important;
    border-color: var(--border-swell-box, var(--color_border)) !important;
    color: var(--text-callout-box, var(--color_text)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) [data-col] .c-balloon__before {
    border-right-color: var(--surface-callout-box, var(--color_content_bg)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .-circle .c-balloon__iconImg {
    border-color: var(--border-balloon-circle) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-review__inner {
    color: var(--color_text) !important;
    background-color: var(--surface-review-card, var(--surface-blogcard, #fff)) !important;
    border-top-color: var(--border-review-card, var(--border-blogcard-accent, #000)) !important;
    box-shadow: var(--shadow-blogcard, 4px 4px 0 rgba(0, 0, 0, 0.08));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-review__rating .__label {
    color: var(--text-on-accent, #fff) !important;
    background-color: var(--surface-review-rating-bg, var(--surface-widget, #111)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-review__rating .__str {
    color: var(--text-review-muted, var(--text-comment-muted, #454545)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-review__merits .__label,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-review__demerits .__label {
    color: var(--text-on-accent, #fff) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-linkList.is-style-button .swell-block-linkList__link:hover,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-linkList.is-style-button.-fill .swell-block-linkList__link {
    color: var(--text-on-accent, #fff) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-linkList.is-style-button.-fill .swell-block-linkList__link:hover {
    color: var(--the-color, var(--color_main)) !important;
    background-color: transparent !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-dl.is-style-vtabel > .swell-block-dl__dt {
    color: var(--text-on-accent, #fff) !important;
    background-color: var(--color_main) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-dl.is-style-vtabel > .swell-block-dl__dd {
    border-color: var(--border-swell-box, var(--color_border)) !important;
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-box-menu.is-style-default {
    --the-border-color: var(--border-box-menu, var(--border-swell-box, #eee));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-box-menu.is-style-fill .swell-block-box-menu__item {
    color: var(--text-on-accent, #fff);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-fullWide,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-fullWide__inner {
    color: var(--color_text);
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .is-style-default > .c-tabList .c-tabList__button:not([aria-selected="true"]) {
    color: var(--text-tab-simple, var(--color_text));
}

:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-tab[data-scroll-sp].is-style-default::after,
:is(.post_content, .entry-content, .wp-block-post-content, .editor-styles-wrapper) .swell-block-tab[data-scroll-sp].is-style-simple::after {
    color: var(--text-tab-simple-active, var(--color_text)) !important;
    background: var(--surface-widget, #fff) !important;
}

.swell-block-dl__dt {
    display: flex;
    align-items: center;
}

.quest-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.is-style-default > .c-tabList .c-tabList__button {
    opacity: 10;
}

@media (min-width: 600px) {
    .is-style-default .c-tabBody {
        padding: .5rem;
    }
}

@media (max-width: 600px) {
    .custom-title-cell {
        font-size: 1.1em;
        padding: 0.5em;
        font-weight: 900;
    }
    .custom-materia-icon-1407 {
        max-width: 22px;
        height: auto;
    }
    .custom-img-1407 {
        max-width: 64px;
        height: auto;
        padding: 3px;
    }
}
