/* ===================================================
   リベルサス クリニック絞り込み検索 - フロントCSS
   =================================================== */

#rbf-wrapper { max-width: 960px; margin: 0 auto; font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; color: #333; line-height: 1.6; }
#rbf-wrapper *, #rbf-wrapper *::before, #rbf-wrapper *::after { box-sizing: border-box; }

/* ヘッダー */
.rbf-header { background: linear-gradient(135deg, #0d7377, #14919b); color: #fff; text-align: center; padding: 28px 16px 22px; border-radius: 12px 12px 0 0; }
.rbf-header-title { font-size: 1.3em; font-weight: 700; letter-spacing: .03em; }
.rbf-header-sub { font-size: .85em; opacity: .85; margin-top: 6px; }

/* フィルターボックス */
.rbf-filter-box { background: #fff; border: 2px solid #14919b; border-top: none; border-radius: 0 0 12px 12px; padding: 20px 20px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 16px; }
.rbf-filter-title { font-size: 1.05em; font-weight: 700; color: #0d7377; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid #e0f2f1; text-align: center; }

/* ドロップダウン */
.rbf-filter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; margin-bottom: 14px; }
.rbf-filter-item label { display: block; font-size: .82em; font-weight: 600; color: #555; margin-bottom: 4px; }
.rbf-filter-item select { width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; font-size: .9em; background: #fafafa; color: #333; cursor: pointer; transition: border-color .2s; -webkit-appearance: menulist; appearance: menulist; }
.rbf-filter-item select:focus { border-color: #14919b; outline: none; }

/* トグルボタン */
.rbf-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rbf-toggle { padding: 7px 16px; border: 2px solid #ccc; border-radius: 20px; background: #fff; font-size: .85em; font-weight: 600; color: #666; cursor: pointer; transition: all .2s; user-select: none; }
.rbf-toggle:hover { border-color: #14919b; color: #14919b; }
.rbf-toggle.active { background: #14919b; border-color: #14919b; color: #fff; }

/* アクションボタン */
.rbf-filter-actions { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 4px; }
.rbf-search-btn { padding: 10px 40px; border: none; border-radius: 8px; background: linear-gradient(135deg, #0d7377, #14919b); color: #fff; font-size: 1em; font-weight: 700; cursor: pointer; transition: all .2s; letter-spacing: .05em; box-shadow: 0 2px 6px rgba(13,115,119,.3); }
.rbf-search-btn:hover { background: linear-gradient(135deg, #0a5c5f, #0d7377); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(13,115,119,.4); }
.rbf-search-btn:active { transform: translateY(0); }
.rbf-reset-btn { padding: 8px 18px; border: 1px solid #aaa; border-radius: 6px; background: #fff; font-size: .82em; color: #666; cursor: pointer; transition: all .2s; }
.rbf-reset-btn:hover { background: #f0f0f0; }

/* 件数 */
.rbf-result-count { font-size: .9em; color: #555; padding: 0; display: none; margin-bottom: 8px; }
.rbf-result-count.visible { display: block; }
.rbf-result-count span { font-weight: 700; color: #0d7377; font-size: 1.15em; }

/* 初期メッセージ */
.rbf-initial-msg { text-align: center; padding: 40px 20px; color: #888; font-size: .95em; }
.rbf-initial-msg.hidden { display: none; }

/* カード一覧 */
.rbf-cards { display: flex; flex-direction: column; gap: 16px; }

/* カード */
.rbf-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.07); overflow: hidden; display: none; }
.rbf-card.visible { display: block; }

.rbf-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eee; }
.rbf-clinic-name { font-size: 1.15em; font-weight: 700; color: #222; }
.rbf-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.rbf-badge { font-size: .72em; font-weight: 600; padding: 3px 10px; border-radius: 12px; white-space: nowrap; }
.rbf-badge-green  { background: #e8f5e9; color: #2e7d32; }
.rbf-badge-blue   { background: #e3f2fd; color: #1565c0; }
.rbf-badge-orange { background: #fff3e0; color: #e65100; }
.rbf-badge-purple { background: #f3e5f5; color: #7b1fa2; }

.rbf-card-body { padding: 16px 20px; }

/* 価格テーブル */
.rbf-price-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: .88em; }
.rbf-price-table th { background: #f5f7fa; padding: 8px 12px; text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid #e0e0e0; white-space: nowrap; }
.rbf-price-table td { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; }
.rbf-price { font-weight: 700; color: #d32f2f; font-size: 1.05em; }
.rbf-note { font-size: .78em; color: #888; }

/* 詳細 */
.rbf-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px; font-size: .85em; }
.rbf-detail { display: flex; gap: 6px; align-items: baseline; }
.rbf-dl { font-weight: 600; color: #777; white-space: nowrap; min-width: 70px; }
.rbf-dv { color: #333; }

/* フッター */
.rbf-card-footer { padding: 12px 20px 16px; background: #fafcff; border-top: 1px solid #eee; }
.rbf-footer-title { font-size: .78em; font-weight: 700; color: #0d7377; margin-bottom: 4px; }
.rbf-card-footer ul { list-style: none; font-size: .82em; color: #555; margin: 0; padding: 0; }
.rbf-card-footer li::before { content: "\2713  "; color: #14919b; font-weight: 700; }
.rbf-cta { display: inline-block; margin-top: 10px; padding: 8px 24px; background: #14919b; color: #fff; text-decoration: none; border-radius: 6px; font-size: .88em; font-weight: 600; transition: background .2s; }
.rbf-cta:hover { background: #0d7377; color: #fff; }

/* 0件 */
.rbf-no-result { text-align: center; padding: 40px 20px; color: #999; font-size: .95em; display: none; }
.rbf-no-result.visible { display: block; }

/* ===== レスポンシブ ===== */
@media (max-width: 600px) {
  .rbf-header-title { font-size: 1.1em; }
  .rbf-filter-grid { grid-template-columns: 1fr; }
  .rbf-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .rbf-details { grid-template-columns: 1fr; }
  .rbf-search-btn { width: 100%; }
  .rbf-filter-actions { flex-direction: column; }
}
