/* AINE ace search — build 20260914 | source: aine-header-search.css */
.header_list_searchbtn_open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 24px;
  height: auto;
  border: none;
  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.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;
}

.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: var(--aine-header-btn-icon);
  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: var(--aine-white);
  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: calc(100% - 70px);
  font-size: 18px;
  font-weight: normal;
  padding: 10px 60px 10px 10px;
  height: 60px;
  outline: none;
  background: none;
  background-color: var(--aine-overlay-bg);
  border: 1px solid var(--aine-overlay-border);
  border-radius: 3px;
  color: var(--aine-white);
  opacity: 0.95;
}

.search_box_form .input-search-box .input-box::placeholder {
  color: var(--aine-overlay-icon);
}

.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_w.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: var(--aine-white);
  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 {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px 0;
}

.search_box_form_sp .input-search-box,
.search_box_form_sp .input-search-box .input-box {
  box-sizing: border-box;
}

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

.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: var(--aine-sp-field-bg);
  border: 1px solid var(--aine-overlay-label);
  border-radius: 3px;
  color: var(--aine-sp-field-text);
}

.search_box_form_sp .input-search-box .input-box::placeholder {
  color: var(--aine-sp-field-placeholder);
}

@media only screen and (max-width: 840px) {

  .header_list_searchbtn_open {
    display: none;
  }

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

  .menu__list {
    top: 160px;
  }
}

.search_box_form .input-search-box .input-box:focus,
.search_box_form_sp .input-search-box .input-box:focus,
.header_list_searchbtn_open:focus,
.search_box_close:focus {
  outline: 2px solid var(--aine-focus);
  outline-offset: 2px;
}

.search_box_form .input-search-box .input-box:focus:not(:focus-visible),
.search_box_form_sp .input-search-box .input-box:focus:not(:focus-visible),
.header_list_searchbtn_open:focus:not(:focus-visible),
.search_box_close:focus:not(:focus-visible) {
  outline: none;
}

.search_box_form .input-search-box .input-box:focus-visible,
.search_box_form_sp .input-search-box .input-box:focus-visible,
.header_list_searchbtn_open:focus-visible,
.search_box_close:focus-visible {
  outline: 2px solid var(--aine-focus);
  outline-offset: 2px;
}
