@charset "UTF-8";
/* 店舗検索（/shop/、/shop/{都道府県}/ 共通）
   SPファースト：ベース=SP / 600px〜=TB / 1025px〜=PC */

/* 上部のグレー背景（パンくず・見出し・条件パネル） */
.shop-search-top {
  background: #f5f5f5;
  padding-bottom: 24px;
}

.shop-search {
  margin-top: 16px;
  color: #212020;
}

/* ページタイトル（● 店舗検索） */
.shop-search-top__title {
  margin: 16px 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: #212020;
}
.shop-search-top__title::before {
  content: "● ";
}

/* 件数・一覧へのリンク */
.shop-search__count {
  display: flex;
  align-items: baseline;
  width: fit-content;
  margin: 0;
  padding: 0 4px;
/*  background: #FCE62F;*/
  font-size: 1.6rem;
  line-height: 1;
/*  padding: 8px 5px;*/
  padding: 8px 0;
}
.shop-search__count-label {
  position: relative;
  top: -2px; /* 見た目の位置を微調整 */
}
.shop-search__count-main {
  font-size: 2.2rem;
  font-weight: 700;
}
.shop-search__count-num {
  margin: 0 2px;
}
.shop-search__jump {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
  color: inherit;
  text-decoration: none;
}
.shop-search__jump:hover {
  text-decoration: underline;
}

/* 適用中の条件 */
.shop-search__applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 12px;
  background: #fffbe3;
}
.shop-search__applied-ttl {
  font-size: 1.4rem;
  font-weight: 700;
}
.shop-search__applied-none {
  font-size: 1.4rem;
}
.shop-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-search__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0 4px 0 12px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}
.shop-search__chip-remove {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
}
.shop-search__chip-remove::before,
.shop-search__chip-remove::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: #212020;
}
.shop-search__chip-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.shop-search__chip-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 条件パネル */
.shop-search__panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}
.shop-search__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shop-search__panel-ttl-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
/* 「新しい条件を入力中」：キーワード・設備の編集値が、確定値と違う間だけ表示 */
.shop-search__editing {
  padding: 2px 8px;
  border-radius: 4px;
  background: #fffbe3;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}
.shop-search__editing[hidden] {
  display: none;
}
.shop-search__panel-ttl {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}
.shop-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 90px; /* 「閉じる」の幅に合わせて、開閉でサイズが変わらないようにする */
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #212020;
  border-radius: 999px;
  background: #fff;
  color: #212020;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
/* 「開く」でも「閉じる」と同じ3文字分の幅にして、記号の位置を変えない */
.shop-search__toggle-label {
  display: inline-block;
  min-width: 3em;
  overflow: hidden; /* 縦にスライドする文字を、この枠で切り取る */
  text-align: center;
  line-height: 1.5;
}
/* 文字の入れ替え：今の文字が上へ流れて消え、新しい文字が下から入る（出る＋入るで、パネルの開閉 .5s に合わせる） */
.shop-search__toggle-text {
  display: block;
  transition: transform .25s, opacity .25s;
}
/* 閉じるとき（data-dir="up"）：上へ消えて、下から入る */
.shop-search__toggle-text.is-out {
  transform: translateY(-100%);
  opacity: 0;
}
.shop-search__toggle-text.is-pre {
  transform: translateY(100%);
  opacity: 0;
  transition: none;
}
/* 開くとき（data-dir="down"）：下へ消えて、上から入る */
.shop-search__toggle-text[data-dir="down"].is-out {
  transform: translateY(100%);
}
.shop-search__toggle-text[data-dir="down"].is-pre {
  transform: translateY(-100%);
}
/* 開いているとき「−」、閉じているとき「＋」 */
.shop-search__toggle-icon {
  position: relative;
  width: 10px;
  height: 10px;
}
.shop-search__toggle-icon::before,
.shop-search__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}
.shop-search__toggle-icon::after {
  transform: rotate(90deg);
  transition: transform .5s;
}
/* 開くとき：縦棒が右回転（時計回り）で横棒に重なる */
.shop-search__toggle[aria-expanded="true"] .shop-search__toggle-icon::after {
  transform: rotate(180deg);
}
/* 開閉：高さを 0fr ⇄ 1fr で 0.5秒かけて変える */
.shop-search__body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .5s ease, visibility 0s linear .5s;
}
.shop-search__body.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .5s ease, visibility 0s;
}
.shop-search__body-inner {
  min-height: 0;
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .shop-search__body,
  .shop-search__body.is-open {
    transition: none;
  }
}

/* 小見出し（右に線） */
.shop-search__ttl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}
.shop-search__ttl::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cfcfcf;
}
.shop-search__note {
  margin: 8px 0 0;
  font-size: 1.4rem;
  color: #666;
}

/* エリア */
.shop-search__areas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.shop-search__area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 8px;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  background: #fff;
  color: #212020;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.shop-search__area:hover,
.shop-search__area.is-current {
  border-color: #fce62f;
  background: #fce62f;
}

/* 都道府県 */
.shop-search__prefs {
  margin-top: 16px;
  padding: 12px;
  background: #f5f5f5;
}
.shop-search__prefs-ttl {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
}
.shop-search__prefs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-search__pref {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 4px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  background: #fff;
  color: #212020;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.shop-search__pref:hover,
.shop-search__pref.is-current {
  border-color: #212020;
  background: #212020;
  color: #fff;
}

/* キーワード・設備 */
.shop-search__label {
  display: block;
  margin: 20px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
}
.shop-search__keyword {
  position: relative;
  margin-top: 8px;
}
.shop-search__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  background: #fff;
  color: #212020;
  font-size: 1.6rem; /* iOS のズーム防止 */
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.shop-search__input::-webkit-search-cancel-button {
  display: none;
}
.shop-search__input::placeholder {
  color: #8a8a8a;
}
.shop-search__keyword-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: 0;
  background: none;
  cursor: pointer;
}
.shop-search__keyword-clear[hidden] {
  display: none;
}
.shop-search__keyword-clear::before,
.shop-search__keyword-clear::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #212020;
}
.shop-search__keyword-clear::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.shop-search__keyword-clear::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.shop-search__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 12px;
}
.shop-search__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
}
.shop-search__option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #212020;
}
/* ボタン */
/* 「変更はまだ検索結果に反映されていません。」（入力中のみ表示） */
.shop-search__unsaved {
  margin: 20px 0 0;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #626262;
}
.shop-search__unsaved[hidden] {
  display: none;
}
.shop-search__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.shop-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0; /* 既存CSSの button の余白を打ち消す */
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}
.shop-search__btn--submit {
  background: #fce62f;
  color: #212020;
}
.shop-search__btn--submit:hover {
  opacity: .8;
}
.shop-search__btn--reset {
  border-color: #212020;
  background: #fff;
  color: #212020;
  font-size: 1.4rem;
}
a.shop-search__btn--reset:hover {
  background: #f5f5f5;
}
.shop-search__btn--reset.is-disabled {
  border-color: #cfcfcf;
  color: #9a9a9a;
  cursor: not-allowed;
}

/* 結果 */
.shop-search-results {
  padding: 24px 0 40px;
  background: #fff;
  color: #212020;
}
.shop-search-results__empty p {
  margin: 0 0 12px;
  color: #626262;
}
.shop-search-results__note {
  margin: 0;
  font-size: 1.2rem;
  color: #666;
}
.shop-search-results__group {
  margin-top: 24px;
}
.shop-search-results__pref {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}
#shop .shop-search-results__pref {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}
#shop .shop-search-results__pref::before {
  content: "";
  flex: 0 0 2px;
  height: 1.1em;
  background: #fce62f;
}
.shop-search-results__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 店舗カード（カード全体が詳細ページへのリンク） */
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px;
  border: 1px solid #d7d7d2;
  border-radius: 8px;
  background: #fff;
  line-height: 1.5;
  transition: background .2s;
}
.shop-card:hover {
  background: #fafaf7;
}
:where(.shop-card) p {
  margin: 0;
}
.shop-card__name {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.5;
  color: #212020;
}
/* 項目どうしの余白は margin-top 12px。アクセスが複数あるときは、行どうしの余白なし */
.shop-card__accesses {
  margin-top: 12px;
}
.shop-card__access {
  font-size: 1.5rem;
}
.shop-card__address {
  margin-top: 10px;
  font-size: 1.3rem;
  color: #626262;
}
.shop-card__facility {
  display: flex;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 0 16px;
  font-size: 1.4rem;
  font-weight: 700;
}
.shop-card__facility-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
/* 設備アイコン（検索欄と同じ .p-area-search-icon の大きさだけ調整） */
.shop-card__facility-icon {
  flex: none;
  width: 22px;
}
.shop-card__facility-icon span {
  font-size: 1.3rem;
  font-weight: 700;
}
#shop .shop-card__facility-icon {
  display: none;
}
#shop .shop-card__facility {
  gap: 4px 6px;
  font-size: 1.2rem;
}
#shop .shop-card__facility-item {
  padding: 4px 8px;
  background: #fce62f;
}
.shop-card__link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  color: #212020;
  text-decoration: none;
}
.shop-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}
#shop .shop-card__link {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}
#shop .shop-card__link::after {
  inset: 50% 18px auto auto;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
#shop .shop-card__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

@media screen and (max-width: 599px) {
  #shop > .shop-search-results > .wrap-inner--m {
    width: 100%;
  }
  #shop .shop-search-results__empty,
  #shop .shop-search-results__note {
    padding-inline: 16px;
  }
  #shop .shop-search-results__group {
    margin-top: 0;
  }
  #shop .shop-search-results__note + .shop-search-results__group {
    margin-top: 12px;
  }
  #shop .shop-search-results__pref {
    margin: 0;
    padding: 20px 16px;
  }
  #shop .shop-search-results__list {
    gap: 0;
    border-top: 1px solid #e6e6e6;
  }
  #shop .shop-search-results__list > .shop-card {
    padding: 18px 40px 18px 16px;
    border: 0;
    border-bottom: 1px solid #e6e6e6;
    border-radius: 0;
    overflow-wrap: anywhere;
  }
  #shop .shop-card__name {
    font-size: 1.8rem;
  }
  #shop .shop-card__accesses {
    margin-top: 4px;
  }
  #shop .shop-card__access {
    font-size: 1.3rem;
  }
  #shop .shop-card__facility {
    margin-top: 6px;
  }
}

/* ==========================================================
   TB 600px〜
========================================================== */
@media screen and (min-width: 600px) {
  .shop-search__count {
    font-size: 2rem;
  }
  .shop-search__count-main {
    font-size: 2.8rem;
  }
  .shop-search__panel {
    padding: 24px;
  }
  .shop-search-results__pref {
    font-size: 2.2rem;
  }
  .shop-card {
    padding: 24px;
  }
  #shop .shop-card {
    padding-right: 40px;
  }
  .shop-card__name {
    font-size: 2.2rem;
  }
  .shop-card__access {
    font-size: 1.6rem;
  }
  .shop-card__address {
    font-size: 1.4rem;
  }
	
#shop .shop-card__facility {
    font-size: 1.4rem;
	}
#shop .shop-card__facility-item {
  padding: 5px 8px;
}
	
  .shop-search__areas {
    grid-template-columns: repeat(3, 1fr);
  }
  .shop-search__prefs-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .shop-search__actions {
    flex-direction: row;
  }
  .shop-search__btn {
    min-width: 240px;
  }
}

/* ==========================================================
   PC 1025px〜
========================================================== */
@media screen and (min-width: 1025px) {
  .shop-search-top {
    padding-bottom: 32px;
  }
  .shop-search__toggle {
    min-width: 130px;
    font-size: 1.6rem;
  }
  .shop-search__panel {
    padding: 32px;
  }
  .shop-search__panel-ttl {
    font-size: 2rem;
  }
  .shop-search__ttl {
    font-size: 2.8rem;
    margin-top: 30px;
  }
  .shop-search__areas,
  .shop-search__prefs {
    margin-top: 24px;
  }
  .shop-search__areas {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .shop-search__prefs {
    padding: 16px;
  }
  .shop-search__prefs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .shop-search__prefs-list li {
    width: 110px;
  }
  .shop-search__chip {
    min-height: 44px;
    font-size: 1.4rem;
  }

  /* 都道府県（または地域）とフォームの間 */
  .shop-search__form {
    margin-top: 50px;
  }
  .shop-search__form > .shop-search__ttl:first-of-type {
    margin-top: 0;
  }
  .shop-search__btn {
    min-width: 280px;
  }

  .shop-search__option-txt {
    margin-bottom: 1px;
  }

  .shop-search-results__note {
    font-size: 1.4rem;
  }
}

/* ==========================================================
   店舗カードの2列：769px〜
========================================================== */
@media screen and (min-width: 769px) {
  .shop-search-results__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* 2列のとき、subgrid で横に並ぶカードの各項目の縦位置をそろえる。
   /shop/ の詳細リンクはカード全体を覆うため、内容の4行をそろえる。 */
@supports (grid-template-rows: subgrid) {
  @media screen and (min-width: 769px) {
    .shop-search-results__list {
      gap: 0 24px;
      margin-bottom: -24px; /* 最後のカードの下の margin ぶんを打ち消す */
    }
    .shop-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 5;
      margin-bottom: 24px;
    }
    #shop .shop-card {
      grid-row: span 4;
    }
    .shop-card__name {
      grid-row: 1;
    }
    .shop-card__accesses {
      grid-row: 2;
    }
    .shop-card__address {
      grid-row: 3;
    }
    .shop-card__facility {
      grid-row: 4;
    }
    .shop-card__link {
      grid-row: 5;
      margin-top: 0;
    }
    #shop .shop-card__link {
      grid-row: auto;
    }
  }
}

/* 検索中の全画面ローディング */
.shop-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(17, 17, 17, .6);
  animation: shop-loading-in .2s ease-out;
}
.shop-loading[hidden] {
  display: none;
}
.shop-loading__spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(252, 230, 47, .3);
  border-top-color: #fce62f;
  border-radius: 50%;
  animation: shop-loading-spin .8s linear infinite;
}
.shop-loading__txt {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}
@keyframes shop-loading-spin {
  to { transform: rotate(360deg); }
}
@keyframes shop-loading-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
