@import url('./debug.css');
@import url('./layout.css');

/* 불필요한 스크롤바 여백 해제 */
:root {
  scrollbar-gutter: auto;
}

/* ── 페이지 구조 ── */
.wrap {
	width:100%;
  display: flex;
  flex-direction: column;
  height: auto;
  /* border:1px solid red; */
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── 본문 · 퀵메뉴 전용 색상 ── */
.mainContainer,
#dc-floater-2 {
  --home-surface: light-dark(#ffffff, #1c2430);
  --home-soft: light-dark(#f6f7f9, #263140);
  --home-text: light-dark(#2c313a, #edf1f7);
  --home-muted: light-dark(#626c79, #b6c1d0);
  --home-border: light-dark(#e1e5eb, #3a4657);
  --home-brand: light-dark(#c42328, #ff9a9f);
  --home-brand-hover: light-dark(#991b20, #ffc0c3);

  color: var(--home-text);
}

/* ── 본문 크기 ── */
.mainContainer {
  /* 폭을 조절할 때는 이 두 값만 변경 */
  --main-max:1024px;
  --promotion-max: 100%;

  box-sizing: border-box;
  width: calc(100% - 208px);
  max-width: var(--main-max);
  min-width: 0;
  height: auto;
  margin: 0 auto;
  padding: 36px 0 48px;
  flex: 1 0 auto;
   display: flex;
  flex-direction: column;
}
.mainContainer > .row {
	  flex: 1 0 auto;
}
.mainContainer .promotion-frame {
  width: 100%;
}
/* Bootstrap 컬럼 내부 넘침 방지 */

.mainContainer > .row > section {
  min-width: 0;
}

/* ── 운영 안내 ── */
.mainContainer .site-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--home-brand);
  background: var(--home-soft);
}

.mainContainer .site-notice h2 {
  margin: 0 0 6px;
  color: var(--home-text);
  font-size: 15px;
  font-weight: 700;
}

.mainContainer .site-notice p {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ── 공통 제목 ── */
.mainContainer .main-section-title {
  margin: 0 0 14px;
  color: var(--home-text);
  font-size: 17px;
  font-weight: 700;
}

/* ── 문의 정보 ── */
.mainContainer .contact-panel {
  border: 1px solid var(--home-border);
  border-radius: 10px;
  background: var(--home-surface);
  color: var(--home-text);
}

.mainContainer .contact-group h3 {
  margin: 0;
  color: var(--home-text);
  font-size: 16px;
  font-weight: 600;
  word-break: keep-all;
}

.mainContainer .contact-phone {
  display: block;
  margin: 8px 0 14px;
  color: var(--home-brand);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.mainContainer .contact-phone:hover {
  color: var(--home-brand-hover);
}

.mainContainer .contact-hours {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.mainContainer .contact-hours > div {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 8px;
}

.mainContainer .contact-hours dt {
  color: var(--home-muted);
  font-weight: 400;
}

.mainContainer .contact-hours dd {
  margin: 0;
  color: var(--home-text);
}

.mainContainer .contact-holiday {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 12px;
}

/* 기술지원과 제품 문의 사이 구분선 */
.mainContainer .contact-group + .contact-group {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--home-border);
}

.mainContainer .contact-email {
  color: var(--home-muted);
  font-size: 14px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.mainContainer .contact-email:hover {
  color: var(--home-brand);
}

/* ── 프로모션 ── */
.mainContainer .promotion-heading,
.mainContainer .promotion-link {
  width: 100%;
  max-width: var(--promotion-max);
}



.mainContainer .promotion-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mainContainer .promotion-heading .main-section-title {
  margin: 0;
}

.mainContainer .promotion-heading > a {
  color: var(--home-muted);
  font-size: 13px;
  white-space: nowrap;
  text-underline-offset: 3px;
}

.mainContainer .promotion-heading > a:hover {
  color: var(--home-brand);
}

/* 기본: 이미지 높이를 페이지 높이에 포함 */
.mainContainer .promotion-link {
  position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.mainContainer .promotion-link img {
 position: static;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  border-radius: 10px;
}


/* PC: 본문의 남는 영역 안에서 이미지 전체 표시 */
@media (min-width: 1024px) {
   .mainContainer .promotion-column {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 0;
  }

  .mainContainer .promotion-frame {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    container-type: size;
  }

  .mainContainer .promotion-link {
    position: absolute;
    inset: 0;
    display: block;
    margin: auto;

    /* 부모 영역 안에서 600 × 900 비율 유지 */
    width: min(100cqw, calc(100cqh * 2 / 3));
    height: min(100cqh, calc(100cqw * 3 / 2));
    max-width: 100%;
    max-height: 100%;

    pointer-events: auto;
  }

  .mainContainer .promotion-link img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: auto;
  }
}
/* 기존 notice-box를 사용하는 경우 */
.mainContainer .notice-box li {
  width: 100%;
}

.mainContainer .notice-box li a {
  display: block;
}


/* 웨비나 바로가기 카드 */
.mainContainer .webinar-card {
  border: 1px solid var(--home-border);
  border-left: 3px solid var(--home-brand);
  border-radius: 10px;
  background: var(--home-surface);
  color: var(--home-text);
  text-decoration: none;
  
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.mainContainer .webinar-card:hover,
.mainContainer .webinar-card:focus-visible {
  border-color: var(--home-brand);
  background: var(--home-soft);
}

/* 상단 영문 라벨 */
.mainContainer .webinar-kicker {
  color: var(--home-brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* 설명 */
.mainContainer .webinar-description {
  margin: 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 이동 안내 */
.mainContainer .webinar-cta {
  color: var(--home-brand);
  font-size: 14px;
  font-weight: 600;
}

.mainContainer .contact-icon {
  color: var(--home-brand);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ── 퀵메뉴 ── */
#dc-floater-2 {
  background: var(--home-surface);
}

#dc-floater-2 .tab {
  background: light-dark(#33343b, #2e3b4e);
  color: #fff;
  text-align: center;
}

#dc-floater-2 .menu-wrap {
  margin: 0;
  padding: 0;
  border: 1px solid var(--home-border);
  list-style: none;
}

#dc-floater-2 .menu-wrap li {
  min-width: 0;
  border-bottom: 1px solid var(--home-border);
}

#dc-floater-2 .menu-wrap li:last-child {
  border-bottom: 0;
}

#dc-floater-2 .menu-wrap li a {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 7px;
  color: var(--home-text);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

#dc-floater-2 .menu-wrap li a:hover,
#dc-floater-2 .menu-wrap li a:focus-visible {
  background: var(--home-soft);
}



/* ── 모바일 ── */
@media (max-width: 767px) {
  .mainContainer {
    width: calc(100% - 32px);
    padding: 24px 0 32px;
  }

  .mainContainer .site-notice {
    padding: 14px 16px;
  }

  /* 기존 HTML의 인라인 고정 위치와 너비 해제 */
  #dc-floater-2 {
    position: static !important;
    width: auto !important;
    margin: 16px;
  }

  #dc-floater-2 .menu-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--home-border);
  }

  #dc-floater-2 .menu-wrap li {
    flex: 1 1 80px;
    border: 0;
    background: var(--home-surface);
  }

  #dc-floater-2 .menu-wrap li a {
    height: 100%;
    min-height: 64px;
  }
}