/* X 最上級 ツール：デモ版の見た目 */
#demoResetBtn { cursor: pointer; }

/* 予約投稿管理（PC）：「投稿 内容」の列だけ、左揃え（見出しも中身も） */
@media (min-width: 768px) {
  #sec-post-status .m-cards thead th:nth-child(3),
  #sec-post-status .m-cards tbody td[data-label="投稿 内容"] { text-align: left; }
}

/* 購入ボタン：スマホだけ。画面の一番下に固定・横幅いっぱい */
#demoBuyBtn, #demoBuyGap { display: none; }
@media (max-width: 767px) {
  :root { --buy-f: min(calc((100vw - 32px) / 9.6), 34px); --buy-h: calc(var(--buy-f) * 1.25 + 26px); --buy-gap: 10px; }
  /* 下端の細い帯：Safariの下のバーを、画面と同じ濃い紺のままにする（ボタンの色を、バーに塗らせない） */
  #demoBuyGap { display: block; position: fixed; left: 0; right: 0; bottom: 0; height: var(--buy-gap); z-index: 49; background: #0f172a; pointer-events: none; }
  #demoBuyBtn {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: var(--buy-gap); z-index: 50;
    box-sizing: border-box; width: 100%; min-height: var(--buy-h);
    padding: 13px 16px;
    background: #ea5506; color: #fff; text-decoration: none;
    font-size: var(--buy-f); font-weight: 800; line-height: 1.25; letter-spacing: 0; white-space: nowrap;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.25);
  }
  #demoBuyBtn:active { background: #c94805; }
  #demoBuyBtn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
  body { padding-bottom: calc(var(--buy-h) + var(--buy-gap)); }
  /* メニュー画面：横に動かさない（スクロールが、後ろの画面に伝わらないようにする） */
  #sidebar, #sidebar nav { overscroll-behavior: contain; overflow-x: hidden; }
  select { max-width: 100%; }
}

/* 予約投稿を作った直後：作った投稿（一番上）を、オレンジの枠で強調 */
#sec-post-status tr.demo-new { outline: 2px solid #ea5506; outline-offset: -2px; background: rgba(234, 85, 6, 0.12); border-radius: 8px; scroll-margin-top: 96px; }
