.search-container {
  position: relative;
  width: 216px;
}

#search-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #8E8E8E;
  font-size: 16px;
}

#search-input:focus {
  outline: none;
  border-color: #008DB8;
}

#suggest-box {
  position: absolute;
  top: 110%;
  left: 0;
  width: 110%;
  background: #fff;
  border: 1px solid #8E8E8E;
  display: none;
  z-index: 1000;
}

.suggest-item {
  padding: 8px;
  cursor: pointer;
}

.suggest-item:hover {
  background: #f1f1f1;
}

/* モーダル */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}

.search-modal-content {
  background: #fff;
  width: 100%;
  max-width: 700px;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  max-height: 80%;
  overflow-y: auto;
}

.hidden {
  display: none;
}

#search-modal-close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

/* placeholder フェードアウト */
#search-input::placeholder {
  color: #8E8E8E;
  transition: opacity 0.3s;
}

#search-input:focus::placeholder {
  opacity: 0;
}

/* 検索アイコン */
.search-icon {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  height: 20px;
  transition: opacity 0.5s;
}

/* フォーカス時にアイコンも消す */
#search-input:focus ~ .search-icon,
#search-input:not(:placeholder-shown) ~ .search-icon {
  opacity: 0;
}

/* ===== 検索結果表示用（追加） ===== */

.result-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.result-title {
  font-size: 15px;
  font-weight: normal;
  color: #000;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}

.result-title:hover {
  text-decoration: underline;
}

.result-url {
  font-size: 11px;
  color: #1FB97C;
  margin-bottom: 6px;
  word-break: break-all;
}

.result-snippet {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

/* スニペット内のハイライト */
.result-snippet strong {
  font-weight: bold;
  color: #000;
}
