@charset "UTF-8";
/* =====================================================================
   store-search.css
   店舗検索コンポーネント（location カスタム投稿 / cat_area・brand・purpose）
   ---------------------------------------------------------------------
   ・全ページ共通で読み込む想定（inc/enqueue.php で enqueue）
   ・.storesearch にスコープ。色は CSS 変数 --ss-* で管理
   ・ページ別テーマは修飾クラス .storesearch--{theme} で --ss-accent 等を上書き
       例) .storesearch--pilates / .storesearch--24h / .storesearch--semi / .storesearch--top
   ===================================================================== */

.storesearch {
  /* ---- テーマ変数（既定：無彩色グレー系） ---- */
  --ss-accent:      #888888;   /* メインカラー（プルダウン矢印・チップ・アクティブ枠） */
  --ss-accent-dark: #666666;   /* hover 時 */
  --ss-imgbg:       #e8e8e8;   /* 画像未設定時／画像背景の淡色 */
  --ss-text:        #333333;   /* 基本文字色 */
  --ss-sub:         #6b6b6b;   /* アクセス等の補足文字 */
  --ss-line:        #e2e2e2;   /* 罫線 */
  --ss-chip-bg:     #f0f0f0;   /* チップ背景 */

  --ss-radius:      14px;      /* カード角丸 */
  --ss-gap:         24px;      /* カード間 */

  /* エリアボタン（グレー系に統一） */
  --ss-area-btn:      #888888;
  --ss-area-btn-dark: #666666;

  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ss-text);
  line-height: 1.7;
}
.storesearch *,
.storesearch *::before,
.storesearch *::after { box-sizing: border-box; }
.storesearch img { max-width: 100%; height: auto; display: block; }
.storesearch button { font-family: inherit; cursor: pointer; }

/* =========================================================
   フリーワード検索（ドロップダウンの上・中央寄せ・幅50%）
   ========================================================= */
.storesearch__freeword {
  width: 50%;
  max-width: 520px;
  margin: 0 auto 28px;
}
.storesearch__search {
  position: relative;
  display: flex;
  align-items: center;
}
.storesearch__search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--ss-sub);
  pointer-events: none;
}
.storesearch__search-icon svg { display: block; width: 100%; height: 100%; }
.storesearch__input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ss-text);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 13px 18px 13px 44px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: border-color .2s, box-shadow .2s;
}
.storesearch__input::placeholder { color: #9a9a9a; }
.storesearch__input:focus {
  outline: none;
  border-color: var(--ss-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ss-accent) 20%, transparent);
}

/* =========================================================
   フィルター①：エリアから探す（ボタン・1行フル幅）
   ========================================================= */
.storesearch__areafilter {
  margin-bottom: 22px;
}
.storesearch__areabtns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.storesearch__areabtn {
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--ss-area-btn);
  border-radius: 999px;
  padding: 13px 26px;
  transition: background .2s, box-shadow .2s, transform .05s;
}
.storesearch__areabtn:hover { background: var(--ss-area-btn-dark); color: #fff; }
.storesearch__areabtn:active { transform: translateY(1px); }
.storesearch__areabtn.is-active {
  background: var(--ss-area-btn-dark);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ss-area-btn) 28%, transparent);
}

/* =========================================================
   フィルター②：ブランド／目的（ドロップダウン 2 列）
   ========================================================= */
.storesearch__filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}
.storesearch__field { display: flex; flex-direction: column; }
.storesearch__label {
  font-weight: 700;
  font-size: 15px;
  color: var(--ss-text);
  margin-bottom: 12px !important;
}
.storesearch__selectwrap { position: relative; }
.storesearch__selectwrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ss-accent);
  border-bottom: 2px solid var(--ss-accent);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.storesearch__select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ss-text);
  background: #fff;
  border: 1px solid var(--ss-accent);
  border-radius: 999px;
  padding: 13px 42px 13px 20px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.storesearch__select:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ss-accent) 25%, transparent);
}

/* =========================================================
   選択中タームのチップ
   ========================================================= */
.storesearch__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  min-height: 0;
}
.storesearch__chips:empty { margin-bottom: 0; }
.storesearch__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ss-accent);
  background: var(--ss-chip-bg);
  border: 1px solid var(--ss-accent);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
}
.storesearch__chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--ss-accent);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  transition: background .2s;
}
.storesearch__chip-x:hover { background: var(--ss-accent-dark); }

/* ブランド選択時のチップカラー（ブランドslugに応じた配色） */
.storesearch__chip--semipersonal {
  color: #02B9A0; background: #eef7f5; border-color: #02B9A0;
}
.storesearch__chip--semipersonal .storesearch__chip-x { background: #02B9A0; }
.storesearch__chip--pilates {
  color: #7299C9; background: #eef2f9; border-color: #7299C9;
}
.storesearch__chip--pilates .storesearch__chip-x { background: #7299C9; }
.storesearch__chip--24h {
  color: #EB3699; background: #fdeef6; border-color: #EB3699;
}
.storesearch__chip--24h .storesearch__chip-x { background: #EB3699; }

/* =========================================================
   店舗一覧（PC 3 列 / SP 2 列）
   ========================================================= */
.storesearch__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ss-gap);
}
.storesearch__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}
.storesearch__card.is-hidden { display: none; }

.storesearch__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ss-imgbg);
  overflow: hidden;
}
.storesearch__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.storesearch__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ss-accent);
  background: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.storesearch__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 20px 20px 22px;
  background: var(--ss-accent);   /* 画像下のテキスト部：ブランドカラー背景 */
}
.storesearch__name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}
.storesearch__access {
  font-size: 13px;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 10px;
}
.storesearch__detail {
  font-size: 13px;
  line-height: 1.8;
  color: #fff;
  margin: .5em 0 1em;
}
.storesearch__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1em;
}
.storesearch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  padding: 12px 8px;
  transition: background .2s, color .2s, opacity .2s;
}
/* 体験予約：白背景＋ブランドカラー文字（旧hover相当）。hoverは半透明に */
.storesearch__btn--reserve {
  color: var(--ss-accent) !important;
  background: #fff;
}
.storesearch__btn--reserve:hover {
  background: #fff;
  color: var(--ss-accent) !important;
  opacity: .8;
}
/* 詳細を見る：白背景のまま。color は !important（pilates-commmon.css の a:hover に負けるため）。hoverは半透明に */
.storesearch__btn--detail {
  color: var(--ss-text) !important;
  background: #fff;
  border: 1px solid #fff;
}
.storesearch__btn--detail:hover { color: var(--ss-text) !important; opacity: .8; }

/* 結果ゼロ件 */
.storesearch__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ss-sub);
  font-size: 15px;
  padding: 48px 0;
}
.storesearch__empty[hidden] { display: none; }

/* =========================================================
   「店舗一覧を見る」ボタン
   NEWS の「すべて見る」と同じ形状・矢印。色は全ブランド共通グレー。
   ========================================================= */
.storesearch__more {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.storesearch__more[hidden] { display: none; }
.storesearch__morebtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 240px;
  height: 56px;
  background-color: #888888 !important;
  border: 2px solid #888888;
  border-radius: 4px;
  color: #ffffff !important;
  text-decoration: none;
  transition: all .3s ease;
}
.storesearch__morebtn:hover {
  background-color: transparent !important;
  color: #888888 !important;
}
.storesearch__moretext {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}
.storesearch__morearrow {
  position: relative;
  width: 14px;
  height: 10px;
  display: inline-block;
  flex-shrink: 0;
}
.storesearch__morearrow::before {
  content: "";
  position: absolute;
  top: 2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.storesearch__morearrow::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 13px;
  height: 2px;
  background-color: currentColor;
}

/* =====================================================================
   SP (max-width: 767px)
   ===================================================================== */
@media screen and (max-width: 767px) {
  .storesearch__freeword {
    width: 100%;
    max-width: none;
    margin-bottom: 18px;
  }

  /* エリアボタン：横並び維持・文字と余白を縮小 */
  .storesearch__areafilter { margin-bottom: 16px; }
  .storesearch__areabtns { gap: 8px; }
  .storesearch__areabtn {
    font-size: 12px;
    padding: 10px 16px;
  }

  /* ブランド／目的：PCと同じ2列を維持・文字縮小 */
  .storesearch__filters {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }
  .storesearch__label { font-size: 13px; margin-bottom: 8px !important; }
  .storesearch__select { font-size: 13px; padding: 11px 34px 11px 14px; }
  .storesearch__chips { margin-bottom: 28px; }

  .storesearch__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .storesearch__body { padding: 14px 14px 16px; }
  .storesearch__name { font-size: 15px; }
  .storesearch__access { font-size: 12px; }
  .storesearch__detail { font-size: 12px; margin-bottom: 14px; }
  .storesearch__actions { grid-template-columns: 1fr; gap: 8px; }
  .storesearch__btn { font-size: 13px; padding: 11px 8px; }
  .storesearch__badge { font-size: 10px; padding: 3px 12px; }

  .storesearch__more { margin-top: 40px; }
  .storesearch__morebtn { width: 240px; height: 56px; }
  .storesearch__moretext { font-size: 1rem; }
}

/* =====================================================================
   テーマ別カラー
   ===================================================================== */
/* ピラティス（page-pilates）：水色 */
.storesearch--pilates {
  --ss-accent:      #888888;
  --ss-accent-dark: #666666;
  --ss-imgbg:       #e8e8e8;
  --ss-chip-bg:     #f0f0f0;
}
/* 女性専用 24 時間ジム（FLATTE24 リニューアルのトンマナに合わせて調整） */
.storesearch--24h {
  --ss-accent:      #F77FA6;
  --ss-accent-dark: rgb(216, 49, 93);
  --ss-imgbg:       #feebef;
  --ss-chip-bg:     #fdeef6;
}
/* セミパーソナル */
.storesearch--semi {
  --ss-accent:      #F0A500;
  --ss-accent-dark: #d29200;
  --ss-imgbg:       #fdf1d8;
  --ss-chip-bg:     #fdf6e6;
}
/* トップ（既定グリーンのままなので --top は上書き不要だが用意） */
.storesearch--top {
  --ss-accent:      #888888;
  --ss-accent-dark: #666666;
  --ss-imgbg:       #e8e8e8;
  --ss-chip-bg:     #f0f0f0;
}

/* =====================================================================
   カード単位のブランド配色（location の brand ターム）
   ---------------------------------------------------------------------
   .storesearch__card--{brand} で CSS 変数を上書きする。カードは
   .storesearch（ページ全体のテーマ）より内側なので、カード側が優先される。
   反映先：バッジ文字色 / 体験予約ボタン背景 / 詳細ボタン hover / 画像背景
   ===================================================================== */
/* セミパーソナル：ロゴのグリーン */
.storesearch__card--semipersonal {
  --ss-accent:      #00B9A0;
  --ss-accent-dark: #009684;
  --ss-imgbg:       #d7f1ec;
}
/* 女性専用 24 時間ジム：ピンク（FLATTE24 リニューアルのトンマナに合わせて調整） */
.storesearch__card--24h {
  --ss-accent:      #F77FA6;
  --ss-accent-dark: rgb(216, 49, 93);
  --ss-imgbg:       #feebef;
}
/* ピラティス：現状維持（page-pilates のテーマ色と同じ水色） */
.storesearch__card--pilates {
  --ss-accent:      #7299C9;
  --ss-accent-dark: #5f86b8;
  --ss-imgbg:       #e5ecf5;
}


/* ===== 共通「全国のフラッテを探す」セクション ===== */
.storesearch-section { padding: 90px 20px; background: #fff; }
.storesearch-section__inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.storesearch-section__title { margin: 0 0 42px; text-align: center; font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; line-height: 1.4; letter-spacing: .06em; color: #888; }
.storesearch-section--top .storesearch-section__title { color: var(--main-green, #00B9A0); }
.storesearch-section--pilates .storesearch-section__title { color: #7299C9; }
.storesearch-section--24h .storesearch-section__title { color: #F77FA6; }
.storesearch-section--semi .storesearch-section__title { color: #00B9A0; }
.storesearch__thumb-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 28px; }
.storesearch__thumb .storesearch__fallback-logo { width: auto; height: auto; max-width: 48%; max-height: 48%; object-fit: contain; }
@media (max-width: 767px) {
  .storesearch-section { padding: 60px 16px; }
  .storesearch-section__title { margin-bottom: 28px; font-size: 26px; }
  .storesearch__thumb-fallback { padding: 18px; }
  .storesearch__thumb .storesearch__fallback-logo { max-width: 56%; max-height: 56%; }
}

/* ---------------------------------------------------------------------
   Search UI common neutral color
   プルダウンと「店舗一覧はこちら」はページテーマに関係なくグレーで統一。
   カード・チップ・セクションタイトルのブランドカラーはそのまま維持する。
   --------------------------------------------------------------------- */
.storesearch .storesearch__select {
  border-color: #888888;
}
.storesearch .storesearch__selectwrap::after {
  border-right-color: #888888;
  border-bottom-color: #888888;
}
.storesearch .storesearch__select:focus {
  box-shadow: 0 0 0 3px rgba(136, 136, 136, .25);
}


/* Top page: match NEWS green */
.storesearch-section--top .storesearch__morebtn {
  background-color: var(--main-green, #00B9A0) !important;
  border-color: var(--main-green, #00B9A0);
  color: #ffffff !important;
}
.storesearch-section--top .storesearch__morebtn:hover {
  background-color: transparent !important;
  color: var(--main-green, #00B9A0) !important;
}
