/* ブックマークの案内（会員でない人が押した時のシート、一覧に出す案内、引き継ぎの知らせ）
   inc/theme/bookmarks.php と js/bookmarks.js が使う。 */

/* ---------- 押した時に出るシート ---------- */
.hp-bm-guide {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hp-bm-guide__back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hp-bm-guide__panel {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  margin: 0 12px 12px;
  padding: 20px 18px 16px;
  border: 1px solid var(--line-gold, rgba(245, 184, 0, 0.3));
  border-radius: 12px;
  background: var(--bg-card, #fff);
  color: var(--text-main, #222);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: hp-bm-up 0.18s ease-out;
}

@keyframes hp-bm-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-bm-guide__panel { animation: none; }
}

.hp-bm-guide__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}

.hp-bm-guide__text {
  margin: 0 0 16px;
  color: var(--text-light, #666);
  font-size: 0.88rem;
  line-height: 1.75;
}

.hp-bm-guide__actions {
  display: grid;
  gap: 10px;
  margin: 0 0 6px;
}

.hp-bm-guide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-min-h);
  padding: 0 16px;
  border: 2px solid currentColor;
  border-radius: var(--btn-radius);
  color: var(--btn-accent);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.hp-bm-guide__btn--primary {
  border-color: transparent;
  background: var(--gold, #f5b800);
  color: var(--btn-ink);
}

.hp-bm-guide__close {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-light, #666);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------- 一覧に出す案内 ---------- */
.hp-bm-locked {
  padding: 14px 2px;
}

.hp-bm-locked__text {
  margin: 0;
  color: var(--text-light, #666);
  font-size: 0.85rem;
  line-height: 1.75;
}

.hp-bm-locked__text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold, #f5b800);
  text-underline-offset: 3px;
}

/* ---------- 引き継ぎの知らせ ---------- */
.hp-bm-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 9998;
  box-sizing: border-box;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border: 1px solid var(--line-gold, rgba(245, 184, 0, 0.3));
  border-radius: 8px;
  background: var(--bg-card, #fff);
  color: var(--text-main, #222);
  font-size: 0.85rem;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
}

.hp-bm-toast.is-out { opacity: 0; }
