/* gym-filter.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ─── 固定バー ─── */
.gfw-root {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 860px;
  z-index: 99999;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  box-sizing: border-box;
  padding: 0 16px 16px;
  background: transparent !important;
}

.gfw-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  background: transparent !important;
  background-color: transparent !important;
  color: #333 !important;
  border: 2px solid #333 !important;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  transition: background 0.15s;
}
.gfw-toggle-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
  pointer-events: none;
}
.gfw-toggle-bar > * {
  position: relative;
  z-index: 1;
}
.gfw-toggle-bar:hover::before {
  background: rgba(255, 255, 255, 0.72);
}

.gfw-badge {
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.5;
}

.gfw-chevron { font-size: 10px; opacity: 0.6; margin-left: 2px; }

/* ─── モーダル内レイアウト ─── */
.gfw-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.gfw-hint {
  font-weight: 400;
  letter-spacing: 0;
  color: #d1d5db;
  font-size: 11px;
}

.gfw-reselect {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  margin-left: auto;
  padding: 0;
}

.gfw-region-label {
  font-size: 10px;
  font-weight: 700;
  color: #c4c9d4;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  margin-top: 14px;
}

.gfw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.gfw-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 0 0 24px;
}

/* ─── 絞り込みボタン ─── */
.gfw-filter-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 48px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: all 0.18s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  min-height: 52px;
}
.gfw-filter-btn:hover { background: #333; box-shadow: 0 4px 18px rgba(0,0,0,0.22); }

.gfw-reset-btn {
  display: block;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  margin: 10px auto 0;
}

@media (max-width: 600px) {
  .gfw-root { padding: 0 12px 12px; }
  .gfw-toggle-bar { padding: 14px 20px; font-size: 13px; }
  .gfw-filter-btn { padding: 13px 32px; font-size: 14px; }
}

/* ─── 結果カード ─── */
/* ─── 検索結果カード ─────────────────────── */
.gfw-result-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  flex-direction: row;   /* 常に横並び */
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.2s;
  animation: gfwFadeIn 0.35s ease both;
}
.gfw-result-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-2px); }
@keyframes gfwFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ロゴ画像コンテナ：200×80を半分の100×40で表示 */
.gfw-brand-logo-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gfw-brand-logo {
  max-width: 100px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* テキスト情報エリア */
.gfw-card-info {
  flex: 1;
  min-width: 0;
}

/* ボタン領域 */
.gfw-card-btn-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* SP：ボタンを下に出してカードを2段構成に */
@media (max-width: 480px) {
  .gfw-result-card {
    flex-wrap: wrap;
    padding: 14px 16px;
    gap: 10px;
  }
  .gfw-card-btn-wrap {
    width: 100%;
    justify-content: center;
  }
}

.gfw-chevron { font-size: 10px; opacity: 0.6; margin-left: 2px; }

.gfw-goto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #6b7280 !important;
  border: none !important;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #fff !important;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none !important;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.gfw-goto-btn:hover,
.gfw-goto-btn:visited,
.gfw-goto-btn:focus,
.gfw-goto-btn:active {
  background: #4b5563 !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* js-link-helperが .jump クラスに注入するスタイルを上書き */
.gfw-goto-btn.jump,
.gfw-goto-btn.jump:hover,
.gfw-goto-btn.jump:visited,
.gfw-goto-btn.jump:focus,
.gfw-goto-btn.jump:active {
  color: #fff !important;
  text-decoration: none !important;
}

/* js-link-helperの .jump クラスによる色上書きを打ち消す */
span.gfw-goto-btn,
span.gfw-goto-btn:hover,
span.gfw-goto-btn:visited,
span.gfw-goto-btn:focus,
span.gfw-goto-btn:active {
  color: #fff !important;
  text-decoration: none !important;
}

.gfw-match-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0ea5e9;
  border: 1px solid #e0f2fe;
}


