/* =====================================================
   Search Modal
===================================================== */

.search-modal {
  position: fixed;      /* ← これが無いとモーダルにならない */
  inset: 0;
  z-index: 1000;
}

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

/* 背景の暗幕 */
.search-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

/* 中央の箱 */
.search-modal__content {
  position: relative;
  max-width: 480px;
  margin: 15vh auto;
  padding: 2rem;

  background: #ffffff;
  color: #333333;

  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  font-family: 'Shippori Mincho', serif;
}

/* 閉じるボタン */
.search-modal__close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

.search-modal__close:hover {
  color: #333;
}

/* 見出し */
.search-modal__content h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333333;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

/* =====================================================
   検索結果リスト（ul > li > a）
==================================================== */

.search-modal__body {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.search-result-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-result-list li {
  margin-bottom: 0.8rem;
}

/* タイトル＝リンク */
.search-result-list a {
  display: block;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #4a6d7c;
  text-decoration: none;
  transition: all 0.2s;
  background: #fdfdfd;
}

.search-result-list a:hover {
  background: #f4f8fa;
  border-color: #bad3e1;
}

.search-hint {
  font-size: 0.85rem;
  color: #d32f2f;
  margin-top: 1.5rem;
}

/* =====================================================
   スマホ対応
==================================================== */

@media (max-width: 480px) {
  .search-modal__content {
    margin: 10vh 1rem;
    padding: 1.5rem;
  }
}


