html{scrollbar-gutter:stable;overflow-y:scroll;}

/* ── NAV BAR ─────────────────────────────────────────────── */
.nxc-nav{
  position:sticky;top:0;z-index:200;
  background:rgba(10,10,10,0.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid #1e1e1e;
  height:64px;display:flex;align-items:center;padding:0 32px;
}
.nxc-logo{
  display:flex;align-items:center;gap:10px;flex-shrink:0;
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:17px;letter-spacing:-0.02em;
  color:#ededed;text-decoration:none;
}
.nxc-logo .mark{
  width:22px;height:22px;background:#ededed;
  display:flex;align-items:center;justify-content:center;
  font-family:'JetBrains Mono',monospace;font-weight:700;font-size:13px;color:#000;
}
.nx-wordmark{display:block;width:auto;height:19px;color:#ececec;}
.footer-brand .nx-wordmark{height:22px;}
/* business: N mark as tall as the two-line stack (wordmark + BUSINESS), top and bottom edges aligned */
.nxc-logo .mark.mark-biz,.footer-brand .mark.mark-biz{width:30px;height:30px;font-size:17px;}
.nxc-biz-stack,.footer-biz-stack{height:30px;justify-content:space-between;}
.nxc-biz-stack .nx-wordmark,.footer-biz-stack .nx-wordmark{height:17px;margin-top:-1px;}
.nxc-biz-stack .nxc-logo-biz,.footer-biz-stack .footer-brand-biz{margin-top:0;line-height:9px;margin-bottom:-1px;}
.nxc-biz-stack,.footer-biz-stack{display:flex;flex-direction:column;line-height:1;}
.nxb-mark{height:30px;width:auto;display:block;margin-right:-6px;flex-shrink:0;}
.footer-brand .nxb-mark{height:28px;}
.nxb-word{font-family:'Saira',sans-serif;font-style:italic;font-stretch:112%;font-weight:800;font-size:19px;letter-spacing:.01em;color:#ededed;}
.nxb-word .x{background:linear-gradient(118deg,#ededed 0 52%,#ef4444 52% 100%);-webkit-background-clip:text;background-clip:text;color:transparent;}
.nxc-logo .mark.biz,.footer-brand .mark.biz{position:relative;}
.nxc-logo .mark.biz::after,.footer-brand .mark.biz::after{content:"";position:absolute;right:-3px;bottom:-3px;width:6px;height:6px;background:#ef4444;}
.nxb-dot{color:#ef4444;}
.nxb-fav{width:30px;height:30px;display:block;flex-shrink:0;border:1px solid #2a2a2a;}
.footer-brand .nxb-fav{width:28px;height:28px;}
.nxc-logo-biz,.footer-brand-biz{font-family:'JetBrains Mono',monospace;font-weight:500;font-size:9.5px;letter-spacing:.42em;color:#b9bcc2;margin-top:4px;}
.nxc-logo-game{
  margin-left:-6px;
  font-family:'Space Grotesk',sans-serif;font-style:italic;font-weight:700;
  font-size:14px;letter-spacing:0.02em;color:#dc2626;
}
.footer-brand-game{
  margin-left:-6px;
  font-family:'Space Grotesk',sans-serif;font-style:italic;font-weight:700;
  font-size:14px;letter-spacing:0.02em;color:#dc2626;
}
.nxc-links{display:flex;align-items:stretch;gap:0;margin-left:auto;}
.nxc-dd{position:relative;display:flex;align-items:center;align-self:stretch;}
.nxc-dd-trigger{font-family:'JetBrains Mono',monospace;font-size:12.5px;color:#8a8a8a;padding:0 16px;display:flex;align-items:center;gap:6px;cursor:default;transition:color .15s;user-select:none;white-space:nowrap;height:100%;}
.nxc-dd:hover .nxc-dd-trigger{color:#ededed;}
.nxc-dd-caret{width:7px;height:7px;display:inline-block;flex-shrink:0;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .22s ease;}
.nxc-dd.is-open .nxc-dd-caret{transform:rotate(225deg) translateY(-2px);}
.nxc-dd-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(-10px);min-width:200px;background:#0d0d0d;border:1px solid #2a2a2a;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s,transform .2s,visibility 0s .2s;}
.nxc-dd-menu::before{content:'';display:block;height:2px;background:#dc2626;}
.nxc-dd.is-open .nxc-dd-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);transition:opacity .2s,transform .2s,visibility 0s;}
.nxc-dd-item{display:flex;align-items:center;gap:12px;font-family:'JetBrains Mono',monospace;font-size:12px;color:#8a8a8a;text-decoration:none;padding:12px 20px;transition:color .12s,background .12s;border-bottom:1px solid #1c1c1c;white-space:nowrap;}
.nxc-dd-item:last-child{border-bottom:none;}
.nxc-dd-item:hover,.nxc-dd-item.cur{color:#ededed;background:#161616;}
.nxc-dd-badge{font-size:9px;letter-spacing:.05em;text-transform:uppercase;border:1px solid #333;padding:2px 6px;color:#5a5a5a;flex-shrink:0;}
.nxc-dd-item.cur .nxc-dd-badge{border-color:#dc2626;color:#dc2626;}
.nxc-right{display:flex;align-items:center;gap:14px;margin-left:20px;}
.nxc-plan{font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:500;letter-spacing:.06em;padding:4px 9px;border:1px solid #333;color:#ededed;text-transform:uppercase;}
.nxc-user{font-family:'JetBrains Mono',monospace;font-size:12.5px;color:#8a8a8a;display:flex;align-items:center;gap:7px;text-decoration:none;transition:color .15s;}
.nxc-user:hover{color:#ededed;}
.nxc-user::before{content:'';width:6px;height:6px;border-radius:50%;background:#22c55e;}
.nxc-logout{font-family:'JetBrains Mono',monospace;font-size:11.5px;font-weight:500;color:#8a8a8a;background:none;border:1px solid #333;padding:6px 12px;cursor:pointer;transition:all .15s;}
.nxc-logout:hover{color:#dc2626;border-color:#dc2626;}
.nxc-guest{display:flex;align-items:center;margin-left:auto;}
.nxc-guest .g-login{font-family:'JetBrains Mono',monospace;font-size:12.5px;color:#8a8a8a;text-decoration:none;padding:8px 16px;transition:color .15s;}
.nxc-guest .g-login:hover{color:#ededed;}
.nxc-top-link{font-family:'JetBrains Mono',monospace;font-size:13px;color:#b4b4b4;padding:0 14px;display:flex;align-items:center;height:100%;transition:color .15s;text-decoration:none;white-space:nowrap;}
.nxc-top-link:hover,.nxc-top-link.tl-cur{color:#ededed;}
.nxc-guest .g-register{font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:500;background:#ededed;color:#000;padding:9px 16px;margin-left:4px;transition:background .15s;text-decoration:none;}
.nxc-guest .g-register:hover{background:#fff;}

/* ── HAMBURGER ───────────────────────────────────────────── */
.nxc-burger{
  display:none;flex-direction:column;justify-content:center;align-items:center;
  gap:5px;width:44px;height:44px;cursor:pointer;background:none;border:none;
  margin-left:auto;flex-shrink:0;
}
.nxc-burger span{
  display:block;width:20px;height:1.5px;background:#ededed;
  transform-origin:center;
  transition:transform .22s ease,opacity .18s ease,width .18s ease;
}
.nxc-burger.open span:nth-child(1){transform:translateY(6.5px) rotate(45deg);}
.nxc-burger.open span:nth-child(2){opacity:0;width:0;}
.nxc-burger.open span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg);}

/* ── MOBILE DROPDOWN PANEL ───────────────────────────────── */
.nxc-mob-panel{
  position:fixed;top:64px;left:0;right:0;z-index:199;
  background:#0a0a0a;
  border-bottom:1px solid #1e1e1e;
  max-height:calc(100vh - 64px);
  overflow-y:auto;-webkit-overflow-scrolling:touch;
  visibility:hidden;opacity:0;transform:translateY(-8px);
  transition:opacity .22s ease,transform .22s ease,visibility 0s .22s;
}
.nxc-mob-panel.open{
  visibility:visible;opacity:1;transform:translateY(0);
  transition:opacity .22s ease,transform .22s ease,visibility 0s;
}
.nxc-mob-backdrop{
  position:fixed;inset:0;z-index:198;
  background:rgba(0,0,0,0);pointer-events:none;
  transition:background .22s;
}
.nxc-mob-backdrop.open{background:rgba(0,0,0,0.55);pointer-events:auto;}

/* ── PANEL INNER ─────────────────────────────────────────── */
.mob-inner{
  padding:8px 0 32px;
  max-width:560px;margin:0 auto;
}

/* ── ACCORDION ───────────────────────────────────────────── */
.mob-acc{border-bottom:1px solid #141414;}
.mob-acc:first-child{border-top:1px solid #141414;}

.mob-acc-hd{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;padding:18px 24px;
  background:none;border:none;cursor:pointer;text-align:left;
  -webkit-tap-highlight-color:transparent;
}
.mob-acc-hd-label{
  font-family:'Space Grotesk',sans-serif;font-weight:600;
  font-size:22px;letter-spacing:-0.02em;
  color:#4a4a4a;
  transition:color .15s;
}
.mob-acc-hd.open .mob-acc-hd-label{color:#ededed;}
.mob-acc-hd:hover .mob-acc-hd-label{color:#ededed;}

.mob-acc-ico{
  width:28px;height:28px;border:1px solid #222;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
  font-family:'JetBrains Mono',monospace;font-size:16px;color:#333;font-weight:300;
  transition:transform .22s ease,border-color .15s,color .15s;
  line-height:1;
}
.mob-acc-hd.open .mob-acc-ico{
  transform:rotate(45deg);
  border-color:#dc2626;color:#dc2626;
}

.mob-acc-bd{
  max-height:0;overflow:hidden;
  transition:max-height .28s cubic-bezier(0.4,0,0.2,1);
}
.mob-acc-bd.open{max-height:480px;}

/* sub-links inside accordion */
.mob-sub{
  display:flex;align-items:center;gap:12px;
  padding:13px 24px 13px 32px;
  font-family:'JetBrains Mono',monospace;font-size:12.5px;letter-spacing:.01em;
  color:#4a4a4a;text-decoration:none;
  border-top:1px solid #0f0f0f;
  transition:color .12s,background .12s;
  -webkit-tap-highlight-color:transparent;
}
.mob-sub::before{
  content:'';width:4px;height:4px;border-radius:50%;
  background:#2a2a2a;flex-shrink:0;transition:background .12s;
}
.mob-sub:hover,.mob-sub.active{color:#ededed;background:rgba(255,255,255,0.025);}
.mob-sub:hover::before,.mob-sub.active::before{background:#dc2626;}
.mob-sub.active{color:#ededed;}

/* dashboard direct links (auth) */








/* bottom CTA / user row */
.mob-foot{
  padding:20px 24px 0;
  margin-top:4px;
  border-top:1px solid #141414;
}
.mob-cta{display:flex;gap:10px;}
.mob-cta-login{
  flex:1;font-family:'JetBrains Mono',monospace;font-size:12px;color:#5a5a5a;
  text-decoration:none;padding:13px;text-align:center;border:1px solid #222;
  transition:all .15s;
}
.mob-cta-login:hover{color:#ededed;border-color:#444;}
.mob-cta-register{
  flex:2;font-family:'JetBrains Mono',monospace;font-size:12px;font-weight:600;
  color:#000;background:#ededed;padding:13px;text-align:center;text-decoration:none;
  transition:background .15s;letter-spacing:.01em;
}
.mob-cta-register:hover{background:#fff;}
.mob-user-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.mob-user-info{display:flex;align-items:center;gap:8px;}
.mob-user-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;flex-shrink:0;}
.mob-user-name{font-family:'JetBrains Mono',monospace;font-size:12px;color:#8a8a8a;}
.mob-user-plan{font-family:'JetBrains Mono',monospace;font-size:9px;letter-spacing:.06em;text-transform:uppercase;border:1px solid #2a2a2a;padding:3px 8px;color:#5a5a5a;}

@media(max-width:880px){
  .nxc-links,.nxc-right{display:none;}
  .nxc-guest .nxc-dd,.nxc-guest .g-login,.nxc-guest .g-register,.nxc-guest .nxc-top-link{display:none;}
  .nxc-burger{display:flex;}
  /* fixed に切替えてスクロール時もナビを固定 */
  .nxc-nav{padding:0 20px;position:fixed;top:0;left:0;right:0;}
  /* fixedの分だけ最初のコンテンツ要素をずらす */
  body{padding-top:64px;}
}
@media(min-width:881px){
  .nxc-mob-panel,.nxc-mob-backdrop{display:none!important;}
}
@media(max-width:480px){
  .nxc-nav{padding:0 16px;}
  .nxc-logo{font-size:15px;}
  .mob-acc-hd-label{font-size:20px;}
}

/* ── OPS LOG STRIP (ヘッダー下のニュース帯) ───────────────── */
.nxc-news{display:flex;align-items:center;gap:12px;height:38px;padding:0 32px;background:#0d0d0d;border-bottom:1px solid #1e1e1e;text-decoration:none;font-family:'JetBrains Mono',monospace;font-size:12px;color:#8a8a8a;transition:background .15s;}
.nxc-news:hover{background:#121212;color:#ededed;}
.nxc-news-wrap{position:relative;}
.nxc-news-wrap .nxc-news{padding-right:56px;color:#a8a8a8;}
.nxc-news-x{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:32px;height:32px;background:transparent;border:0;color:#a8a8a8;font-size:20px;line-height:1;cursor:pointer;border-radius:6px;}
.nxc-news-x:hover{background:#1e1e1e;color:#fff;}
.nxc-news-tag{flex-shrink:0;font-size:10px;letter-spacing:.04em;padding:2px 8px;border:1px solid #333;color:#b4b4b4;}
.nxc-news-tag.c-security,.nxc-news-tag.c-incident{border-color:#dc2626;color:#ef4444;}
.nxc-news-tag.c-maintenance{border-color:#a16207;color:#eab308;}
.nxc-news-tag.c-launch{border-color:#ededed;color:#ededed;}
.nxc-news-tag.c-fix{border-color:#15803d;color:#22c55e;}
.nxc-news-date{flex-shrink:0;color:#5a5a5a;}
.nxc-news-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d4d4d4;font-family:'Noto Sans JP',sans-serif;font-size:13px;}
.nxc-news-more{flex-shrink:0;color:#5a5a5a;}
.nxc-news:hover .nxc-news-more{color:#dc2626;}
@media(max-width:880px){.nxc-news{padding:0 20px;}}
@media(max-width:600px){.nxc-news-date,.nxc-news-more{display:none;}.nxc-news{padding:0 16px;gap:10px;}}

/* footer */
footer{max-width:1180px;margin:var(--footer-margin,60px) auto 0;padding:56px 32px 48px;border-top:1px solid var(--line);}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;padding-bottom:48px;}
.footer-brand-col{}
.footer-brand{font-family:var(--display);font-weight:700;font-size:18px;display:inline-flex;align-items:center;gap:10px;color:var(--fg);text-decoration:none;margin-bottom:16px;}
.footer-brand .mark{width:22px;height:22px;background:var(--fg);display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:13px;color:#000;font-weight:700;flex-shrink:0;}
.footer-tagline{font-size:13.5px;color:var(--fg-dim);line-height:1.85;margin-top:4px;}
.footer-col{display:flex;flex-direction:column;gap:11px;}
.footer-col-title{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--fg-mid);margin-bottom:6px;}
.footer-col a{font-size:14px;color:var(--fg-dim);text-decoration:none;transition:color .12s;width:fit-content;}
.footer-col a:hover{color:var(--fg);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;border-top:1px solid var(--line);font-family:var(--mono);font-size:11px;color:var(--fg-dim);flex-wrap:wrap;gap:12px;}
.footer-status{display:flex;align-items:center;gap:8px;}
.footer-status::before{content:'';width:6px;height:6px;background:#22c55e;border-radius:50%;box-shadow:0 0 5px #22c55e;}
@media(max-width:880px){footer{margin-top:96px;}.footer-grid{grid-template-columns:1fr 1fr;gap:36px;}.footer-brand-col{grid-column:span 2;}}
@media(max-width:480px){footer{padding:40px 16px 32px;}.footer-grid{grid-template-columns:1fr;gap:28px;}.footer-brand-col{grid-column:auto;}}
