:root {
  --demo-ribbon-ink: #fffdf8;
  --demo-ribbon-background: #2c241c;
  --demo-ribbon-accent: #e7682a;
  --demo-ribbon-highlight: #ffb43b;
}

.demo-ribbon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 14px;
  background: var(--demo-ribbon-background);
  color: var(--demo-ribbon-ink);
  font-family: "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.demo-ribbon b { color: var(--demo-ribbon-highlight); }
.demo-ribbon__fiction { display: block; color: var(--demo-ribbon-highlight); }
.demo-restriction-help {
  padding: 6px 10px;
  margin: 4px;
  border: 1px solid var(--demo-ribbon-accent);
  border-radius: 8px;
  background: #fff8e8;
  color: #34261f;
  font: inherit;
  cursor: pointer;
}
.demo-ribbon a {
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--demo-ribbon-accent);
  color: var(--demo-ribbon-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.demo-admin { padding-bottom: var(--demo-ribbon-height, 100px); }
.demo-admin--pc-preview .sidebar-shell {
  overflow-y: auto;
}

.demo-admin--pc-preview .sidebar-shell > * {
  flex-shrink: 0;
}

/* PC幅に縮小表示されたスマホでも、案内は端末上で読める大きさを保つ。 */
.demo-admin--pc-preview .pontime-notice {
  box-sizing: border-box;
  width: 90vw;
  max-width: 90vw;
  max-height: 85vh;
  padding: 6vw;
  border-radius: 4vw;
  font-size: 4vw;
  line-height: 1.7;
}

.demo-admin--pc-preview .pontime-notice h2 {
  font-size: 6vw;
  line-height: 1.4;
}

.demo-admin--pc-preview .pontime-notice p {
  font-size: inherit;
}

.demo-admin--pc-preview .pontime-notice__close {
  min-height: 12vw;
  padding: 2vw 6vw;
  font-size: 4vw;
}

.demo-admin .demo-ribbon {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
}
/* 打刻画面は案内帯を通常フローに置き、残りの高さを製品UIへ渡す。 */
.demo-tablet .tablet-app { min-height: 0; }

@media (min-width: 601px) {
  .demo-admin .sidebar-shell { bottom: var(--demo-ribbon-height, 100px); }
}

@media (min-width: 701px) {
  .demo-ribbon { flex-direction: row; gap: 16px; }
}
