@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family, 'Pretendard', sans-serif);
  font-size: 15px;
  color: #111;
  background: #fff;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inner_wrap {
  position: relative;
  width: min(1024px, calc(100% - 32px));
  margin: 0 auto;
}

section { position: relative; }

.ratio-4-3 {
  width: 100%;
  position: relative;
  padding-bottom: 75%;
  background: #e8e8e8;
}

.ratio-4-3 > .content-box {
  position: absolute;
  inset: 0;
}

.ratio-4-3 > .content-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Loader — 차있다 브랜드 (hd-lease 차 아이콘 대체) */
#page_loading_overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #f4f7fb 0%, #fff 60%);
  transition: opacity 0.45s ease;
}

.page-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: min(320px, 86vw);
  text-align: center;
}

.page-loader__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-loader__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--main-color, #1e88e5) 0%, color-mix(in srgb, var(--main-color, #1e88e5) 72%, #000) 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--main-color, #1e88e5) 26%, transparent);
  animation: loaderMarkPulse 2.2s ease-in-out infinite;
}

.page-loader__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
}

.page-loader__name {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
}

.page-loader__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #888;
}

.page-loader__track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e5eaf2;
  overflow: hidden;
}

.page-loader__bar {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent-color, var(--main-color, #1e88e5)), transparent);
  animation: loaderBarSlide 1.35s ease-in-out infinite;
}

.loading_text {
  margin: 0;
  min-height: 1.45em;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  line-height: 1.45;
  transition: opacity 0.22s ease;
}

.loading_text.is-changing {
  opacity: 0.3;
}

@keyframes loaderMarkPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes loaderBarSlide {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(330%); }
}

:root {
  --sidebar-width: 180px;
  --sidebar-gap: 40px;
  --content-half: 512px;
}

/* Side banners */
.side_banner {
  z-index: 10;
  position: fixed;
  top: 280px;
}

#left_banner {
  left: max(12px, calc(50% - var(--content-half) - var(--sidebar-gap) - var(--sidebar-width)));
  width: var(--sidebar-width);
}

#left_banner .side-highlights {
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

#left_banner .side-highlights__head {
  padding: 14px 12px;
  background: linear-gradient(145deg, var(--main-color), color-mix(in srgb, var(--main-color) 75%, #000));
  color: #fff;
  text-align: center;
}

#left_banner .side-highlights__head strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

#left_banner .side-highlights__head span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}

#left_banner .side-highlights__list {
  list-style: none;
  margin: 0;
  padding: 8px;
}

#left_banner .side-highlights__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 8px;
  border-radius: 8px;
}

#left_banner .side-highlights__item + .side-highlights__item {
  border-top: 1px solid #eee;
}

#left_banner .side-highlights__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--main-color) 10%, #fff);
  color: var(--main-color);
}

#left_banner .side-highlights__icon svg {
  width: 22px;
  height: 22px;
}

#left_banner .side-highlights__text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #222;
  line-height: 1.3;
}

#left_banner .side-highlights__text p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: #666;
  word-break: keep-all;
}

#right_banner {
  right: max(12px, calc(50% - var(--content-half) - var(--sidebar-gap) - var(--sidebar-width)));
  width: var(--sidebar-width);
}

#right_banner > .img_wrap {
  overflow: hidden;
  border: none;
  border-radius: 0;
}

#right_banner .side_counsel_card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

#right_banner .side_counsel_card__banner {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

#right_banner .form_inner {
  padding: 8px;
  border: none;
  border-radius: 0;
  background: #fff;
}

#right_banner .btn_wrap {
  display: flex;
  overflow: hidden;
  border-radius: 5px;
}

#right_banner .btn_wrap button {
  flex: 1;
  padding: 6px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--main-color);
  background: #f0f0f0;
  border: none;
  cursor: pointer;
}

#right_banner .btn_wrap button.active {
  color: #fff;
  background: var(--main-color);
}

#right_banner .inp_wrap { margin-top: 6px; }

#right_banner .inp_wrap input {
  display: block;
  width: 100%;
  height: 35px;
  padding: 0 7px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#right_banner .agr_wrap label { font-size: 13px; }

#right_banner .send input {
  display: block;
  width: 100%;
  padding: 7px 0;
  margin-top: 6px;
  font-size: 14px;
  color: #fff;
  border: none;
  border-radius: 5px;
  background: var(--main-color);
  cursor: pointer;
}

#right_banner .car_view {
  padding: 8px 12px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

#right_banner .car_view .tit {
  padding-bottom: 7px;
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 17px;
  border-bottom: 3px solid var(--main-color);
  text-align: center;
}

/* Subpage sidebars */
.side_banner--sub .side-sub-nav,
.side_banner--sub .side-sub-counsel {
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.side_banner--sub .side-sub-nav__head,
.side_banner--sub .side-sub-counsel__head {
  margin: 0;
  padding: 12px 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--main-color, #1e88e5);
}

.side_banner--sub .side-sub-nav__head span,
.side_banner--sub .side-sub-counsel__head span {
  font-weight: 800;
}

.side_banner--sub .side-sub-nav ul {
  margin: 0;
  padding: 8px;
  list-style: none;
}

.side_banner--sub .side-sub-nav li + li {
  margin-top: 4px;
}

.side_banner--sub .side-sub-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.side_banner--sub .side-sub-nav a:hover {
  color: var(--main-color, #1e88e5);
  background: color-mix(in srgb, var(--main-color, #1e88e5) 8%, #fff);
}

.side_banner--sub .side-sub-counsel form {
  padding: 8px;
}

.side_banner--sub .side-sub-counsel + .car_view,
.side_banner--sub .car_view {
  margin-top: 10px;
}

#right_banner .car_view .thumb {
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

#right_banner .car_view .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#right_banner .car_view .name {
  margin: 8px 0 0;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#right_banner .recent-side-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#right_banner .recent-side-item {
  display: block;
  color: inherit;
  text-decoration: none;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

#right_banner .recent-side-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

#right_banner .recent-side-item:hover .name {
  color: var(--main-color);
}

#right_banner .recent-side-item .thumb {
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}

#right_banner .recent-side-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#right_banner .recent-side-item .name {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#right_banner .recent-side-empty {
  margin: 0;
  padding: 12px 0;
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* Footer counsel bar */
.footer_counsel {
  z-index: 99;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: color-mix(in srgb, var(--main-color) 88%, transparent);
  backdrop-filter: blur(4px);
}

.footer_counsel .form_inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 88px;
  padding: 12px 0;
}

.footer_counsel .inp_wrap input {
  width: 220px;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  background: #fff;
}

.footer_counsel .send input {
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  color: var(--main-color);
  border: 3px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

/* Bottom links + footer */
section.bottom {
  background: #fff;
  padding: 40px 0 100px;
  border-top: 1px solid #eee;
}

section.bottom .info_wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

section.bottom .bottom_link {
  padding: 20px 18px 18px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

section.bottom .bottom_link:hover {
  border-color: color-mix(in srgb, var(--main-color) 28%, #eee);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--main-color) 10%, transparent);
  transform: translateY(-2px);
}

section.bottom .bottom_link > p {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-weight: 800;
  font-size: 16px;
  color: #222;
  text-align: left;
  border-bottom: 2px solid color-mix(in srgb, var(--main-color) 18%, #eee);
}

section.bottom .bottom_link ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section.bottom .bottom_link li a {
  display: block;
  padding: 7px 0;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  color: #666;
  transition: color 0.15s ease;
}

section.bottom .bottom_link li a:hover {
  color: var(--main-color);
}

section.bottom .bottom_link li a::before {
  content: '›';
  margin-right: 4px;
  font-weight: 700;
  color: color-mix(in srgb, var(--main-color) 55%, #bbb);
}

@media (min-width: 992px) {
  section.bottom .info_wrap {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  section.bottom .bottom_link {
    padding: 24px 20px 20px;
  }

  section.bottom .bottom_link > p {
    font-size: 17px;
    margin-bottom: 16px;
  }

  section.bottom .bottom_link li a {
    font-size: 14px;
  }
}

footer.footer {
  padding: 40px 0 48px;
  background: #fff;
  border-top: 1px solid #eee;
}

footer .footer-law-notice {
  font-size: 17px;
  margin: 0 0 24px;
}

footer .logo_text {
  font-size: 28px;
  font-weight: 800;
  color: var(--main-color);
  margin-bottom: 16px;
}

footer .text-black {
  margin: 0;
  line-height: 1.7;
  color: #444;
}

footer .footer-copyright {
  margin-top: 32px;
  font-size: 14px;
  color: #888;
}

/* Type switcher (A/B/C 구분) */
.type-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.type-switcher-label {
  font-weight: 700;
  margin-right: 8px;
}

.type-switcher a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.type-switcher a.active {
  background: #fff;
  color: #111;
}

.type-switcher a.type-switcher-home {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* Type A site — chaitda.com */

@media (max-width: 1200px) {
  .side_banner { display: none; }
}

@media (max-width: 768px) {
  .footer_counsel .form_inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .footer_counsel .inp_wrap,
  .footer_counsel .send {
    width: 100%;
  }

  .footer_counsel .inp_wrap input,
  .footer_counsel .send input {
    width: 100%;
    box-sizing: border-box;
    display: block;
  }

  .footer_counsel .send input {
    text-align: center;
  }

  section.bottom {
    padding: 28px 0 88px;
  }

  section.bottom .info_wrap {
    gap: 10px;
  }

  section.bottom .bottom_link {
    padding: 16px 14px 14px;
    border-radius: 12px;
  }

  section.bottom .bottom_link > p {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  section.bottom .bottom_link li a {
    font-size: 12px;
    padding: 5px 0;
  }
}
