@charset "utf-8";

/* ==========================================================================
   FAQ リアルタイム検索 スタイル
   ========================================================================== */

/* 検索エリア外枠 */
.faq-search-wrapper {
  margin: 0 auto 3rem;
  max-width: 640px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* 検索ボックス本体 */
.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 2px solid #dee8e8;
  border-radius: 40px;
  padding: 4px 18px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.faq-search-box:hover {
  border-color: #b5d5d0;
}

.faq-search-box:focus-within {
  border-color: #90b8b3;
  box-shadow: 0 4px 16px rgba(144, 184, 179, 0.25);
}

/* 虫眼鏡アイコン */
.faq-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #90b8b3;
  margin-right: 12px;
  flex-shrink: 0;
}

/* 入力フィールド */
.faq-search-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 10px 0 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #222222 !important;
  font-family: inherit !important;
  box-shadow: none !important;
  width: 100%;
}

.faq-search-input::placeholder {
  color: #9aa5a4;
  font-size: 14px;
}

/* クリアボタン (×) */
.faq-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background-color: #e6eeee;
  color: #6d7d7c;
  cursor: pointer;
  margin-left: 8px;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-search-clear:hover {
  background-color: #90b8b3;
  color: #ffffff;
  transform: scale(1.08);
}

/* 検索結果ステータス（件数表示） */
.faq-search-status {
  margin-top: 12px;
  text-align: center;
  font-size: 13.5px;
  color: #555555;
  letter-spacing: 0.05em;
}

.faq-search-status strong {
  color: #1c304d;
  font-weight: 700;
}

/* 絞り込み時に最後の表示項目の下線を調整 */
.kp_faq_00_answer.faq-last-visible {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 該当なしメッセージ */
.faq-no-results {
  margin: 3rem auto;
  max-width: 600px;
  background-color: #f7faf9;
  border: 1px dashed #cde0dc;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.faq-no-results-title {
  font-size: 16px;
  font-weight: 700;
  color: #1c304d;
  margin-bottom: 8px;
}

.faq-no-results-desc {
  font-size: 14px;
  color: #666666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.faq-no-results-action {
  margin-top: 1rem;
}

.faq-contact-link {
  display: inline-block;
  background-color: #90b8b3;
  color: #ffffff !important;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.25s ease;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(144, 184, 179, 0.3);
}

.faq-contact-link:hover {
  background-color: #7ba39e;
  box-shadow: 0 4px 14px rgba(144, 184, 179, 0.45);
  transform: translateY(-1px);
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .faq-search-wrapper {
    margin-bottom: 2rem;
    padding: 0 10px;
  }

  .faq-search-box {
    padding: 2px 14px;
  }

  .faq-search-input {
    font-size: 14px !important;
  }

  .faq-search-input::placeholder {
    font-size: 12.5px;
  }

  .faq-no-results {
    padding: 2rem 1rem;
  }
}
