/* NAGAYAMA ☆LAB site theme (2026-11-11): brings every shared-shell page in line with the CM top page.
   Loaded last. Visual only: no markup, links or scripts change. */
html body.pv{--t-bg:#eaf6ff;--t-card:#ffffff;--t-line:rgba(29,42,56,.14);--t-gold:#9a7611;--t-gold2:#7c610d;--t-ink:#1d2a38;--t-mute:#5d7186;--t-pink:#d43d2a;--t-navy:#4a2d9c;
 background:var(--t-bg)!important;color:var(--t-ink)!important;font-family:"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic UI","Noto Sans JP",Meiryo,system-ui,sans-serif!important}
/* ---------- header ---------- */
html body.pv .pv-header{position:sticky!important;top:0;height:60px!important;min-height:60px!important;padding:0 20px!important;gap:14px!important;align-items:center!important;background:rgba(255,255,255,.92)!important;background-image:none!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--t-line)!important;z-index:60!important}
html body.pv .pv-logo{width:auto!important;min-width:0!important;margin:0!important;align-self:center!important;display:flex!important;align-items:center;gap:10px;text-decoration:none!important;white-space:nowrap}
html body.pv .pv-logo picture{display:none!important}
html body.pv .pv-logo::before{content:"";width:30px;height:30px;border-radius:8px;background:url(/icons/nlab-official-20261025-192.png) center/cover}
html body.pv .pv-logo::after{content:"NAGAYAMA ☆LAB";color:#1d2a38;font-weight:900;font-size:17px;letter-spacing:.08em}
html body.pv .pv-nav{gap:2px!important;margin-left:auto!important}
html body.pv .pv-nav a{height:auto!important;min-height:0!important;padding:8px 11px!important;border-radius:999px!important;background:none!important;border:0!important;box-shadow:none!important;color:var(--t-mute)!important;font-size:13.5px!important;font-weight:700!important;text-shadow:none!important;white-space:nowrap}
html body.pv .pv-nav a img{display:none!important}
html body.pv .pv-nav a span{color:inherit!important;text-shadow:none!important;font-size:inherit!important}
html body.pv .pv-nav a:hover{background:rgba(29,42,56,.07)!important;color:var(--t-ink)!important}
html body.pv .pv-nav a.active{background:rgba(233,196,106,.16)!important;color:var(--t-gold2)!important}
html body.pv .pv-tools{gap:8px!important;padding:0!important}
html body.pv .pv-lang summary{background:none!important;border:1px solid var(--t-line)!important;border-radius:999px!important;box-shadow:none!important;color:var(--t-ink)!important;font-size:13px!important;font-weight:700!important;padding:7px 12px!important;height:auto!important;text-shadow:none!important}
html body.pv .pv-lang summary img{display:none!important}
html body.pv .pv-lang summary::before{content:"🌐 "}
html body.pv .pv-langlist{background:#ffffff!important;border:1px solid var(--t-line)!important;border-radius:14px!important;box-shadow:0 18px 40px rgba(31,64,104,.18)!important}
html body.pv .pv-langlist a{color:var(--t-ink)!important;background:none!important;border:0!important;border-radius:8px!important}
html body.pv .pv-langlist a:hover,html body.pv .pv-langlist a[aria-current]{background:rgba(29,42,56,.07)!important}
html body.pv .pv-menu-button{background:none!important;border:1px solid var(--t-line)!important;border-radius:10px!important;box-shadow:none!important;color:var(--t-ink)!important;width:42px!important;height:38px!important;font-size:18px!important}
/* ---------- frame + hero ---------- */
html body.pv .pv-frame{background:var(--t-bg)!important}
html body.pv .pv-banner{position:relative;isolation:isolate;height:auto!important;min-height:0!important;line-height:1.5!important;padding:38px 20px 34px!important;text-align:center;overflow:hidden;
 background:radial-gradient(55% 80% at 78% 30%,rgba(255,255,255,.7),transparent 70%),linear-gradient(118deg,#7f6df2 0%,#b48af6 30%,#ffb5ea 60%,#ffd9c4 100%)!important}
html body.pv .pv-banner picture{display:none!important}
html body.pv .pv-banner::before{content:"";position:absolute;inset:0;z-index:-1;background-image:radial-gradient(2px 2px at 8% 22%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 22% 70%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 38% 16%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 61% 80%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 84% 24%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 94% 66%,#fff 50%,transparent 51%);opacity:.9}
html body.pv .pv-banner::after{content:"";position:absolute;left:0;right:0;bottom:0;height:46px;background:linear-gradient(180deg,transparent,var(--t-bg));z-index:-1}
html body.pv .pv-hero-alt{display:block!important;position:static!important;transform:none!important;width:auto!important;max-width:none!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;color:#3a2390!important;line-height:1.3!important}
html body.pv .pv-hero-alt::before{content:"NAGAYAMA ☆LAB";display:block;font-size:11.5px;font-weight:900;letter-spacing:.3em;color:#4a2d9c;margin-bottom:6px}
html body.pv .pv-hero-alt h1,html body.pv .pv-hero-alt>b,html body.pv .pv-hero-heading{display:block;position:static!important;clip:auto!important;clip-path:none!important;width:auto!important;height:auto!important;overflow:visible!important;margin:0!important;font-family:"Hiragino Maru Gothic ProN","Zen Maru Gothic","M PLUS Rounded 1c","Hiragino Sans",sans-serif!important;font-weight:900!important;font-size:clamp(34px,6vw,64px)!important;line-height:1.15!important;letter-spacing:.02em;color:#fff!important;-webkit-text-stroke:.1em #4a2d9c;paint-order:stroke fill;filter:drop-shadow(0 .05em 0 #fff);white-space:normal!important;opacity:1!important}
html body.pv .pv-hero-alt small{display:inline-block!important;margin-top:12px;font-size:clamp(14px,1.6vw,18px)!important;font-weight:900!important;color:#fff!important;background:#4a2d9c;border-radius:999px;padding:4px 18px}
/* per-section worlds */
html body.pv[data-page="apps"] .pv-banner{background:radial-gradient(40% 70% at 14% 20%,rgba(255,255,255,.6),transparent 70%),linear-gradient(130deg,#fff0c4 0%,#ffd6ae 45%,#ffb79c 100%)!important}
html body.pv[data-page="apps"] .pv-hero-alt :is(h1,b){background:linear-gradient(180deg,#ff5a3c 0 50%,#ffb82e 50% 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-stroke:.09em #2a2a5c}
html body.pv[data-page="apps"] .pv-hero-alt small{background:#2a2a5c;color:#ffd84a!important}
html body.pv[data-page="apps"] .pv-hero-alt::before{color:#2a2a5c}
html body.pv[data-page="history"] .pv-banner{background:radial-gradient(90% 60% at 50% 112%,rgba(255,150,30,.7),rgba(200,40,10,.3) 45%,transparent 75%),linear-gradient(180deg,#0a0606 0%,#140908 60%,#1c0a06 100%)!important}
html body.pv[data-page="service"] .pv-banner,html body.pv[data-page="development"] .pv-banner,html body.pv[data-page="find"] .pv-banner{background:radial-gradient(55% 80% at 76% 40%,rgba(255,255,255,.7),transparent 70%),linear-gradient(180deg,#bfe6ff 0%,#eaf6ff 100%)!important}
html body.pv[data-page="history"] .pv-hero-alt :is(h1,b){font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif!important;font-weight:800!important;letter-spacing:.1em;-webkit-text-stroke:0;filter:drop-shadow(0 0 16px rgba(233,196,106,.35));background:linear-gradient(180deg,#fff6d6,#e9c46a 60%,#b98a2b);-webkit-background-clip:text;background-clip:text;color:transparent!important}
html body.pv[data-page="service"] .pv-hero-alt :is(h1,b),html body.pv[data-page="development"] .pv-hero-alt :is(h1,b),html body.pv[data-page="find"] .pv-hero-alt :is(h1,b){font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif!important;font-weight:800!important;letter-spacing:.1em;-webkit-text-stroke:0;filter:none;background:none;color:#0d3b70!important}
html body.pv[data-page="history"] .pv-hero-alt :is(h1,b){background:linear-gradient(180deg,#ffe9a6 0%,#ffb03a 45%,#ff5a1e 100%);-webkit-background-clip:text;background-clip:text;filter:drop-shadow(0 0 18px rgba(255,120,30,.55))}
html body.pv[data-page="history"] .pv-hero-alt small{background:none;border:1px solid rgba(233,196,106,.6);color:var(--t-gold2)!important}
html body.pv[data-page="service"] .pv-hero-alt small,html body.pv[data-page="development"] .pv-hero-alt small,html body.pv[data-page="find"] .pv-hero-alt small{background:none;border:1px solid rgba(154,118,17,.55);color:#7c610d!important}
html body.pv[data-page="history"] .pv-hero-alt::before,html body.pv[data-page="service"] .pv-hero-alt::before,html body.pv[data-page="development"] .pv-hero-alt::before,html body.pv[data-page="find"] .pv-hero-alt::before{color:var(--t-gold)}
/* ---------- search band, category bars ---------- */
html body.pv .nlab-find-band{background:var(--t-bg)!important;border:0!important;padding:14px 20px 6px!important}
html body.pv .nlab-find-entry{max-width:760px;margin:0 auto!important;display:flex;gap:8px;background:#ffffff!important;border:1px solid var(--t-line)!important;border-radius:999px!important;padding:5px 5px 5px 20px!important;box-shadow:none!important}
html body.pv .nlab-find-entry input{flex:1;min-width:0;background:none!important;border:0!important;color:var(--t-ink)!important;box-shadow:none!important;outline:none;font-size:16px!important}
html body.pv .nlab-find-entry input::placeholder{color:#8aa0b4}
html body.pv .nlab-find-entry button{background:var(--t-gold)!important;color:#1c1403!important;border:0!important;border-radius:999px!important;box-shadow:none!important;font-weight:900!important;padding:10px 22px!important;text-shadow:none!important}
html body.pv .pv-cats,html body.pv .pv-pills,html body.pv .pv-crumbs{background:var(--t-bg)!important;border:0!important;box-shadow:none!important;padding-top:10px!important;padding-bottom:10px!important}
html body.pv .pv-cat,html body.pv .pv-pill,html body.pv .pv-chip,html body.pv .pv-searchbox{background:#ffffff!important;border:1px solid var(--t-line)!important;border-radius:999px!important;box-shadow:none!important;color:var(--t-ink)!important;text-shadow:none!important}
html body.pv .pv-cat img,html body.pv .pv-pill img,html body.pv .pv-chip img{display:none!important}
html body.pv .pv-cat *,html body.pv .pv-pill *,html body.pv .pv-chip *{color:inherit!important;text-shadow:none!important}
html body.pv .pv-cat.selected,html body.pv .pv-pill.selected,html body.pv .pv-chip.selected{background:var(--t-gold)!important;border-color:var(--t-gold)!important;color:#1c1403!important}
html body.pv .pv-searchbox input{background:none!important;color:var(--t-ink)!important}
html body.pv .pv-crumbs a,html body.pv .pv-crumbs span{color:var(--t-mute)!important}
html body.pv .ibox{background:#ffffff!important;border:1px solid var(--t-line)!important;box-shadow:none!important}
/* ---------- body + cards ---------- */
html body.pv .pv-body,html body.pv .pv-hbody,html body.pv main#pv-content{background:var(--t-bg)!important;color:var(--t-ink)!important}
html body.pv .pv-box{background:#ffffff!important;border:1px solid var(--t-line)!important;border-radius:18px!important;box-shadow:none!important;color:var(--t-ink)!important}
html body.pv .pv-box>h2,html body.pv .pv-box .pv-h2,html body.pv .pv-sec-h,html body.pv .pv-box>.pv-head h2,html body.pv .pv-box>header h2{color:var(--t-ink)!important;text-shadow:none!important}
html body.pv .pv-box>header small,html body.pv .pv-box .pv-head small,html body.pv .pv-box>p{color:var(--t-mute)!important}
html body.pv .pv-more{background:none!important;border:1px solid rgba(233,196,106,.6)!important;border-radius:999px!important;color:var(--t-gold2)!important;box-shadow:none!important}
html body.pv .pv-game,html body.pv .pv-mini,html body.pv .pv-hcard{background:var(--t-card)!important;border:1px solid var(--t-line)!important;border-radius:18px!important;box-shadow:none!important;overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s}
html body.pv .pv-game:hover,html body.pv .pv-mini:hover,html body.pv .pv-hcard:hover{transform:translateY(-4px);border-color:rgba(29,42,56,.35)!important;box-shadow:0 16px 40px rgba(31,64,104,.18)!important}
html body.pv .pv-game p,html body.pv .pv-hcard p,html body.pv .pv-mini small{color:var(--t-mute)!important}
html body.pv .pv-play,html body.pv a.pv-play,html body.pv span.pv-play,html body.pv .pv-hcard .go,html body.pv .nlab-discovery-link.primary,html body.pv .pv-sns-tool-link,html body.pv .nli-action.nli-primary,html body.pv .pv-profile-left a[data-nlab-play],html body.pv .pv-history-notes-link{background:linear-gradient(180deg,#e2604c,#cf3524)!important;color:#fff!important;border:2px solid #fff!important;border-radius:999px!important;box-shadow:0 4px 14px rgba(207,53,36,.3)!important;text-shadow:none!important;font-weight:900!important}
html body.pv .badge{background:#e5173f!important;border-radius:6px!important;box-shadow:none!important}
html body.pv .pv-side .hd,html body.pv .pv-box .hd{background:none!important;color:var(--t-ink)!important;border-bottom:1px solid var(--t-line)!important;text-shadow:none!important}
/* light panels become cream cards with dark text (kept readable) */
html body.pv .nlab-discovery,html body.pv .pv-sns-tool-cta,html body.pv .pv-feat,html body.pv .pv-app,html body.pv .pv-recrow,html body.pv .nlab-local-seo-entry,html body.pv .pv-sample,html body.pv .pv-step,html body.pv .pv-dev-card,html body.pv .nl-article,html body.pv .pv-profile-info,html body.pv .nlab-history-count,html body.pv .nlab-flag-note,html body.pv .nlab-puzzle-hero,html body.pv .nlab-puzzle-section,html body.pv .nli-hero,html body.pv .nli-section,html body.pv .nlab-find-controls,html body.pv .nlab-result,html body.pv .nlab-find-notes,html body.pv .nlab-related-figures,html body.pv .nlab-related-blades,html body.pv .pv-dev-disclaimer,html body.pv .pv-app-disclaimer{background:#fffaf0!important;background-image:none!important;border:0!important;border-radius:18px!important;box-shadow:0 0 0 1px rgba(233,196,106,.5),0 10px 30px rgba(0,0,0,.3)!important;color:#1b1f3d!important}
html body.pv .nlab-discovery-link:not(.primary),html body.pv .pv-entry-btn,html body.pv .nli-action:not(.nli-primary),html body.pv button.nlab-share-trigger-v4{background:#fff!important;color:#3a2390!important;border:2px solid #4a2d9c!important;border-radius:999px!important;box-shadow:0 3px 0 #4a2d9c!important;font-weight:900!important}
html body.pv .pv-dark,html body.pv .pv-dev-intro,html body.pv .pv-feature,html body.pv .nlab-growth,html body.pv .nlab-find-intro,html body.pv .pv-morebn,html body.pv .pv-scope-note{background:linear-gradient(160deg,#ffffff,#fdf6e0)!important;border:1px solid var(--t-line)!important;border-radius:18px!important;box-shadow:none!important;color:var(--t-ink)!important}
html body.pv .pv-dev-intro a,html body.pv .pv-cta a.big,html body.pv .nlab-growth a.primary{background:linear-gradient(180deg,#fff3c4,#e9c46a 55%,#c9982f)!important;color:#1c1403!important;border:0!important;border-radius:999px!important;box-shadow:0 6px 20px rgba(233,196,106,.3)!important;text-shadow:none!important;font-weight:900!important}
html body.pv .pv-dev-state,html body.pv .pv-dev-symbol{background:#efe6ff!important;color:#3a2390!important}
html body.pv .pv-step .n,html body.pv .nlab-step-number{background:#4a2d9c!important;color:#fff!important}
html body.pv .nl-article a,html body.pv .nlab-discovery a:not(.nlab-discovery-link){color:#b0126e!important}
html body.pv .nl-article th{background:#efe6ff!important;color:#3a2390!important}
/* ---------- footer ---------- */
html body.pv .pv-foot{background:#04060f!important;border-top:1px solid var(--t-line)!important;color:var(--t-mute)!important}
html body.pv .pv-foot a{color:#d5daf2!important}
html body.pv .pv-foot b{color:#fff!important}
html body.pv .pv-social a{background:none!important;border:1px solid var(--t-line)!important;border-radius:999px!important;color:#d5daf2!important;box-shadow:none!important}
html body.pv .pv-social a img{display:none!important}
@media (max-width:1180px){html body.pv .pv-nav a{padding:8px 7px!important;font-size:12.5px!important}html body.pv .pv-logo::after{font-size:15px}}
@media (max-width:899px){
 html body.pv .pv-header{height:54px!important;min-height:54px!important;padding:0 12px!important}
 html body.pv .pv-tools{margin-left:auto!important}
 html body.pv .pv-nav{background:#0b1030!important;border-bottom:1px solid var(--t-line)!important;padding:10px 14px 16px!important;grid-template-columns:1fr 1fr!important;gap:4px!important;top:100%!important}
 html body.pv .pv-nav a{font-size:15px!important;padding:12px 10px!important;border-radius:10px!important;color:#fff!important;height:auto!important}
 html body.pv .pv-banner{padding:26px 16px 28px!important}
 html body.pv .pv-logo::after{font-size:14px;letter-spacing:.04em}
}

/* section headings on the dark page */
html body.pv .pv-sec h2,html body.pv .pv-sec,html body.pv .pv-apps-head,html body.pv .pv-body>h2,html body.pv .pv-sec>div>h2{color:#fff!important;text-shadow:none!important;background:none!important;border:0!important}
html body.pv .pv-sec .sub,html body.pv .sub{color:var(--t-mute)!important;text-shadow:none!important}
html body.pv .pv-sec img.ic,html body.pv .pv-apps-head img,html body.pv .ibox{display:none!important}
html body.pv .pv-sec h2::before,html body.pv .pv-apps-head::before{content:"";display:inline-block;width:6px;height:1em;margin-right:10px;border-radius:3px;background:var(--t-gold);vertical-align:-.12em}
html body.pv .pv-hero-alt small{max-width:46em;line-height:1.6!important;border-radius:18px}
html body.pv .pv-app *:not(a):not(.tg):not(button),html body.pv .pv-feat *,html body.pv .pv-recrow *,html body.pv .pv-step *:not(.n),html body.pv .pv-sample *:not(.pv-play){color:#1b1f3d!important;text-shadow:none!important}
html body.pv .pv-app a.pv-play,html body.pv .pv-app a.pv-play *{color:#fff!important}
html body.pv .pv-hcard,html body.pv .pv-hcard *:not(.go):not(.go *){color:#fff!important;text-shadow:none!important}
html body.pv .pv-hcard p,html body.pv .pv-hcard small{color:var(--t-mute)!important}
html body.pv .pv-game h3,html body.pv .pv-mini b{color:#fff!important}

/* v6p51 fix: flipped panels keep dark-text headings */
html body.pv :is(.pv-dark,.pv-dev-intro,.pv-feature,.nlab-growth,.nlab-find-intro,.pv-morebn,.pv-scope-note) :is(h1,h2,h3){color:var(--t-ink)!important}
html body.pv .nlab-find-intro p{color:var(--t-mute)!important}
html body.pv .pv-dev-kicker{color:var(--t-gold)!important}

/* 2026-11-22 コントラスト修正 案A（本番未反映）：記事内の青いリンクボタン。赤紫文字(#b0126e)が青地(#007ebc)に乗って 1.49:1 → 白文字・濃い青地 5.78:1 */
html body.pv .nl-article .nl-links a{background:#006ba3!important;color:#fff!important}
html body.pv .nl-article .nl-links a:hover,html body.pv .nl-article .nl-links a:focus-visible{background:#00507a!important;color:#fff!important}
