/* BtoB Navi｜お気に入り（1つのコンポーネントの見た目。2026-11-29 ▼68 A）
   色・時間は先頭の変数だけで変える。書体はキットの本文（言語ごと）。ハートの形・入口・ページの見た目は、本人が見本で決めたら直す（仮の形）。
   「動きを減らす」設定の端末では動きを出さない（最後の @media）。 */
:root{
	--bnfav-on:#E93D77;          /* 入れたときの色 */
	--bnfav-on-dark:#FF86AC;     /* 濃紺の小さいヘッダーの上での同じ色（明るくして読めるように） */
	--bnfav-off:#8a94a3;         /* 入れていないときの線 */
	--bnfav-line:#DAE3ED;
	--bnfav-ink:#112B3C;
	--bnfav-bg:#F4F6F8;
	--bnfav-dark:#0F1D2A;        /* お知らせ・ポップアップの帯（吹き出し・小さいヘッダーと同じ） */
	--bnfav-pop:.32s;            /* 登録の動きの時間 */
	--bnfav-leave:.3s;           /* ページで外したときの動きの時間 */
}
.bnfav-page,.bnfav-toast,.bnfav-entry{font-family:var(--e-global-typography-text-font-family),sans-serif}

/* ── ハート（一覧のカード・会社ページ）。JS の準備ができるまで出さない ── */
.bnx-fav{visibility:hidden}
html.bnfav-ready .bnx-fav{visibility:visible}
.bnx-card button.bnx-fav,button.bnx-fav.bnfav-single{position:relative;z-index:2;color:var(--bnfav-off)}
button.bnx-fav svg{overflow:visible}
button.bnx-fav.is-on{color:var(--bnfav-on) !important;border-color:var(--bnfav-on) !important}
/* 登録済みは線のハートを塗りのハートに替える（形は inc/icons.php。2026-12-01 ▼86 A） */
.bnx-fav.is-on .bn-ht-o{display:none}
.bnx-fav.is-on .bn-ht-f{display:inline}
button.bnx-fav::after{content:"";position:absolute;inset:-1px;border-radius:50%;border:2px solid var(--bnfav-on);opacity:0;pointer-events:none}
button.bnx-fav.is-pop svg{animation:bnfav-pop var(--bnfav-pop) cubic-bezier(.2,1.6,.4,1)}
button.bnx-fav.is-pop::after{animation:bnfav-ring .5s ease-out}
button.bnx-fav.is-unpop svg{animation:bnfav-unpop .24s ease-in}
button.bnfav-single{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid var(--bnfav-line);background:#fff;cursor:pointer}
@keyframes bnfav-pop{0%{transform:scale(.6)}55%{transform:scale(1.28)}100%{transform:scale(1)}}
@keyframes bnfav-unpop{0%{transform:scale(1)}50%{transform:scale(.78)}100%{transform:scale(1)}}
@keyframes bnfav-ring{0%{opacity:.7;transform:scale(.8)}100%{opacity:0;transform:scale(1.7)}}

/* ── 件数つきの入口（[bn_fav_count]） ── */
.bnfav-entry{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.bnfav-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--bnfav-on);color:#fff;font-size:11px;font-weight:700;line-height:1}
.bnfav-entry.is-bump .bnfav-count{animation:bnfav-pop .4s cubic-bezier(.2,1.6,.4,1)}

/* ── お気に入りのページ（[bn_favorites]。2026-11-29 本人 ▼63 ⑤A で作り直し）
   見出しの帯はページの Elementor（FAQ の帯 d77c36b をコピー）。ここは使い方とリスト。節の見出し・白いカードは about（assets/css/pages/about.css の bna-）と同じ値。
   ページ送りは、ほかの一覧と同じ JetSmartFilters の HTML の形にしてあるので、見た目は追加 CSS（「ナビとページ送りの装飾」）がそのまま効く。 */
body.bnfav-page-body .page-header{display:none}
body.bnfav-page-body .site-main{max-width:none;width:100%;margin:0;padding:0}
body.bnfav-page-body .page-content{margin:0;padding:0}
.bnfav-page{color:#2A2F35;line-height:1.9;font-size:16px}
.bnfav-page *{box-sizing:border-box}
.bnfav-page [hidden]{display:none !important}
.bnfav-in{max-width:1100px;margin:0 auto;padding:0 20px}
.bnfav-sec{padding:72px 0}
.bnfav-sec--gray{background:#F0F2F5}
.bnfav-h{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 22px;margin:0 0 44px;padding:2px 0 2px 20px;border-left:6px solid #4A90E2;font-size:16px;font-weight:600;color:#5E6772;line-height:1.3}
.bnfav-h b{font-size:40px;font-weight:700;color:#2A2F35;letter-spacing:.02em}
.bnfav-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:0;padding:0;list-style:none}
.bnfav-step{padding:28px 28px 30px;background:#fff;border:1px solid #DAE3ED;border-radius:14px}
.bnfav-step-top{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
.bnfav-step i{font-style:normal;font-size:20px;font-weight:700;color:#205375;letter-spacing:.04em}
.bnfav-step-ico{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#EEF4FB;color:#4A90E2}
.bnfav-step-ico svg{width:24px;height:24px}
.bnfav-step:first-child .bnfav-step-ico{background:#FDEEF3;color:var(--bnfav-on)}
.bnfav-step h3{margin:0 0 10px;font-size:18px;font-weight:700;line-height:1.5;color:#2A2F35}
.bnfav-step p{margin:0;font-size:15px;color:#5E6772}
.bnfav-notes{margin:28px 0 0;padding:20px 24px;background:#F7F9FB;border:1px solid #DAE3ED;border-radius:12px}
.bnfav-notes-h{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:15px;font-weight:700;color:#2A2F35}
.bnfav-notes-h svg{flex:none;width:20px;height:20px;color:#4A90E2}
.bnfav-notes ul{margin:0;padding:0 0 0 1.3em;font-size:14px;line-height:1.85;color:#5E6772}
.bnfav-notes li+li{margin-top:4px}
.bnfav-listhead{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin:0 0 28px}
.bnfav-listhead .bnfav-h{margin:0}
.bnfav-tools{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.bnfav-total{font-size:18px;font-weight:700;color:#205375}
.bnfav-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:8px;border:2px solid #205375;background:#205375;color:#fff;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer;transition:opacity .2s}
.bnfav-btn:hover{opacity:.85;background:#205375;color:#fff}
.bnfav-page .bnfav-btn-quiet{background:#fff !important;color:#205375 !important;border-color:#205375 !important}
.bnfav-page .bnfav-btn-quiet:hover,.bnfav-page .bnfav-btn-quiet:focus{background:#fff !important;color:#205375 !important;opacity:.75}
.bnfav-empty{padding:48px 24px;background:#fff;border:1px solid #DAE3ED;border-radius:14px;text-align:center}
.bnfav-empty p{margin:0 0 24px;font-size:16px;color:#5E6772}
.bnfav-cta{display:inline-flex;align-items:center;justify-content:center;min-width:240px;padding:15px 28px;border-radius:8px;font-size:16px;font-weight:700;color:#fff !important;background:#205375;text-decoration:none !important;transition:opacity .2s}
.bnfav-cta:hover{opacity:.85}
.bnfav-list{display:flex;flex-direction:column;gap:14px}
.bnfav-list[aria-busy="true"]{opacity:.7}
.bnfav-item{overflow:hidden;transition:opacity var(--bnfav-leave),height var(--bnfav-leave) ease,margin var(--bnfav-leave)}
.bnfav-item.is-leaving{opacity:0;height:0 !important;margin-top:-14px}
.bnfav-item.is-back{animation:bnfav-back .34s ease-out}
@keyframes bnfav-back{0%{opacity:0;transform:translateY(-8px)}100%{opacity:1;transform:none}}
.bnfav-pager .jet-filters-pagination{margin-top:32px}
.bnfav-tools-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.bnfav-page .bnfav-restore svg{width:16px;height:16px}
@media (max-width:1024px){
	.bnfav-steps{grid-template-columns:1fr}
	.bnfav-step{display:grid;grid-template-columns:auto 1fr;column-gap:18px;padding:22px 22px 24px}
	.bnfav-step-top{grid-row:span 2;flex-direction:column;justify-content:flex-start;gap:8px;margin:0}
}
@media (max-width:767px){
	.bnfav-sec{padding:48px 0}
	.bnfav-h{margin-bottom:28px;padding-left:14px;font-size:14px}
	.bnfav-h b{font-size:30px}
	.bnfav-step{column-gap:14px;padding:18px 16px 20px}
	.bnfav-step h3{font-size:16px}
	.bnfav-step p{font-size:14px}
	.bnfav-step-ico{width:40px;height:40px}
	.bnfav-step-ico svg{width:20px;height:20px}
	.bnfav-cta{width:100%;min-width:0}
	.bnfav-notes{padding:16px 16px 16px 14px}
	.bnfav-notes ul{font-size:13px}
}

/* ── お知らせ（画面の下） ── */
/* 重なり順：サイトの画面下の広告枠（#easy-main-banner・z-index 999999）より前に出す。下げるとスマホで「元に戻す」が押せなくなる（2026-11-29 実測） */
.bnfav-toast{position:fixed;left:50%;bottom:24px;z-index:1000001;display:flex;align-items:center;gap:14px;width:max-content;max-width:min(640px,calc(100vw - 24px));min-height:64px;padding:12px 14px 12px 18px;border-radius:12px;background:var(--bnfav-dark);color:#fff;font-size:16px;font-weight:500;line-height:1.55;box-shadow:0 14px 36px rgba(15,29,42,.38);opacity:0;visibility:hidden;transform:translate(-50%,16px);transition:opacity .2s,transform .25s,visibility 0s linear .25s}
.bnfav-toast.is-on{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .2s,transform .25s,visibility 0s}
.bnfav-toast-ico{flex:none;display:inline-flex;width:24px;height:24px}
.bnfav-toast-ico svg{width:24px;height:24px}
.bnfav-toast.is-add .bnfav-toast-ico,.bnfav-toast.is-remove .bnfav-toast-ico{color:var(--bnfav-on)}
.bnfav-toast.is-warn .bnfav-toast-ico{color:#FFC94D}
.bnfav-toast-msg{flex:1 1 auto}
/* 「元に戻す」などは白い塗りのボタン（サイトのボタンの色に負けないよう !important） */
.bnfav-toast button{flex:none;padding:9px 16px !important;border:0 !important;border-radius:8px !important;background:#fff !important;color:var(--bnfav-dark) !important;font-size:14px;font-weight:700;line-height:1.3;cursor:pointer;box-shadow:none !important;white-space:nowrap}
.bnfav-toast button:hover,.bnfav-toast button:focus{background:#E8EEF4 !important;color:var(--bnfav-dark) !important}

/* 会社ページのポップアップは別の部品（assets/css/popup.css）。2026-11-29 に移した */
@media (max-width:767px){
	.bnfav-toast{bottom:76px;width:calc(100vw - 24px);font-size:15px;gap:10px;padding:10px 10px 10px 14px}   /* スマホの下の帯（bn-bar）にかぶらない */
}

/* ── 件数つきの入口を3か所に（favorites.js の Entry が差し込む。2026-11-29 ▼2 A） ── */
.bnfav-entry{position:relative}
.bnfav-entry--head .bnfav-entry-label,.bnfav-entry--dock .bnfav-entry-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bnfav-entry .bnfav-count{position:absolute;top:-4px;right:-6px}
/* ヘッダー：企業掲載の依頼ボタンの左に丸いハート */
/* 色はいつも同じ（枠線とハートに色。乗せる・押す・外を押すで変わらない。2026-11-30 本人） */
.bnfav-entry--head{flex:0 0 auto;align-self:center;justify-content:center;width:40px;height:40px;margin-right:12px;border:1px solid var(--bnfav-on);border-radius:50%;background:#fff;color:var(--bnfav-on) !important}
.bnfav-entry--head svg{width:20px;height:20px}
.bnfav-tip-h{font-weight:700}
/* PC の小さいヘッダー（bn-dock）：右端のボタンの左 */
.bnfav-entry--dock{justify-content:center;width:38px;height:38px;margin:0 2px 0 4px;border:1px solid var(--bnfav-on-dark);border-radius:999px;background:transparent;color:var(--bnfav-on-dark) !important}
.bnfav-entry--dock svg{width:19px;height:19px}
.bnfav-entry--dock .bnfav-count{top:0;right:-2px}
/* スマホの下の帯（bn-bar）：メニューの左。6つに並べる */
.bn-bar ul:has(> li.bnfav-bar-li){grid-template-columns:repeat(6,1fr)}
.bn-bar ul:has(> li.bnfav-bar-li) a,.bn-bar ul:has(> li.bnfav-bar-li) button{font-size:9.5px !important;letter-spacing:0 !important;white-space:nowrap}   /* 6つだと「お問い合わせ」が2行に折れるため（2026-11-29 実測） */
.bn-bar .bnfav-entry--bar{gap:3px}
.bn-bar .bnfav-entry--bar svg{fill:currentColor;stroke:none}
.bn-bar .bnfav-entry--bar .bnfav-count{top:4px;right:calc(50% - 20px)}
.bn-bar .bnfav-entry--bar.is-current{color:#fff !important;background:rgba(255,255,255,.08)}

/* ── 会社の詳細ページの右下：お気に入り・お問い合わせ（2026-11-29 本人）。高さは favorites.js の Fab が --bn-cfab-lift で上げる ── */
.bn-cfab{position:fixed;right:20px;bottom:calc(20px + var(--bn-cfab-lift,0px) + env(safe-area-inset-bottom));z-index:10003;display:flex;flex-direction:column;align-items:flex-end;gap:10px;font-family:var(--e-global-typography-text-font-family),sans-serif;transition:bottom .3s cubic-bezier(.22,1,.36,1)}
.bn-cfab .bn-cfab-btn{display:inline-flex !important;align-items:center;gap:8px;height:48px;padding:0 18px 0 14px !important;border-radius:999px !important;font-size:14px;font-weight:700;line-height:1;text-decoration:none !important;cursor:pointer;box-shadow:0 8px 24px rgba(15,29,42,.22) !important;transition:transform .2s,box-shadow .2s,background-color .2s,color .2s,border-color .2s}
.bn-cfab .bn-cfab-btn:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,29,42,.28) !important}
.bn-cfab .bn-cfab-btn svg{flex:none;width:20px;height:20px}
.bn-cfab .bn-cfab-fav{border:1px solid var(--bnfav-line) !important;background:#fff !important;color:var(--bnfav-ink) !important}
.bn-cfab .bn-cfab-fav.is-on{border-color:var(--bnfav-on) !important;color:var(--bnfav-on) !important}
.bn-cfab .bn-cfab-ask{border:0 !important;background:var(--bnfav-on) !important;color:#fff !important}
.bn-cfab .bn-cfab-ask:hover{background:#d42d66 !important;color:#fff !important}
@media (max-width:767px){
	.bn-cfab{right:12px;bottom:calc(12px + var(--bn-cfab-lift,0px) + env(safe-area-inset-bottom));gap:8px}
	.bn-cfab .bn-cfab-btn{height:44px;padding:0 14px 0 12px !important;font-size:13px}
}
.bn-embed .bn-cfab{right:12px;bottom:12px}
@media (prefers-reduced-motion:reduce){
	.bnfav-page *,.bnfav-toast,.bn-cfab,.bn-cfab *,button.bnx-fav svg,button.bnx-fav::after,.bnfav-count{animation:none !important;transition:none !important}
}

/* 件数0のときは隠す（hidden を display の指定が上書きしていた。2026-11-29 実測） */
.bnfav-count[hidden]{display:none !important}
