/* ==========================================================
   サイト内検索
   ========================================================== */

/* --- 検索フォーム（共通） --- */
.c-searchForm {
  display: flex;
  width: 100%;
}
.c-searchForm__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.c-searchForm__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #a2bed0;
  border-right: 0;
  border-radius: 0;
  background: #fff;
  color: #576770;
  font-size: 14px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.c-searchForm__input::placeholder {
  color: #a7b6be;
}
.c-searchForm__input:focus {
  outline: none;
  border-color: #0e73b9;
}
.c-searchForm__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.c-searchForm__btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid #0e73b9;
  border-radius: 0;
  background: #0e73b9;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s;
}
.c-searchForm__btn:hover {
  opacity: 0.8;
}
.c-searchForm__btn svg {
  color: #fff;
}
/* style.css の * { color } がsvg内の線にも当たるので、親の色を引き継がせる */
.c-searchForm__btn svg *,
.l-header__search__toggle svg * {
  color: inherit;
}
.c-searchForm__btn:focus-visible,
.l-header__search__toggle:focus-visible {
  outline: 2px solid #0e73b9;
  outline-offset: 2px;
}

/* --- ヘッダー（PC：虫眼鏡アイコンから展開） --- */
.l-header__search {
  position: relative;
}
.l-header__inner__contents__list .l-header__search--sp {
  display: none;
}
.l-header__search__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #0e73b9;
  cursor: pointer;
  transition: opacity 0.3s;
}
.l-header__search__toggle:hover {
  opacity: 0.7;
}
.l-header__search__panel {
  position: absolute;
  top: 30px;
  right: -37px; /* 右端を電話アイコンに揃える */
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.l-header__search.is-open .l-header__search__panel {
  transition: opacity 0.3s ease, visibility 0s, transform 0.3s ease; /* 開いた瞬間にフォーカスできるように */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- ヘッダー（SP：「+」メニュー内の最上部） --- */
@media screen and (max-width: 767px) {
  .l-header__inner__contents__list .l-header__search--pc {
    display: none;
  }
  .l-header__inner__contents__list .l-header__search--sp {
    display: flex;
    margin-bottom: 14px;
  }
  .l-header__search--sp .c-searchForm__input {
    font-size: 16px; /* iOSの自動ズーム防止 */
  }
}

/* --- フッター --- */
.l-footer__inner__cont__l__search {
  width: calc(100% - 50px);
  margin-top: 28px;
}
/* 検索窓のぶんプライバシー欄を下げる（元: top -124px） */
@media screen and (min-width: 768px) {
  .l-footer__inner__privacy {
    top: -90px;
  }
}
@media screen and (max-width: 767px) {
  .l-footer__inner__cont__l__search {
    width: auto;
    margin: -10px 0 30px;
    padding-right: 10px;
  }
  .l-footer__inner__cont__l__search .c-searchForm__input {
    font-size: 16px;
  }
}

/* --- 検索結果ページ --- */
.c-searchResult {
  margin-bottom: 80px;
  color: #576770;
}
.c-searchResult__form {
  max-width: 520px;
  margin-bottom: 40px;
}
.c-searchResult__form .c-searchForm__input {
  height: 46px;
  font-size: 16px;
}
.c-searchResult__form .c-searchForm__btn {
  width: 52px;
  height: 46px;
}
.c-searchResult__lead {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
}
.c-searchResult__lead strong {
  color: #0e73b9;
  font-weight: normal;
}
.c-searchResult__note {
  margin-bottom: 30px;
  line-height: 2;
}
.c-searchResult__list {
  margin-bottom: 50px;
  border-top: 1px solid #d5e0e7;
}
.c-searchResult__item {
  padding: 24px 0;
  border-bottom: 1px solid #d5e0e7;
}
.c-searchResult__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.c-searchResult__type {
  display: inline-block;
  min-width: 120px;
  padding: 2px 10px;
  border: 1px solid #0b73b9;
  color: #0b73b9;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
}
.c-searchResult__date {
  color: #a7b6be;
  font-size: 13px;
  letter-spacing: 1.2px;
}
.c-searchResult__title {
  font-size: 18px;
  font-weight: normal;
  line-height: 1.6;
}
.c-searchResult__title a {
  color: #576770;
  text-decoration: none;
  transition: color 0.3s;
}
.c-searchResult__title a:hover {
  color: #0e73b9;
}
.c-searchResult__excerpt {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: #7a8b95;
}
.c-searchResult__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.c-searchResult__links a {
  color: #0e73b9;
}
.c-searchResult__pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.c-searchResult__pagination a,
.c-searchResult__pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #0b73b9;
  color: #0b73b9;
  text-decoration: none;
}
.c-searchResult__pagination .current {
  background: #0b73b9;
  color: #fff;
}
@media screen and (max-width: 767px) {
  .c-searchResult__form {
    max-width: none;
  }
  .c-searchResult__type {
    min-width: 100px;
  }
  .c-searchResult__title {
    font-size: 16px;
  }
}
