  /* 既定は非表示。JS でアバターの直前（ヘッダー内要素）へ配置してから .is-ready で表示する。
     見た目は着せ替え（パレット）ボタン .cpts-btn と同形式＝角丸四角・半透明白・白アイコンでヘッダーに馴染ませる。
     アバターが無いページ（アンカー未検出）は .is-float で従来どおり右上フローティング（視認性のため丸＋テーマ色）にフォールバック。 */
  .cphelp-btn{ display:none; align-items:center; justify-content:center; width:34px; height:34px; border-radius:9px;
    border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.08); color:#fff; cursor:pointer; font-size:15px;
    padding:0; margin:0 8px 0 0; vertical-align:middle; flex:0 0 auto; transition:background-color .2s, transform .15s; }
  .cphelp-btn.is-ready{ display:inline-flex; }
  .cphelp-btn:hover{ background:rgba(255,255,255,.2); }
  .cphelp-btn:active{ transform:scale(.92); }
  .cphelp-btn:focus-visible{ outline:2px solid var(--theme-ac,#22D3EE); outline-offset:2px; }
  /* フォールバック（アバター無し＝任意背景の上に浮く）は視認性のため従来の丸＋テーマ色を維持 */
  .cphelp-btn.is-float{ position:fixed; top:11px; right:14px; z-index:1400; width:38px; height:38px; font-size:16px; margin:0; border:none; border-radius:50%;
    background:linear-gradient(135deg,var(--theme-p2,#0E5A78),var(--theme-p3,#1591B3)); box-shadow:0 4px 12px -4px rgba(10,20,40,.4), 0 0 0 2px rgba(255,255,255,.35); }
  .cphelp-btn.is-float:hover{ background:linear-gradient(135deg,var(--theme-p2,#0E5A78),var(--theme-p3,#1591B3)); filter:brightness(1.08); }
  @media (max-width:560px){ .cphelp-btn{ width:30px; height:30px; font-size:13px; margin:0 6px 0 0; } .cphelp-btn.is-float{ width:34px; height:34px; top:9px; right:10px; } }
  .cphelp-ov{ position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center; padding:24px; }
  .cphelp-ov[hidden]{ display:none; }
  .cphelp-ov::before{ content:""; position:absolute; inset:0; background:rgba(6,12,22,.55); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); animation:cphelp-fade .25s ease; }
  .cphelp-panel{ position:relative; width:min(1080px,96vw); height:min(88vh,900px); background:#fff; border-radius:16px; overflow:hidden; display:flex; flex-direction:column;
    box-shadow:0 30px 80px -24px rgba(6,12,22,.7); animation:cphelp-pop .22s ease-out; }
  @keyframes cphelp-fade{ from{ opacity:0; } to{ opacity:1; } }
  @keyframes cphelp-pop{ from{ transform:translateY(10px) scale(.98); opacity:0; } to{ transform:none; opacity:1; } }
  @media (prefers-reduced-motion: reduce){ .cphelp-ov::before, .cphelp-panel{ animation:none; } }
  .cphelp-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 14px; color:#fff;
    background:linear-gradient(120deg,var(--theme-p1,#0A1F3C),var(--theme-p2,#0E5A78) 55%,var(--theme-p3,#1591B3)); }
  .cphelp-title{ display:inline-flex; align-items:center; gap:9px; font-size:14.5px; font-weight:800; letter-spacing:.02em; }
  .cphelp-actions{ display:inline-flex; align-items:center; gap:8px; }
  .cphelp-open, .cphelp-x{ display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; border:none; cursor:pointer;
    background:rgba(255,255,255,.16); color:#fff; font-size:14px; text-decoration:none; transition:background .15s ease; }
  .cphelp-open:hover, .cphelp-x:hover{ background:rgba(255,255,255,.3); color:#fff; }
  .cphelp-body{ position:relative; flex:1; min-height:0; background:#f3f5f8; }
  .cphelp-ifr{ width:100%; height:100%; border:0; display:block; }
  .cphelp-loading{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:10px; font-size:13px; font-weight:700; color:#5e6470; }
  .cphelp-loading.is-hidden{ display:none; }
  .cphelp-spin{ width:20px; height:20px; border-radius:50%; border:3px solid #d6dbe2; border-top-color:var(--theme-p3,#1591B3); animation:cphelp-spin 0.8s linear infinite; }
  @keyframes cphelp-spin{ to{ transform:rotate(360deg); } }
  @media (max-width:560px){ .cphelp-ov{ padding:0; } .cphelp-panel{ width:100vw; height:100vh; border-radius:0; } }

  /* 2026-11-13 オーナー指示「実画面ガイドは画面いっぱいに広がるようにしてください」：
     小窓の上限（幅1080px・高さ900px・まわりの余白24px）をやめ、画面いっぱいに広げる。閉じるボタンと別タブのボタンは上の帯に残す。 */
  .cphelp-ov{ padding:0; }
  .cphelp-panel{ width:100vw; height:100vh; height:100dvh; border-radius:0; }

/* 章の切り替え（2026-11-16）：見出しの色の地の上に置く */
.cphelp-rel{ display:flex; flex-wrap:wrap; gap:6px; margin-inline-start:auto; margin-inline-end:8px; }
.cphelp-chip{ min-height:32px; padding:4px 12px; border:1px solid rgba(255,255,255,.55); border-radius:999px; background:rgba(255,255,255,.12); color:#fff; font-size:12.5px; font-weight:700; cursor:pointer; transition:background-color .15s ease, color .15s ease, transform .1s ease; }
.cphelp-chip:hover{ background:rgba(255,255,255,.24); }
.cphelp-chip:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.cphelp-chip:active{ transform:scale(.96); }
.cphelp-chip[aria-pressed="true"]{ background:#fff; color:var(--theme-p1, #0f4c5c); border-color:#fff; }
/* 見た目は32px・押せる範囲は見えない縁で44px */
.cphelp-chip{ position:relative; }
.cphelp-chip::after{ content:""; position:absolute; inset:-6px 0; }
/* 携帯：題名は1行に保ち、章のボタンは2段目に並べる（2026-11-16 オーナー指摘「スマホ画面が崩れている」） */
@media (max-width:575.98px){
  .cphelp-head{ flex-wrap:wrap; row-gap:8px; }
  .cphelp-title{ min-width:0; flex:1 1 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .cphelp-rel{ order:3; flex-basis:100%; margin:0; }
}
