/*
 * sellmate.io 회사소개(/company) 전용 스타일 (WWW-4). 수치는 2026-11-10 원본을 1920px·390px 에서 잰 값이다.
 * 원본 글 위젯은 '20px 문단(기본 줄 28, 줄 간격 2 면 40) 안의 글(줄 간격 1.2)' 구조다.
 * 연혁(#company-history-page 아래)은 원본 코드 위젯의 CSS 를 그대로 옮겼다(맨 아래).
 */
.sm-page--company .sm-mo { display: none; }
:where(.sm-page--company) :where(p, h1, h2) { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
.sm-page--company img { display: block; width: 100%; height: auto; }

/* PC 머리글: 배경 사진 cover · 글 위젯 1160px(높이 481 = 문단 높이의 합) */
.sm-co-hero { padding: 0 20px; background: center / cover no-repeat; }
.sm-co-hero__text { max-width: 1160px; margin: 0 auto; color: #252525; font-size: 20px; line-height: 28px; text-align: center; }
.sm-co-hero__gap span { font-size: 36px; line-height: 1.2; }
.sm-co-hero .sm-co-hero__title { line-height: 2; }
.sm-co-hero__title strong span, .sm-co-hero__name strong span { color: #fff; font-size: 48px; font-weight: 700; line-height: 1.2; }
.sm-co-hero__title .sm-co-hero__blank { font-size: 10px; line-height: 20px; }
.sm-co-hero__en { color: #d1cdcd; font-size: 22px; line-height: 1.2; }

/* 원본 여백 위젯 섹션 */
.sm-co-strip { height: 39px; background: #f8f8f8; }

/* PC 가치: 위아래 160 · 제목 이미지(1160 폭, 높이 49) · 45 · 글(줄 간격 2, 30px 굵은 제목) · 80 */
.sm-co-values { max-width: 1200px; margin: 0 auto; padding: 160px 20px; color: #252525; }
.sm-co-values .sm-co-label + .sm-co-text { margin-top: 45px; }
.sm-co-values .sm-co-text + .sm-co-label { margin-top: 80px; }
/* 원본 둘째·셋째 제목은 이미지 위젯이라 위아래 1px 씩 더 크다 */
.sm-co-values .sm-co-text + .sm-co-label { padding: 1px 0; }
.sm-co-text { font-size: 20px; line-height: 2; text-align: center; }
.sm-co-text span { font-size: 30px; font-weight: 700; line-height: 1.2; }
.sm-co-text strong { font-weight: 700; }
.sm-co-text .sm-co-text__blank { line-height: 28px; }

/* 연혁 섹션: 위아래 60 · 원본 코드 위젯 1160px(모바일은 좌우 15) */
.sm-co-history { padding: 60px 0; background: #f8fafc; color: #252525; font-size: 20px; line-height: 28px; }
.sm-co-history #company-history-page { max-width: 1160px; margin: 0 auto; }

/* PC 카드: 위아래 120 · 1160px 이미지 맵(효과 없음) */
.sm-co-cards { padding: 120px 20px; }
.sm-co-cards .sm-imap { max-width: 1160px; margin: 0 auto; }

@media (max-width: 991px) {
    .sm-page--company .sm-pc { display: none; }
    .sm-page--company .sm-mo { display: block; }

    /* 모바일 머리글: 배경 사진 cover 위 글 이미지(375×343) */
    .sm-co-mhero { background: center / cover no-repeat; }

    /* 모바일 가치: 위아래 80 · 제목 이미지(375×26, 위 2.7) · 15 · 글 · 40 */
    .sm-co-mvalues { padding: 80px 0; color: #252525; }
    /* 이미지 위 2.7 은 제목(h2)의 안쪽 여백으로 준다(이미지 바깥 여백이면 위 여백과 겹쳐 사라진다) */
    .sm-co-mvalues .sm-co-label { padding-top: 2.7px; }
    /* 원본 vision 제목은 이미지 위젯이라 아래가 1px 더 크다 */
    .sm-co-mvalues .sm-co-label:nth-of-type(2) { padding-bottom: 1px; }
    .sm-co-mvalues .sm-co-label + .sm-co-mtext { margin-top: 15px; }
    .sm-co-mvalues .sm-co-mtext + .sm-co-label { margin-top: 40px; }
    .sm-co-mtext { font-size: 20px; line-height: 28px; text-align: center; }
    .sm-co-mtext span { font-size: 16px; line-height: 1.2; }
    .sm-co-mtext strong { font-weight: 700; }

    /* 연혁: 원본 코드 위젯은 좌우 15 안쪽(345)인데 안의 상자가 최소 360 이라 오른쪽으로 넘친다 */
    .sm-co-history { padding: 60px 15px; overflow: hidden; }

    /* 모바일 카드: 위아래 72 · 좌우 20 · 사이 24 */
    .sm-co-mcards { padding: 72px 20px; }
    .sm-co-mcards .sm-imap + .sm-imap { margin-top: 24px; }
}

/* ===== 연혁: 원본 코드 위젯 CSS (2026-11-10). 원본의 깨진 규칙 하나(모바일 .month 폭 80 — 셀렉터가 어긋나 적용되지 않음)는 뺐다 ===== */
#company-history-page {background: #F8FAFC;}
.company-history-container {max-width: 1160px;
  min-width: 360px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 60px 20px;}
.company-history-container > .imweb-title {font-size: 32px;
  font-weight: 800;
  line-height: 49px;
  letter-spacing: 0em;
  text-align: center;
  color: #308FFF;}
.company-history-container > .desc {font-size: 32px;
  font-weight: 500;
  line-height: 49px;
  letter-spacing: -0.01em;
  text-align: center;
  margin-top: 60px;}
.company-history-container > .tab-container {font-size: 20px;}
.company-history-container > .tab-container > .tab-title {width: fit-content;
  margin: 72px auto 138px;}
.company-history-container > .tab-container > .tab-title > ul {color: #D7D8DF;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;}
.company-history-container > .tab-container > .tab-title > ul::before {content: '';
  width: calc(100% - 16px);
  height: 8px;
  background: #D7D8DF;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);}
.company-history-container > .tab-container > .tab-title > ul > li {display: flex;
  flex-flow: row nowrap;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  color: #D7D8DF;
  margin-right: 60px;
  position: relative;
  z-index: 2;}
.company-history-container > .tab-container > .tab-title > ul > li:first-of-type {margin-right: 160px;}
.company-history-container > .tab-container > .tab-title > ul > li:nth-of-type(3) {margin-right: 80px;}
.company-history-container > .tab-container > .tab-title > ul > li:last-of-type {margin-right: 0;}
.company-history-container > .tab-container > .tab-title > ul > li > .circle-icon {width: 24px;
  height: 24px;
  background: #D7D8DF;
  border-radius: 50%;}
.company-history-container > .tab-container > .tab-title > ul > li > .year {position: absolute;
  transform: rotate(45deg);
  top: 40px;
  left: 22px;}
.company-history-container > .tab-container > .tab-title > ul > li.active {color: #308FFF;
  font-weight: 800;}
.company-history-container > .tab-container > .tab-title > ul > li.active > .circle-icon {border: 7px solid #308FFF;
  background: white;}
.company-history-container > .tab-container > .tab-content {max-width: 980px;
  margin: 0 auto;}
.company-history-container > .tab-container > .tab-content > .history-list {display: none;}
.company-history-container > .tab-container > .tab-content > .history-list.active {display: block;}
.company-history-container > .tab-container > .tab-content > .history-list {padding-left: 240px;}
.company-history-container > .tab-container > .tab-content > .history-list > div {display: flex;
  flex-flow: row nowrap;
  align-items: start;}
.company-history-container > .tab-container > .tab-content > .history-list .month {width: 120px;
  font-weight: 700;
  line-height: 31px;
  text-align: left;
  color: #308FFF;
  margin-right: 32px;}
.company-history-container > .tab-container > .tab-content > .history-list .history-name {margin-bottom: 20px;
  font-weight: 500;}
/* 키보드로 탭을 고를 때 보이는 테두리(원본에는 키보드 조작이 없다) */
.company-history-container > .tab-container > .tab-title > ul > li:focus-visible {outline: 2px solid #308FFF; outline-offset: 4px;}
@media screen and (max-width: 1024px) {
  .company-history-container {padding: 60px 0;}
  .company-history-container > .imweb-title {font-size: 16px;
    line-height: 25px;}
  .company-history-container > .desc {width: 224px;
    margin: 0 auto;
    margin-top: 32px;
    font-size: 20px;
    line-height: 31px;}
  .company-history-container > .tab-container > .tab-title {position: relative;
    min-width: 100%;
    height: 43px;
    margin: 44px 0 40px;
    padding-bottom: 12px;
    border-bottom: 1px solid #EAEAEA;
    overflow: hidden;}
  /* 가로 위치(left)는 company.js 가 열린 해를 가운데에 두도록 정한다(원본은 calc(50% - 817px) 고정) */
  .company-history-container > .tab-container > .tab-title > ul {position: absolute;
    height: 31px;
    top: 0;
    left: calc(50% - 817px);
    touch-action: pan-y;}
  .company-history-container > .tab-container > .tab-title > ul::before {display: none;}
  .company-history-container > .tab-container > .tab-title > ul > li {font-weight: 600;
    margin: 0 12px;
    position: relative;}
  .company-history-container > .tab-container > .tab-title > ul > li:first-of-type {margin: 0 12px;}
  .company-history-container > .tab-container > .tab-title > ul > li:nth-of-type(3) {margin: 0 12px;}
  .company-history-container > .tab-container > .tab-title > ul > li.active {font-weight: 800;}
  .company-history-container > .tab-container > .tab-title > ul > li > .circle-icon {display: none;}
  .company-history-container > .tab-container > .tab-title > ul > li > .year {position: relative;
    width: 62px;
    text-align: center;
    transform: rotate(0);
    top: 0;
    left: 0;}
  .company-history-container > .tab-container > .tab-content > .history-list {width: 360px;
    padding: 0 24px;
    margin: 0 auto;
    font-size: 15px;
    display: none;}
  .company-history-container > .tab-container > .tab-content > .history-list.active {display: block;}
  .company-history-container > .tab-container > .tab-content > .history-list > div > div:last-of-type {width: calc(100% - 100px);}
  .company-history-container > .tab-container > .tab-content > .history-list .history-name {margin-bottom: 12px;
    line-height: 23.1px;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: keep-all;}
}
