@charset "utf-8";

/* =========================================================
   店舗検索結果ページ (shop/result/ , shop/result-region/)
   - 検索条件サマリー (.search-criteria)
   - 都道府県ジャンプリスト
   - エリア別 店舗カード一覧
   - Google マップ表示 (地域検索時)
   ========================================================= */

/* ===========================================================
   検索条件サマリー
   =========================================================== */
.sec-search-criteria {
  padding: 0 0 64px;
  background: var(--white);
}
.search-criteria {
  background: var(--tan);
  border-radius: 16px;
  padding: 28px 40px;
  position: relative;
  color: var(--white);
}
.search-criteria-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.5);
}
.search-criteria-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.search-criteria dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 0;
  font-size: 18px;
}
.search-criteria dt {
  font-weight: 700;
  padding-right: 8px;
}
.search-criteria dd {
  margin: 0;
}
.btn-criteria-change {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 24px;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  font-size: 20px;
  border-radius: 999px;
  transition: opacity .2s;
  flex-shrink: 0;
}
.btn-criteria-change:hover { opacity: .85; }
.btn-criteria-change img {
  display: block;
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(99%) saturate(7491%) hue-rotate(355deg) brightness(94%) contrast(96%);
}

/* ===========================================================
   Google マップ (地域検索時)
   =========================================================== */
.sec-shop-map {
  padding: 0 0 32px;
  background: var(--white);
}
.shop-map-embed {
  width: 100%;
  height: 360px;
  background: #e5e3d8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}
.shop-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.shop-map-pref {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 700;
}
.shop-map-pref .label {
  flex-shrink: 0;
}
.shop-map-pref .search-select-wrap {
  max-width: 280px;
  flex: 1;
}

/* ===========================================================
   都道府県ジャンプリスト (検索結果トップの2列グリッド)
   =========================================================== */
.sec-pref-jump {
  padding: 0 0 64px;
  background: var(--white);
}
.pref-jump-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 80px;
}
/* 各行を grid で揃え、名前列は固定幅(最長ラベル基準)、その右にプルダウンを配置 */
.pref-jump-item {
  display: grid;
  grid-template-columns: 220px 220px;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}
.pref-jump-item .pref-name {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}
.pref-jump-item .pref-city-select-wrap {
  position: relative;
  width: 100%;
}
.pref-jump-item .pref-city-select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 16px;
  border: 1.5px solid var(--red);
  background: var(--white);
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.pref-jump-item .pref-city-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}

/* ===========================================================
   店舗一覧 (都道府県 > エリア > 店舗カード)
   =========================================================== */
.sec-store-list {
  padding: 16px 0 96px;
  background: var(--white);
}
.store-list-block {
  background: var(--cream);
  border-radius: 16px;
  padding: 32px 32px 40px;
  margin-bottom: 32px;
}
.store-list-pref {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}
.store-area {
  margin-top: 100px;
}
.store-area:first-of-type {
  margin-top: 0;
}
.store-area-name {
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray);
}
.store-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.store-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 8px;
  padding: 18px 22px;
  transition: box-shadow .2s, transform .15s;
  color: var(--text);
}
.store-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.store-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo  arrow"
    "name  arrow";
  column-gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray);
  margin-bottom: 12px;
}
.store-card-head .brand-logo {
  grid-area: logo;
  width: 96px;
  height: auto;
  object-fit: contain;
  margin-bottom: 8px;
}
.store-card-head .store-name {
  grid-area: name;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.store-card-head .arrow {
  grid-area: arrow;
  align-self: center;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text);
  border-right: 2px solid var(--text);
  transform: rotate(45deg);
}
.store-card .address {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* ===========================================================
   レスポンシブ
   =========================================================== */
@media (max-width: 768px) {
  .search-criteria { padding: 20px; border-radius: 12px; }
  .search-criteria-body { flex-direction: column; align-items: stretch; }
  .btn-criteria-change { align-self: center; }

  .pref-jump-grid { grid-template-columns: 1fr; gap: 12px; }
  .pref-jump-item {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .pref-jump-item .pref-name { font-size: 14px; }
  .pref-jump-item .pref-city-select-wrap { width: 180px; }
  .pref-jump-item .pref-city-select {
    height: 36px;
    padding: 0 28px 0 10px;
    font-size: 13px;
    letter-spacing: 0;
  }
  .pref-jump-item .pref-city-select-wrap::after {
    right: 10px;
    width: 7px;
    height: 7px;
  }

  .store-list-block { padding: 20px; }
  .store-list-pref { font-size: 18px; }
  .store-cards { grid-template-columns: 1fr; }

  .shop-map-embed { height: 240px; }
  .shop-map-pref { flex-wrap: wrap; }
}
