@charset "UTF-8";
/**
 * a26: 最寄り店舗ファインダー
 * 出力先はトップ（is_home）・/shop・/map の3箇所のみ。
 *
 * 書き方の制約（既存サイトの事情）
 *  1. トップの style.css は `*:where(...) { all: unset }` で全要素をリセットしている。
 *     input / select / button も対象なので、枠線・余白・文字色はすべて明示する。
 *     :where() は詳細度0なので、ここの素の要素セレクタでも上書きできる。
 *  2. /shop・/map では base.min.css の `a:link`（詳細度 0-1-1）が効き、リンクが
 *     グレー(#7A7A7A)になる。リンク系は必ず .shop-finder を前置した 0-2-0 で書く。
 *  3. 色は既存に合わせる。水色#00AECB=オンライン／緑#1EAD82=訪問／橙#FF7413=来店。
 *  4. **rem を使わないこと。** `html { font-size: 62.5% }` は global/base.css にあり、
 *     これは /shop・/map では読み込まれるがトップ（is_home）では読み込まれない。
 *     同じ 1.4rem が /shop で14px、トップで22.4px になってしまう。
 *     トップの style.css 自体も全て px なので、ここも px で揃える。
 */

/* `all: unset` のリセットが効いている環境で hidden 属性が無効化されるのを防ぐ。
   結果・補足・0件案内は JS が出すまで必ず畳んでおく必要がある。 */
.shop-finder [hidden] {
  display: none;
}

.shop-finder {
  margin: 0 auto 24px;
  padding: 24px 28px;
  background: #f3fbfd;
  border: 1px solid #cfeef4;
  border-radius: 8px;
  color: #333333;
  font-size: 14px;
  line-height: 1.6;
}

.shop-finder__inner {
  max-width: 720px;
  margin: 0 auto;
}

.shop-finder__heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: #111111;
}

/* --- フォーム --------------------------------------------------------- */

.shop-finder__form {
  display: block;
  margin: 0;
}

.shop-finder__field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* 「お住まいの地域」が7文字あるので、幅は必ずそれが1行に収まるだけ取る。
   折り返すと入力欄の高さと段差ができて行が崩れる。 */
.shop-finder__label {
  flex: 0 0 auto;
  width: 7.5em;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: #111111;
}

.shop-finder .shop-finder__zip {
  flex: 1 1 10em;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #b9dfe7;
  border-radius: 4px;
  font-size: 16px; /* iOS で focus 時に拡大されないよう16px以上 */
  font-family: inherit;
  line-height: 44px;
  color: #111111;
  letter-spacing: 0.08em;
}

.shop-finder .shop-finder__zip::placeholder {
  color: #9aa5a8;
}

.shop-finder .shop-finder__select {
  flex: 1 1 8em;
  min-width: 0;
  height: 44px;
  padding: 0 30px 0 12px;
  background-color: #ffffff;
  /* 三角のSVGをインラインで持つ。appearance:none でネイティブの矢印を消しているため、
     代わりの矢印が無いと選択肢があることが分からなくなる。 */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2300aecb' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 8px;
  border: 1px solid #b9dfe7;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px;
  font-family: inherit;
  color: #111111;
  cursor: pointer;
}

.shop-finder .shop-finder__select:disabled {
  background-color: #f0f4f5;
  color: #9aa5a8;
  cursor: default;
}

.shop-finder .shop-finder__submit {
  flex: 0 0 auto;
  min-width: 6em;
  height: 44px;
  padding: 0 20px;
  background: #ff7413;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.shop-finder .shop-finder__submit:hover,
.shop-finder .shop-finder__submit:focus-visible {
  opacity: 0.85;
}

.shop-finder__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  font-size: 12px;
  color: #6b7678;
}

.shop-finder__or::before,
.shop-finder__or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #cfeef4;
}

.shop-finder__error {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
}

/* --- 結果 ------------------------------------------------------------- */

/* 結果の差し替えでレイアウトが動かないよう最低高を確保する。
   （表示は「探す」のクリック直後なので CLS には算入されないが、
   再検索のたびに下の内容が跳ねるのを避ける）
   0件・県外のときは見出し1行しか入らず、この最低高が空白として見えてしまうので
   JS が -empty を付けて解除する。 */
.shop-finder__result:not([hidden]) {
  min-height: 88px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #cfeef4;
}

.shop-finder__result.-empty {
  min-height: 0;
}

.shop-finder__resultHeading {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #111111;
}

.shop-finder__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.shop-finder__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e3eff1;
  border-radius: 6px;
}

.shop-finder__itemHead {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 18em;
  min-width: 0;
}

.shop-finder__rank {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: #00aecb;
  border-radius: 50%;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.shop-finder__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.shop-finder__km {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: #00819a;
  white-space: nowrap;
}

.shop-finder__btns {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.shop-finder .shop-finder__btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.shop-finder .shop-finder__btn.-detail {
  background: #ffffff;
  border: 1px solid #00aecb;
  color: #00819a;
}

.shop-finder .shop-finder__btn.-reserve {
  background: #ff7413;
  border: 1px solid #ff7413;
  color: #ffffff;
}

.shop-finder .shop-finder__btn:hover,
.shop-finder .shop-finder__btn:focus-visible {
  opacity: 0.85;
}

/* 0件時の「（参考）最も近い店舗」。訪問・オンラインの案内（.shop-finder__alt）の下に置く。 */
.shop-finder__nearest {
  margin: 12px 0 0;
  font-size: 13px;
  color: #333333;
}

.shop-finder .shop-finder__nearestLink {
  margin-left: 10px;
  color: #00819a;
  font-weight: 700;
  text-decoration: underline;
}

.shop-finder__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #55605f;
}

.shop-finder .shop-finder__noteLink {
  color: #00819a;
  font-weight: 700;
  text-decoration: underline;
}

.shop-finder .shop-finder__noteLink:hover,
.shop-finder .shop-finder__noteLink:focus-visible {
  color: #00aecb;
}

/* --- 0件・県外のときの受け皿 ------------------------------------------
 * 中身は _include/shopAlternative.php（店舗一覧末尾と同一の文言・2ボタン）。
 *
 * その .shop-alt のスタイルは assets/css/shop/detail.css にあるが、
 * detail.css はトップと /map では読み込まれない（読み込むと .service article や
 * .sns figure などの汎用セレクタが他ページに漏れる）。
 * そこで .shop-finder__alt 配下にスコープした写しをここに持つ。
 * detail.css 側は1行も変更していないため、店舗詳細24本・一覧・エリアページの
 * 見え方はこのファイルの有無にかかわらず変わらない。
 * 値を変えるときは detail.css の .shop-alt ブロックと必ず両方直すこと。
 * ------------------------------------------------------------------- */

.shop-finder__alt {
  margin-top: 16px;
}

.shop-finder__alt .shop-alt {
  margin: 0;
  padding: 20px 24px;
  background: #ffffff;
  border: 1px solid #cfeef4;
  border-radius: 8px;
}

.shop-finder__alt .shop-alt__heading {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: #111111;
}

.shop-finder__alt .shop-alt__lead {
  margin: 0 auto 16px;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  color: #333333;
}

.shop-finder__alt .shop-alt__lead b {
  font-weight: 700;
  color: #111111;
}

.shop-finder__alt .shop-alt__list {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-finder__alt .shop-alt__item {
  flex: 1 1 0;
  max-width: 340px;
}

/* アイコン（icon_online.png / icon_visit.png）は白一色の透過画像なので背景は必ず色地にする。
   セレクタは 0-3-0 で base.css の a:link（0-1-1）を確実に上回る。 */
.shop-finder__alt .shop-alt .shop-alt__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 18px;
  border-radius: 6px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.shop-finder__alt .shop-alt__btn.-online {
  background: #00aecb;
}

.shop-finder__alt .shop-alt__btn.-visit {
  background: #1ead82;
}

.shop-finder__alt .shop-alt__btn:hover,
.shop-finder__alt .shop-alt__btn:focus-visible {
  transform: translateY(-3px);
}

.shop-finder__alt .shop-alt__btnIcon {
  flex: 0 0 auto;
  display: flex;
}

.shop-finder__alt .shop-alt__btnIcon img {
  display: block;
  width: 30px;
  height: 30px;
}

.shop-finder__alt .shop-alt__btnBody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.shop-finder__alt .shop-alt__btnTitle {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.shop-finder__alt .shop-alt__btnNote {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.9;
}

/* --- /map の位置情報まわり -------------------------------------------- */

/* 位置情報が取れなかったときに地図リストの上へ出す一文。
   alert() の代わりで、閉じても情報が消えないようその場に残す。 */
.map-geoNotice {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #fff6ec;
  border: 1px solid #ffd7ae;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: #6b4a22;
}

/* 位置情報が取れたときだけ各店舗に出る距離 */
.listpost .itembox .item .shop-distance {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #00819a;
}

/* --- SP --------------------------------------------------------------- */

@media only screen and (max-width: 767px) {
  .shop-finder {
    margin-bottom: 20px;
    padding: 18px 16px;
  }

  .shop-finder__heading {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .shop-finder__label {
    width: 100%;
    margin-bottom: -2px;
    font-size: 12px;
  }

  /* 入力欄は全幅、都道府県・市区町村は半分ずつ。
     入力欄の固有幅（input の size 既定）が効くと「探す」が中途半端な幅で
     折り返すので、basis は 0 にして明示的に幅を決める。 */
  .shop-finder .shop-finder__zip {
    flex: 1 1 100%;
  }

  .shop-finder .shop-finder__select {
    flex: 1 1 calc(50% - 4px);
  }

  /* 「探す」は郵便番号側・市区町村側ともに全幅で下に置く（押しやすさと見た目を揃える） */
  .shop-finder .shop-finder__submit {
    flex: 1 1 100%;
    min-width: 0;
  }

  .shop-finder__or {
    margin: 12px 0;
  }

  .shop-finder__result:not([hidden]) {
    min-height: 0;
    margin-top: 16px;
    padding-top: 16px;
  }

  .shop-finder__item {
    padding: 10px 12px;
  }

  .shop-finder__itemHead {
    flex: 1 1 100%;
  }

  .shop-finder__btns {
    flex: 1 1 100%;
  }

  .shop-finder .shop-finder__btn {
    flex: 1 1 0;
  }

  .shop-finder__alt .shop-alt {
    padding: 16px 14px;
  }

  .shop-finder__alt .shop-alt__lead {
    margin-bottom: 14px;
    font-size: 12px;
    text-align: left;
  }

  .shop-finder__alt .shop-alt__list {
    flex-direction: column;
    gap: 10px;
  }

  .shop-finder__alt .shop-alt__item {
    max-width: none;
  }
}
