/* 見本サイトの帯（tools/build-demo.js が見本の HTML にだけ差し込む） */

.demo-band {
  max-width: 480px;
  margin: 0 auto;
  padding: 10px 16px 8px;
  background: #1f2328;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.demo-band-title {
  margin: 0 0 8px;
  font-weight: 700;
}
.demo-band-title::before {
  content: '見本';
  display: inline-block;
  margin-right: 8px;
  padding: 0 7px;
  border-radius: 4px;
  background: #f5c542;
  color: #1f2328;
  font-size: 11.5px;
  font-weight: 800;
  vertical-align: 1px;
}

.demo-band-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.demo-band-label { color: #c9ced6; }

.demo-roles {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.demo-role {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.demo-role.is-on {
  background: #fff;
  color: #1f2328;
}

.demo-reset {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.demo-band-can {
  margin: 8px 0 0;
  color: #e6e9ee;
  overflow-wrap: anywhere;
}
.demo-band-can b { color: #f5c542; margin-right: 4px; }

/* 4行目: 違いの説明（開くと下に伸びる）と、最初の状態に戻す */
.demo-band-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.demo-band-help { flex: 1; min-width: 0; color: #c9ced6; }
.demo-band-help summary {
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-band-help dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 10px;
  margin: 4px 0 4px;
}
.demo-band-help dt { font-weight: 700; color: #fff; }
.demo-band-help dd { margin: 0; }

/* LINE に送る操作をしたときの知らせ。画面のトーストと重ならないよう上に出す */
.demo-line {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 10px;
  background: #f5c542;
  color: #1f2328;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  z-index: 30;
}
