/*
 * 店舗検索ページ スタイル(モバイルファースト・レスポンシブ)
 * 利用者の大半がスマホ想定。まずスマホ幅で最適化し、広い画面は @media で拡張する。
 * 差し替え前提のため装飾は控えめ。
 */

:root {
  --max-width: 960px;
  --border: #fff;
  --text: #383838;
  --text-sub: #666;
  --bg: #e6e6e6;
  --section-bg: #e6e6e6;
  --accent: #df0515;
  --accent-light: #f9cdd0;
  --surface: #f0f0f0;
}

* {
  box-sizing: border-box;
}

html {
  /* iOS でフォーム操作時に文字が拡大されないよう基準を 16px 以上に保つ */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Hiragino Sans",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
}

/* ── フィルタ部(上部に固定して長い一覧でも操作しやすく)
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem 1rem;
}
── */
h1 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.keyword-search {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.keyword-search__field {
  flex: 1;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.field span {
  font-size: 0.8rem;
  color: var(--text-sub);
}

select,
input[type="search"] {
  width: 100%;
  /* 16px 未満だと iOS で自動ズームするため 1rem(=16px)を維持 */
  font-size: 1rem;
  min-height: 44px; /* タップしやすい高さ */
  padding: 0 0.75rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

input[type="search"] {
  background: #fff;
}

select {
  appearance: none;
  -webkit-appearance: none;
  /* 右端に三角のインジケータを描画 */
  background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
}

select:disabled {
  background-color: #f0f0f0;
  color: #999;
}

select:focus,
input[type="search"]:focus,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button {
  font: inherit;
}

.clear-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  color: var(--text-sub);
  background: #fff;
  cursor: pointer;
}

/* ── エリア検索 ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
}

/*.area-search {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}*/

.section-heading,
.results-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-kicker {
  margin: 0 0 0.15rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}
/**
h2,
h3 {
  margin: 0;
  line-height: 1.4;
}

h2 {
  font-size: 1.05rem;
}

h3 {
  font-size: 0.9rem;
}*/

.selected-area {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.8rem;
  text-align: right;
}

.region-buttons,
.pref-buttons,
.city-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.region-button,
.pref-button,
.city-tab {
  min-height: 38px;
  padding: 0.35rem 0.4rem;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.region-button[aria-pressed="true"],
.pref-button[aria-pressed="true"],
.city-tab[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.pref-button:disabled {
  cursor: not-allowed;
  color: #aaa;
  background: #f1f1f1;
}

.pref-panel,
.city-panel {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.city-tab {
  flex: 0 0 auto;
  min-width: 88px;
}

/* ── 一覧 ── */
.results {
  margin-top: 1.5rem;
}

.result-count {
  color: var(--text-sub);
  font-size: 0.85rem;
  margin: 0;
}

.result-message {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border-radius: 8px;
  color: var(--text-sub);
  background: var(--surface);
  font-size: 0.9rem;
}

.store-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.store-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.store-list .name {
  font-weight: 600;
  font-size: 1rem;
}

.store-list .address {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* ── タブレット/PC(横幅に余裕がある場合)── */
@media (min-width: 600px) {
  /*.site-header__inner {
    padding: 1rem 1.5rem 1.25rem;
  }

  h1 {
    font-size: 1.4rem;
  }*/

  /* プルダウンを横並びにする */
  .controls {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .field {
    flex: 1 1 220px;
  }

  .region-buttons {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .pref-buttons {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .city-tabs {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  .container {
    padding: 1.25rem 1.5rem 2rem;
  }
}

/* キーワード検索中はスマホのエリア選択を畳み、結果を直後に表示する */
@media (max-width: 599px) {
  .area-search.is-keyword-search {
    display: none;
  }

  .results {
    margin-top: 1rem;
  }
}

/* マウス操作の PC ではホバーで行を軽く強調 */
@media (hover: hover) {
  .region-button:hover,
  .pref-button:not(:disabled):hover,
  .city-tab:hover,
  .clear-button:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
  }

  .region-button[aria-pressed="true"]:hover,
  .pref-button[aria-pressed="true"]:hover,
  .city-tab[aria-pressed="true"]:hover {
    background: var(--accent);
    color: #fff;
  }

  .store-list li:hover {
    background: #f4f4f4;
  }
}

/*------------　▼追加箇所　------------*/
img {
  max-width: 100%;
  vertical-align: bottom;
}

h1,
h2,
h3,
h4 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}
.head_tit {
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-weight: 500;
  text-align: center;
  background: var(--section-bg);
  padding: 16px 0;
}
.mv_bg {
  background: var(--accent);
}
.container_mv {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 4px;
}
.search_tit {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  margin: 40px 0;
}
.search_subtit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 32px 0 8px;
}
.search_areatit {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.area-search_wrapper {
  background: var(--section-bg);
  border-radius: 8px;
  padding: 24px 16px;
}
.button-area {
  padding: 40px 0;
  text-align: center;
  margin: 0 auto;
}
.apply-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: 3px solid var(--accent);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.apply-button:hover {
  background: #f9cdd0;
  color: #df0515;
}
.box-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px); /* 画面外に切り抜き */
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.material-symbols-outlined {
  font-size: 1.2rem !important;
  vertical-align: -0.16rem;
}
/*------------　▲追加箇所　------------*/
