/* =====================================================================
   Harukaze Standard ― demo.css（デモサイトのときだけ読み込む）
   画面の最上部の帯と、トーン（雰囲気）の切り替えボタン。
   帯の見た目はトーンに関係なく同じにする（色・書体をここで固定する）。
   帯の高さ --demo-h は style.css・トーンのCSSのヘッダー位置の計算にも使われる。
   v1.3.0：スマホも1行（短い文言「デモ」＋3つのボタン）・高さ 48px にした
   ===================================================================== */
.is-demo{--demo-h:48px}

.demo-bar{display:flex;align-items:center;justify-content:center;gap:8px 20px;height:var(--demo-h);line-height:1.4;padding:0 16px;overflow:hidden;white-space:normal;text-overflow:clip;background:#1f2328;color:#fff;font-family:system-ui,-apple-system,"Hiragino Sans","Noto Sans JP","Yu Gothic UI",sans-serif;font-size:12px;letter-spacing:.04em;text-align:left;font-weight:400;writing-mode:horizontal-tb}
.demo-bar__txt{margin:0;min-width:0;overflow:hidden;flex:none;max-width:60%;white-space:nowrap;text-overflow:ellipsis;color:#e9ecef}
.demo-bar__short{display:none}
.demo-tone{display:flex;align-items:center;gap:6px;flex:none}
.demo-tone__lbl{font-size:11px;color:#c3c9d0;margin-right:2px;white-space:nowrap}
.demo-tone__btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:72px;padding:0 14px;border:1px solid rgba(255,255,255,.4);border-radius:999px;color:#fff;text-decoration:none;font-size:12.5px;font-weight:500;letter-spacing:.06em;white-space:nowrap;transition:background .2s ease-out,color .2s ease-out,border-color .2s ease-out}
.demo-tone__btn:hover{border-color:#fff;background:rgba(255,255,255,.12)}
.demo-tone__btn[aria-current="true"]{background:#fff;border-color:#fff;color:#1f2328;font-weight:700}
.demo-tone__btn[aria-current="true"]::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;flex:none}
.demo-tone__btn:focus-visible{outline:2px solid #ffd479;outline-offset:2px;border-radius:999px}

/* スマホ：短い文言「デモ」とボタン3つを1行に（高さ 48px） */
@media (max-width:767px){
  .demo-bar{gap:8px;padding:0 10px;justify-content:flex-start}
  .demo-bar__long{display:none}
  .demo-bar__short{display:inline-block;line-height:1.4;font-size:11px;font-weight:700;letter-spacing:.08em;color:#fff;padding:3px 7px;border:1px solid rgba(255,255,255,.5);border-radius:4px}
  .demo-tone{flex:1;min-width:0;display:grid;grid-template-columns:repeat(3,auto);justify-content:end;gap:6px}
  .demo-tone__lbl{display:none}
  .demo-tone__btn{min-width:0;padding:0 12px;font-size:12px;letter-spacing:.02em}
  .demo-tone__btn[aria-current="true"]::before{width:5px;height:5px;margin-right:5px}
}
@media (max-width:359px){.demo-tone__btn{padding:0 8px;font-size:11px}}
@media (prefers-reduced-motion:reduce){.demo-tone__btn{transition:none}}

/* PC：左の縦メニューの上端が帯に隠れないよう、帯が高くなった分（v1.1.0 の28px→48px）だけ下げる */
@media (min-width:1100px){.is-demo .side{border-top:20px solid transparent}}
