@charset "utf-8";
/* サイト内検索（全ページの検索窓の候補 .ss-*、検索結果のページ .sr-*）。見た目は specs/figures/shopserve-manual-search-page-tobe.html に合わせる */

/* ---- 検索窓 ---- */
#searchbox form #q {
  color: #222;
}
#searchbox form #q:focus {
  outline: 2px solid #2563eb;
  outline-offset: 0;
}
#searchbox form #srchbtn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ---- 自動補完の候補（body の直下に置く。幅と位置は JS が決める） ---- */
.ss-box {
  position: absolute;
  z-index: 1000;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
.ss-box[hidden],
.ss-list[hidden],
.ss-empty[hidden] {
  display: none;
}
.ss-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ss-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 6px 10px;
  border-top: 1px solid #f1f5f9;
  color: #1d4ed8;
  cursor: pointer;
}
.ss-opt:first-child {
  border-top: 0;
}
.ss-opt.ss-active,
.ss-opt:hover {
  background: #eff6ff;
}
.ss-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ss-kind {
  flex: none;
  font-size: 11px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.ss-empty {
  padding: 12px 10px;
  color: #475569;
}
.ss-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- 検索結果のページ ---- */
.sr-page {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 0 40px 5px;
  padding: 0 10px 0 0;
  display: grid;
  gap: 14px;
  font-family: system-ui, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  color: #111827;
}
.sr-page [hidden] {
  display: none;
}
.sr-page a {
  color: #1d4ed8;
}
.sr-page a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.sr-page mark {
  background: #fde68a;
  color: inherit;
}
.sr-summary {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sr-summary:empty {
  display: none;
}

/* フォルダで絞り込む */
.sr-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sr-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 4px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #111827 !important;
  text-decoration: none;
  background: #fff;
}
.sr-chip:hover {
  background: #f1f5f9;
}
.sr-chip-on,
.sr-chip-on:hover {
  background: #111827;
  color: #fff !important;
  border-color: #111827;
}

/* おすすめリンク */
.sr-promos {
  display: grid;
  gap: 8px;
}
.sr-promo {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  border-radius: 8px;
  padding: 8px 10px;
}
.sr-badge {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
}
.sr-promo-title {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sr-promo-desc {
  margin: 4px 0 0;
  color: #475569;
  overflow-wrap: anywhere;
}

/* 結果の一覧 */
.sr-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sr-item {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}
.sr-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.sr-title {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sr-kind {
  display: inline-block;
  font-size: 11px;
  color: #334155;
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}
.sr-pdf {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}
.sr-crumb {
  font-size: 12px;
  color: #475569;
  overflow-wrap: anywhere;
}
.sr-snippet {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.sr-subs {
  list-style: none;
  margin: 2px 0 0;
  padding: 0 0 0 10px;
  border-left: 2px solid #e5e7eb;
}
.sr-subs a {
  display: inline-block;
  padding: 6px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ページ送り */
.sr-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.sr-pager a,
.sr-pager .sr-cur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 8px;
}
.sr-pager .sr-cur {
  font-weight: 700;
  text-decoration: underline;
}

/* 0 件・検索語が空・検索できなかったとき */
.sr-box {
  display: grid;
  gap: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.sr-box-error {
  border-color: #dc2626;
  background: #fef2f2;
}
.sr-popular ul {
  margin: 2px 0 0;
  padding-left: 1.4em;
}
.sr-popular a {
  display: inline-block;
  padding: 8px 0;
}

/* ---- 幅が狭いとき（検索結果のページは viewport を付けてある） ---- */
@media screen and (max-width: 768px) {
  #searchbox form #q {
    min-height: 44px;
    box-sizing: border-box;
  }
  #searchbox form #srchbtn {
    min-width: 44px;
    min-height: 44px;
  }
  body.search-page {
    overflow-x: hidden;
  }
  .search-page #wrapper {
    width: auto;
    max-width: 1090px;
    min-height: 0;
    padding: 0 8px;
    box-sizing: border-box;
  }
  .search-page #header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .search-page #header > div {
    float: none;
    margin: 8px 0;
    min-width: 0;
  }
  .search-page #header > div[style] {
    display: none;
  }
  .search-page #header img {
    max-width: 100%;
    height: auto;
  }
  .search-page #searchbox {
    flex: 1 1 100%;
    margin: 4px 0 12px;
  }
  .search-page #searchbox form {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .search-page #searchbox form #q {
    float: none;
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
  }
  .search-page #searchbox form #srchbtn {
    float: none;
  }
  .search-page #footer {
    margin-top: 40px;
  }
  .search-page #signature {
    padding-right: 12px;
  }
  .sr-page {
    margin-left: 0;
    padding-right: 0;
  }
}
