/* ============================================================
   内職47 検索ページ用スタイル（search/index.html のみで使用）
   ============================================================ */

.n47-intro {
  font-size: 14px;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.7;
}

/* --- 検索ボックス --- */
.n47-searchbox {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.n47-searchbox input[type="text"] {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  font-size: 16px;
  border: 2px solid #00b862;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}
.n47-searchbox input[type="text"]:focus {
  outline: 2px solid rgba(0, 184, 98, .35);
  outline-offset: 1px;
}
.n47-searchbox button {
  padding: 11px 24px;
  font-size: 16px;
  border: 0;
  border-radius: 6px;
  background: #00b862;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.n47-searchbox button:hover { background: #009e53; }

/* --- 絞り込み・並び替え --- */
.n47-searchctrl {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 12px;
  align-items: center;
}
.n47-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}
.n47-select select {
  padding: 7px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  max-width: 100%;
}

/* --- 件数 --- */
.n47-count {
  font-size: 14px;
  color: #555;
  margin: 8px 0 10px;
}

/* --- 結果リスト --- */
.n47-results {
  list-style: none;
  margin: 0;
  padding: 0;
}
.n47-results li {
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 4px;
}
.n47-results li:first-child {
  border-top: 2px solid #00b862;
}
.n47-results a {
  font-size: 16px;
  font-weight: bold;
}
.n47-results a:hover {
  color: #009e53;
  text-decoration: underline;
}
.n47-loc {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: #666;
}
.n47-snippet {
  margin: 6px 0 0;
  font-size: 13px;
  color: #777;
  line-height: 1.7;
  word-break: break-word;
}

/* --- 検索結果なし --- */
.n47-empty {
  margin: 24px 0;
  padding: 22px 16px;
  text-align: center;
  background: #f7faf8;
  border: 1px dashed #cfe5d8;
  border-radius: 8px;
  color: #555;
  font-size: 14px;
  line-height: 1.9;
}
.n47-noscript {
  color: #b00;
  font-size: 14px;
}

/* --- スマホ --- */
@media (max-width: 599.98px) {
  .n47-searchbox {
    flex-wrap: wrap;
  }
  .n47-searchbox button {
    flex: 1;
  }
  .n47-select {
    flex: 1 1 100%;
  }
  .n47-select select {
    flex: 1;
  }
}
