/* ==========================================================
   scalagrp.jp ヘッダー — サイト内検索
   配置: /assets/css/aine-header-search.css
   画像パスは css からの相対パス（本番・サンプル共通）
   ========================================================== */

.header_list_searchbtn_open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 24px;
  height: auto;
  border: none;
  padding: 0.42em;
  box-sizing: border-box;
  background-color: transparent;
  cursor: pointer;
  line-height: 1;
}

.header_list_searchbtn_open::after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("../img/search/icon-search-nav.svg");
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: 16px;
  transition: opacity 0.5s;
}

.header_list_searchbtn_open:hover {
  background-color: transparent;
}

.header_list_searchbtn_open:hover::after {
  opacity: 0.5;
}

@media (min-width: 871px) {
  .groupheader__nav {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    width: 100%;
    max-width: calc(696px + 2.6em);
    min-width: 0;
  }

  .groupheader__nav > .groupheader__list {
    flex: 1 1 auto;
    width: auto;
    max-width: 696px;
    min-width: 0;
  }

  .groupheader__nav > .groupheader__list > li:last-child {
    border-right: none;
  }

  .groupheader__nav > .header_list_searchbtn_open {
    position: static;
    flex: 0 0 2.6em;
    width: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #fff;
  }
}

.search_box_wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10000;
}

.search_box_wrap.search_box_on {
  display: block;
}

.search_box_container {
  height: 100%;
  padding: 0 20px;
  z-index: 10002;
  position: relative;
}

.search_box_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  opacity: 0.85;
  z-index: 10001;
}

.search_box_block {
  width: 100%;
  max-width: 900px;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.search_box_form {
  width: 100%;
  position: absolute;
  color: #fff;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.search_box_form .input-search-box {
  position: relative;
  margin: 0 auto 40px;
}

.search_box_form .input-search-box .input-box {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: normal;
  padding: 10px 60px 10px 10px;
  height: 60px;
  outline: none;
  background: none;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 3px;
  color: #fff;
  opacity: 0.95;
}

.search_box_form .input-search-box .input-box::placeholder {
  color: #aaa;
}

.search_box_form .input-search-box .submit-btn-box {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
}

.search_box_form .input-search-box .submit-btn {
  position: absolute;
  display: block;
  width: 60px;
  height: 100%;
  border: none;
  background-color: transparent;
  background-image: url("../img/search/icon_search.svg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 20px;
  text-indent: -9999px;
  cursor: pointer;
}

.search_box_close {
  position: absolute;
  top: 20%;
  right: 0;
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.search_box_close::before,
.search_box_close::after {
  content: '';
  width: 80%;
  height: 1px;
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 10%;
  margin-top: -1px;
}

.search_box_close::before {
  transform: rotate(-45deg);
}

.search_box_close::after {
  transform: rotate(45deg);
}

.search_box_form_sp {
  padding: 16px 20px 0;
}

.search_box_form_sp .input-search-box {
  width: auto;
  position: relative;
  margin: 0 auto 18px;
}

.search_box_form_sp .input-search-box .submit-btn-box {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
}

.search_box_form_sp .input-search-box .submit-btn {
  position: absolute;
  display: block;
  width: 60px;
  height: 100%;
  border: none;
  background-color: transparent;
  background-image: url("../img/search/icon_search.svg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 20px;
  text-indent: -9999px;
  cursor: pointer;
}

.search_box_form_sp .input-search-box .input-box {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: normal;
  padding: 10px 60px 10px 10px;
  height: 60px;
  outline: none;
  background-color: #4c4c4c;
  border: 1px solid #666;
  border-radius: 3px;
  color: #fff;
}

.search_box_form_sp .input-search-box .input-box::placeholder {
  color: #bbb;
}

@media only screen and (max-width: 870px) {
  .groupheader__nav > .header_list_searchbtn_open {
    display: none;
  }

  .search_box_form_sp .input-search-box .input-box {
    border: none;
  }

  .search_box_form_sp {
    padding-top: 80px;
  }

  .menu__list {
    top: 160px;
  }
}
