/* bnow-1024：文例集の入口（/bunrei1/・/bunrei2/・/yobou/）の「文例をさがす」で、いまの絞り込みと、ケアプランを書くときの手順を見せる（2026-10-24）
   春名さん「場面でさがす、すべて。この絞り込まれていない、最初の設定となっていることをユーザーに分かりやすくしてほしい。
   このあとに、ケアプラン作成のために、操作することを伝えて、使いやすくしてほしい」。
   色はページの色（場面のボタンが選ばれたときの色）を JS が --bn-acc に入れる。入らなくても灰色で読める。 */
.bn-now { --bn-acc: #5c6d78; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #e3ddd6; border-radius: 14px; background: #fbfaf8; }
.bn-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: 15px; line-height: 1.6; color: #3d3530; }
.bn-tag { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bn-acc); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.bn-txt b { color: var(--bn-acc); }
.bn-reset { margin-left: auto; height: 32px; padding: 0 14px; border: 1px solid #cfc4bd; border-radius: 999px; background: #fff; color: #3d3530; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bn-reset:hover { background: #f4f1ee; }
.bn-reset[hidden] { display: none; }
.bn-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: none; }
.bn-steps li { flex: 1 1 200px; display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 9px 12px; border: 1px solid #e3ddd6; border-radius: 12px; background: #fff; color: #3d3530; font-size: 14px; line-height: 1.5; }
.bn-steps li b { display: block; font-size: 14px; }
.bn-sh { display: none; }
.bn-steps li small { display: block; margin-top: 1px; font-size: 12.5px; color: #6b5f58; }
.bn-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--bn-acc); color: var(--bn-acc); font-size: 13px; font-weight: 700; background: #fff; }
.bn-steps li.is-now { border-color: var(--bn-acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bn-acc) 18%, transparent); }
.bn-steps li.is-now .bn-n { background: var(--bn-acc); color: #fff; }
/* すんだ手順（10/25 春名さん「選択されたときの✔が目立たない。枠の色が変わってもよい」）：
   枠と背景をページの色に、✓の丸を大きく、右上に「✓ 済み」の札。枠を2pxにするぶん余白を1px減らして、大きさは変えない */
.bn-steps li.is-done { position: relative; border: 2px solid var(--bn-acc); padding: 8px 11px; background: color-mix(in srgb, var(--bn-acc) 9%, #fff); }
.bn-steps li.is-done .bn-n { width: 28px; height: 28px; margin-top: -1px; background: var(--bn-acc); color: #fff; font-size: 0; border-color: var(--bn-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bn-acc) 22%, transparent); }
.bn-steps li.is-done .bn-n::before { content: "✓"; font-size: 17px; font-weight: 900; line-height: 1; }
.bn-steps li.is-done b { color: var(--bn-acc); }
.bn-steps li.is-done::after { content: "✓ 済み"; position: absolute; top: -10px; right: 10px; padding: 1px 9px; border-radius: 999px; background: var(--bn-acc); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; }

/* 〈すべての場面〉が選ばれているあいだ、「絞り込みなし」の札を付ける（はじめの設定） */
.scene-tab[data-scene="all"].is-active::after { content: "絞り込みなし"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.24); font-size: 12px; font-weight: 700; letter-spacing: .02em; }

@media (max-width: 640px) {
  /* スマホ：検索欄を押し下げすぎないよう、手順は1行ずつ（説明の小さい字は出さない） */
  .bn-now { padding: 10px 12px; margin-bottom: 14px; }
  .bn-state { font-size: 14px; gap: 6px 8px; }
  .bn-tag { height: 22px; padding: 0 8px; font-size: 12px; }
  .bn-steps { gap: 4px; margin-top: 8px; }
  .bn-steps li { flex-basis: 100%; align-items: center; padding: 6px 10px; border-radius: 10px; }
  .bn-steps li small { display: none; }
  .bn-steps .bn-l { display: none; }
  .bn-steps .bn-sh { display: inline; }
  .bn-n { width: 22px; height: 22px; margin-top: 0; font-size: 12px; }
  .bn-steps li.is-done { padding: 5px 9px; }
  .bn-steps li.is-done .bn-n { width: 24px; height: 24px; margin-top: 0; }
  .bn-steps li.is-done .bn-n::before { font-size: 15px; }
  .bn-steps li.is-done::after { top: 50%; right: 10px; transform: translateY(-50%); }
  .bn-reset { margin-left: 0; height: 30px; }
}
@media print { .bn-now { display: none !important; } }
