/* 회사소개: HISTORY 타임라인 + 오시는길 2분할 (introduction.php 전용) */

/* ---------- HISTORY ---------- */
.his_tl {
  position: relative;
  display: flow-root;
  max-width: 1440px;
  margin: 0 auto;
  text-align: left;
}
.his_tl::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 0;
  left: 50%;
  width: 10px;
  margin-left: -5px;
  border-radius: 5px;
  background: linear-gradient(180deg, #0d6fc8 0%, #4a9fdc 55%, #cfe8fb 100%);
}
.his_tl_item {
  position: relative;
  width: calc(50% - 124px);
  margin-bottom: 56px;
  box-sizing: border-box;
}
.his_tl_item:nth-of-type(odd) {
  float: left;
  clear: left;
}
.his_tl_item:nth-of-type(even) {
  float: right;
  clear: right;
}
/* 좌우 블록의 시작 높이가 겹치지 않게 하는 간격용 요소.
   앞 블록보다 최소 110px 아래에서 다음 블록이 시작된다 */
.his_tl_gap {
  display: block;
  width: 0;
  height: 110px;
}
.his_tl_gap:nth-of-type(odd) {
  float: right;
  clear: right;
}
.his_tl_gap:nth-of-type(even) {
  float: left;
  clear: left;
}
.his_tl_item:last-child {
  margin-bottom: 0;
}
/* 점 + 가로 연결선 */
.his_tl_dot {
  position: absolute;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2b8ad6;
}
.his_tl_dot::after {
  content: "";
  position: absolute;
  top: 15px;
  width: 75px; /* 중앙선 가장자리까지만 */
  height: 10px;
  background: inherit;
}
.his_tl_item:nth-of-type(odd) .his_tl_dot {
  right: -64px;
}
.his_tl_item:nth-of-type(odd) .his_tl_dot::after {
  left: 20px;
}
.his_tl_item:nth-of-type(even) .his_tl_dot {
  left: -64px;
}
.his_tl_item:nth-of-type(even) .his_tl_dot::after {
  right: 20px;
}
.his_tl_item:nth-of-type(1) .his_tl_dot { background: #0d6fc8; }
.his_tl_item:nth-of-type(2) .his_tl_dot { background: #1877cc; }
.his_tl_item:nth-of-type(3) .his_tl_dot { background: #2b8ad6; }
.his_tl_item:nth-of-type(4) .his_tl_dot { background: #3d96da; }
.his_tl_item:nth-of-type(5) .his_tl_dot { background: #55a4de; }
.his_tl_item:nth-of-type(6) .his_tl_dot { background: #6db2e4; }
.his_tl_item:nth-of-type(7) .his_tl_dot { background: #8cc4ec; }
.his_tl_item:nth-of-type(n + 8) .his_tl_dot { background: #a9d4f4; }

.his_tl_period {
  font-size: 28px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.5px;
  color: #111;
  margin-bottom: 18px;
}
.his_tl_row {
  display: flex;
  gap: 14px;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.3px;
  color: #363636;
  margin-bottom: 8px;
}
.his_tl_date {
  flex: 0 0 auto;
  min-width: 86px;
  white-space: nowrap;
}
.his_tl_txt {
  word-break: keep-all;
}
/* 왼쪽 칸은 중앙선 쪽(오른쪽)으로 붙인다 */
.his_tl_item:nth-of-type(odd) .his_tl_period {
  text-align: right;
}
.his_tl_item:nth-of-type(odd) .his_tl_row {
  flex-direction: row-reverse;
  text-align: right;
}
.his_tl_item:nth-of-type(odd) .his_tl_date {
  min-width: 0;
}
.his_tl_photo {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 596 / 320;
  background: #e9ebf1;
}
.sub.intro .main_con .history_wrap .his_tl .his_tl_photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1200px) {
  .his_tl_item {
    width: calc(50% - 70px);
  }
  .his_tl_dot {
    width: 28px;
    height: 28px;
    top: 6px;
  }
  .his_tl_dot::after {
    top: 10px;
    width: 42px;
    height: 8px;
  }
  .his_tl_item:nth-of-type(odd) .his_tl_dot { right: -42px; }
  .his_tl_item:nth-of-type(odd) .his_tl_dot::after { left: 14px; }
  .his_tl_item:nth-of-type(even) .his_tl_dot { left: -42px; }
  .his_tl_item:nth-of-type(even) .his_tl_dot::after { right: 14px; }
  .his_tl::before { width: 8px; margin-left: -4px; }
  .his_tl_period { font-size: 24px; line-height: 40px; }
  .his_tl_row { font-size: 15px; line-height: 23px; }
}

/* 모바일: 한 줄 세로 배치 */
@media (max-width: 800px) {
  .his_tl::before {
    left: 7px;
    top: 8px;
    width: 6px;
    margin-left: 0;
  }
  .his_tl_item,
  .his_tl_item:nth-of-type(odd),
  .his_tl_item:nth-of-type(even) {
    float: none;
    width: auto;
    margin: 0 0 44px;
    padding-left: 36px;
  }
  .his_tl_item:last-child {
    margin-bottom: 0;
  }
  .his_tl_item:nth-of-type(odd) .his_tl_dot,
  .his_tl_item:nth-of-type(even) .his_tl_dot {
    left: 0;
    right: auto;
    top: 4px;
    width: 20px;
    height: 20px;
  }
  .his_tl_dot::after,
  .his_tl_gap {
    display: none;
  }
  .his_tl_period,
  .his_tl_item:nth-of-type(odd) .his_tl_period {
    text-align: left;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 12px;
  }
  .his_tl_row,
  .his_tl_item:nth-of-type(odd) .his_tl_row {
    flex-direction: row;
    text-align: left;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 6px;
  }
  .his_tl_date,
  .his_tl_item:nth-of-type(odd) .his_tl_date {
    min-width: 72px;
  }
  .his_tl_photo {
    margin-top: 16px;
    border-radius: 14px;
  }
}

/* ---------- 오시는길 2분할 ---------- */
.location_split {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 20px 0;
  box-sizing: border-box;
}
.loc_tit {
  font-size: 40px;
  line-height: 56px;
  letter-spacing: -0.5px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 12px;
}
.loc_contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 20px;
  line-height: 30px;
  color: #363636;
  margin-bottom: 48px;
}
.loc_cols {
  display: flex;
  gap: 40px;
}
.loc_col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.loc_label {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 100px;
  background: #0d6fc8;
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}
.loc_addr {
  font-size: 22px;
  line-height: 32px;
  letter-spacing: -0.3px;
  color: #363636;
  word-break: keep-all;
  margin-bottom: 20px;
}
.loc_map {
  width: 100%;
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #e9ebf1;
}
.loc_map iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  pointer-events: none;
}
@media (max-width: 1200px) {
  .loc_addr { font-size: 18px; line-height: 27px; }
  .loc_map iframe { height: 400px; }
}
@media (max-width: 800px) {
  .location_split { padding-top: 60px; }
  .loc_tit { font-size: 24px; line-height: 34px; margin-bottom: 8px; }
  .loc_contact { font-size: 14px; line-height: 20px; margin-bottom: 28px; }
  .loc_cols { flex-direction: column; gap: 36px; }
  .loc_label { font-size: 14px; line-height: 22px; padding: 3px 12px; margin-bottom: 8px; }
  .loc_addr { font-size: 14px; line-height: 20px; margin-bottom: 12px; }
  .loc_map { border-radius: 12px; }
  .loc_map iframe { height: 258px; }
}
