@import url("https://fonts.googleapis.com/css2?family=Gothic+A1:wght@400;500;700;800;900&display=swap");

/* device-frame: body 안에 390x844 모바일 프레임을 만들고 모든 콘텐츠를 그 안에 넣음.
   body 자체는 건드리지 않고, .device-frame 래퍼가 프레임 역할을 함. */

.device-frame {
  width: min(100%, 390px);
  height: min(100dvh, 844px);
  height: min(100svh, 844px);
  max-width: 390px;
  max-height: 844px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-common-white, #ffffff);
  container-type: inline-size;
  container-name: device;
  /* 바깥 배경은 body가 담당 */
}

.device-frame__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.device-frame__header {
  flex-shrink: 0;
  width: 100%;
}

/* 바깥 배경 */
html {
  background: var(--color-bg-grey, #f1f3f4);
}

body.device-frame-page {
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-bg-grey, #f1f3f4);
}

/* company.html 등 레거시 페이지 보정:
   100vh는 바깥 뷰포트 기준이라 프레임을 넘침 → 스크롤 영역 기준으로 고정
   (스크롤 높이 = 프레임 높이 - 하단 헤더, %로 잡아야 정확히 맞음)
   #company_recruit은 모바일에서 height:auto라 건드리지 않음 */
.device-frame__scroll #company_about {
  height: 100% !important;
  min-height: 100% !important;
  box-sizing: border-box;
}

.device-frame__scroll .mobile_about_img,
.device-frame__scroll .info2_img {
  width: 100% !important;
  max-width: 390px !important;
  overflow: hidden;
}

.device-frame__scroll .mobile_about_img > img,
.device-frame__scroll .info2_img > img {
  width: 100% !important;
  max-width: 100% !important;
}
