/* 戻りバー：カタログから見本サイトを開いたときだけ、ページの一番上に差し込む。
   見本サイト側の CSS に左右されないよう、色や大きさはここで決めきる */

.cbar {
  position: relative;
  z-index: 200; /* 見本サイトの幕やメニューより手前に出す */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  padding: 8px 12px;
  background: #111111;
  color: #ffffff;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: normal;
}

/* hp-site の窓（iframe）の中（URL に ?embed=1）：バーを出さない。印は <head> の最初の script が付ける */
.cbar-embed .cbar {
  display: none !important;
}

.cbar [hidden] {
  display: none;
}

.cbar__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.cbar__btn--back {
  background: #ffffff;
  color: #111111;
}

.cbar__wide {
  margin-left: 0.25em;
}

.cbar__pos {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  font-weight: 500;
  text-align: center;
}

.cbar__line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  max-width: 100%;
  white-space: nowrap;
}

.cbar__note {
  font-size: 12px;
  font-weight: 400;
  color: #d8d8d2;
}

.cbar__name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cbar__move {
  display: flex;
  gap: 8px;
}

/* スマホ：スタイル名を省き、番号だけにする */
@media (max-width: 600px) {
  .cbar__name,
  .cbar__wide {
    display: none;
  }

  .cbar__note {
    font-size: 11px;
  }

  .cbar__btn {
    padding: 0 10px;
    font-size: 15px;
  }
}

/* 地図を押したときの短い知らせ */
.cbar-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 210;
  transform: translateX(-50%);
  margin: 0;
  padding: 10px 16px;
  background: #111111;
  color: #ffffff;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.cbar-toast[hidden] {
  display: none;
}
