/* ========================================
   Site header
   ======================================== */

.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--brand-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.site-header__brand:hover {
  opacity: 0.9;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-wordmark__name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}

.brand-wordmark__sub {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-top: 2px;
}

.site-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  flex-shrink: 0;
}

.site-header__locale {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.site-header__demo-chip {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  background: #fff5f2;
  border: 1px solid #f3d4cc;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
}

/* Vermillion accent stripe — 日の丸 nod */
.site-header__accent {
  height: 2px;
  background: linear-gradient(
    to right,
    var(--brand-accent) 0,
    var(--brand-accent) 40px,
    transparent 40px,
    transparent 100%);
}

/* ========================================
   Stage indicator
   ======================================== */

.stage-indicator {
  flex: 1;
  display: flex;
  justify-content: center;
}

.stage-indicator__list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}

.stage-indicator__item {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.stage-indicator__item--active {
  color: var(--brand-navy);
  font-weight: 600;
  background: var(--brand-mist);
}

.stage-indicator__sep {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 0.875rem;
}

/* ========================================
   Site footer
   ======================================== */

.site-footer {
  background: var(--brand-mist);
  border-top: 1px solid var(--brand-line);
  margin-top: 4rem;
  padding: 2.5rem 0 0 0;
  color: var(--text-secondary);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.6fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

@media (max-width: 768px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.site-footer__col {
  font-size: 0.875rem;
  line-height: 1.55;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.brand-logo--small {
  display: block;
}

.site-footer__brand-name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
}

.site-footer__copy {
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 0.5rem 0;
}

.site-footer__tag {
  color: var(--text-secondary);
  margin: 0 0 0.25rem 0;
  font-size: 0.8125rem;
}

.site-footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-navy);
  margin: 0 0 0.75rem 0;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin-bottom: 0.375rem;
}

.site-footer__links a {
  color: var(--brand-navy-2);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--brand-navy);
  text-decoration: underline;
}

.site-footer__col--notice .site-footer__notice {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0 0 0.5rem 0;
}

.site-footer__bottom {
  border-top: 1px solid var(--brand-line);
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.site-footer__build {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.site-footer__env {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  font-size: 0.6875rem;
}

/* ========================================
   Body layout — push footer to bottom
   ======================================== */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

/* Hide the old fixed-position watermark — footer takes over */
.demo-watermark {
  display: none;
}
