/* -------------共通指定------------- */
.parts__hitorikuHeader {

  --hitorikuHeader--height: 55px;

  width: 100%;
  height: var(--hitorikuHeader--height);
  position: relative;
  /* position: fixed; */
  /* top: 0; */
  /* left: 0; */
  background-color: #FFF;
  z-index: 9999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.parts__hitorikuHeader--sp,
.parts__hitorikuHeader--pc {
  margin: auto;
  padding: 2px 15px 0;
  max-width: 1100px;
  height: var(--hitorikuHeader--height);
}

.hitorikuHeader__logoContent {
  width: 150px;
  line-height: 0;
}

.hitorikuHeader_btn button,
.hitorikuHeader_btn a {
  cursor: pointer;
  padding: 3px 0 0;
  min-width: 44px;

  display: flex;
  align-items: center;
  flex-direction: column;

  border: none;
  background: none;
  color: var(--systemColor--defaultText);
  font-size: 0.65rem;
  text-decoration: none;
  line-height: 1;
}

.hitorikuHeader_btn svg {
  width: 25px;
  height: auto;
  margin-bottom: 2px;
}

/* -------------SP検索機能設定------------- */
/* 黒背景 */
.parts__hitorikuHeader--sp-search-black {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #000;
}

/* 検索ボックス */
.parts__hitorikuHeader--sp-search {
  position: fixed;
  top: 80px;
  width: 100%;
}

.parts__hitorikuHeader--sp-search .searchandfilter>div {
  background-color: var(--systemColor--thin2--gray);
  margin: -20px auto 0;
  padding: 40px 15px 15px;
  max-width: 400px;
  border-radius: 10px;
}

/* どんな会社をお探しですか */
.parts__hitorikuHeader--sp-search p {
  background-color: var(--systemColor--blueGreen);
  width: fit-content;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFF;
  margin: auto;
  padding: 3px 20px;
  border-radius: 30px;
  z-index: 1;
  position: relative;
}

/* Search & Filter */
.parts__hitorikuHeader .searchandfilter {
  margin: 0 10px;
}

.parts__hitorikuHeader .searchandfilter ul {
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

.parts__hitorikuHeader .searchandfilter li {
  padding: 0;
  width: 100%;
  position: relative;
}

.parts__hitorikuHeader .searchandfilter select {
  -webkit-appearance: none;
  /* Safari用 */
  -moz-appearance: none;
  /* Firefox用 */
  appearance: none;
  /* 標準 */
  height: 50px;
  font-size: 0.85rem;
  color: var(--systemColor--defaultText);
  padding: 0 30px 0 35px;
  background-color: #FFF;
}

.parts__hitorikuHeader .searchandfilter ul>li:last-child input:last-child {
  height: 100%;
  background-color: var(--systemColor--red);
  border: none;
  color: #FFF;
}

.hitorikuHeader__searchItem--sp {
  display: grid;
  width: 350%;
}

.hitorikuHeader__searchItem-2S--sp {
  display: flex;
  justify-content: space-between;
}

.parts__hitorikuHeader .searchandfilter ul,
.hitorikuHeader__searchItem--sp,
.hitorikuHeader__searchItem-2S--sp {
  gap: 5px;
}

.parts__hitorikuHeader .searchandfilter input,
.parts__hitorikuHeader .searchandfilter select {
  border-radius: 2px;
  font-weight: bold;
  border-color: var(--systemColor--thin--gray);
  width: 100%;
  cursor: pointer;
}

.parts__hitorikuHeader .searchandfilter li::before {
  content: '';
  display: block;
  width: 30px;
  height: 100%;
  position: absolute;
  left: 5px;
}

.parts__hitorikuHeader li:has(#ofrec_taxonomy_jobtype__industry)::before {
  background: url(../images/header/jobtype.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.parts__hitorikuHeader li:has(#ofrec_taxonomy_prefecture)::before {
  background: url(../images/header/workplace.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.parts__hitorikuHeader li:has(#ofrec_taxonomy_atmosphere)::before {
  background: url(../images/header/vibestag.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.parts__hitorikuHeader .searchandfilter li::after {
  content: '';
  display: block;
  width: 20px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 2px;
  background: url(../images/header/btn_open.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.parts__hitorikuHeader .searchandfilter ul>li:last-child:after,
.parts__hitorikuHeader .searchandfilter ul>li:last-child::before {
  display: none;
}

/* -------------sp検索ボックス表示処理------------- */
/* 初期状態（非表示） */
.parts__hitorikuHeader--sp-search-black,
.parts__hitorikuHeader--sp-search {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.parts__hitorikuHeader--sp-search {
  transform: translateY(-10px);
}

/* 表示状態 */
.parts__hitorikuHeader--sp-search-black.is-active,
.parts__hitorikuHeader--sp-search.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.parts__hitorikuHeader--sp-search.is-active {
  opacity: 1;
}

.parts__hitorikuHeader--sp-search-black.is-active {
  opacity: 0.8;
}

/* -------------PC設定------------- */
@media (min-width: 768px) {
  .hitorikuHeader__logoContent {
    gap: 10px;
    width: auto;
  }

  .hitorikuHeader__logoContent a:last-child {
    display: none;
    color: var(--systemColor--linkText);
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .hitorikuHeader__logoContent p {
    margin: 0;
  }

  .hitorikuHeader__logoContent img {
    width: 280px;
  }

  .hitorikuHeader_btnContent--pc>ul {
    gap: 5px;
    margin: 0 0 0 10px;
    padding: 0;
  }

  .hitorikuHeader_btnContent--pc>ul>li {
    list-style: none;
  }

  .parts__hitorikuHeader .searchandfilter {
    margin: 0 5px 0 0;
    max-width: 400px;
  }

  .parts__hitorikuHeader .searchandfilter select,
  .parts__hitorikuHeader .searchandfilter input {
    height: 36px;
    font-size: 0.75rem;
  }

  .parts__hitorikuHeader .searchandfilter select {
    padding: 0 20px 0 25px;
  }

  .parts__hitorikuHeader .searchandfilter ul>li:last-child {
    width: fit-content;
  }

  .parts__hitorikuHeader .searchandfilter ul>li:last-child input:last-child {
    background-color: var(--systemColor--blueGreen);
  }

  .parts__hitorikuHeader .searchandfilter li::before {
    width: 20px;
  }

  .parts__hitorikuHeader .searchandfilter li::after {
    width: 15px;
  }
}

@media (min-width: 1005px) {
  .hitorikuHeader__logoContent a:last-child {
    display: block
  }
}
