header { width: 100%; float: left; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(0);
  transition: transform .28s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  background: #fff;
}

.site-header.is-visible { transform: translateY(0); }
.site-header.is-hidden { transform: translateY(-100%); }

#header_search_wrap {
  background: #f7f9fc;
  border-bottom: 1px solid #e4e8ef;
}

#header_search_wrap .contetnts,
#header_logo_wrap .contetnts {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

#header_search_wrap .contetnts {
  padding: 6px 0;
  overflow: hidden;
}

.header-nav-links { width: 55%; text-align: left; float: left; }
.header-nav-links a { display: inline-block; margin-right: 10px; font-size: 13px; font-weight: 500; }

.header-search-area { width: 45%; float: right; }
.header-search-area form { display: flex; justify-content: flex-end; gap: 8px; }

.search_form {
  width: 220px;
  max-width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #ccd5e3;
  border-radius: 6px;
  font-size: 13px;
}

.search_btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #113f67;
  background: #113f67;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

#header_logo_wrap {
  background: #fff;
  border-bottom: 1px solid #e4e8ef;
}

#header_logo_wrap .contetnts { padding: 18px 0 20px; text-align: center; }
#header_logo_wrap .contetnts.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

#header_logo_wrap .logo {
  font-size: 26px;
  font-weight: 800;
  color: #0b2c5f;
  line-height: 1.2;
}

.header-catch {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #354a62;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px 7px;
  border: none;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #113f67;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.mobile-header-menu { width: 100%; }
.site-header.is-menu-open .mobile-header-menu { display: block; }
.site-header.is-menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 769px) {
  .menu-toggle { display: none; }
  .mobile-header-menu { display: block; }
  #header_search_wrap .contetnts {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: visible;
  }
  .header-nav-links { width: 62%; float: none; }
  .header-search-area { width: 38%; float: none; margin-left: auto; }
}

@media (max-width: 1024px) {
  #header_search_wrap .contetnts,
  #header_logo_wrap .contetnts {
    width: calc(100% - 24px);
  }
  .header-nav-links { width: 100%; float: none; margin-bottom: 10px; }
  .header-search-area { width: 100%; float: none; }
  .header-search-area form { justify-content: flex-start; }
}

@media (max-width: 768px) {
  #header_search_wrap .contetnts,
  #header_logo_wrap .contetnts { width: calc(100% - 8px); }

  #site-header { display: block; background: #fff; }
  #header_search_wrap { width: auto; background: transparent; border-bottom: 0; position: relative; }
  #header_search_wrap .contetnts { width: auto; padding: 0; margin: 0; overflow: visible; }

  #header_logo_wrap .contetnts { padding: 4px 0 6px; }
  #header_logo_wrap .contetnts.brand-row {
    min-height: 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  #header_logo_wrap .logo { font-size: 16px; flex: 0 0 auto; }
  .header-catch {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    text-align: left;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 5px;
    position: absolute;
    right: 2px;
    top: 14px;
    transform: translateY(-50%);
    z-index: 1301;
    margin: 0;
  }

  .mobile-header-menu {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 10px;
  }

  .site-header.is-menu-open .mobile-header-menu { display: block; }

  #mobile-header-menu {
    position: fixed;
    top: 46px;
    left: 4px;
    right: 4px;
    width: auto;
    max-width: none;
    margin-top: 0;
    padding: 10px;
    background: #fff;
    border: 1px solid #e1e8f2;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 1100;
  }

  #mobile-header-menu .header-nav-links,
  #mobile-header-menu .header-search-area { width: 100%; float: none; }

  #mobile-header-menu .header-nav-links a {
    display: block;
    width: 100%;
    margin: 0 0 6px;
    padding: 8px 10px;
    background: #f6f9ff;
    border-radius: 8px;
    font-size: 13px;
  }

  #mobile-header-menu .header-search-area { margin-top: 8px; }
  #mobile-header-menu .header-search-area form { display: flex; gap: 6px; width: 100%; }
  #mobile-header-menu .search_form { flex: 1 1 auto; width: auto; min-width: 0; }
  #mobile-header-menu .search_btn { flex: 0 0 auto; }

  .search_form { width: 100%; }
  .search_btn { white-space: nowrap; }
}
