/* ============================================================
   CLL JAPAN フェチ検索モーダル CSS
   フェーズ4（DAY42第7セッション）
   既存のダークテーマ変数（variables.css）に準拠
   ============================================================ */

#cll-fetish-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 9000);
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#cll-fetish-modal.is-open {
  display: flex;
}

.cll-fetish-modal-box {
  background: var(--bg-card, #181818);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  padding: 24px;
  color: var(--text-primary, #fff);
}

.cll-fetish-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary, #aaa);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* タブ */
.cll-fetish-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.cll-fetish-tab {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cll-fetish-tab:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}
.cll-fetish-tab.active {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.cll-fetish-panel[hidden] { display: none; }

/* 詳細検索・クイック検索 共通（チェックボックス方式に統一・DAY42方針転換） */
.cll-fetish-axis-group { margin-bottom: 16px; }
.cll-fetish-axis { margin-bottom: 16px; }
.cll-fetish-axis-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #aaa);
  margin: 0 0 8px;
}
.cll-fetish-axis-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.cll-fetish-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary, #fff);
  cursor: pointer;
}
.cll-fetish-checkbox input { accent-color: var(--accent, #e8c47a); }

.cll-fetish-expand-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  margin-bottom: 12px;
  transition: color 0.15s, border-color 0.15s;
}
.cll-fetish-expand-btn:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

.cll-fetish-detail-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-card, #181818);
  padding: 12px 0;
  border-top: 1px solid var(--border-color, #333);
}
.cll-fetish-search-submit {
  width: 100%;
  background: var(--accent, #e8c47a);
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* フェチ検索結果ページ（page-fetish-search.php）共通 */
.fetish-results-count {
  font-size: 13px;
  color: var(--text-secondary, #aaa);
  margin: 4px 0 0;
}
.fetish-results-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.fetish-results-pagination a,
.fetish-results-pagination span {
  padding: 8px 12px;
  border: 1px solid var(--border-color, #333);
  border-radius: 6px;
  color: var(--text-primary, #fff);
  text-decoration: none;
  font-size: 13px;
}
.fetish-results-pagination .current {
  background: var(--accent, #e8c47a);
  color: #111;
  border-color: var(--accent, #e8c47a);
}

/* モバイル */
@media (max-width: 767px) {
  .cll-fetish-modal-box {
    max-height: 92vh;
    padding: 20px 16px;
  }
}

/* global-header内のFetishトリガーアイコン（cll-gh-right内で他アイコンと統一） */
#cll-gh-fetish-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary, #fff);
  text-decoration: none;
  flex-shrink: 0;
}
#cll-gh-fetish-trigger:hover {
  color: var(--accent, #e8c47a);
}
.cll-gh-fetish-label {
  display: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .cll-gh-fetish-label {
    display: inline;
  }
}

/* .cll-gh-right はmax-width:767px時のみglobal-header.css側でflex定義済みだったため、
   PC幅（768px以上）でFetishトリガー追加により複数子要素になった際の縦積み崩れを補完 */
@media (min-width: 768px) {
  .cll-gh-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* クリアボタン */
.cll-fetish-clear {
  display: block;
  margin: 12px 0 4px auto;
  padding: 4px 14px;
  background: transparent;
  border: 1px solid var(--text-muted, #888);
  border-radius: 4px;
  color: var(--text-muted, #888);
  font-size: 12px;
  cursor: pointer;
}
.cll-fetish-clear:hover {
  border-color: var(--text-primary, #fff);
  color: var(--text-primary, #fff);
}
