/* D1057（2026-12-03 ONO「ボタンのデザインもロゴのバランスも全然違うので黒いメインデザインに合わせてください」）：
   PABLO BRAQUE（client.pablobraque.com）のログイン・登録・契約の画面のヘッダー・≡ メニュー・PAGETOP・フッター。
   pablobraque.com（pablobraque-site の assets/site.css）と同じ寸法・文字・動きで、色だけを白い背景・黒い文字に反転したもの
   （サイトのもとの Actually MARKET の白い配色：紙 #fff・文字 #111・うすい字 #65625d・線 #d9d7d0）。HTML は lib/pbaBrand.js の pbHead・pbFoot、動きは site-chrome.js */
:root {
  --pbx-bg: #ffffff; --pbx-fg: #111111; --pbx-muted: #65625d; --pbx-line: #d9d7d0; --pbx-line-dark: #b9b7b0;
  --pbx-font: Aptos, "游ゴシック Medium", "Yu Gothic Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  --pbx-xs: clamp(.75rem, .75vw, .8125rem); --pbx-sm: clamp(.8125rem, .9vw, .9375rem);
  --pbx-logo-h: 38px; --pbx-header-h: calc(var(--pbx-logo-h) + 33px);
}
@media (max-width: 560px) { :root { --pbx-logo-h: 28px; } }
.pbx-top, .pbx-top *, .pbx-burger, .pbx-menu, .pbx-menu *, .pbx-pagetop, .pbx-pagetop *, .pbx-foot, .pbx-foot * { box-sizing: border-box; }
.pbx-top, .pbx-menu, .pbx-pagetop, .pbx-foot { font-family: var(--pbx-font); letter-spacing: .02em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.pbx-wrap { max-width: 1160px; margin-inline: auto; }

/* ヘッダー */
.pbx-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; min-height: var(--pbx-header-h); padding: 16px; background: var(--pbx-bg); color: var(--pbx-fg); border-bottom: 1px solid var(--pbx-line); }
.pbx-top .pbx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pbx-logo { display: block; line-height: 0; }
.pbx-logo img { display: block; width: auto; height: var(--pbx-logo-h); }
.pbx-nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.pbx-nav a { position: relative; isolation: isolate; font-size: var(--pbx-xs); font-weight: 400; line-height: 1; letter-spacing: .14em; color: var(--pbx-muted); text-decoration: none; transition: color .3s ease; }
.pbx-nav a::after { content: ""; position: absolute; z-index: -1; top: -.45em; right: -.36em; bottom: -.45em; left: -.5em; background: var(--pbx-fg); transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.8, 0, .2, 1); }
.pbx-nav a:hover { color: var(--pbx-bg); }
.pbx-nav a:hover::after { transform: scaleX(1); }
.pbx-tools { display: flex; align-items: center; gap: 14px; }
.pbx-ig { display: block; width: 22px; height: 22px; color: var(--pbx-fg); }
.pbx-ig svg, .pbx-menu__ig svg { display: block; width: 100%; height: 100%; }

/* ≡ のボタン（開くと × になる。パネルの上に重なる） */
.pbx-burger { position: fixed; z-index: 201; top: env(safe-area-inset-top, 0px); right: 16px; display: none; min-width: 3.5rem; height: var(--pbx-header-h); align-items: center; justify-content: flex-end; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--pbx-fg); cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.pbx-burger:focus:not(:focus-visible) { outline: 0; }
.pbx-burger svg { display: block; overflow: visible; }
.pbx-burger line { stroke: currentColor; stroke-width: 1.5; transform-box: view-box; transform-origin: 11px 8px; transition: transform .25s ease, opacity .2s ease; }
.pbx-burger[aria-expanded="true"] line:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.pbx-burger[aria-expanded="true"] line:nth-child(2) { opacity: 0; }
.pbx-burger[aria-expanded="true"] line:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }
@media (max-width: 74rem) { .pbx-burger { display: inline-flex; } .pbx-nav, .pbx-tools { display: none; } }

/* 右から出るメニュー */
.pbx-menu { position: fixed; z-index: 200; inset: 0; }
.pbx-menu[hidden] { display: none !important; }
.pbx-menu__overlay { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: rgba(17, 17, 17, .21); opacity: 0; transition: opacity .32s ease; touch-action: none; -webkit-tap-highlight-color: transparent; -webkit-backdrop-filter: blur(13px); backdrop-filter: blur(13px); }
.pbx-menu__panel { --pbx-gutter: clamp(1.25rem, 6vw, 3rem); position: absolute; inset: 0 0 0 auto; display: flex; flex-direction: column; width: min(76.5vw, 28.8rem); padding: 0 var(--pbx-gutter) 3rem; color: var(--pbx-fg); background: var(--pbx-bg); border-left: 1px solid var(--pbx-line); transform: translate(100%); transition: transform .42s cubic-bezier(.33, 0, .2, 1); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; outline: none; }
.sc-open .pbx-menu__overlay { opacity: 1; }
.sc-open .pbx-menu__panel { transform: translate(0); }
.pbx-menu__top { display: flex; min-height: var(--pbx-header-h); margin-bottom: clamp(1.5rem, 16svh, 10rem); align-items: center; }
.pbx-menu__logo { display: flex; align-items: center; }
.pbx-menu__logo img { display: block; width: auto; max-width: 100%; height: var(--pbx-logo-h); }
.pbx-menu__panel > a:not(.pbx-menu__login) { padding-block: .85rem; font-size: 20px; font-weight: 400; line-height: 1.15; letter-spacing: .02em; color: var(--pbx-fg); text-decoration: none; }
.pbx-menu__login { display: inline-flex; align-self: flex-start; margin-top: 2rem; padding: 1.1rem calc(2.75rem - .2em) 1.1rem 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--pbx-fg); border-radius: 999px; color: var(--pbx-fg); background: var(--pbx-bg); font-size: var(--pbx-sm); font-weight: 500; line-height: 1; letter-spacing: .2em; text-align: center; text-decoration: none; text-transform: uppercase; transition: color .25s, background-color .25s; }
.pbx-menu__login:focus-visible { outline: 2px solid var(--pbx-fg); outline-offset: 4px; }
@media (hover: hover) { .pbx-menu__login:hover { color: var(--pbx-bg); background: var(--pbx-fg); } }
.pbx-menu__sns { display: flex; margin: 1.75rem 0 0; padding: 0; align-items: center; gap: 2rem; list-style: none; }
.pbx-menu__sns li { display: flex; }
.pbx-menu__ig { display: block; width: 24px; height: 24px; color: var(--pbx-fg); }
@media (prefers-reduced-motion: reduce) { .pbx-menu__overlay, .pbx-menu__panel, .pbx-burger line, .pbx-nav a::after { transition: none; } }

/* PAGETOP・フッター */
.pbx-pagetop { padding: 70px 0 58px; text-align: center; }
.pbx-pagetop__btn { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; margin: 0; padding: 0; border: none; color: var(--pbx-fg); background: none; cursor: pointer; font: inherit; }
.pbx-pagetop__circle { display: flex; width: 62px; height: 62px; align-items: center; justify-content: center; border: 1px solid var(--pbx-line-dark); border-radius: 50%; transition: background .25s, border-color .25s, color .25s; }
.pbx-pagetop__circle svg { display: block; width: 20px; height: 20px; }
.pbx-pagetop__btn:hover .pbx-pagetop__circle { border-color: var(--pbx-fg); color: var(--pbx-bg); background: var(--pbx-fg); }
.pbx-pagetop__label { font-size: 10.5px; font-weight: 600; line-height: 1.15; letter-spacing: .28em; }
.pbx-foot { padding: 56px 16px 48px; border-top: 1px solid var(--pbx-line); color: var(--pbx-fg); background: var(--pbx-bg); }
.pbx-foot .pbx-wrap { display: grid; justify-items: center; gap: 36px; text-align: center; }
.pbx-foot__logo { display: block; line-height: 0; }
.pbx-foot__logo img { display: block; width: auto; height: 34px; } /* D1097：52px → 34px（スマホ 40px → 26px）。D1096：PB③ のマーク（pablobraque.com と同じ大きさ。前は横長の PABLO BRAQUE で 32px） */
@media (max-width: 560px) { .pbx-foot__logo img { height: 26px; } }
.pbx-foot__links { display: grid; gap: 22px; justify-items: center; }
.pbx-foot__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; }
.pbx-foot__nav a { font-size: var(--pbx-xs); letter-spacing: .14em; color: var(--pbx-fg); text-decoration: none; transition: color .25s; }
.pbx-foot__nav a:hover { color: var(--pbx-muted); }
.pbx-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.pbx-legal a { font-size: var(--pbx-xs); letter-spacing: .14em; color: var(--pbx-muted); text-decoration: none; transition: color .25s; }
.pbx-legal a:hover { color: var(--pbx-fg); }
.pbx-copy { font-size: var(--pbx-xs); letter-spacing: .14em; color: var(--pbx-muted); }

/* D1095（2026-12-03 ONO「ログインページのこの画面は黒バックのデザインに統一して。この先でログインされたら、白の仕様にする」）：
   ログインの前の画面（CL・AG のログイン、パスワードを忘れた方・決め直し）だけ <body class="pbx-dark">。
   D1114：HEADQUARTERS LOGIN（portal の /login。Next.js のページなので body に印をつけられない）は、外側の <div class="hq-page pbx-dark"> に印をつける
   pablobraque.com（pablobraque-site の assets/site.css）と同じ黒：背景 #000・文字 #eee・うすい字 #9a9da2・線 #26282f / #46494f。ロゴは白（lib/pbaBrand.js の pbImg） */
:is(body.pbx-dark, .pbx-dark) { --pbx-bg: #000000; --pbx-fg: #eeeeee; --pbx-muted: #9a9da2; --pbx-line: #26282f; --pbx-line-dark: #46494f; background: #000000; color: #eeeeee; color-scheme: dark; }
:is(body.pbx-dark, .pbx-dark) .pbx-menu__overlay { background: rgba(0, 0, 0, .4); }
:is(body.pbx-dark, .pbx-dark) .lg a { color: #eeeeee; }
:is(body.pbx-dark, .pbx-dark) .lg input { border-color: #46494f; background: #000000; color: #eeeeee; }
:is(body.pbx-dark, .pbx-dark) .lg input:focus { border-color: #eeeeee; outline-color: #eeeeee; }
:is(body.pbx-dark, .pbx-dark) .lg-btn, :is(body.pbx-dark, .pbx-dark) .lg-btn--more { border-color: #eeeeee; background: transparent; color: #eeeeee; }
:is(body.pbx-dark, .pbx-dark) .lg-btn--solid { background: #eeeeee; color: #000000; }
:is(body.pbx-dark, .pbx-dark) .lg-btn--more:hover, :is(body.pbx-dark, .pbx-dark) .lg-btn--more:focus-visible { border-color: #eeeeee; background: #eeeeee; color: #000000; }
:is(body.pbx-dark, .pbx-dark) .lg-btn--more:focus-visible { outline-color: #eeeeee; }
:is(body.pbx-dark, .pbx-dark) .lg-msg { border-color: #eeeeee; background: #0b0b0b; color: #eeeeee; }
:is(body.pbx-dark, .pbx-dark) .lg-note { color: #eeeeee; }
:is(body.pbx-dark, .pbx-dark) .lg-form--guest { border-top-color: #26282f; }
