
/* Recruitment-only responsive layer.
   It keeps the original PC recruitment DOM/content and only changes layout behavior. */

.recruit-header-logos{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  width:max-content;
  max-width:100%;
  text-decoration:none;
}

.recruit-header-logo{
  display:block;
  width:auto;
  height:auto;
  object-fit:contain;
  object-position:left center;
}

.recruit-header-logo-beaucre{width:142px}
.recruit-header-logo-eternal{width:126px}

.recruit-mobile-menu-button,
.recruit-mobile-backdrop{
  display:none;
}

@media (max-width:900px){
  :root{--recruit-mobile-header:64px}

  html,
  body{
    width:100%!important;
    min-height:100%!important;
    height:auto!important;
    margin:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  body.recruit-mobile-ready{
    padding-top:var(--recruit-mobile-header)!important;
  }

  body.recruit-mobile-ready.recruit-menu-open{
    overflow:hidden!important;
  }

  /* Remove the old corporate floating controls from recruitment pages. */
  #asideCloseBtn,
  .aside_close,
  [id*="asideClose"],
  [class*="aside_close"]{
    display:none!important;
  }

  /* Use the original PC recruitment header, converted into a mobile bar. */
  #homepage_header{
    position:fixed!important;
    z-index:30000!important;
    top:0!important;
    right:0!important;
    left:0!important;
    width:100%!important;
    height:var(--recruit-mobile-header)!important;
    min-height:var(--recruit-mobile-header)!important;
    background:#fff!important;
    border-bottom:1px solid #ededed!important;
    box-shadow:none!important;
  }

  #homepage_header > div,
  #homepage_header [class*="Header__Container"]{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
  }

  #homepage_header [class*="Header__Content"]{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    margin:0!important;
    padding:0 16px!important;
    box-sizing:border-box!important;
  }

  #homepage_header [class*="Header__Logo"],
  #homepage_header [class*="Header__FixedLogoFrame"],
  #homepage_header [class*="Header__FixedLogoImageBox"]{
    display:flex!important;
    align-items:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }

  .recruit-header-logos{
    flex:0 1 auto!important;
    gap:10px!important;
    width:auto!important;
    max-width:calc(100vw - 78px)!important;
    height:100%!important;
  }

  .recruit-header-logo-beaucre{
    width:116px!important;
    max-width:31vw!important;
  }

  .recruit-header-logo-eternal{
    width:103px!important;
    max-width:28vw!important;
  }

  /* The original PC menu becomes a closed drawer. */
  #homepage_header [class*="Header__Menus-sc-cdfe2206-7"]{
    display:none!important;
    position:fixed!important;
    z-index:30002!important;
    top:var(--recruit-mobile-header)!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    width:100%!important;
    height:calc(100svh - var(--recruit-mobile-header))!important;
    margin:0!important;
    padding:34px 24px 48px!important;
    box-sizing:border-box!important;
    overflow-y:auto!important;
    background:#fff!important;
  }

  body.recruit-menu-open #homepage_header [class*="Header__Menus-sc-cdfe2206-7"]{
    display:block!important;
  }

  #homepage_header [class*="Header__MenuArea"],
  #homepage_header [class*="Header__MenusWrapper"]{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
  }

  #homepage_header [class*="Header__MenusWrapper"] > a,
  #homepage_header .home-menu-dd{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    border-bottom:1px solid #ececec!important;
  }

  #homepage_header [class*="Header__MenusWrapper"] > a > div,
  #homepage_header .home-menu-dd > a > div{
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:58px!important;
    margin:0!important;
    padding:0!important;
    color:#1b1b1b!important;
    font-size:16px!important;
    font-weight:400!important;
    line-height:1.3!important;
    box-sizing:border-box!important;
  }

  #homepage_header [class*="Header__MenusWrapper"] > a.recruit-current-menu > div{
    font-weight:700!important;
  }

  #homepage_header .home-menu-sub{
    display:none!important;
  }

  .recruit-mobile-menu-button{
    position:relative!important;
    z-index:30004!important;
    flex:0 0 36px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    width:36px!important;
    height:36px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    appearance:none!important;
    cursor:pointer!important;
  }

  .recruit-mobile-menu-button span{
    display:block!important;
    width:22px!important;
    height:2px!important;
    background:#111!important;
    border-radius:2px!important;
    transition:transform .2s ease,opacity .2s ease!important;
  }

  body.recruit-menu-open .recruit-mobile-menu-button span:nth-child(1){
    transform:translateY(7px) rotate(45deg)!important;
  }

  body.recruit-menu-open .recruit-mobile-menu-button span:nth-child(2){
    opacity:0!important;
  }

  body.recruit-menu-open .recruit-mobile-menu-button span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg)!important;
  }

  .recruit-mobile-backdrop{
    position:fixed!important;
    z-index:29999!important;
    top:var(--recruit-mobile-header)!important;
    right:0!important;
    bottom:0!important;
    left:0!important;
    display:none!important;
    background:rgba(0,0,0,.18)!important;
  }

  body.recruit-menu-open .recruit-mobile-backdrop{
    display:block!important;
  }

  /* Restore normal document scrolling instead of the desktop-only inner scrollbar. */
  #homepage_layout{
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }

  #homepage_layout [class*="PageLayout__Wrapper"],
  #homepage_layout [class*="PageLayout__ScrollBar"]{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    overflow:visible!important;
  }

  #page_scrollbar{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    overflow:visible!important;
  }

  #page_layout{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }

  #page_scrollbar > div[style*="position:absolute"][style*="width:6px"],
  #page_scrollbar > div[style*="position:absolute"][style*="height:6px"]{
    display:none!important;
  }

  #homepage_layout [class*="PageLayout__UpperButtonWrapper"]{
    display:none!important;
  }

  /* Guardrails for the original PC content on narrow screens. */
  #page_layout,
  #page_layout *{
    max-width:100%;
    box-sizing:border-box;
  }

  #page_layout img,
  #page_layout video{
    max-width:100%!important;
  }

  #page_layout [class*="HomepageLayout__LayoutContainer"]{
    width:100%!important;
    max-width:100%!important;
  }

  #page_layout [class*="HomepageLayout__ColumnsWrapper"]{
    max-width:100%!important;
  }
}

@media (max-width:430px){
  .recruit-header-logos{gap:8px!important}
  .recruit-header-logo-beaucre{width:108px!important}
  .recruit-header-logo-eternal{width:96px!important}
}


/* v2: PC 채용 콘텐츠의 모바일 글자 크기 최적화 */
@media (max-width:900px){
  #page_layout [class*="Text__ReadOnlySection"]{
    width:100%!important;
    max-width:100%!important;
    padding-left:18px!important;
    padding-right:18px!important;
    box-sizing:border-box!important;
  }

  #page_layout [class*="Text__ReadOnlySection"] p,
  #page_layout [class*="Text__ReadOnlySection"] h1,
  #page_layout [class*="Text__ReadOnlySection"] h2,
  #page_layout [class*="Text__ReadOnlySection"] h3{
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
    line-height:1.28!important;
    letter-spacing:-0.035em!important;
    word-break:keep-all!important;
    overflow-wrap:break-word!important;
  }

  #page_layout [style*="font-size:56px"]{
    font-size:32px!important;
    line-height:1.24!important;
  }

  #page_layout [style*="font-size:48px"]{
    font-size:30px!important;
    line-height:1.25!important;
  }

  #page_layout [style*="font-size:42px"]{
    font-size:28px!important;
    line-height:1.27!important;
  }

  #page_layout [style*="font-size:38px"]{
    font-size:27px!important;
    line-height:1.28!important;
  }

  #page_layout [style*="font-size:34px"]{
    font-size:25px!important;
    line-height:1.3!important;
  }

  #page_layout [style*="font-size:28px"]{
    font-size:22px!important;
    line-height:1.34!important;
  }

  #page_layout [style*="font-size:20px"]{
    font-size:17px!important;
    line-height:1.5!important;
  }

  #page_layout [style*="font-size:18px"]{
    font-size:15px!important;
    line-height:1.65!important;
    letter-spacing:-0.015em!important;
  }

  #page_layout [class*="Accordion__Title"]{
    font-size:16px!important;
    line-height:1.45!important;
    word-break:keep-all!important;
  }

  #page_layout [class*="Accordion__Description"]{
    font-size:14px!important;
    line-height:1.7!important;
    word-break:keep-all!important;
  }
}

@media (max-width:430px){
  #page_layout [style*="font-size:56px"]{
    font-size:30px!important;
  }

  #page_layout [style*="font-size:48px"]{
    font-size:28px!important;
  }

  #page_layout [style*="font-size:42px"],
  #page_layout [style*="font-size:38px"]{
    font-size:26px!important;
  }

  #page_layout [style*="font-size:34px"]{
    font-size:24px!important;
  }
}
