/*
Theme Name: ゼロイチナビ
Author: NextChance LLC
Description: 副業ツールの比較・レビューメディア「ゼロイチナビ」用WordPressテーマ
Version: 1.0.1
Requires at least: 6.0
Text Domain: zeronavi
*/
/* =========================================================================
   ゼロイチナビ（01ナビ）— Design Tokens & Global Styles
   ========================================================================= */

:root {
  --ink:        #182a44;
  --ink-2:      #3a4a63;
  --ink-soft:   #6b7689;
  --ink-faint:  #9aa3b2;
  --paper:      #f5f2ea;
  --paper-2:    #efeadf;
  --surface:    #ffffff;
  --line:       #e7e2d5;
  --line-soft:  #f0ece2;
  --brand:      #15604a;
  --brand-deep: #0f4a39;
  --brand-bri:  #1c7a5c;
  --brand-soft: #e6f0ea;
  --brand-tint: #f0f6f2;
  --gold:       #c08a2b;
  --gold-bri:   #e0a73c;
  --gold-soft:  #f7eed8;
  --medal-1:    #c79528;
  --medal-2:    #9aa3ad;
  --medal-3:    #b07c4f;
  --pr:         #b1542b;
  --pr-soft:    #f6e7df;
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(24,42,68,.05), 0 1px 3px rgba(24,42,68,.04);
  --sh-2: 0 2px 6px rgba(24,42,68,.06), 0 8px 24px rgba(24,42,68,.06);
  --sh-3: 0 8px 28px rgba(24,42,68,.10), 0 24px 60px rgba(24,42,68,.08);
  --sh-brand: 0 8px 22px rgba(21,96,74,.22);
  --font-ui:   "Noto Sans JP", system-ui, sans-serif;
  --font-head: "Shippori Mincho B1", "Noto Serif JP", serif;
  --font-lat:  "Outfit", system-ui, sans-serif;
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --header-h: 76px;
}
:root[data-head="gothic"] { --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-ui); background: var(--paper); color: var(--ink-2);
  font-size: 16px; line-height: 1.85; letter-spacing: .01em;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 12% 18%, rgba(21,96,74,.04), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(192,138,43,.045), transparent 34%);
}
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.42; letter-spacing: .015em; font-weight: 700; margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--brand-soft); color: var(--brand-deep); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { width: 100%; max-width: var(--maxw-narrow); margin-inline: auto; padding-inline: 24px; }
.app-root { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.lat { font-family: var(--font-lat); font-feature-settings: "tnum" 1; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-weight: 700; font-size: 15px; line-height: 1; padding: 14px 22px; border-radius: var(--r-pill); border: 1.5px solid transparent; transition: all .18s ease; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(21,96,74,.28); }
.btn-cta { background: linear-gradient(180deg, var(--brand-bri), var(--brand)); color: #fff; font-size: 17px; padding: 17px 30px; box-shadow: var(--sh-brand); }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(21,96,74,.32); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-deep); border: 1px solid transparent; }
.chip-cat { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.chip-cat:hover { border-color: var(--brand); color: var(--brand); }
.pr-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: var(--r-xs); background: var(--pr-soft); color: var(--pr); }

.rule { height: 1px; background: var(--line); border: 0; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
:focus-visible { outline: 2.5px solid var(--brand-bri); outline-offset: 2px; border-radius: 3px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } html { scroll-behavior: auto; } }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: #d8d2c4; border-radius: 99px; border: 3px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: #c7c0af; }

/* =========================================================================
   ゼロイチナビ — Component styles (header, footer, cards, cta, logo)
   ========================================================================= */

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { font-weight: 800; font-size: 27px; letter-spacing: -.04em; color: #fff; background: linear-gradient(155deg, var(--brand-bri), var(--brand-deep)); width: 46px; height: 40px; border-radius: 11px; display: grid; place-items: center; box-shadow: var(--sh-brand); position: relative; overflow: hidden; }
.logo__mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 55%); }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: .04em; }
.logo__kana { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; color: var(--ink-soft); margin-top: 3px; }
.logo--foot .logo__mark { width: 42px; height: 37px; font-size: 24px; }
.logo--foot .logo__name { color: #fff; }

.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background .25s; }
.site-head.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(24,42,68,.05); background: color-mix(in srgb, var(--paper) 94%, transparent); }
.site-head__bar { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.site-nav { display: flex; align-items: center; gap: 3px; margin-left: 8px; }
.site-nav__a { font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 9px 13px; border-radius: var(--r-sm); transition: all .15s; white-space: nowrap; }
.site-nav__a:hover, .site-nav__a.current-menu-item { color: var(--brand); background: var(--brand-tint); }
.site-nav__a--hl { color: var(--gold); display: inline-flex; align-items: center; gap: 5px; }
.site-nav__a--hl:hover { color: var(--gold); background: var(--gold-soft); }
.head-search { margin-left: auto; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; min-width: 230px; transition: border-color .18s, box-shadow .18s; }
.head-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.head-search input[type="search"] { border: 0; outline: 0; background: transparent; font-size: 13.5px; width: 100%; color: var(--ink); font-family: inherit; }
.head-search input[type="search"]::placeholder { color: var(--ink-faint); }
/* Burger button: shows menu-icon by default, x-icon when data-open="true" */
.head-burger { display: none; margin-left: auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); width: 44px; height: 44px; place-items: center; color: var(--ink); padding: 0; }
.head-burger .icon-menu { display: block; }
.head-burger .icon-close { display: none; }
.head-burger[data-open="true"] .icon-menu { display: none; }
.head-burger[data-open="true"] .icon-close { display: block; }
.head-drawer { display: none; border-top: 1px solid var(--line); background: var(--paper); padding: 18px 24px 24px; }
.head-drawer.is-open { display: block; }
.head-search--m { margin-left: 0; min-width: 0; width: 100%; margin-bottom: 16px; }
.head-drawer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.head-drawer__a { display: flex; align-items: center; gap: 11px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.head-drawer__a:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 1080px) { .head-search { min-width: 180px; } .site-nav { display: none; } }
@media (max-width: 720px) { :root { --header-h: 64px; } .head-search { display: none; } .head-burger { display: grid; } .logo__mark { width: 40px; height: 35px; font-size: 23px; } .logo__name { font-size: 18px; } }

.art-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s; }
.art-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }
.art-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; display: grid; place-items: center; }
.art-card--lg .art-thumb { aspect-ratio: 16/10; }
.tone-ink   { background: linear-gradient(140deg, #1d3252, #15233b); }
.tone-brand { background: linear-gradient(140deg, var(--brand-bri), var(--brand-deep)); }
.art-thumb__deco { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.16), transparent 45%), repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.art-thumb__type { position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); padding: 4px 11px; border-radius: var(--r-pill); backdrop-filter: blur(4px); }
.art-thumb__mono { font-size: clamp(34px, 6vw, 60px); font-weight: 800; color: rgba(255,255,255,.92); letter-spacing: -.02em; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.art-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.art-card--lg .art-card__body { padding: 26px 28px 28px; }
.art-card__exc { color: var(--ink-soft); line-height: 1.75; margin: 0 0 16px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-card--lg .art-card__exc { -webkit-line-clamp: 3; }
.art-card__meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-soft); font-weight: 600; }

.mini-art { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.mini-art:last-child { border-bottom: 0; }
.mini-art:hover h4 { color: var(--brand); }
.mini-art h4 { transition: color .15s; margin: 0; }
.mini-art__n { font-size: 22px; font-weight: 800; color: var(--line); flex-shrink: 0; line-height: 1.2; min-width: 30px; font-family: var(--font-lat); }

.prod-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: transparent; }

.cta-box { background: linear-gradient(180deg, #fff, var(--brand-tint)); border: 1.5px solid var(--brand-soft); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); opacity: .8; }
.cta-box__head { display: flex; align-items: center; gap: 14px; position: relative; }
.cta-box--c { padding: 18px; }

.site-foot { background: var(--ink); color: #fff; margin-top: 80px; padding: 60px 0 30px; position: relative; z-index: 1; }
.site-foot__top { display: flex; gap: 60px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-foot__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.site-foot__h { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.site-foot__a { display: block; font-size: 13.5px; color: rgba(255,255,255,.82); padding: 6px 0; transition: color .15s; }
.site-foot__a:hover { color: var(--brand-bri); }
.site-foot__pr { display: flex; gap: 11px; align-items: flex-start; font-size: 12.5px; color: rgba(255,255,255,.6); line-height: 1.7; margin: 28px 0; padding: 16px 18px; background: rgba(255,255,255,.05); border-radius: var(--r-md); }
.site-foot__pr svg { flex-shrink: 0; margin-top: 2px; color: var(--brand-bri); }
.site-foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,.45); }
@media (max-width: 640px) { .site-foot { padding: 44px 0 28px; margin-top: 56px; } .site-foot__top { gap: 36px; } .site-foot__cols { gap: 36px; width: 100%; } }

.stars-wrap { display: inline-flex; align-items: center; gap: 8px; }
.stars-track { display: inline-flex; gap: 2px; }
.stars-star { width: 16px; height: 16px; flex-shrink: 0; }
.stars-num { font-family: var(--font-lat); font-weight: 800; color: var(--ink); }

.prod-logo { display: grid; place-items: center; font-family: var(--font-lat); font-weight: 800; color: #fff; letter-spacing: -.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px rgba(24,42,68,.14); flex-shrink: 0; }

.rank-medal { display: grid; place-items: center; border-radius: 50%; font-family: var(--font-lat); font-weight: 800; position: relative; flex-shrink: 0; }
.rank-medal--gold { background: radial-gradient(circle at 32% 28%, var(--medal-1), color-mix(in srgb, var(--medal-1) 72%, #000)); color: #fff; box-shadow: 0 4px 12px rgba(199,149,40,.45); border: 2px solid rgba(255,255,255,.35); }
.rank-medal--silver { background: radial-gradient(circle at 32% 28%, var(--medal-2), color-mix(in srgb, var(--medal-2) 72%, #000)); color: #fff; box-shadow: 0 4px 12px rgba(154,163,173,.45); border: 2px solid rgba(255,255,255,.35); }
.rank-medal--bronze { background: radial-gradient(circle at 32% 28%, var(--medal-3), color-mix(in srgb, var(--medal-3) 72%, #000)); color: #fff; box-shadow: 0 4px 12px rgba(176,124,79,.45); border: 2px solid rgba(255,255,255,.35); }
.rank-medal--plain { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }

/* =========================================================================
   ゼロイチナビ — Page & section styles
   ========================================================================= */

.section { padding-block: 56px; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); padding-block: 56px; margin-top: 8px; }
.band + .section, .section + .band { margin-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 18px; } .section { padding-block: 40px; } .band { padding-block: 40px; } }

.hero-search { width: 100%; max-width: 640px; }
.hero-search__box { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 8px 8px 8px 20px; box-shadow: var(--sh-2); transition: border-color .18s, box-shadow .18s; }
.hero-search__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-tint), var(--sh-2); }
.hero-search__box input[type="search"] { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15.5px; font-family: inherit; color: var(--ink); min-width: 0; }
.hero-search__box input[type="search"]::placeholder { color: var(--ink-faint); }
.hero-search__pop { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-search__pop .chip { background: rgba(255,255,255,.7); }

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-row__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 22px; min-width: 110px; box-shadow: var(--sh-1); }
.stat-row__num { font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; line-height: 1; font-family: var(--font-lat); }
.stat-row__lab { font-size: 12px; color: var(--ink-soft); font-weight: 700; margin-top: 7px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-tile { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; transition: all .18s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--sh-2); }
.cat-tile__ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; transition: all .18s; }
.cat-tile:hover .cat-tile__ic { background: var(--brand); color: #fff; }
.cat-tile__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-tile__name { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.cat-tile__tag { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cat-grid { grid-template-columns: 1fr; } }

.rank-strip { display: flex; flex-direction: column; gap: 10px; }
.rank-item { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; transition: all .18s; }
.rank-item:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateX(3px); }
.rank-item--1 { background: linear-gradient(110deg, #fff, var(--gold-soft)); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); padding: 22px; }
@media (max-width: 560px) { .rank-item { flex-wrap: wrap; gap: 12px; } }

.trust-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 22px 24px; }
.trust-item__ic { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
@media (max-width: 760px) { .trust-band { grid-template-columns: 1fr; } }

.author-band { display: flex; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 30px; box-shadow: var(--sh-1); }
.author-band__av { width: 72px; height: 72px; font-size: 30px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(150deg, var(--brand-bri), var(--brand-deep)); color: #fff; font-weight: 800; flex-shrink: 0; font-family: var(--font-lat); }
@media (max-width: 560px) { .author-band { flex-direction: column; text-align: center; gap: 14px; } }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; color: var(--brand); margin-bottom: 8px; font-family: var(--font-lat); }
.section-head h2 { font-size: clamp(21px, 2.5vw, 27px); margin: 0; }
.section-head__link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }

.mag-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.mag-hero__lead { transition: transform .2s; }
.mag-hero__lead:hover { transform: translateY(-4px); }
.mag-hero__side { display: flex; flex-direction: column; gap: 14px; }
.mag-side { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; transition: all .18s; align-items: center; }
.mag-side:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
.mag-side__thumb { width: 84px; height: 64px; flex-shrink: 0; border-radius: var(--r-sm); display: grid; place-items: center; color: rgba(255,255,255,.9); font-weight: 800; font-size: 17px; font-family: var(--font-lat); }
@media (max-width: 880px) { .mag-hero { grid-template-columns: 1fr; } }

.spot-hero { position: relative; overflow: hidden; padding: 64px 0 70px; border-bottom: 1px solid var(--line); }
.spot-hero__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 80% at 85% -10%, var(--brand-soft), transparent 60%), radial-gradient(ellipse 50% 70% at 10% 110%, var(--gold-soft), transparent 55%); opacity: .9; }
.spot-hero__bg::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(125deg, rgba(24,42,68,.025) 0 1px, transparent 1px 26px); }
.spot-hero__in { position: relative; z-index: 1; }
.spot-hero__kicker { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--brand); margin-bottom: 18px; font-family: var(--font-lat); }
.spot-hero__h { font-size: clamp(30px, 5vw, 52px); line-height: 1.28; margin-bottom: 20px; letter-spacing: .01em; }
.spot-hero__hl { position: relative; color: var(--brand); white-space: nowrap; }
.spot-hero__hl::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 30%; background: var(--gold-soft); z-index: -1; transform: skewX(-4deg); }
.spot-hero__sub { font-size: 16px; color: var(--ink-2); line-height: 1.85; max-width: 620px; margin: 0 0 32px; }

.page-hero { position: relative; overflow: hidden; padding: 50px 0 56px; }
.page-hero.tone-ink { background: linear-gradient(140deg, #1d3252, #15233b); color: #fff; }
.page-hero.tone-brand { background: linear-gradient(140deg, var(--brand-bri), var(--brand-deep)); color: #fff; }
.page-hero__in { position: relative; z-index: 1; }
.page-hero__crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; margin-bottom: 18px; opacity: .8; }
.page-hero__crumb a:hover { text-decoration: underline; }
.page-hero__ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; color: #fff; }
.page-hero__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; opacity: .85; font-family: var(--font-lat); }
.page-hero__h { color: #fff; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; }
.page-hero__sub { font-size: 15px; line-height: 1.8; opacity: .82; max-width: 640px; margin: 14px 0 0; }

.cat-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .cat-layout { grid-template-columns: 1fr; } }

.rank-list { display: flex; flex-direction: column; gap: 22px; }
.rank-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.rank-row:first-child { border-color: color-mix(in srgb, var(--gold) 30%, var(--line)); box-shadow: var(--sh-2); }
.rank-row__rank { display: flex; justify-content: center; padding-top: 4px; }
.rank-row__head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.rank-row__head h3 { transition: color .15s; font-family: var(--font-ui); font-weight: 800; font-size: 19px; line-height: 1.3; }
.rank-row__head h3:hover { color: var(--brand); }
.rank-row__score { text-align: right; flex-shrink: 0; }
.rank-row__pros { display: grid; grid-template-columns: 1fr 220px; gap: 20px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 14px; }
.proscons { display: flex; flex-direction: column; gap: 8px; }
.pc-line { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.pc-line--pro svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.rank-row__cta { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) { .rank-row { grid-template-columns: 1fr; gap: 14px; } .rank-row__rank { justify-content: flex-start; } .rank-row__score { text-align: left; width: 100%; display: flex; align-items: center; gap: 14px; } .rank-row__pros { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.tab { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 9px 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: all .15s; cursor: pointer; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.rank-filter { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 30px; }
.rank-filter__a { display: inline-block; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 9px 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: all .15s; }
.rank-filter__a:hover { border-color: var(--brand); color: var(--brand); }
.rank-filter__a.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; min-width: 680px; }
.cmp th { background: var(--paper-2); font-size: 12.5px; font-weight: 800; color: var(--ink-soft); text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp td { padding: 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover { background: var(--brand-tint); }
.cmp__top { background: var(--gold-soft) !important; }
.cmp__top:hover { background: var(--gold-soft) !important; }
.cmp__rank { width: 64px; text-align: center; }
.cmp__act { text-align: center; }

.dir-aside, .cat-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-1); }
.side-card--cta { background: linear-gradient(180deg, #fff, var(--brand-tint)); border-color: var(--brand-soft); }
.side-card__h { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 15px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.side-rank { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.side-cat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 700; color: var(--ink-2); transition: all .15s; }
.side-cat:hover { background: var(--brand-tint); color: var(--brand); }
@media (max-width: 980px) { .dir-aside, .cat-aside { position: static; } }

.empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 70px 24px; text-align: center; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty p { margin: 0; line-height: 1.7; }

/* =========================================================================
   ゼロイチナビ — Article page styles
   ========================================================================= */

.art-hero { position: relative; overflow: hidden; padding: 48px 0 52px; color: #fff; }
.art-hero.tone-ink   { background: linear-gradient(140deg, #1d3252, #15233b); }
.art-hero.tone-brand { background: linear-gradient(140deg, var(--brand-bri), var(--brand-deep)); }
.art-hero__in { position: relative; z-index: 1; }
.art-hero__crumb { display: flex; align-items: center; gap: 7px; font-size: 12px; opacity: .8; margin-bottom: 18px; flex-wrap: wrap; }
.art-hero__crumb a:hover { text-decoration: underline; }
.art-hero__type { font-size: 12px; font-weight: 800; letter-spacing: .05em; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); padding: 4px 13px; border-radius: var(--r-pill); display: inline-block; margin-bottom: 14px; }
.art-hero__h { color: #fff; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.42; margin-bottom: 18px; }
.art-hero__exc { font-size: 15.5px; line-height: 1.85; opacity: .86; max-width: 640px; margin: 0 0 26px; }
.art-hero__meta { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.art-hero__av { width: 46px; height: 46px; font-size: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-bri), var(--brand-deep)); color: #fff; font-weight: 800; font-family: var(--font-lat); }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; padding-top: 44px; }
.art-body { min-width: 0; }
.art-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px) { .art-layout { grid-template-columns: 1fr; gap: 34px; } .art-aside { position: static; order: -1; } }

.art-body { font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.art-body p { margin: 0 0 22px; }
.art-body b, .art-body strong { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 62%, var(--gold-soft) 62%); padding: 0 1px; }
.art-lead { font-size: 17px; line-height: 1.95; color: var(--ink-2); padding: 0 0 4px; }
.art-body h2 { font-size: clamp(20px, 2.5vw, 26px); margin: 48px 0 20px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.art-body h3 { font-size: clamp(17px, 2vw, 21px); margin: 32px 0 12px; }
.art-body ul, .art-body ol { margin: 0 0 22px; padding-left: 26px; }
.art-body li { margin-bottom: 8px; line-height: 1.75; }
.art-body img { border-radius: var(--r-md); margin: 24px 0; }
.art-body a { color: var(--brand); text-decoration: underline; }
.art-body a:hover { color: var(--brand-deep); }
.art-body blockquote { margin: 24px 0; padding: 18px 22px; background: var(--brand-tint); border-left: 4px solid var(--brand); border-radius: 0 var(--r-md) var(--r-md) 0; }
.art-body blockquote p { margin: 0; }

.pr-disclosure { display: flex; gap: 11px; align-items: flex-start; background: var(--pr-soft); color: #8a4022; border-radius: var(--r-md); padding: 14px 18px; font-size: 13px; line-height: 1.7; margin-bottom: 32px; }
.pr-disclosure svg { flex-shrink: 0; margin-top: 2px; }

.verdict { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1.5px solid var(--brand-soft); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: var(--sh-2); margin: 28px 0; }
.verdict__badge { text-align: center; padding-right: 24px; border-right: 1px solid var(--line); }
.verdict__score { font-size: 48px; font-weight: 800; color: var(--brand); line-height: 1; margin: 6px 0 8px; letter-spacing: -.02em; font-family: var(--font-lat); }
.verdict__score span { font-size: 18px; color: var(--ink-faint); }
.verdict__meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 560px) { .verdict { grid-template-columns: 1fr; gap: 18px; } .verdict__badge { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 18px; } }

.pc-box { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pc-col { border-radius: var(--r-md); padding: 20px 22px; border: 1.5px solid; }
.pc-col--pro { background: var(--brand-tint); border-color: var(--brand-soft); }
.pc-col--con { background: #faf6f0; border-color: #efe2d2; }
.pc-col__h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.pc-col--pro .pc-col__h { color: var(--brand-deep); }
.pc-col--con .pc-col__h { color: var(--pr); }
.pc-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.65; color: var(--ink-2); margin-bottom: 11px; }
.pc-item:last-child { margin-bottom: 0; }
.pc-col--pro .pc-item svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.pc-col--con .pc-item svg { color: var(--pr); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 560px) { .pc-box { grid-template-columns: 1fr; } }

.spec { width: 100%; border-collapse: collapse; margin: 22px 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec th { background: var(--paper-2); text-align: left; font-size: 13px; font-weight: 800; color: var(--ink-2); padding: 14px 18px; width: 38%; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td { padding: 14px 18px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

.art-final-cta { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; margin: 44px 0 0; }

.art-author { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 26px; margin-top: 44px; }
.art-author__av { width: 60px; height: 60px; font-size: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-bri), var(--brand-deep)); color: #fff; font-weight: 800; flex-shrink: 0; font-family: var(--font-lat); }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--sh-1); }
.toc__h { font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.toc__a { display: flex; gap: 11px; align-items: baseline; padding: 9px 10px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-soft); font-weight: 600; line-height: 1.5; transition: all .15s; border-left: 2px solid transparent; }
.toc__a:hover { background: var(--brand-tint); color: var(--brand); }
.toc__a.is-on { background: var(--brand-tint); color: var(--brand-deep); font-weight: 800; border-left-color: var(--brand); }
.toc__n { font-size: 11px; font-weight: 700; color: var(--ink-faint); flex-shrink: 0; font-family: var(--font-lat); }
.toc__a.is-on .toc__n { color: var(--brand); }

/* ===== Google AdSense（アフィリ記事には出さない条件付き）ここから ===== */
/* 個別記事で「アフィリエイトのリンクあり」のページにはAdSenseを出力しない。
   それ以外（トップ・カテゴリー・アフィリ無し記事）には出力する。 */
add_action('wp_head', function () {
    $pub = 'ca-pub-8908258708312682'; // ゼロイチナビのAdSenseパブリッシャーID
    if (strpos($pub, 'ca-pub-') !== 0) return;

    if (is_singular('post')) {
        global $post;
        $c = $post ? $post->post_content : '';
        $has_affiliate =
            get_post_meta($post->ID, '_zeronavi_product_url', true) // アフィリ商品が紐付く記事
            || strpos($c, 'sponsored') !== false                   // rel="... sponsored"（自動挿入のCTA）
            || strpos($c, 'a8.net') !== false
            || strpos($c, 'af.moshimo.com') !== false
            || strpos($c, 'valuecommerce') !== false
            || strpos($c, 'amazon-adsystem') !== false
            || strpos($c, 'rentracks') !== false;
        if ($has_affiliate) return; // アフィリ記事は広告ナシ
    }
    ?>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=<?php echo esc_attr($pub); ?>" crossorigin="anonymous"></script>
    <?php
}, 1);
/* ===== AdSense ここまで ===== */