/* 制作見本（架空のサイト）であることを示すバー。
   ポートフォリオ側の部品なので、各サイトのデザインとは独立させる（書体・色は各サイトのトークンを使わない）。
   ページ先頭の通常フローに置き、固定しない。各サイトの固定ヘッダーは sticky にするか、--demo-bar-h を考慮する */
:root { --demo-bar-h: 36px; }

.demo-bar {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--demo-bar-h);
  padding: 0 16px;
  background: #141414;
  color: #e6e6e6;
  font: 400 12px/1 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
.demo-bar__tag {
  flex: none;
  padding: 4px 6px 3px;
  border: 1px solid #5c5c5c;
  border-radius: 2px;
  font-size: 10px;
  letter-spacing: .14em;
  color: #c4c4c4;
}
.demo-bar__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.demo-bar__back {
  flex: none;
  align-self: stretch; /* バーの高さ全体を押せるように（操作対象を 24px 以上に） */
  display: flex;
  align-items: center;
  padding: 0 2px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo-bar__back:hover { text-decoration-thickness: 2px; }
.demo-bar__back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.demo-bar__short { display: none; }

@media (max-width: 760px) {
  .demo-bar__long { display: none; }
  .demo-bar__short { display: inline; }
}
