/*
Theme Name: Cocoon Child Nyangame v2
Description: Nyangame design rebuild based on mock-reference.html (2026-11-16).
Version: 2.0.0
Template: cocoon-master
Text Domain: cocoon-child-nyangame-v2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========================================================================== 
   01. Tokens and shared foundations
   Specificity: body + component; Cocoon shell overrides use its actual IDs.
   No universal reset. Clipping is confined to media, ticker, and drawers.
   ========================================================================== */
:root {
    --bg: #0a0c10;
    --bg-2: #0e1118;
    --panel: #131722;
    --panel-2: #171c29;
    --line: #242b3d;
    --line-soft: #1b2130;
    --text: #f4f6fa;
    --muted: #a7b0c0;
    --faint: #6e788c;
    --accent: #f39800;
    --accent-hi: #ffb03a;
    --accent-ink: #1a1206;
    --teal: #33c7bb;
    --font-jp: "Noto Sans JP", sans-serif;
    --font-en: "Barlow Semi Condensed", "Noto Sans JP", sans-serif;
    --cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    --ny-site-icon: none;
}

body {
    --ny-admin-offset: 0px;
    --ny-menu-top: 156px;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-jp);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
}

body.admin-bar { --ny-admin-offset: 32px; }
body a { color: var(--teal); }
body a:hover { color: var(--accent-hi); }
body a:focus-visible,
body button:focus-visible,
body input:focus-visible,
body [tabindex="0"]:focus-visible,
body.single .entry-content details.faq > summary:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}
body ::selection { background: var(--accent); color: var(--accent-ink); }
body img { max-width: 100%; height: auto; }
body button, body input, body select, body textarea { font-family: inherit; }
body .en { font-family: var(--font-en); letter-spacing: .14em; text-transform: uppercase; }
body :where(h2, h3, h4, [id]) { scroll-margin-top: calc(150px + var(--ny-admin-offset)); }

/* ========================================================================== 
   02. Cocoon shell and the 1180px content width
   ========================================================================== */
body #container {
    width: 100%;
    max-width: none;
    background: var(--bg);
    overflow: visible;
}
body #content { margin: 0; padding: 0; background: transparent; }
body #content-in {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}
body #content-in::before, body #content-in::after { content: none; }
body #main {
    box-sizing: border-box;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body #sidebar { box-sizing: border-box; float: none; width: 100%; min-width: 0; margin: 0; padding: 34px 0 0; background: var(--bg); }
body.home #content-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
body.home #sidebar { display: none; }
body .ny-front { min-width: 0; padding-bottom: 0; }

/* ========================================================================== 
   03. Sticky header, text logo, site icon, and unchanged tagline setting
   ========================================================================== */
body #header-container {
    position: sticky;
    top: var(--ny-admin-offset);
    z-index: 1000;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: #0a0c10;
    box-shadow: none;
    transform: none;
}
body #header-container > .header-container-in {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}
body #header-container > .header-container-in::after {
    content: "当サイトはアフィリエイト広告を利用しています";
    box-sizing: border-box;
    display: block;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 6px;
    text-align: right;
    font-size: 10px;
    line-height: 1.5;
    color: var(--faint);
    letter-spacing: .05em;
    pointer-events: none;
}
body #header {
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    background-image: none;
    aspect-ratio: auto;
}
body #header > .header-in {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    max-width: 1180px;
    min-height: 84px;
    margin: 0 auto;
    padding: 12px 84px 12px 78px;
    text-align: left;
}
body #header .header-in::before, body #header .header-in::after { content: none; }
body #header .logo {
    order: 0;
    display: block;
    max-height: none;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: .02em;
}
body #header .logo a.site-name-text-link {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--text);
    font: inherit;
    text-decoration: none;
}
body #header .logo a.site-name-text-link::before {
    box-sizing: border-box;
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 46px;
    height: 46px;
    border: 1px solid #2a3242;
    background-color: #12161f;
    background-image: var(--ny-site-icon);
    background-position: 50% 18%;
    background-size: cover;
    filter: brightness(1.25);
    transform: translateY(-50%);
}
body #header .site-name-text { display: inline-block; color: var(--text); font: inherit; white-space: nowrap; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
    body #header .site-name-text {
        background: linear-gradient(90deg, var(--text) 0, var(--text) calc(100% - 1em), var(--accent) calc(100% - 1em), var(--accent) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}
body #header .tagline {
    order: 1;
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 0;
    line-height: 1;
    text-align: left;
}
body #header .tagline::after {
    content: "FPS GEAR & GAMING PC";
    display: block;
    color: var(--muted);
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .18em;
    white-space: nowrap;
}

/* ========================================================================== 
   04. Desktop navigation band; no DOM relocation, keyboard submenus included
   ========================================================================== */
body #navi {
    position: relative;
    top: auto;
    z-index: 900;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-2);
    box-shadow: none;
}
body #navi .navi-in { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
body #navi .navi-in > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
body #navi .navi-in > ul > li { position: relative; flex: 0 1 auto; width: auto; height: auto; min-width: 0; }
body #navi a { display: block; height: auto; padding: 10px 13px; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 14.5px; font-weight: 700; line-height: 1.8; text-decoration: none; }
body #navi a:hover, body #navi a:focus-visible { border-bottom-color: var(--accent); color: var(--text); background: var(--panel); }
body #navi .caption-wrap { height: auto; line-height: inherit; }
body #navi .item-label { font-size: inherit; }
body #navi .sub-caption { color: var(--faint); font-size: 11px; }
body #navi .sub-menu {
    box-sizing: border-box;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 901;
    display: none;
    flex-direction: column;
    width: 260px;
    max-width: calc(100vw - 40px);
    height: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--line);
    background: var(--panel);
    list-style: none;
    text-align: left;
}
body #navi li:hover > .sub-menu, body #navi li:focus-within > .sub-menu { display: flex; }
body #navi .sub-menu li { position: relative; width: 100%; height: auto; }
body #navi .sub-menu a { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); white-space: normal; overflow-wrap: anywhere; }
body #navi .sub-menu .sub-menu { position: static; width: 100%; border: 0; padding: 0 0 0 12px; }
body ul.mobile-footer-menu-buttons {
    box-sizing: border-box;
    position: fixed;
    top: calc(20px + var(--ny-admin-offset));
    right: max(20px, calc((100vw - 1140px) / 2));
    bottom: auto !important;
    left: auto;
    z-index: 10002 !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: calc(100% - 24px);
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    list-style: none;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    overflow: visible;
}
body ul.mobile-footer-menu-buttons > li { display: none; }
body ul.mobile-footer-menu-buttons > li.home-menu-button,
body ul.mobile-footer-menu-buttons > li.top-menu-button,
body ul.mobile-footer-menu-buttons > li.sidebar-menu-button { display: none !important; }
body ul.mobile-footer-menu-buttons > :is(.navi-menu-button, .search-menu-button) { box-sizing: border-box; position: static; flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; }
body ul.mobile-footer-menu-buttons > .search-menu-button { display: block; order: 0; }
body ul.mobile-footer-menu-buttons > .navi-menu-button { display: none; order: 1; }
@media (min-width: 1024px) {
    body ul.mobile-footer-menu-buttons > li:not(.search-menu-button):not(:has(.search-menu-button)) { display: none !important; }
    body ul.mobile-footer-menu-buttons > li:is(.search-menu-button, :has(.search-menu-button)) { display: block !important; }
}
body ul.mobile-footer-menu-buttons > li > label.menu-open { box-sizing: border-box; position: relative; z-index: 10002; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--muted); line-height: 1; cursor: pointer; }
body ul.mobile-footer-menu-buttons > .navi-menu-button > label.menu-open { border-color: var(--accent); color: var(--accent); }
body ul.mobile-footer-menu-buttons .menu-icon { display: block; height: auto; margin: 0; color: inherit; font-size: 20px; line-height: 1; }
body ul.mobile-footer-menu-buttons .menu-icon :is(i, span) { color: inherit; font-size: 20px; }
body ul.mobile-footer-menu-buttons .menu-caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body ul.mobile-footer-menu-buttons > li > input:checked + label.menu-open { border-color: var(--accent); color: var(--accent); }
body ul.mobile-footer-menu-buttons > li > input:checked + label.menu-open .menu-icon { display: none; }
body ul.mobile-footer-menu-buttons > li > input:checked + label.menu-open::after { content: "×"; font-family: sans-serif; font-size: 28px; line-height: 1; }

body #navi-menu-content, body #search-menu-content {
    box-sizing: border-box;
    position: fixed;
    top: calc(var(--ny-menu-top) + var(--ny-admin-offset));
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 9999;
    width: 100%;
    max-width: none;
    height: calc(100vh - var(--ny-menu-top) - var(--ny-admin-offset));
    height: calc(100dvh - var(--ny-menu-top) - var(--ny-admin-offset));
    margin: 0;
    padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--text);
    text-align: left;
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}
body #navi-menu-content { transform: translateX(-105%); }
body #search-menu-content { transform: translateY(1500%); opacity: 0; }
body #navi-menu-input:checked ~ #navi-menu-content,
body #search-menu-input:checked ~ #search-menu-content { transform: translateX(0); opacity: 1; visibility: visible; }
body #navi-menu-close, body #search-menu-close { top: calc(var(--ny-menu-top) + var(--ny-admin-offset)); z-index: 9998; height: calc(100% - var(--ny-menu-top) - var(--ny-admin-offset)); background: #05070a; }
body #navi-menu-content .menu-drawer { max-width: 760px; margin: 0 auto; padding: 0; }
body #navi-menu-content ul { margin: 0; padding: 0; list-style: none; }
body #navi-menu-content li { display: block; margin: 0; padding: 0; border-bottom: 1px solid var(--line-soft); }
body #navi-menu-content a { display: block; padding: 13px 4px; background: transparent; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.8; text-decoration: none; overflow-wrap: anywhere; }
body #navi-menu-content a:hover { background: var(--panel); color: var(--teal); }
body #navi-menu-content .sub-menu { margin: 0 0 8px; padding-left: 18px; border-left: 1px solid var(--line); }
body #navi-menu-content .sub-menu a { color: var(--muted); font-size: 14px; }
body #navi-menu-content .sub-menu li:last-child { border-bottom: 0; }
body #navi-menu-content label, body #search-menu-content label.menu-close-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; margin: 0 0 14px auto; padding: 0; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 24px; cursor: pointer; }
body #search-menu-content form.search-box { max-width: 760px; margin: 0 auto; }

/* ========================================================================== 
   05. Content-top LATEST widget and a seamless measured ticker
   ========================================================================== */
body #content-top { margin: 0; padding: 0; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); overflow: hidden; }
body #content-top-in { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
body #content-top .widget_new_entries { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
body #content-top .widget_new_entries > .widget-title {
    flex: 0 0 auto;
    margin: 0;
    padding: 7px 14px;
    border: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .2em;
}
body #content-top .widget-title::before, body #content-top .widget-title::after { content: none; }
body #content-top .ny-ticker-viewport { flex: 1 1 0; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
body #content-top .new-entry-cards { display: flex; flex-wrap: nowrap; gap: 0; width: max-content; max-width: none; margin: 0; padding: 0; border: 0; }
body #content-top .new-entry-cards::before, body #content-top .new-entry-cards::after { content: none; }
body #content-top .widget_new_entries > .new-entry-cards { flex: 1 1 0; overflow-x: auto; }
body #content-top .new-entry-cards > a {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 20px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 7px 56px 7px 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
    white-space: nowrap;
    text-decoration: none;
}
body #content-top .new-entry-cards > a::after { content: "/"; position: static; color: var(--accent); border: 0; background: transparent; transform: none; }
body #content-top .new-entry-cards > a:hover { color: var(--text); background: transparent; }
body #content-top .new-entry-card { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
body #content-top .new-entry-card-content { width: auto; margin: 0; padding: 0; }
body #content-top .new-entry-card-title { display: block; max-width: none; max-height: none; margin: 0; padding: 0; overflow: visible; color: inherit; font-size: 13px; line-height: 1.8; white-space: nowrap; -webkit-line-clamp: unset; }
body #content-top :is(.new-entry-card-thumb, .new-entry-card-meta, .new-entry-card-date, .new-entry-card-snippet, .new-entry-card img) { display: none; }
body #content-top .ny-ticker-running .new-entry-cards { animation: ny-v2-ticker var(--ny-ticker-duration, 46s) linear infinite; will-change: transform; }
body #content-top .widget_new_entries:is(:hover, .ny-ticker-paused, .ny-ticker-touch) .new-entry-cards { animation-play-state: paused; }
body #content-top .ny-ticker-viewport:focus-within { overflow-x: auto; }
body #content-top .ny-ticker-viewport:focus-within .new-entry-cards { animation: none; transform: none; }
body #content-top .ny-ticker-toggle { box-sizing: border-box; flex: 0 0 36px; width: 36px; min-height: 36px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--muted); font-size: 13px; cursor: pointer; }
body #content-top .ny-ticker-toggle[hidden] { display: none; }
body #content-top .ny-ticker-toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
@keyframes ny-v2-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================================================================== 
   06. Front-page hero and numbered latest-post ranking
   ========================================================================== */
body .ny-front .hero { padding: 34px 0 8px; }
body .ny-front .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: stretch; }
body .ny-front .hero-card { display: block; min-width: 0; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; overflow: hidden; }
body .ny-front .hero-card .ph { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
body .ny-front .hero-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body .ny-front .hero-card:hover img { transform: scale(1.03); }
body .ny-front .hero-card > .body { padding: 22px 26px 26px; border-top: 3px solid var(--accent); }
body .ny-front .hero-card h2 { margin: 12px 0 10px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; line-height: 1.45; overflow-wrap: anywhere; }
body .ny-front .hero-card p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
body .ny-front .meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--faint); font-family: var(--font-en); font-size: 12.5px; letter-spacing: .08em; }
body .ny-front .meta .cat { color: var(--teal); font-weight: 700; }
body .ny-front .chip { display: inline-block; padding: 3px 10px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; line-height: 1.8; letter-spacing: .08em; }
body .ny-front .rankbox { box-sizing: border-box; min-width: 0; padding: 20px 22px; border: 1px solid var(--line); background: var(--panel); }
body .ny-front .rankbox h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 6px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 16px; font-weight: 900; }
body .ny-front .rankbox h3 .en { color: var(--accent); font-size: 11px; letter-spacing: .22em; }
body .ny-front .rankbox ol { margin: 8px 0 0; padding: 0; list-style: none; }
body .ny-front .rankbox li { margin: 0; border-top: 1px solid var(--line-soft); }
body .ny-front .rankbox li:first-child { border-top: 0; }
body .ny-front .rankbox a { display: flex; align-items: baseline; gap: 14px; padding: 13px 2px; color: var(--text); text-decoration: none; }
body .ny-front .rankbox a:hover .t { color: var(--accent-hi); }
body .ny-front .rankbox .no { flex: 0 0 34px; color: var(--accent); font-family: var(--font-en); font-size: 24px; font-weight: 700; line-height: 1; }
body .ny-front .rankbox .t { min-width: 0; font-size: 14.5px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
body .ny-front .rankbox .c { display: block; margin-top: 2px; color: var(--faint); font-size: 11.5px; font-weight: 500; }
body .ny-front .image-fallback { display: grid; width: 100%; height: 100%; min-height: 100px; place-items: center; background: linear-gradient(135deg, var(--panel-2), var(--bg-2)); color: var(--faint); font-size: 13px; }

/* ========================================================================== 
   07. Four category cards, section headings, and article filters
   ========================================================================== */
body .ny-front .catstrip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 26px 0 4px; }
body .ny-front .cat-tile { position: relative; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
body .ny-front .cat-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
body .ny-front .cat-tile.teal::before { background: var(--teal); }
body .ny-front .cat-tile .en { color: var(--faint); font-size: 11px; font-weight: 600; }
body .ny-front .cat-tile .jp { display: block; margin: 4px 0 2px; font-size: 19px; font-weight: 900; }
body .ny-front .cat-tile .d { color: var(--muted); font-size: 12.5px; }
body .ny-front .cat-tile:hover { border-color: var(--accent); }
body .ny-front .section { padding: 44px 0 8px; }
body .ny-front .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
body .ny-front .sec-head .no { color: var(--accent); font-family: var(--font-en); font-size: 15px; font-weight: 700; letter-spacing: .2em; }
body .ny-front .sec-head h2 { margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); font-size: clamp(22px, 3vw, 30px); font-weight: 900; line-height: 1.3; }
body .ny-front .sec-head .en { margin-left: auto; color: var(--faint); font-size: 12px; font-weight: 600; }
body .ny-front .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
body .ny-front .filters a { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 700; text-decoration: none; }
body .ny-front .filters a[aria-current="page"] { border-color: var(--text); background: var(--text); color: var(--bg); }
body .ny-front .filters a:hover { border-color: var(--teal); }

/* ========================================================================== 
   08. Latest-article cards (16:9) and empty states
   ========================================================================== */
body .ny-front .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body .ny-front .acard { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; overflow: hidden; }
body .ny-front .acard .ph { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
body .ny-front .acard .ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body .ny-front .acard:hover .ph img { transform: scale(1.04); }
body .ny-front .acard .ph .chip { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); overflow-wrap: anywhere; }
body .ny-front .acard > .body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
body .ny-front .acard h3 { margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 17px; font-weight: 900; line-height: 1.55; overflow-wrap: anywhere; }
body .ny-front .acard:hover h3 { color: var(--accent-hi); }
body .ny-front .acard p { flex: 1; margin: 0; color: var(--muted); font-size: 13.5px; }
body .ny-front .acard .meta { margin-top: 4px; }
body .ny-front .empty-note { display: block; margin: 0; padding: 22px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; text-align: center; }

/* ========================================================================== 
   09. BTO comparison; every cell is dark, including the OZ row
   ========================================================================== */
body .ny-front .table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
body .ny-front .cmp { width: 100%; margin: 0; border: 1px solid var(--line); border-collapse: collapse; background: var(--panel); color: var(--text); }
body .ny-front .cmp th, body .ny-front .cmp td { padding: 15px 18px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; font-size: 14.5px; font-weight: 400; text-align: left; vertical-align: middle; }
body .ny-front .cmp thead th { background: #05070a; color: var(--faint); font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: .18em; }
body .ny-front .cmp tbody tr { background: var(--panel); }
body .ny-front .cmp tbody tr:hover { background: var(--panel-2); }
body .ny-front .cmp .shop { color: var(--text); font-size: 17px; font-weight: 900; white-space: nowrap; }
body .ny-front .cmp .shop small { display: block; margin-top: 2px; color: var(--teal); font-family: var(--font-en); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; }
body .ny-front .cmp .desc { color: var(--muted); }
body .ny-front .cmp .rowcta { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 10px; }
body .ny-front .cmp .rowcta .official-link { display: inline-block; padding: 10px 18px; border: 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
body .ny-front .cmp .rowcta .official-link:hover { background: var(--accent-hi); }
body .ny-front .cmp tr:last-child > :is(th, td) { border-bottom: 0; }
body .tlink { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
body .tlink:hover { color: var(--accent-hi); }

/* ========================================================================== 
   10. About band, with the real WordPress site icon and fixed mock copy
   ========================================================================== */
body .ny-front .brandband { display: grid; grid-template-columns: 300px minmax(0, 1fr); margin: 52px 0 0; border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
body .ny-front .brandband .ph img { display: block; width: 100%; height: auto; }
body .ny-front .brandband > .body { min-width: 0; padding: 30px 34px; }
body .ny-front .brandband .about-label { color: var(--accent); font-size: 11px; font-weight: 700; }
body .ny-front .brandband h2 { margin: 8px 0 10px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 24px; font-weight: 900; }
body .ny-front .brandband h2 .accent-star { color: var(--accent); }
body .ny-front .brandband p { max-width: 56ch; margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* Archive and search results: native Cocoon entry cards */
body:is(.archive, .search) #archive-title.archive-title { margin: 0 0 24px; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font-size: 26px; font-weight: 900; line-height: 1.5; overflow-wrap: anywhere; }
body:is(.archive, .search) #archive-title .fa { color: var(--accent); }
body:is(.archive, .search) #list { display: block; }
body:is(.archive, .search) #list .entry-card-wrap { box-sizing: border-box; display: block; width: 100%; margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--text); text-decoration: none; opacity: 1; }
body:is(.archive, .search) #list .entry-card { display: flex; align-items: flex-start; gap: 20px; min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
body:is(.archive, .search) #list .entry-card-thumb { position: relative; float: none; flex: 0 0 40%; width: 40%; margin: 0; overflow: hidden; }
body:is(.archive, .search) #list .entry-card-thumb img { display: block; width: 100%; height: auto; }
body:is(.archive, .search) #list .entry-card-content { position: static; flex: 1; min-width: 0; width: auto; margin: 0; padding: 0; overflow-wrap: anywhere; }
body:is(.archive, .search) #list .entry-card-title { display: block; max-height: none; margin: 0 0 10px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 20px; font-weight: 900; line-height: 1.5; overflow: visible; -webkit-line-clamp: unset; }
body:is(.archive, .search) #list .entry-card-wrap:is(:hover, :focus-visible) .entry-card-title { color: var(--accent-hi); }
body:is(.archive, .search) #list .entry-card-snippet { display: block; max-height: none; margin: 0 0 12px; padding: 0; color: var(--muted); font-size: 14px; line-height: 1.8; overflow: visible; -webkit-line-clamp: unset; }
body:is(.archive, .search) #list :is(.entry-card-meta, .entry-card-info) { position: static; margin: 0; color: var(--faint); font-size: 12.5px; line-height: 1.8; }
body:is(.archive, .search) #list .entry-card-info { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; }
body:is(.archive, .search) #list [class*="pv"] { display: none; }
body:is(.archive, .search) #list .entry-card-thumb .cat-label { box-sizing: border-box; max-width: 100%; border-radius: 0; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; }

/* Native Cocoon list pagination */
body .pagination-next-link { box-sizing: border-box; display: block; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 0; clip-path: var(--cut); background: var(--panel); color: var(--text); text-align: center; text-decoration: none; letter-spacing: .08em; }
body .pagination-next-link:hover { background: var(--panel-2) !important; border-color: var(--accent); color: var(--text); }
body .pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; text-align: center; }
body .pagination .page-numbers { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; background: var(--panel-2); color: var(--muted); line-height: 1; text-decoration: none; }
body .pagination .page-numbers.current { background: var(--accent); color: #14100a; border-color: var(--accent); font-weight: 700; }
body .pagination .page-numbers.dots { background: none; border: none; color: var(--faint); }
body .pagination a.page-numbers:hover { border-color: var(--accent); color: var(--text); }

/* ========================================================================== 
   11. Native Cocoon article: breadcrumb, title, metadata, eyecatch
   ========================================================================== */
body .breadcrumb { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 20px 0; background: transparent; color: var(--muted); font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; }
body #main .breadcrumb { padding-right: 0; padding-left: 0; }
body .breadcrumb a { color: var(--teal); text-decoration: none; }
body .breadcrumb a:hover { color: var(--accent-hi); }
body:is(.single, .page) #main .article { max-width: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
body:is(.single, .page) .article-header { padding: 14px 0 0; background: transparent; }
body:is(.single, .page) .article-header .entry-title { margin: 14px 0 12px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: clamp(27px, 4.4vw, 42px); font-weight: 900; line-height: 1.5; overflow-wrap: anywhere; }
body.single .eye-catch .cat-label,
body:is(.archive, .search) #list .entry-card-thumb .cat-label { position: absolute; z-index: 1; top: 0; left: 0; display: inline-block; padding: 3px 10px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; text-decoration: none; }
body.single .article-header :is(.date-tags, .post-date, .post-update, .author-info) { color: var(--faint); font-family: var(--font-en); font-size: 13px; }
body.single .article-header .date-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 16px 0 0; }
body.page #breadcrumb.breadcrumb-page.pbp-main-bottom,
body:is(.single, .page) :is(.sns-share, .sns-follow, .author-info, .post-author),
body.single .article-header .cat-tags,
body.single .article-header .entry-categories-tags,
body.single .article-footer .entry-categories-tags,
body.single .article > .cat-tags,
body.single .article-footer > .cat-tags { display: none; }
body.single .eye-catch { position: relative; margin: 26px 0 0; border: 1px solid var(--line); }
body.single .eye-catch img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }

/* ========================================================================== 
   12. Article typography; no generated heading numbers or broad link/button reset
   ========================================================================== */
body:is(.single, .page) .entry-content { min-width: 0; max-width: 760px; margin: 34px 0 10px; color: #dbe1ec; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
body:is(.single, .page) .entry-content p { margin: 0 0 20px; color: #dbe1ec; font-size: 16px; line-height: 1.95; }
body:is(.single, .page) .entry-content h2 {
    display: block;
    margin: 46px 0 18px;
    padding: 12px 16px 12px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 0;
    background: var(--panel);
    color: var(--accent);
    font-size: 25px;
    font-weight: 900;
    line-height: 1.5;
    box-shadow: none;
}
body:is(.single, .page) .entry-content h2:first-of-type { margin-top: 8px; }
body:is(.single, .page) .entry-content :is(h2, h3)::before, body:is(.single, .page) .entry-content :is(h2, h3)::after { content: none; }
body:is(.single, .page) .entry-content h3 { margin: 30px 0 12px; padding: 0 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); font-size: 19px; font-weight: 900; line-height: 1.6; box-shadow: none; }
body:is(.single, .page) .entry-content h4 { margin: 26px 0 10px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 17px; font-weight: 700; }
body:is(.single, .page) .entry-content > ol { margin: 0 0 24px; padding-left: 1.5em; }
body:is(.single, .page) .entry-content li { margin-bottom: 8px; }
body:is(.single, .page) .entry-content :is(ol, li ul) > li::marker { color: var(--accent); }
body:is(.single, .page) .entry-content ul:not(li ul) {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--panel);
}
body:is(.single, .page) .entry-content ul:not(li ul) > li {
    margin: 0;
    padding: 13px 18px 13px 44px;
    position: relative;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
}
body:is(.single, .page) .entry-content ul:not(li ul) > li:last-child { border-bottom: none; }
body:is(.single, .page) .entry-content ul:not(li ul) > li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 9px;
    height: 9px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
body:is(.single, .page) .entry-content li ul {
    list-style: disc;
    margin: 8px 0 0;
    padding: 0 0 0 1.5em;
    border: 0;
    background: transparent;
}
body:is(.single, .page) .entry-content a:where(:not(.wp-block-button__link):not(.btn):not(.a-wrap):not(.btn-wrap a):not(.wp-block-button a)) { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
body:is(.single, .page) .entry-content a:where(:not(.wp-block-button__link):not(.btn):not(.wp-block-button a)):hover { color: var(--accent-hi); }
body:is(.single, .page) .entry-content :is(img, video, iframe) { max-width: 100%; }
body:is(.single, .page) .entry-content pre { max-width: 100%; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); overflow-x: auto; }
body:is(.single, .page) .entry-content blockquote { margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--panel); color: var(--muted); }
body:is(.single, .page) .entry-content .wp-block-table { max-width: 100%; margin: 0 0 24px; overflow-x: auto; }
body:is(.single, .page) .entry-content table { width: 100%; max-width: 100%; margin: 0 0 24px; border: 1px solid var(--line); border-collapse: collapse; table-layout: fixed; background: var(--panel); color: var(--text); font-size: 14.5px; }
body:is(.single, .page) .entry-content :is(th, td) { padding: 12px 16px; border: 1px solid var(--line-soft); background: var(--panel); color: #dbe1ec; text-align: left; overflow-wrap: anywhere; }
body:is(.single, .page) .entry-content thead th { background: #05070a; color: var(--faint); font-size: 12.5px; letter-spacing: .1em; }
body:is(.single, .page) .entry-content tbody tr:nth-child(even) > :is(th, td) { background: var(--panel-2); }
body:is(.single, .page) .entry-content .wp-block-table table { min-width: 440px; margin: 0; table-layout: auto; }
body:is(.single, .page) .entry-content .wp-block-button > a,
body:is(.single, .page) .entry-content .wp-block-button .wp-block-button__link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid var(--accent);
    border-radius: 0;
    background-color: var(--accent);
    color: var(--accent-ink);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.8;
    text-align: center;
    text-decoration: none;
    clip-path: var(--cut);
}
body:is(.single, .page) .entry-content .wp-block-button > a:hover,
body:is(.single, .page) .entry-content .wp-block-button .wp-block-button__link:hover { border-color: var(--accent-hi); background-color: var(--accent-hi); color: var(--accent-ink); }
body:is(.single, .page) .entry-content .wp-block-buttons { max-width: 100%; }
body:is(.single, .page) .entry-content .wp-block-buttons > .wp-block-button { flex: 0 1 auto; width: min(440px, 100%); max-width: 100%; }
body:is(.single, .page) .entry-content .wp-block-buttons { justify-content: center; }

/* Monthly recommended gaming PCs in the article body. */
body.single .entry-content .ny-picks-section { min-width: 0; margin: 0 0 32px; }
body.single .entry-content .ny-picks-heading { display: flex; align-items: baseline; gap: 10px; }
body.single .entry-content .ny-picks-title { flex: 1; min-width: 0; margin: 0 0 10px; padding: 0; border: 0; background: transparent; font-size: 22px; font-weight: 700; }
body.single .entry-content .ny-picks-pr { color: var(--muted); font-size: 11px; }
body.single .entry-content .ny-picks-note { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.7; }
body.single .entry-content .ny-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
body.single .entry-content .ny-pick-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--panel); text-align: center; line-height: 1.6; }
body.single .entry-content .ny-pick-catch { font-size: 15px; font-weight: 700; }
body.single .entry-content .ny-pick-image { padding: 6px; background: #fff; }
body.single .entry-content .ny-pick-image img { display: block; width: 100%; height: auto; margin: 0; }
body.single .entry-content .ny-pick-shop { font-size: 13px; font-weight: 700; }
body.single .entry-content .ny-pick-model { font-size: 13px; }
body.single .entry-content .ny-pick-price { color: var(--accent); font-size: 30px; font-weight: 800; line-height: 1.3; }
body.single .entry-content .ny-pick-price-label { color: var(--text); font-size: 12px; font-weight: 400; }
body.single .entry-content .ny-pick-price-unit { font-size: 16px; }
body.single .entry-content .ny-pick-note { color: var(--muted); font-size: 12px; }
body.single .entry-content a.ny-pick-button { box-sizing: border-box; display: block; width: 100%; margin-top: auto; padding: 12px 6px; clip-path: var(--cut); background: var(--accent); color: #14100a; font-size: 13px; font-weight: 700; text-decoration: none; }
body.single .entry-content a.ny-pick-button:is(:hover, :focus-visible) { background: var(--accent-hi); color: #14100a; }
body.single .entry-content .ny-picks:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 768px) {
    body.single .entry-content .ny-picks { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
    body.single .entry-content .ny-pick-card { flex: 0 0 80%; max-width: 300px; scroll-snap-align: start; }
}

/* FAQ, related cards, and comment actions on articles. */
body.single .entry-content details.faq { margin: 0 0 10px; border: 1px solid var(--line); background: var(--panel); }
body.single .entry-content details.faq > summary { box-sizing: border-box; display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 16px 20px; color: var(--text); font-size: 15.5px; font-weight: 900; cursor: pointer; list-style: none; }
body.single .entry-content details.faq > summary::-webkit-details-marker { display: none; }
body.single .entry-content details.faq > summary::marker { content: ""; }
body.single .entry-content details.faq > summary > h3 { display: flex; flex: 1; align-items: baseline; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; }
body.single .entry-content details.faq summary .q { flex: 0 0 auto; color: var(--accent); font-family: var(--font-en); font-weight: 700; }
body.single .entry-content details.faq .faq-question-text { min-width: 0; }
body.single .entry-content details.faq > .a { padding: 0 20px 18px 52px; color: var(--muted); font-size: 14.5px; }
body.single .entry-content details.faq > .a :is(p, ol) { margin: 0 0 14px; color: inherit; font-size: inherit; line-height: inherit; }
body.single .entry-content details.faq > .a ol { padding-left: 1.5em; }
body.single .entry-content details.faq > .a > :last-child { margin-bottom: 0; }

body.single .pager-post-navi {
  display: none;
}

body.single #related-entries { margin: 34px 0 0; padding: 0; }
body.single #related-entries .related-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 32px; padding: 0; }
body.single #related-entries .related-entry-card-wrap { box-sizing: border-box; display: flex; min-width: 0; width: 100%; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--text); text-decoration: none; overflow: hidden; opacity: 1; }

body.single #related-entries .related-entry-card-wrap:nth-child(n+4) {
  display: none;
}
body.single #related-entries .related-entry-card { display: flex; flex: 1; flex-direction: column; min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
body.single #related-entries :is(.related-list, .related-entry-card-wrap, .related-entry-card, .related-entry-card-content)::before,
body.single #related-entries :is(.related-list, .related-entry-card-wrap, .related-entry-card, .related-entry-card-content)::after { content: none; }
body.single #related-entries .related-entry-card-thumb { position: relative; float: none; flex: 0 0 auto; width: 100%; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
body.single #related-entries .related-entry-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
body.single #related-entries .related-entry-card-wrap:hover .related-entry-card-thumb img { transform: scale(1.04); }
body.single #related-entries .cat-label { position: absolute; z-index: 1; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 3px 10px; border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; line-height: 1.8; letter-spacing: .08em; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
body.single #related-entries .related-entry-card-content { box-sizing: border-box; display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; width: 100%; height: auto; margin: 0; padding: 16px 18px 18px; }
body.single #related-entries .related-entry-card-title { display: block; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 17px; font-weight: 900; line-height: 1.55; overflow: visible; overflow-wrap: anywhere; -webkit-line-clamp: unset; }
body.single #related-entries .related-entry-card-wrap:is(:hover, :focus-visible) .related-entry-card-title { color: var(--accent-hi); }
body.single #related-entries .related-entry-card-snippet { display: block; flex: 1; max-height: none; margin: 0; padding: 0; color: var(--muted); font-size: 13.5px; line-height: 1.8; overflow: visible; -webkit-line-clamp: unset; }
body.single #related-entries .related-entry-card-meta { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; color: var(--faint); font-family: var(--font-en); font-size: 12.5px; line-height: 1.8; letter-spacing: .08em; }
body.single #related-entries .related-entry-card-info { justify-content: flex-start; }
body.single #comment-area :is(.comment-btn, #submit, .comment-form .submit) { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
body.single #comment-area :is(.comment-btn, #submit, .comment-form .submit):hover { border-color: var(--accent-hi); background: var(--accent-hi); color: var(--accent-ink); }

/* ========================================================================== 
   13. Sidebar panels, table of contents, popular text rows, and advertisements
   ========================================================================== */
body #sidebar .widget { box-sizing: border-box; max-width: 100%; margin: 0 0 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--muted); overflow-wrap: anywhere; }
body #sidebar .widget_search { display: none; }
body #sidebar .ny-adcard { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); overflow-wrap: anywhere; }
body #sidebar .ny-adcard-pr { display: inline-block; margin: 0 0 10px; padding: 2px 7px; border: 1px solid var(--line); color: var(--faint); font-size: 10px; line-height: 1.5; }
body #sidebar .ny-adcard-title { margin: 0 0 10px; color: var(--text); font-size: 18px; font-weight: 900; line-height: 1.5; }
body #sidebar .ny-adcard-text { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
body #sidebar .ny-adcard-btn { box-sizing: border-box; display: block; width: 100%; max-width: 100%; padding: 10px 14px; border: 0; clip-path: var(--cut); background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
body #sidebar .ny-adcard-btn:hover, body #sidebar .ny-adcard-btn:focus-visible { background: var(--accent-hi); }
body #sidebar .widget-title { margin: 0 0 6px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 16px; font-weight: 900; line-height: 1.6; }
body #sidebar .widget-title::before { content: none; }
body #sidebar .widget_toc .widget-title::after { content: "CONTENTS"; margin-left: 10px; color: var(--accent); font-family: var(--font-en); font-size: 11px; letter-spacing: .22em; }
body #sidebar .widget_popular_entries .widget-title::after { content: "RANKING"; margin-left: 10px; color: var(--accent); font-family: var(--font-en); font-size: 11px; letter-spacing: .22em; }
body #sidebar .widget_toc .toc { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: var(--muted); }
body #sidebar .widget_toc :is(ul, ol) { margin: 10px 0 0; padding-left: 1.2em; }
body #sidebar .widget_toc li { margin: 0; border-top: 1px solid var(--line-soft); }
body #sidebar .widget_toc li:first-child { border-top: 0; }
body #sidebar .widget_toc a { display: block; padding: 11px 2px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
body #sidebar .widget_toc a:hover { color: var(--teal); }
body.single .entry-content .toc { box-sizing: border-box; max-width: 100%; margin: 24px 0; padding: 20px 22px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); }
body.single .entry-content .toc-title { color: var(--text); font-size: 16px; font-weight: 900; }
body #sidebar .popular-entry-cards { display: block; margin: 10px 0 0; padding: 0; counter-reset: ny-popular; }
body #sidebar .popular-entry-cards > a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 11px 0;
    border: 0;
    border-top: 1px solid var(--line-soft);
    background: transparent;
    color: var(--text);
    counter-increment: ny-popular;
    text-decoration: none;
}
body #sidebar .popular-entry-cards > a:first-child { border-top: 0; }
body #sidebar .popular-entry-cards > a::before { content: counter(ny-popular, decimal-leading-zero); position: static; flex: 0 0 24px; width: auto; height: auto; border: 0; background: transparent; color: var(--accent); font-family: var(--font-en); font-size: 22px; font-weight: 700; line-height: 1; text-align: left; }
body #sidebar .popular-entry-cards > a::after { content: none; }
body #sidebar .popular-entry-card { display: flex; flex-direction: column; min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
body #sidebar .popular-entry-card::before, body #sidebar .popular-entry-card::after { content: none; }
body #sidebar .popular-entry-card-content { order: 0; min-width: 0; width: 100%; margin: 0; padding: 0; }
body #sidebar .popular-entry-card-title { display: block; max-height: none; overflow: visible; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.6; -webkit-line-clamp: unset; }
body #sidebar .popular-entry-cards > a:hover .popular-entry-card-title { color: var(--accent-hi); }
body #sidebar :is(.popular-entry-card-thumb, .popular-entry-card-meta, .popular-entry-card-date, .popular-entry-card-snippet) { display: none; }
body #sidebar .ny-popular-category { order: 1; display: block; margin-top: 2px; color: var(--faint); font-size: 11.5px; line-height: 1.6; }
body #sidebar :is(#sidebar-in, .sidebar-in, #sidebar-scroll, .sidebar-scroll) { background: transparent; }
body #sidebar :is(.custom-html-widget, .textwidget, .ad-area, .ad-wrap) { background: transparent; }
body #sidebar :is(.custom-html-widget, .textwidget, .ad-area, .ad-wrap, .widget_custom_html, .widget_media_image) { max-width: 100%; }
body #sidebar :is(img, iframe, ins.adsbygoogle) { box-sizing: border-box; max-width: 100%; }
body #sidebar .widget_custom_html { overflow-x: auto; }

/* ========================================================================== 
   14. Search forms; input + submit stay within the same 48px flex row
   ========================================================================== */
body #sidebar form.search-box, body #search-menu-content form.search-box { box-sizing: border-box; position: relative; display: flex; align-items: stretch; gap: 8px; width: 100%; max-width: 100%; height: auto; margin: 0; padding: 0; border: 0; background: transparent; }
body #sidebar .search-edit, body #search-menu-content .search-edit { box-sizing: border-box; flex: 1 1 0; width: 0; min-width: 0; max-width: 100%; height: 48px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--bg-2); color: var(--text); font-size: 16px; line-height: 1.4; }
body #sidebar .search-edit::placeholder, body #search-menu-content .search-edit::placeholder { color: var(--faint); }
body #sidebar .search-submit, body #search-menu-content .search-submit { box-sizing: border-box; position: static; display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; min-height: 48px; margin: 0; padding: 0; border: 1px solid var(--accent); border-radius: 0; background: var(--accent); color: var(--accent-ink); font-size: 18px; line-height: 1; cursor: pointer; }
body #sidebar .search-submit:hover, body #search-menu-content .search-submit:hover { border-color: var(--accent-hi); background: var(--accent-hi); }

/* Contact Form 7 on static pages. */
body.page .wpcf7 label { color: var(--text); }
body.page .wpcf7 :is(input:not([type]), input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[type="date"], input[type="password"], textarea) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg-2);
    color: var(--text);
    font-size: 16px;
}
body.page .wpcf7 textarea { resize: vertical; }
body.page .wpcf7 :is(input, textarea):focus { border-color: var(--accent); }
body.page .wpcf7 input[type="submit"] {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 16px;
    font-weight: 900;
    clip-path: var(--cut);
    cursor: pointer;
}
body.page .wpcf7 input[type="submit"]:hover { border-color: var(--accent-hi); background: var(--accent-hi); }

/* ========================================================================== 
   15. Minimal footer band: logo, existing menu, copyright
   ========================================================================== */
body #footer { margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line); background: #05070a; color: var(--muted); }
body #footer-in { box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
body .footer-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 28px; width: 100%; margin: 0; padding: 26px 0 22px; background: transparent; }
body .footer-bottom::before, body .footer-bottom::after { content: none; }
body .footer-bottom-logo {
  position: static; float: none; flex: 0 0 auto; margin: 0; padding: 0; }
body .footer-bottom .logo-footer { position: relative; float: none; margin: 0; padding: 10px 0 10px 50px; color: var(--text); font-size: 20px; font-weight: 900; line-height: 1.1; }
body .footer-bottom .logo-footer :is(a, .site-name-text) { margin: 0; padding: 0; color: var(--text); font: inherit; text-decoration: none; }
body .footer-bottom .logo-footer::before {
    box-sizing: border-box;
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #2a3242;
    background-color: #12161f;
    background-image: var(--ny-site-icon);
    background-position: 50% 18%;
    background-size: cover;
    filter: brightness(1.25);
    transform: translateY(-50%);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
    body .footer-bottom .logo-footer span.site-name-text {
        display: inline-block;
        background: linear-gradient(90deg, var(--footer-logo-color, var(--text)) 0, var(--footer-logo-color, var(--text)) calc(100% - 1em), var(--accent) calc(100% - 1em), var(--accent) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
    body .footer-bottom .copyright.copyright {
        display: inline-block;
        background: linear-gradient(90deg, var(--faint) 0, var(--faint) calc(100% - 1em), var(--accent) calc(100% - 1em), var(--accent) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}
body .footer-bottom-content { display: contents; }
body .footer-bottom :is(.footer-bottom-menu, .navi-footer) { grid-column: 2; grid-row: 1; justify-self: end; float: none; margin: 0; padding: 0; }
body .footer-bottom :is(.footer-bottom-menu, .navi-footer) ul { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin: 0; padding: 0; list-style: none; }
body .footer-bottom :is(.footer-bottom-menu, .navi-footer) li { margin: 0; padding: 0; border: 0; text-align: right; }
body .footer-bottom :is(.footer-bottom-menu, .navi-footer) a { display: inline-block; padding: 8px 2px; color: var(--muted); font-size: 13.5px; font-weight: 700; text-decoration: none; }
body .footer-bottom :is(.footer-bottom-menu, .navi-footer) a:hover { color: var(--accent); }
body .footer-bottom .copyright { --footer-logo-color: var(--faint); grid-column: 1 / -1; grid-row: 2; width: 100%; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; text-align: left; }
body .footer-bottom .copyright a { color: var(--faint); }

/* ========================================================================== 
   16. Tablet/mobile: existing checkbox drawers and upper-right action buttons
   ========================================================================== */
@media (max-width: 1023px) {
    body.admin-bar { --ny-admin-offset: 46px; }
    body #navi { display: none; }
    body #header > .header-in { padding-right: 116px; }
    body #content-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    body #sidebar { padding-top: 0; }
    body .ny-front .hero-grid { grid-template-columns: minmax(0, 1fr); }
    body .ny-front .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .ny-front .catstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .ny-front .brandband { grid-template-columns: minmax(0, 1fr); }
    body { --ny-menu-top: 84px; }
    body ul.mobile-footer-menu-buttons { top: calc(14px + var(--ny-admin-offset)); right: 12px; }
    body ul.mobile-footer-menu-buttons > .navi-menu-button { display: block; }

}

/* ========================================================================== 
   17. Narrow phones; category strip deliberately stays two columns
   ========================================================================== */
@media (max-width: 760px) {
    body:is(.archive, .search) #list .entry-card { flex-direction: column; gap: 16px; }
    body:is(.archive, .search) #list .entry-card-thumb { flex: 0 0 auto; width: 100%; }
    body:is(.archive, .search) #list .entry-card-content { width: 100%; }
    body #header > .header-in { padding-left: 70px; }
    body #header .logo { font-size: 19px; }
    body #header .logo a.site-name-text-link::before { left: 12px; }
    body .ny-front .grid3, body.single #related-entries .related-list { grid-template-columns: minmax(0, 1fr); }
    body .ny-front .hero-card > .body { padding: 22px 20px 26px; }
    body .ny-front .cat-tile { padding: 18px 14px; }
    body .ny-front .cat-tile .jp { font-size: 17px; }
    body .ny-front .sec-head { gap: 10px; }
    body .ny-front .sec-head .en { font-size: 11px; }
    body .ny-front .brandband > .body { padding: 26px 22px; }
    body .ny-front .cmp thead { display: none; }
    body .ny-front .cmp, body .ny-front .cmp tbody, body .ny-front .cmp tr, body .ny-front .cmp td, body .ny-front .cmp tbody th { box-sizing: border-box; display: block; width: 100%; }
    body .ny-front .cmp tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
    body .ny-front .cmp td, body .ny-front .cmp tbody th { padding: 4px 0; border: 0; }
    body .ny-front .cmp td.desc { padding-bottom: 12px; }
    body .ny-front .cmp .shop { white-space: normal; }
    body:is(.single, .page) .entry-content h2 { font-size: 22px; }
    body:is(.single, .page) .entry-content .wp-block-buttons > .wp-block-button { width: 100%; }
    body .footer-bottom { gap: 16px; }
    body .footer-bottom .logo-footer { font-size: 16px; }
    body .footer-bottom :is(.footer-bottom-menu, .navi-footer) a { font-size: 12px; }
}
@media (max-width: 782px) {
    body.admin-bar #wpadminbar { position: fixed; }
}

/* ========================================================================== 
   18. Reduced motion; all original ticker links remain horizontally reachable
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    body #content-top .ny-ticker-running .new-entry-cards { animation: none; transform: none; will-change: auto; }
    body #content-top .ny-ticker-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    body #content-top [data-ny-ticker-clone] { display: none; }
    body .ny-front :is(.hero-card, .acard) img,
    body.single #related-entries .related-entry-card-thumb img { transition: none; transform: none; }
    body #navi-menu-content, body #search-menu-content { transition: none; }
}
