/*
 * ヘッダー関連スタイル
 * header.css
 */

/*
 * ヘッダー基本
 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(255, 42, 122, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  min-height: 60px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (max-width: 575.98px) {
  .header-content {
    min-width: 360px;
  }
}
/* ヘッダー下のメインコンテンツを最大幅で中央寄せ */
.site-content-max {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}
/* セカンダリナビ、メイン、フッターのコンテナに制約を適用 */
.secondary-nav > .container-fluid,
main.container,
footer > .container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

/*
 * ロゴ
 */
.header-logo {
  flex-shrink: 0;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 8px;
}
.logo-text {
  font-size: 28px;
  font-weight: bold;
  color: #e91e63;
  white-space: nowrap;
}
.logo-subtext {
  font-size: 11px;
  color: #333;
  line-height: 1.1;
  font-weight: 500;
}
.logo-location {
  background-color: #333;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
}

/*
 * 検索
 */
.header-search {
  flex: 1;
  max-width: 600px;
  margin: 0 18px;
}
.search-container {
  display: flex;
  align-items: center;
  border: 2px solid #e91e63;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  height: 36px;
}
/* 検索タイプのセレクトは廃止（単一入力に統合） */
.search-input {
  flex: 1;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}
.search-input::placeholder {
  color: #999;
}
.search-btn {
  background: #e91e63;
  color: white;
  border: none;
  padding: 6px 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}
.search-btn:hover {
  background: #c2185b;
}
/* 検索の詳細設定ボタン（検索ボックス左側） */
.search-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--secondary-color);
  font-size: 14px;
}
.search-settings-btn i {
  font-size: 16px;
}
.search-settings-btn-detail {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/*
 * 詳細検索モーダル（簡易実装）
 */
.advanced-search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  align-items: flex-start;
  justify-content: center;
  padding-top: 64px;
  z-index: 1050;
}
.advanced-search-modal[aria-hidden="false"] {
  display: flex;
}
.advanced-search-dialog {
  background: #fff;
  width: 520px;
  max-width: calc(100% - 40px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
/* Bootstrap sm未満（<576px）でモーダル調整 */
@media (max-width: 575.98px) {
  .advanced-search-modal {
    align-items: center;
    padding-top: 0;
  }
  .advanced-search-dialog {
    max-width: calc(100% - 32px);
    margin: 0 12px;
  }
}
.advanced-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.advanced-search-body {
  padding: 12px 16px;
}
.advanced-search-footer {
  padding: 12px 16px;
  text-align: right;
  border-top: 1px solid #eee;
}
.advanced-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.btn-apply {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

/*
 * メニュー（ヘッダー内）
 */
.header-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(255, 42, 122, 0.22);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: 0 4px 15px rgba(255, 42, 122, 0.06);
}
.nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: #111827;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.main-nav .nav-item:hover {
  color: #fff !important;
  background: var(--primary-gradient, linear-gradient(135deg, #ff2a7a 0%, #ff4b91 45%, #e11d68 100%)) !important;
  box-shadow: 0 4px 12px rgba(225, 29, 104, 0.3);
  text-decoration: none;
}
.nav-item i {
  font-size: 16px;
  margin-bottom: 0;
  color: var(--primary-color);
  transition: color 0.22s ease;
}
.main-nav .nav-item:hover i {
  color: #fff !important;
}
/* ドロップダウンは使用しないため関連レイアウトは削除 */

/*
 * お気に入りアイコン
 */
.favorite-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #e74c3c;
  font-size: 12px;
  position: relative;
  cursor: pointer;
}
.favorite-icon i {
  font-size: 18px;
  margin-bottom: 2px;
}
/* バッジ付きナビ（マイページ等） */
.nav-item-with-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  font-size: 12px;
}
.nav-item-with-badge .nav-item {
  margin-bottom: 0;
}
.nav-item-with-badge .favorite-count {
  position: absolute;
  top: -4px;
  right: -6px;
}
.favorite-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.favorite-text {
  font-size: 12px;
  margin-top: 2px;
}

/*
 * ボトムナビゲーション（モバイル最下部固定タイプ）
 */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-top: 1px solid #eaeaea;
  border-radius: 0;
  padding: 6px 0 calc(4px + env(safe-area-inset-bottom, 0px)) 0;
  z-index: 1000;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
  .header-menu {
    display: none !important;
  }
  .bottom-nav {
    display: flex !important;
  }
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  color: #666;
  font-size: 10px;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease;
  min-width: 0;
  flex: 1;
  margin: 0;
}
.bottom-nav-item:hover {
  text-decoration: none;
  color: var(--primary-color, #d81b60);
}
.bottom-nav-item i {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 0;
  transition: color 0.15s ease;
}
.bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -0.2px;
  transition: color 0.15s ease, font-weight 0.15s ease;
  text-align: center;
}
.bottom-nav-item span.nav-multiline,
.main-nav .nav-item span.nav-multiline {
  white-space: normal;
  line-height: 1.15;
  font-size: 9.5px;
  text-align: center;
}
.bottom-nav-item.active {
  color: var(--primary-color, #d81b60);
  background: transparent;
  border: none;
  box-shadow: none;
}
.bottom-nav-item.active i {
  color: var(--primary-color, #d81b60) !important;
  transform: none;
}
.bottom-nav-item.active span {
  color: var(--primary-color, #d81b60) !important;
  font-weight: 700;
}
.bottom-nav-item:hover:not(.active) {
  color: var(--primary-color, #d81b60);
}

/*
 * ドロワーメニュー（MENU ボタンから開く）
 * PC: 上からスライドダウン / SP: 下からスライドアップ
 */
.menu-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}
.menu-drawer.open {
  display: block;
}
.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  animation: drawerFadeIn 0.2s ease;
}
/* デフォルト（PC）: 上からスライドダウン */
.drawer-content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 0 0 16px 16px;
  animation: drawerSlideDown 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
@keyframes drawerSlideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
  }
  to {
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes drawerFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* SP（タブレット以下）: 下からスライドアップ */
/*
 * 検索モーダルスタイル（共通・デスクトップ・モバイル）
 */

/* 1. オーバーレイ（共通） */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(26, 26, 46, 0);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
}

.search-modal-overlay[aria-hidden="false"] {
  background: rgba(26, 26, 46, 0.4);
  opacity: 1;
  pointer-events: auto;
}

/* 2. モーダルダイアログ（共通のグラス感） */
.search-modal-dialog {
  background: #ffffff;
  width: 650px;
  max-width: calc(100% - 40px);
  border-radius: var(--radius-lg);
  border: none;
  box-shadow:
    0 24px 60px rgba(255, 42, 122, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.03);
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.search-modal-overlay[aria-hidden="false"] .search-modal-dialog {
  transform: translateY(0) scale(1);
}

/* 3. モーダルヘッダー */
.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 42, 122, 0.95) 0%,
    rgba(255, 82, 154, 0.95) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.search-modal-title {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.search-modal-title i {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.search-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  line-height: 1;
}

.search-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* 4. モーダルボディ＆フッター */
.search-modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 42, 122, 0.2) transparent;
}

.search-modal-body::-webkit-scrollbar {
  width: 6px;
}
.search-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.search-modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 122, 0.2);
  border-radius: var(--radius-pill);
}
.search-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 42, 122, 0.4);
}

.search-modal-footer {
  display: flex;
  padding: 16px 24px;
  background: rgba(248, 250, 252, 0.95);
}

/* 5. フッターアクションボタン */
.btn-search-modal-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(255, 42, 122, 0.3);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 110px;
}

.btn-search-modal-reset:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color-hover);
  transform: translateY(-1px);
}

.btn-search-modal-reset:active {
  transform: translateY(1px);
}

.btn-search-modal-submit {
  background: var(--primary-gradient, linear-gradient(135deg, #ff2a7a 0%, #ff4b91 45%, #e11d68 100%));
  border: none;
  color: #fff;
  padding: 12px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  box-shadow: 0 4px 15px rgba(225, 29, 104, 0.35);
}

.btn-search-modal-submit:hover {
  background: var(--primary-gradient-hover, linear-gradient(135deg, #ff3b85 0%, #ff5c9d 45%, #cc145b 100%));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 104, 0.45);
}

.btn-search-modal-submit:active {
  transform: translateY(0);
}

/* ナビボタンのスタイル調整 */
.main-nav button.nav-item {
  background: none;
  border: none;
  cursor: pointer;
}

/* 6. 検索フォーム入力部品 */
.search-form-group {
  margin-bottom: 20px;
}
.search-form-group:last-child {
  margin-bottom: 0;
}

.search-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.search-form-row .search-form-group {
  margin-bottom: 0;
}
.search-form-half {
  flex: 1;
  min-width: 0;
}

.search-form-label {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.search-form-label i {
  color: var(--primary-color);
  margin-right: 8px;
  font-size: 14px;
}

.search-form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 42, 122, 0.12);
  border-radius: 12px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.01);
}

.search-form-input:focus {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-color);
  box-shadow:
    0 0 0 4px rgba(255, 42, 122, 0.15),
    0 4px 12px rgba(255, 42, 122, 0.05);
}

.search-form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* 7. チェックボックス & ラジオボタン（タグピル型） */
.checkbox-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checkbox-btn {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.checkbox-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-btn-label {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 42, 122, 0.08);
  border-radius: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.checkbox-btn:hover .checkbox-btn-label {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-color-hover);
  transform: translateY(-1px);
}
.checkbox-btn input:checked + .checkbox-btn-label {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff529a 100%);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow:
    0 4px 12px rgba(255, 42, 122, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* 8. エリア選択グリッド（長方形ボタン） */
.modal-area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.modal-area-btn {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.modal-area-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.modal-area-btn-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 42, 122, 0.08);
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}
.modal-area-btn-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  line-height: 1.3;
}
.modal-area-btn:hover .modal-area-btn-label {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 42, 122, 0.08);
}
.modal-area-btn input:checked + .modal-area-btn-label {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff529a 100%);
  border-color: var(--primary-color);
  box-shadow:
    0 6px 16px rgba(255, 42, 122, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.modal-area-btn input:checked + .modal-area-btn-label .modal-area-btn-name {
  color: #fff;
}

/* 9. 年齢・予算・身長・スリーサイズ・評価スライダー群（統一ピンク仕様） */
.range-slider-container {
  padding: 0;
}
.range-slider-wrapper {
  position: relative;
  height: 6px;
  margin: 40px 0 20px;
}
.range-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: rgba(255, 42, 122, 0.1);
  border-radius: 3px;
}
.range-slider-range {
  position: absolute;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff6fa5 100%);
  border-radius: 3px;
}

/* つまみの上に追従するツールチップ */
.range-tooltip {
  position: absolute;
  top: -40px;
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--primary-color);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.3);
}
.range-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0 4px;
  border-style: solid;
  border-color: var(--primary-color) transparent transparent transparent;
}
.range-slider-input {
  position: absolute;
  width: 100%;
  height: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  top: 0;
  margin: 0;
  z-index: 3;
}
.range-slider-input.range-active {
  z-index: 4;
}

/* スライダー共通のつまみ（iOSライク・ピンクコア） */
.range-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow:
    0 2px 8px rgba(255, 42, 122, 0.3),
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 6px var(--primary-color);
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.range-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow:
    0 4px 12px rgba(255, 42, 122, 0.4),
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 6px var(--primary-color);
}
.range-slider-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow:
    0 2px 8px rgba(255, 42, 122, 0.3),
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 6px var(--primary-color);
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* 各スライダーのディスプレイ値表示 */
.age-range-display,
.budget-range-display,
.height-range-display,
.bodysize-range-display,
.rating-range-display {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 8px;
  font-size: 13px;
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 42, 122, 0.1);
}

/* 年齢・身長・B・W・H・平均支払額（使用金額）のディスプレイ値は幅を揃えて右寄せにする */
label.search-form-label .age-range-display,
label.search-form-label .budget-range-display,
label.search-form-label .height-range-display,
label.search-form-label .bodysize-range-display {
  display: inline-block !important;
  width: 160px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  white-space: nowrap !important;
}

/* 評価値のディスプレイ値も幅を揃えて中央寄せにする（横並びのため100pxで統一） */
label.search-form-label .rating-range-display {
  display: inline-block !important;
  width: 100px !important;
  flex: 0 0 100px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
}

/* スライダー個別の設定 */
.age-slider-compact,
.budget-slider-compact,
.height-slider-compact,
.bodysize-slider-compact,
.rating-slider-compact,
.rating-slider-sm {
  margin: 10px 0;
  height: 6px;
}

/* つまみのSVGカスタマイズ（アイコン種別を維持しながらブランドピンクに統一） */
/* 年齢 (人型アイコン - ピンク) */
.age-slider-compact .range-slider-input::-webkit-slider-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Ccircle cx='8' cy='5' r='3'/%3E%3Cpath d='M8 8c-3.5 0-5 2-5 4v1h10v-1c0-2-1.5-4-5-4z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 13px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}
.age-slider-compact .range-slider-input::-moz-range-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Ccircle cx='8' cy='5' r='3'/%3E%3Cpath d='M8 8c-3.5 0-5 2-5 4v1h10v-1c0-2-1.5-4-5-4z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 13px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}

/* 平均支払額 (¥マーク - ピンク) */
.budget-slider-compact .range-slider-input::-webkit-slider-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Ctext x='8' y='12' text-anchor='middle' font-size='10' font-weight='900' font-family='sans-serif'%3E¥%3C/text%3E%3C/svg%3E")
    no-repeat center;
  background-size: 13px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}
.budget-slider-compact .range-slider-input::-moz-range-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Ctext x='8' y='12' text-anchor='middle' font-size='10' font-weight='900' font-family='sans-serif'%3E¥%3C/text%3E%3C/svg%3E")
    no-repeat center;
  background-size: 13px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}

/* 身長 (定規 - ピンク) */
.height-slider-compact .range-slider-input::-webkit-slider-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Crect x='4' y='1' width='8' height='14' rx='1' fill='%23ff2a7a'/%3E%3Cline x1='6' y1='3' x2='9' y2='3' stroke='white' stroke-width='1.2'/%3E%3Cline x1='6' y1='5' x2='8' y2='5' stroke='white' stroke-width='0.9'/%3E%3Cline x1='6' y1='7' x2='9' y2='7' stroke='white' stroke-width='1.2'/%3E%3Cline x1='6' y1='9' x2='8' y2='9' stroke='white' stroke-width='0.9'/%3E%3Cline x1='6' y1='11' x2='9' y2='11' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 13px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}
.height-slider-compact .range-slider-input::-moz-range-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Crect x='4' y='1' width='8' height='14' rx='1' fill='%23ff2a7a'/%3E%3Cline x1='6' y1='3' x2='9' y2='3' stroke='white' stroke-width='1.2'/%3E%3Cline x1='6' y1='5' x2='8' y2='5' stroke='white' stroke-width='0.9'/%3E%3Cline x1='6' y1='7' x2='9' y2='7' stroke='white' stroke-width='1.2'/%3E%3Cline x1='6' y1='9' x2='8' y2='9' stroke='white' stroke-width='0.9'/%3E%3Cline x1='6' y1='11' x2='9' y2='11' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 13px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}

/* スリーサイズ (ダイヤ - ピンク) */
.bodysize-slider-compact .range-slider-input::-webkit-slider-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Cpath d='M8 1.5L14.5 8L8 14.5L1.5 8Z' fill='%23ff2a7a'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 12px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}
.bodysize-slider-compact .range-slider-input::-moz-range-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Cpath d='M8 1.5L14.5 8L8 14.5L1.5 8Z' fill='%23ff2a7a'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 12px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}

/* 10. ランキングモーダル用 */
.ranking-type-selector {
  display: flex;
  gap: 12px;
}
.ranking-type-option {
  flex: 1;
  cursor: pointer;
}
.ranking-type-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ranking-type-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 42, 122, 0.08);
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}
.ranking-type-label i {
  font-size: 18px;
  color: var(--text-muted);
}
.ranking-type-option:hover .ranking-type-label {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-color-hover);
}
.ranking-type-option input:checked + .ranking-type-label,
.ranking-type-label.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff529a 100%);
  border-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 42, 122, 0.25);
  z-index: 2;
}
.ranking-type-option input:checked + .ranking-type-label i,
.ranking-type-label.active i {
  color: #fff;
}

/* エリア選択リンクグリッド（ランキングモーダル内） */
.area-select-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.area-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 42, 122, 0.12);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}
.area-select-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  transition: color 0.2s ease;
}
.area-select-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  text-align: center;
  transition: color 0.2s ease;
}

.area-select-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #ff529a 100%);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 42, 122, 0.25);
}
.area-select-btn:hover .area-select-name,
.area-select-btn:hover .area-select-sub {
  color: #fff;
}

/* 11. 評価フィルター（クチコミ検索モーダル用 9項目グリッド） */
.rating-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
}
.rating-grid-item {
  display: flex;
  flex-direction: column;
}
.rating-item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* ハート型つまみのSVG（ピンク） */
.rating-slider-compact .range-slider-input::-webkit-slider-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Cpath fill-rule='evenodd' d='M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 12px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}
.rating-slider-compact .range-slider-input::-moz-range-thumb {
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Cpath fill-rule='evenodd' d='M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 12px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
}

.rating-slider-sm {
  margin: 30px 0 10px;
  height: 6px;
}
.rating-slider-sm .range-slider-track {
  height: 6px;
}
.rating-slider-sm .range-slider-range {
  height: 6px;
}
.rating-slider-sm .range-tooltip {
  top: -28px;
  font-size: 11px;
  padding: 2px 6px;
}
.rating-slider-sm .range-tooltip::after {
  border-width: 4px 4px 0 4px;
}
.rating-slider-sm .range-slider-input {
  height: 6px;
}
.rating-slider-sm .range-slider-input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Cpath fill-rule='evenodd' d='M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 11px;
}
.rating-slider-sm .range-slider-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.25);
  border: 2.5px solid var(--primary-color);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2a7a'%3E%3Cpath fill-rule='evenodd' d='M8 1.314C12.438-3.248 23.534 4.735 8 15-7.534 4.736 3.562-3.248 8 1.314z'/%3E%3C/svg%3E")
    no-repeat center;
  background-size: 11px;
}

/* 12. モバイルレイアウト（最大幅 1199.98px 未満での上書き） */
@media (max-width: 1199.98px) {
  .search-modal-overlay {
    align-items: flex-end;
    padding-top: 0;
    background: rgba(26, 26, 46, 0);
  }
  .search-modal-overlay[aria-hidden="false"] {
    background: rgba(26, 26, 46, 0.15);
  }
  .search-modal-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    border: none;
    transform: translateY(100%);
    box-shadow: 0 -8px 32px rgba(255, 42, 122, 0.1);
  }
  .search-modal-overlay[aria-hidden="false"] .search-modal-dialog {
    transform: translateY(0);
  }
  .search-modal-header {
    padding: 16px 20px;
    border-radius: 0;
  }
  .search-modal-title {
    font-size: 16px;
  }
  .search-modal-body {
    padding: 20px;
    max-height: none;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .search-modal-footer {
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .search-form-group {
    margin-bottom: 16px;
  }
  .search-form-label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .search-form-input {
    padding: 10px 12px;
    font-size: 16px; /* iOSのオートズーム防止 */
    border-radius: 10px;
  }
  .checkbox-btn-label {
    padding: 5px 12px;
    font-size: 12px;
  }

  .rating-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 14px;
  }

  /* スライダーのモバイルマージン調整 */
  .range-slider-wrapper {
    margin: 30px 0 12px;
  }
  .range-tooltip {
    top: -32px;
    font-size: 11px;
    padding: 2px 6px;
  }
  .range-tooltip::after {
    border-width: 3px 3px 0 3px;
  }

  .area-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .area-select-btn {
    padding: 12px 8px;
    border-radius: 10px;
  }
  .area-select-name {
    font-size: 13px;
  }
  .area-select-sub {
    font-size: 9px;
  }

  .search-form-row {
    flex-direction: column;
    gap: 0;
  }
  .search-form-row .search-form-group {
    margin-bottom: 16px;
  }
}

/* タブレット及びモバイルレスポンシブの細部調整 */
@media (max-width: 767.98px) {
  .rating-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 14px;
  }
  .ranking-type-selector {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 575.98px) {
  .rating-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .area-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

