/* 
/coordinate/search.html
/coordinate/staff-search.html
で使用しているCSS
 */

/* 大枠 */
.container {
  display: flex;
  flex-direction: column;
  gap: 37px 0;

  .flex_section {
    display: flex;
    justify-content: space-between;
    .contents {
      width: 860px;
      display: flex;
      flex-direction: column;
      gap: 15px 0;
    }
  }

  a {
    text-decoration: none;
    display: block;
  }
}

/* タブ */
.tab-menu {
  width: max-content;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #ccc;
  margin: 0 auto 40px;
  .tab {
    width: 240px;
    text-align: center;
    font:
      500 20px "Poppins",
      sans-serif;
    padding: 5px 0;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: #64625d;
    &.active {
      color: #000;
      border-color: black;
      pointer-events: none;
    }
  }
}

/* キーワード */
.keyword_wrap {
  dt {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
  }
  div {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 12px;

    a {
      font-family:
        "Poppins", "Yu Gothic", "游ゴシック", "YuGothic", "游ゴシック体",
        "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN", Meiryo, メイリオ,
        Helvetica, Arial, sans-serif;
      font-size: 15px;
      text-decoration: none;
      line-height: 1;
      height: 40px;
      padding: 0 17px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      background-color: #fae6df;
      border-radius: 50px;

      &:hover {
        opacity: 0.6;
      }

      &::after {
        content: "";
        width: 5px;
        height: 9px;
        background: url(/res/p/img/coord/icon-arrow-forward.svg) no-repeat;
        background-size: contain;
      }
    }
  }
}

/* 絞り込み検索 */
#benent_list_sp_alt_search_form,
#search_form_sp_back {
  display: none;
}

.search_form {
  width: 240px;
  h2 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
  }
  form {
    display: flex;
    flex-direction: column;
    gap: 20px 0;

    br,
    hr {
      display: none;
    }

    .form_flex_list {
      display: flex;
      gap: 0 20px;
      label {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0 2px;
      }
    }

    .form_select_list {
      display: flex;
      flex-direction: column;
      gap: 15px 0;
      label {
        span {
          display: block;
          font-size: 14px;
          font-weight: bold;
          margin-bottom: 7px;
          margin-left: 10px;
        }
      }
      select {
        width: 100%;
        border: 1px solid #dddcdd;
        padding: 8px 4px;
      }
    }
    .form_button_wrap {
      display: flex;
      gap: 0 10px;
      input {
        appearance: none;
        background-color: transparent;
        border: none;
        padding: 10px 0;
        font-size: 12px;
        border-radius: 50px;
        &[name="form_clear"] {
          flex-basis: 37%;
          border: 1px solid #ccc;
        }
        &[name="search"] {
          flex-basis: 63%;
          background-color: #424242;
          color: white;
        }
      }
    }
  }
}

/* 検索結果 */
#benent_list_total_count {
  font:
    500 18px/1 "Poppins",
    sans-serif;
}
dd:has(#benent_list_total_count) {
  font-size: 12px;
}

.search_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  dl {
    display: flex;
    gap: 0 30px;
    font-size: 14px;
    font-weight: bold;
    div {
      display: flex;
    }
  }
  .sort_btn_wrap {
    display: flex;
    gap: 0 5px;
    .change-button {
      button {
        appearance: none;
        background-color: transparent;
        border: none;
        padding: 3px 5px 1px;
      }
      a:hover {
        background-color: #e9e9e9;
      }
      &.active_button {
        background-color: #e9e9e9;
        pointer-events: none;
      }
    }
  }
}

/* ページネーション */
#benent_list_paging {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}
.pagination {
  display: flex;
  gap: 0 6px;
  li {
    min-width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    &:has(.current) {
      background-color: #424242;
      border-radius: 50%;
      color: white;
    }
    a {
      min-width: 18px;
      height: 18px;
      display: flex;
      justify-content: center;
      align-items: center;
      span {
        line-height: 1;
      }
      button {
        appearance: none;
        background-color: transparent;
        border: none;
        padding: 0;
      }
    }
  }
}
