
:root {
  --active_color: #ED6C71;
}

/* pc */
@media (min-width: 961px) {
  :root {
    --menu_padding: 48px;
    --menu_gap: 46px;
    --left_gap: 226px;
  }
}
@media (max-width:1200px) and (min-width:961px) {
  :root {
    --menu_padding: 20px;
    --menu_gap: 36px;
    --left_gap : 66px;
  }
}
/* mo */
@media (max-width: 960px) {
  :root {
    --menu_padding: 20px;
  }
}

/* gnb */
.header_new {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  z-index: 501;
}
.header_new a:hover {
  text-decoration: none;
}
.header_new::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #d9d9d9;
  display: block;
  content: '';
  z-index: 1;
}
.header_new_inner {
  width: 100%;
  max-width: 1920px; 
  margin: 0 auto;
  padding: 0 var(--menu_padding);
  display: flex;
  align-items: center;
  z-index: 3;
}
.header_new_logo a {
  text-indent: -1000em;
  display: block;
  overflow: hidden;
}
.header_new_menu {
  height: 100%;
  display: flex;
}
.header_new_main {
  position: relative;
  line-height: 170%;
  font-weight: 600;
  margin:0; 
  color: #444;
  white-space: nowrap;
  background-color: transparent;
  display: flex;
  align-items: center;
  z-index: 2;
}

.header_new_main a {
  color: inherit;
  font-weight: 600;
  transition: .3s ease color;
}
.header_new_sub {
  width: 100%;
  background-color: #fff;
}
.header_new_sub_inner {
  display: flex;
  flex-wrap: wrap;
}
.header_new_submenu {
  font-weight: 500;
  line-height: 170%;
  color: #777;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}
.header_new_submenu > h3 {
  margin: 0;
  font-weight: 600;
  color: #444;
}
.header_new_submenu ul,
.header_new_submenu li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.header_new_submenu ul {
  display: flex;
  flex-direction: column;
}
.header_new_others {
  margin-left: auto;
  display: flex;
}
.header_new_others .header_new_button{
  line-height: 170%;
  color: #fff;
  border-radius: 40px;
  background-color: #FF656A;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.header_new_submenu li a{
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.03em;
}
.header_new_submenu li a b {
  width: fit-content;
  height: fit-content;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.03em;
  padding: 4px 4px 3px;
  color: #fff;
  background: #FF5F68;
  border-radius: 2px;
}
.header_new_submenu li a.powered_by_ff::before,
.header_new_submenu li a.hyphen::before,
.header_new_submenu li a.fivecloud::before,
.header_new_submenu li a.building_solution::before{
  content: '';
  display: inline-flex;
  width: 20px;
  height: 27px;
}
.header_new_submenu li a.powered_by_ff::before{
  background: url(../images/header/favicon_powered_by_ff.png) 50% 50% no-repeat;
  background-size: 20px;
}
.header_new_submenu li a.hyphen::before{
  background: url(../images/header/favicon_hyphen.png) 50% 50% no-repeat;
  background-size: 20px;
}
.header_new_submenu li a.fivecloud::before{
  background: url(../images/header/favicon_fivecloud.png) 50% 50% no-repeat;
  background-size: 20px;
}
.header_new_submenu li a.building_solution::before{
  background: url(../images/header/favicon_bs.png) 50% 50% no-repeat;
  background-size: 20px;
}
/* pc */
@media (min-width: 961px) {
  .nav_icons,
  .header_new_all,
  .header_new_mobile {
    display: none;
  }
  .header_new_inner {
    max-width: 1920px;
    height: 72px;
  }
  .header_new_logo {
    margin-right: calc(var(--menu_gap) / 2);
  }
  .header_new_logo a {
    width: 132px;
    height: 42px;
    background: url('../images/layout/ff_logo_new.png') center center no-repeat;
    background-size: 132px 22px;
  }
  .header_new_banner {
    display: none;
  }
  .header_new_main {
    height: 100%;
    padding: 0  calc(var(--menu_gap) / 2);
    font-size: 18px;
  }
  .header_new_main a {
    height: 100%;
    display: flex;
    align-items: center;
  }
  .header_new_main::before {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--active_color);
    display: block;
    content: '';
    transition: .1s ease all;
  }
  .header_new_main:hover,
  .header_new_main._hover,
  .header_new_main._active {
    color: var(--active_color);
  }
  .header_new_main:hover::before,
  .header_new_main._hover::before,
  .header_new_main._active::before {
    left: calc(var(--menu_gap) / 2);
    width: calc(100% - var(--menu_gap));
    transition: .3s ease all;
  }
  .header_new_main .header_new_main_mo {display: none;}
  .header_new_sub {
    position: absolute;
    top: 100%;
    width: 100%;
    left: 0;
    display: none;
  }
  .header_new_sub._hover {
    display: block;
  }
  .header_new_sub_inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 32px var(--menu_gap) 64px var(--left_gap);
    gap: 40px 30px;
  }
  .header_new_submenu {
    width: 222px;
    font-size: 16px;
    flex-direction: column;
    gap: 8px;
  }
  .header_new_submenu > h3 {
    font-size: 18px;
  }
  .header_new_submenu ul {
    gap: 8px;
  }
  .header_new_submenu li._active a,
  .header_new_submenu li._hover a,
  .header_new_submenu li a:hover {
    font-weight: 700;
    color: #444;
    text-decoration:none;
  }
  .header_new_others .header_new_button {
    min-width: 104px;
    height: 40px;
    padding: 0 16px;
    font-size: 18px;
    font-weight: 600;
    color:#fff;
  }
  .header_new_others .header_new_button._call {
    display: none;
  }
}
/* mo */
@media (max-width: 960px) {
  body.scroll_hidden {
    touch-action: none!important;
    overflow: hidden !important;
    -webkit-overflow-scrolling: hidden !important;
    overscroll-behavior: none !important;
  }
  .header_new._active {
    position:fixed;
    z-index: 502;
  }
  .header_new_others {
    display: flex;
    align-items: center;
    gap: 0 6px;
  }

  .header_new_menu:has(.is_sub._active) .header_new_main:not(._active) {
    color: #aaa;
  }

  .header_new_mobile {
    position: relative;
    right: -10px;
    width: 40px;
    height: 40px;
    display: block;
  }
  .header_new_mobile span {
    text-indent: -1000em;
    overflow: hidden;
  }
  .header_new_mobile span,
  .header_new_mobile::before,
  .header_new_mobile::after {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background-color: #222;
    border-radius: 2px;
    display: block;
    transition: .3s ease transform;
  }
  .header_new_mobile::before,
  .header_new_mobile::after {
    content: '';
  }
  .header_new_mobile::before {top: 12px;}
  .header_new_mobile span {top: 19px;}
  .header_new_mobile::after {top: 26px;}
  /* active */
  .header_new_mobile._close span {opacity: 0;}
  .header_new_mobile._close::before,
  .header_new_mobile._close::after {top: 19px; width: 23px;}
  .header_new_mobile._close::before {transform: rotate(45deg);}
  .header_new_mobile._close::after {transform: rotate(-45deg);}

  .header_new_inner {height: 60px;}
  .header_new::after {z-index: 1;}
  .header_new_logo {margin-left: -10px;}
  .header_new_logo a {
    width: 113px;
    height: 37px;
    background: url('../images/layout/ff_logo_new_mo.png') center center no-repeat;
    background-size: 93px 17px;
  }
  .header_new_menu {
    position: fixed;
    top: 60px;
    width: 100%;
    height: calc(100% - 60px);
    margin: 0 calc(-1 * var(--menu_padding));
    padding-bottom: 100px;
    background-color: #fff;
    display: none;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    gap: 16px 0;
  }
  .header_new_menu._active {display: flex;}
  .header_new_banner {padding: 24px var(--menu_padding);}
  .header_new .header_new_banner a {
    position: relative;
    width: 100%;
    min-height: 87px;
    padding: 16px 16px 16px 74px;
    font-size: 14px;
    line-height: 170%;
    font-weight: 500;
    color: #fff;
    border-radius: 8px;
    background-color: var(--active_color);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .header_new .header_new_banner a.chatbot{
    background: #FF5F68;
  }
  .header_new .header_new_banner a::before {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 50px;
    height: 50px;
    background: #fff url('../images/layout/header_bn_question_mo.png') center center no-repeat;
    background-size: 15px auto;
    border-radius: 50px;
    transform: translateY(-50%);
    display: block;
    content: '';
  }
  /* .header_new .header_new_banner a.chatbot::before{
    background: url('../images/layout/icon_chatbot_banner.png') center center no-repeat;
    background-size: 50px auto;
  } */
  .header_new .header_new_banner a > span {
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
  }
  .header_new .header_new_banner a > span::after {
    width: 24px;
    height: 24px;
    background: url('../images/layout/header_bn_arrow_mo.png') center center no-repeat;
    background-size: 24px auto;
    display: inline-block;
    content: '';
    transition: .1s ease background-color;
  }
  .header_new_main:first-of-type {
    margin-top: -16px;
  }
  .header_new_main a {
    position: relative;
    width: 100%;
    min-height: 48px;
    font-size: 22px;
    font-weight: 700;
    line-height: 140%;
    padding: 8px 60px 8px 68px;
    word-break: break-word;
    white-space: normal;
    display: inline-flex;
    transition: .1s ease color;
  }
 
  .header_new_main .icon_emoji {
    display: none;
  }
  .header_new_main.is_only a {width: 100%; padding-right: 20px;}
  .header_new_main.is_sub a::after {
    position: absolute;
    top: 14px;
    right: var(--menu_padding);
    width: 20px;
    height: 20px;
    margin-left: auto;
    background-color: transparent;
    background-image: url('../images/layout/header_nav_arrow_main_mo.svg');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: contain;
    display: block;
    content: '';
  }
  .header_new_main.is_only .header_new_main_mo {display: none;}
  .header_new_main:not(.is_only) .header_new_main_mo {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: block; 
    background: transparent;
  }
  .header_new_main._active {color: #444;}
  .header_new_main.is_sub._active a::after {
    top: 20px;
    background-image: url('../images/layout/header_nav_arrow_main_mo_active.svg');
    transform: rotate(180deg) translateY(8px);
  }
  .header_new_main .nav_icons {
    position: absolute;
    top: 8px;
    left: var(--menu_padding);
    width: 32px; 
    height: 32px;
  }
  .header_new_main .nav_icons img {
    width : 100%;
  }
  .header_new_sub {
    max-height: 0;
    font-size: 18px;
    color: #444;
    background-color: rgba(228, 228, 228, .3);
    overflow: hidden;
  }
  ._active + .header_new_sub,
  ._isActive._active + .header_new_sub {
    max-height: 200vh;
    overflow: visible;
  }
  .header_new_main._isActive:not(._active) + .header_new_sub,
  .header_new_main:not(._active) + .header_new_sub {
    display: none !important;
  }
  .header_new_sub_inner {
    padding: 24px 0;
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .header_new_sub_inner a,
  .header_new_submenu > h3 {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 4px var(--menu_padding);
    display: inline-flex;
    align-items: center;
  }
  .header_new_sub_inner a {padding-right: 50px;}
  .header_new_sub_inner a::after {
    position: absolute;
    top: 14px;
    right: var(--menu_padding);
    width: 20px;
    height: 20px;
    /* mask-image 맴버서비스 공통 사용 css - CORS 정책 위반으로 막힘
    background-color: #aaa;
    mask-image: url('../images/layout/header_nav_arrow_sub_mo.svg');
    mask-repeat: no-repeat;
    mask-position: center left;
    mask-size: contain;*/
    background : url("../images/layout/header_nav_arrow_sub_mo.svg") no-repeat center left;
    display: flex;
    content: '';
  }
  .header_new_all {margin-bottom: 4px;}
  .header_new_all a {
    color: #444; 
    font-weight: 700;
  }
  .header_new_submenu {
    width: 100%;
    font-size: inherit;
    color: inherit;
    font-weight: 500;
    flex-direction: column;
    gap: 4px 0;
  }
  .header_new_submenu + .header_new_submenu {
    margin-top: 16px;
  }
  .header_new_submenu > h3 {
    margin : 0;
    font-size: inherit;
    color: #aaa;
    font-weight: 700;
  }
  .header_new_submenu ul {gap: 4px;}
  .header_new_submenu ul._active {
    font-weight: 700;
  }
  .header_new_submenu ul li {font-weight: 500;}
  .header_new_submenu ul li._active {font-weight: 700;}
  .header_new_others .header_new_button {
    min-width: 77px;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color:#fff;
  }
  .header_new_button:not(._call) {
    display: none;
  }
  .header_new_button._call {
    color: var(--active_color);
    background-color: #fff;
    border: 1px solid var(--active_color);
    /*display: none; */
    gap: 0 4px;
  }
  .header_new_button._call::before {
    width: 16px;
    height: 16px;
    background: url('../images/layout/header_icon_call_mo.png') center center no-repeat;
    background-size: 16px auto;
    display: inline-block;
    content: '';
  }
   .header_new_submenu li a{
    gap: 4px;
  }
  .header_new_submenu li a b {
    padding: 3px 4px;
  }
  .header_new_submenu li a.powered_by_ff::before,
  .header_new_submenu li a.hyphen::before,
  .header_new_submenu li a.fivecloud::before,
  .header_new_submenu li a.building_solution::before{
    height: 31px;
    width: 24px;
  }
  .header_new_submenu li a.powered_by_ff::before{
    background: url(../images/header/favicon_powered_by_ff_m.png) 50% 50% no-repeat;
    background-size: 24px;
  }
  .header_new_submenu li a.hyphen::before{
    background: url(../images/header/favicon_hyphen_m.png) 50% 50% no-repeat;
    background-size: 24px;
  }
  .header_new_submenu li a.fivecloud::before{
    background: url(../images/header/favicon_fivecloud_m.png) 50% 50% no-repeat;
    background-size: 24px;
  }
  .header_new_submenu li a.building_solution::before{
    background: url(../images/header/favicon_bs_m.png) 50% 50% no-repeat;
    background-size: 24px;
  }
}
@media (max-width:1200px) and (min-width:961px) {
  .header_new_inner{
    padding: 0 var(--menu_padding);
  }
  .header_new_logo{
    margin-right: 0;
    margin-left: -14px;
  }
  .header_new_logo a{
    width: 45px;
    height: 45px;
    background: url('../images/layout/img_fastfive.png') center center no-repeat;
    background-size: 45px 45px;
  }
  .header_new_submenu{
    width: 202px;
  }
}
