/* /visitor/search/assets/search_history.css
   検索履歴の一覧（search/assets/search_history.js）。企画検索TOP と MAP の共通。
   一覧は検索欄の箱（position: relative）の真下に、同じ幅で出す。
   色は企画検索TOP（css/search_top.css の --sf-*）と同じ。 */

.search-history {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  box-sizing: border-box;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #80aabb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
  color: #0d6082;
  font-family: "Zen Kaku Gothic New", sans-serif;
  text-align: left;
}
.search-history[hidden] { display: none; }

.search-history__head {
  margin: 0;
  padding: 2px 14px 4px;
  color: #80aabb;
  font-size: 12px;
  line-height: 1.4;
}

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

.search-history__item {
  display: flex;
  align-items: center;
}
.search-history__item.is-active,
.search-history__item:hover {
  background: #e6f1f4;
}

/* 語。左に時計の印（履歴だと分かるように） */
.search-history__word {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 4px 7px 14px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-history__word::before {
  content: "";
  flex: 0 0 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2380aabb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 1件ずつ消す × */
.search-history__del {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0 4px 0 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  color: #80aabb;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.search-history__del:hover { color: #0d6082; }
.search-history__word:focus-visible,
.search-history__del:focus-visible {
  outline: 2px solid #0d6082;
  outline-offset: -2px;
}
