/* タブバー（トークンは demo-base.css） */

.demo-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--shell-surface);
  border-bottom: 1px solid var(--shell-border);
  box-shadow: 0 1px 8px rgba(11, 29, 58, 0.08);
}

.demo-chrome .shell-nav {
  position: relative;
  width: 100%;
  height: var(--shell-nav-h);
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.shell-nav-inner {
  max-width: 1320px;
  height: var(--shell-nav-h);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.shell-brand {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--shell-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.shell-brand:hover {
  color: var(--shell-accent);
}

.shell-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.shell-tabs::-webkit-scrollbar {
  display: none;
}

.shell-tab {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  color: var(--shell-muted);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.shell-tab:hover {
  color: var(--shell-text);
  background: rgba(13, 148, 136, 0.1);
}

/* ハイライトは html の data-demo-tab のみ（JS で class を触らない） */
.shell-tab--extra {
  color: var(--demo-muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.shell-tab--extra:hover {
  color: var(--demo-text-secondary);
}

html[data-demo-tab="guide"] .shell-tab[data-tab="guide"],
html[data-demo-tab="pon"] .shell-tab[data-tab="pon"],
html[data-demo-tab="stage"] .shell-tab[data-tab="stage"],
html[data-demo-tab="lp"] .shell-tab[data-tab="lp"],
html[data-demo-tab="compare"] .shell-tab[data-tab="compare"] {
  color: #fff;
  background: var(--shell-active);
  border-color: transparent;
  pointer-events: none;
}

/* 制作ステージ：ツールバー行 */
.demo-chrome--stage {
  --demo-chrome-h: 6.75rem;
}

.demo-chrome--stage .stage-toolbar {
  border-top: 1px solid var(--shell-border);
  background: linear-gradient(180deg, var(--demo-surface), var(--demo-bg));
  padding: 0.65rem 1.25rem;
}

.demo-chrome--stage .stage-toolbar .header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-end;
}

.demo-chrome--stage .stage-toolbar .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--demo-accent-strong);
  font-weight: 600;
}

.demo-chrome--stage .stage-toolbar h1 {
  font-size: var(--demo-title-size);
  margin-top: 0.1rem;
  color: var(--demo-heading);
}

.demo-chrome--stage .stage-toolbar .subtitle {
  font-size: var(--demo-lead-size);
  color: var(--demo-text-secondary);
  margin-top: 0.2rem;
}

.demo-chrome--stage .stage-toolbar .header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

body.demo-page-home,
body.demo-page-compare {
  padding-top: var(--shell-nav-h);
}

body.demo-page-stage {
  padding-top: var(--demo-chrome-h);
}

@media (max-width: 640px) {
  .shell-brand span.shell-brand-long {
    display: none;
  }
  .shell-tab {
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
  }
  .demo-chrome--stage {
    --demo-chrome-h: 7.5rem;
  }
}
