/* =====================================================
   Search Modal (収蔵目録照会モーダル)
   ===================================================== */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal.hidden {
  display: none;
}

/* 背景オーバーレイ */
.search-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* モーダルウィンドウ本体 */
.search-modal__content {
  position: relative;
  width: min(92vw, 500px);
  padding: 2rem;
  background: #161c24;
  color: #e2e8f0;
  border-radius: 8px;
  border: 1px solid rgba(184, 145, 80, 0.35);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: search-modal-appear 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes search-modal-appear {
  0% { transform: translateY(10px) scale(0.97); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* 見出し */
.search-modal__content h2 {
  margin: 0 0 1.25rem 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f1ebd8;
  border-bottom: 1px solid rgba(184, 145, 80, 0.25);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-modal__content h2::before {
  content: "📖";
  font-size: 1rem;
}

/* 検索結果リスト */
.search-modal__body {
  font-size: 0.92rem;
  max-height: 55vh;
  overflow-y: auto;
}

.search-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-result-list li {
  margin: 0;
}

.search-result-list a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  text-decoration: none;
  font-family: var(--font-serif);
  line-height: 1.5;
  transition: all 0.2s ease;
}

.search-result-list a:hover {
  background: rgba(184, 145, 80, 0.15);
  border-color: #b89150;
  color: #fef08a;
  transform: translateX(4px);
}

/* ヒントメッセージ */
.search-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 1rem;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid #b89150;
  border-radius: 2px;
}

/* アクションボタン */
.search-modal__actions {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

.search-modal__actions button {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 4px;
  border: 1px solid #475569;
  background: #1e293b;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-modal__actions button:hover {
  background: #334155;
  color: #ffffff;
}

@media (max-width: 480px) {
  .search-modal__content {
    padding: 1.5rem 1.25rem;
  }
}
