/* ===== Pico Kill Zone ===== */
.search-nav,
.search-nav * {
  box-sizing: border-box;
}

.search-nav nav,
.search-nav form,
.search-nav input,
.search-nav button {
  all: unset;        /* ← これが核 */
}

.search-nav {
  background: rgba(20, 30, 40, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-nav .header-search {
  display: flex;
  justify-content: flex-end;   /* ← 中央殺し */
  align-items: center;

  max-width: 1100px;
  margin: 0 auto;

  padding: 0.5rem 1rem;
}

.search-nav input[type="search"] {
  background: rgba(255,255,255,0.95);
  color: #1f2a33;

  padding: 0.45em 1.1em;
  min-width: 220px;

  border-radius: 999px;
  font-size: 0.95rem;
}

.search-nav button {
  padding: 0.4em 1em;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);

  color: rgba(255,255,255,0.85);
  cursor: pointer;
}

.search-nav button:hover {
  background: rgba(255,255,255,0.9);
  color: #1f2a33;
}

/* ===== ラッパー（位置だけ担当） ===== */
#searchResultWrap {
  position: fixed;
  top: 88px; /* 検索バーの下 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
}

/* ===== 箱本体 ===== */
/* 箱本体：横幅を広げる */
.search-result-box {
  width: 560px;              /* ← 420 → 560 */
  max-width: calc(100vw - 2rem);

  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* ===== ヘッダー ===== */
.search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.6rem 0.8rem;
  background: #f5f6f7;
  border-bottom: 1px solid #e1e3e6;
}

.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

/* 閉じる */
#searchClose {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: #666;
  cursor: pointer;
}
#searchClose:hover {
  color: #000;
}

/* ===== 結果リスト ===== */
.search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-list li {
  border-bottom: 1px solid #eee;
}

.search-result-list li:last-child {
  border-bottom: none;
}

.search-result-list a {
  display: block;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  color: #222;
  font-size: 0.95rem;
}

.search-result-list a:hover {
  background: #f0f2f4;
}

/* 0件メッセージ */
.search-result-empty {
  padding: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.search-result-list a {
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* 2行まで表示 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}