/* サンプル共通：一覧へ戻るナビ（本体サイト上部バーに準拠） */
:root {
  --sg-back-h: 40px;
}

.sg-back-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #143c78;
  color: #cfe0f5;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sg-back-nav__inner {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 20px;
  min-height: var(--sg-back-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.sg-back-nav__link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.sg-back-nav__link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.sg-back-nav__note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #cfe0f5;
}

.sg-back-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sg-back-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #143c78;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.sg-back-nav__cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* 固定ヘッダーを戻るバーの下へずらす */
body {
  padding-top: var(--sg-back-h) !important;
}

body > .site-header,
body > header.site-header {
  top: var(--sg-back-h) !important;
}

@media (max-width: 640px) {
  :root {
    --sg-back-h: 64px;
  }

  .sg-back-nav {
    font-size: 13px;
  }

  .sg-back-nav__inner {
    padding: 8px 16px;
  }

  .sg-back-nav__note {
    width: 100%;
    font-size: 11px;
  }

  .sg-back-nav__actions {
    margin-left: 0;
  }

  .sg-back-nav__cta {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 12px;
  }
}
