/* 検索付きプルダウン（pcnext の searchableSelect 相当） */
.searchable-select-wrap {
  position: relative;
  max-width: 200px;
}

.searchableSelect {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.searchableSelectToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  min-height: calc(1.2em + 1lh + 2px);
  padding: 0.6em 0.75rem;
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  background-color: #fff;
  border: 1px solid #c9caca;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out;
}

.searchableSelect.is-open .searchableSelectToggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.searchableSelectLabel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchableSelectActions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.5em;
  color: #727171;
}

.searchableSelectClear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0.5em 0 0;
  padding: 0;
  font: inherit;
  line-height: 1;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.searchableSelectClear:focus {
  outline: 0;
}

.searchableSelectClear:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
  border-radius: 0.125rem;
}

.searchableSelectIcon {
  transition: transform 0.2s ease;
}

.searchableSelect.is-open .searchableSelectIcon {
  transform: rotate(180deg);
}

.searchableSelectMenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #c9caca;
  border-top: 0;
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  overflow: hidden;
}

.searchableSelectMenu.is-hidden {
  display: none !important;
}

.searchableSelectSearchBox {
  position: relative;
  border-bottom: 1px solid #dee2e6;
  border-top: 1px solid #dee2e6;
}

.searchableSelectSearchBox::before {
  content: "\f52a";
  font-family: "bootstrap-icons";
  font-weight: 500;
  font-size: 1.2em;
  color: #aaa;
  position: absolute;
  top: 50%;
  left: 0.75em;
  transform: translateY(-50%);
  pointer-events: none;
}

.searchableSelectSearch {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 0.6em 0.75rem 0.6em 2.75em;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: #fff;
  border: 0;
  border-radius: 0;
}

.searchableSelectSearch:focus {
  outline: 0;
}

.searchableSelectOptionsWrap {
  max-height: 200px;
  overflow: auto;
}

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

.searchableSelectOption {
  padding: 0.6em 0.75rem;
  cursor: pointer;
  border-bottom: 1px dashed #dee2e6;
}

.searchableSelectOption:hover {
  background-color: #f8f9fa;
}

.searchableSelectOption.is-last-visible {
  border-bottom: 0;
}

.searchableSelectOption.is-hidden {
  display: none !important;
}

.searchableSelectHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* login.css の .form-control と整合（会員登録画面） */
body#login .searchableSelectToggle:focus {
  border-color: #9fa0a0;
  outline: 0;
}

body#login .searchableSelectSearch {
  padding: 0.6em 0.75rem 0.6em 2.75em;
  border: 0;
  border-radius: 0;
}
