/* ===== お気に入りバー（詳細ページ用） ===== */
.hw-favbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:10px 0 14px;
  padding:10px 12px;
  border:1px solid rgba(15, 60, 140, .12);
  border-radius:14px;
  background:rgba(15, 90, 220, .06);
  min-height:56px; /* ★枠を確保してCLS抑制 */
}

.hw-favbar.is-title{
  margin-top:8px;   /* ★タイトル直下の余白を少し狭く */
  margin-bottom:12px;
}

/* ボタン/リンク共通（サイズを揃える） */
.hw-favbtn,
.hw-favlistlink{
  font-size:14px;
  font-weight:800;
  line-height:1;
  min-height:42px;
  border-radius:999px;
  padding:10px 14px;
}

/* ボタン（黒→柔らかい青系） */
.hw-favbtn{
  appearance:none;
  border:1px solid rgba(15, 60, 140, .18);
  background:#0b5bd3;
  color:#fff;
  cursor:pointer;
}

.hw-favbtn.is-on{
  background:#fff;
  color:#0b5bd3;
}

/* 一覧リンク */
.hw-favlistlink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid rgba(15, 60, 140, .18);
  text-decoration:none;
  color:#0b5bd3;
  background:#fff;
  white-space:nowrap;
}

/* 件数バッジ（幅を固定気味にしてガクッとを抑える） */
.hw-favlistlink:after{
  content: attr(data-count);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(15, 60, 140, .18);
  font-size:12px;
  font-weight:900;
  background:rgba(15, 90, 220, .06);
}

/* ===== モバイル最適化：はみ出し防止 ===== */
@media (max-width: 600px){
  .hw-favbar{
    flex-wrap:nowrap;
    gap:8px;
    padding:10px;
  }
  .hw-favbtn,
  .hw-favlistlink{
    flex:1;
    width:50%;
    justify-content:center;
    padding:10px 10px;
    font-size:13px;
  }
  .hw-favlistlink{
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* ===== 一覧ページ ===== */
.hw-favlist-head{
  font-weight:900;
  margin:0 0 12px;
  color:#123a7a;
}

.hw-fav-empty,
.hw-fav-error{
  padding:14px;
  border:1px dashed rgba(15, 60, 140, .25);
  border-radius:14px;
  background:rgba(15, 90, 220, .05);
}

.hw-favcard{
  border:1px solid rgba(15, 60, 140, .12);
  border-radius:16px;
  padding:14px;
  background:#fff;
  margin:0 0 12px;
}

.hw-favcard-title{
  display:block;
  font-weight:900;
  text-decoration:none;
  color:#123a7a;
  margin:0 0 6px;
}

.hw-favcard-meta{
  font-size:13px;
  opacity:.85;
  margin:0 0 10px;
}

.hw-favcard-del{
  appearance:none;
  border:1px solid rgba(15, 60, 140, .18);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  color:#0b5bd3;
}

/* CLS用プレースホルダー：見た目なし＋余白最小 */
.hw-favbar--slot{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;

  /* 余白を増やさないために高さは最小限 */
  min-height: 0 !important;
}

/* タイトル直下は少しだけ間隔を作る（好みで調整） */
.hw-favbar.is-title{
  margin-top: 6px;
  margin-bottom: 10px;
}

/* タイトル（青カード）とキープバーの間を極限まで詰める */
.job-heading{
  margin-bottom: 6px !important;
}

.hw-favbar.is-title{
  margin-top: 2px !important;
}
