@charset "UTF-8";

/*
 * main/main.css — 메인 페이지 전용 스타일 (2026 리뉴얼)
 * - PC 기본 → MO는 파일 하단 @media (max-width:1169.98px) 에서 오버라이드
 * - font-size 만 rem(1rem=10px), 그 외 레이아웃 값은 px
 */

.wrap_main {
  --main-accent: #50df00;
  --main-divider: #d9d9d9;
  --main-placeholder: #e9e9e9;
  --main-gap: 56px;
  /* 진행률 바 재생 시간 : main.js 가 swiper autoplay delay 와 동기화해 주입 */
  --hero-duration: 4500ms;
  /* PC 히어로 크로스페이드 시간 : main.js 가 동일 값을 주입한다 */
  --hero-cross: 500ms;
}

.wrap_main .container {
  overflow: hidden;
  word-break: keep-all;
}

.link_readmore,
.link_card,
.link_press,
.btn_hero_arrow,
.btn_popular_nav {
  color: inherit;
}

/* 공통 : 섹션 헤드 ---------------------------------------------------------- */
.section_main_editorial,
.section_main_press,
.section_main_popular {
  padding-top: 240px;
}

.area_section_head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.title_section {
  flex: 1;
  min-width: 0;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1;
}

.link_readmore {
  flex: none;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.link_readmore:hover,
.link_readmore:focus {
  text-decoration: underline;
}

/* 공통 : 카드 -------------------------------------------------------------- */
.box_card,
.box_card .link_card,
.box_card_media {
  min-width: 0;
}

.box_card .link_card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.area_card_meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 500;
  white-space: nowrap;
}

.box_card_media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--main-placeholder);
}

.box_card_media.type_wide {
  aspect-ratio: 928 / 540;
}

.box_card_media.type_01 {
  aspect-ratio: 1 / 1;
}

.box_card_media.type_02 {
  aspect-ratio: 3 / 4;
}

.box_card_media.type_03 {
  aspect-ratio: 4 / 3;
}

.img_card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.box_card .link_card:hover .img_card,
.box_card .link_card:focus .img_card {
  transform: scale(1.04);
}

.title_card {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-all;
}

.title_card.line_clamp_2{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.title_card.line_clamp_3{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* HERO --------------------------------------------------------------------- */
.section_main_hero {
  padding-top: 120px;
}

.title_hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.img_hero_logo {
  width: 500px;
  max-width: 100%;
  height: auto;
}

/*
 * fade 슬라이드 1건 = 기사 1건. 앞뒤 슬라이드가 그대로 좌우 미리보기가 된다.
 */
.area_hero_carousel {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-left: max(20px, calc((100% - 1420px) / 2));
}

.box_hero_swiper {
  overflow: visible;
}

.box_hero_swiper .swiper-wrapper {
  align-items: flex-start;
}

.box_hero_swiper .swiper-slide {
  width: 928px;
  height: auto;
}

.box_hero_main {
  position: relative;
  overflow: hidden;
  height: 414px;
  background-color: var(--main-placeholder);
}

.box_hero_swiper .swiper-slide-active ~ .swiper-slide .box_hero_main {
  margin-top: 112px;
}

.box_hero_swiper .swiper-slide-active .box_hero_main {
  height: 526px;
  margin-top: 0;
}

/* PC 크로스페이드 : main.js 가 전환 직전 화면을 복제해 원본 위에 덮고(box_hero_ghost)
   아래에서 슬라이드를 즉시 바꾼 뒤 복제본만 서서히 지워(is_hero_ghost_out) 두 화면을 겹쳐 보여 준다.
   위치·크기는 main.js 가 원본을 실측해 인라인으로 넣는다. 화살표(z-index:10)보다는 아래에 둔다. */
.box_hero_ghost {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  transition: opacity var(--hero-cross) ease-out;
}

.box_hero_ghost.is_hero_ghost_out {
  opacity: 0;
}

.box_hero_main .img_hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar_hero_progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, .4);
}

.bar_hero_progress_fill {
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--main-accent);
}

.swiper-slide-active .bar_hero_progress_fill {
  animation: heroProgress var(--hero-duration) linear forwards;
}

@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

.link_hero,
.bar_hero_progress {
  opacity: 0;
  transition: opacity .3s;
}

.swiper-slide-active .link_hero,
.swiper-slide-active .bar_hero_progress,
.link_hero:focus-visible {
  opacity: 1;
}

.link_hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  padding: 0 40px 47px;
  color: #fff;
}

.link_hero::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 160px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

.title_hero_headline {
  position: relative;
  max-width: 100%;
  min-width: 0;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.box_hero_control {
  position: absolute;
  top: 64px;
  left: calc(max(20px, (100% - 1420px) / 2) + 992px);
  display: flex;
  gap: 8px;
}

.btn_hero_arrow {
  width: 72px;
  height: 72px;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}

.btn_hero_arrow img {
  width: 100%;
  height: 100%;
}

.btn_hero_arrow.type_prev img {
  transform: rotate(180deg);
}

.btn_hero_arrow:active {
  transform: scale(.92);
}

/* EDITORIAL ---------------------------------------------------------------- */
.list_editorial {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--main-gap);
}

.section_main_editorial .area_section_head {
  grid-column: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--main-gap);
}
.section_main_editorial .area_section_head .img_logo_title {
  width: 179px;
}
.section_main_editorial .title_section {
  flex: none;
}

.img_editorial_logo {
  width: 179px;
  max-width: 100%;
  height: auto;
}

.box_card.type_main {
  grid-column: 2 / span 2;
}

/* PRESS -------------------------------------------------------------------- */
.list_press {
  margin-top: 48px;
}

.item_press .link_press {
  display: grid;
  grid-template-columns: 35.2% 1fr;
  align-items: start;
  padding: 32px 0;
}

.text_press_date {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.title_press {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 어드민이 제목에 입력한 개행(\n → <br>)은 PC에서 무시하고 한 줄로 이어 붙인다.
 * MO 미디어쿼리에서 display:inline으로 되돌려 원래 줄바꿈 위치를 살린다. */
.title_press br {
  display: none;
}

.item_press .link_press:hover .title_press,
.item_press .link_press:focus .title_press {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* CTA BAND ----------------------------------------------------------------- */
.section_main_cta {
  position: relative;
  overflow: hidden;
  margin-top: 240px;
  width: 100%;
  aspect-ratio: 1920 / 484;
  min-height: 420px;
  max-height: 484px;
}

.section_main_cta::before {
  content: "";
  position: absolute;
  left: 28.2486%;
  top: -98.7419%;
  width: 81.6739%;
  height: 293.1779%;
  background: url("/img/main/cta_band_bg-baf82973328f46699a980873ae336d25.svg") no-repeat center / 100% 100%;
  transform: rotate(-169.58deg);
  pointer-events: none;
}

.area_cta_content {
  position: relative;
  height: 100%;
  padding: 0;
}

.box_cta_content {
  display: flex;
  align-items: flex-end;
  gap: 56px;
  max-width: none;
  padding-top: 40px;
  margin: 0;
}

.title_cta {
  flex: 1;
  min-width: 0;
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.text_cta_copy {
  flex: 1;
  min-width: 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.7;
  color: #fff;
}

.img_cta_logo {
  position: absolute;
  bottom: 48px;
  left: 42.8125%;
  width: 47.1354%;
  max-width: 905px;
  height: auto;
}

/* POPULAR ARTICLES --------------------------------------------------------- */
.box_popular_control {
  display: flex;
  flex: none;
  gap: 80px;
}

.btn_popular_nav {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.5;
}

.btn_popular_nav:hover,
.btn_popular_nav:focus {
  text-decoration: underline;
}

.btn_popular_nav:disabled {
  opacity: .3;
  text-decoration: none;
  cursor: default;
}

.area_popular_list {
  overflow: hidden;
  margin-top: 80px;
  padding-left: max(20px, calc((100% - 1420px) / 2));
}

.box_popular_swiper .swiper-slide {
  width: 436px;
  height: auto;
}

.box_popular_swiper .swiper-wrapper {
  align-items: flex-start;
}


/* MOBILE (~1169.98px) */
@media only screen and (max-width: 1169.98px) {
  .wrap_main {
    --main-gap: 24px;
  }

  /* 공통 ------------------------------------------------------------------ */
  .section_main_editorial,
  .section_main_press,
  .section_main_popular {
    padding-top: 160px;
  }

  .title_section {
    font-size: 3.2rem;
  }

  .link_readmore {
    font-size: 1.4rem;
  }

  .area_card_meta {
    font-size: 1.4rem;
  }

  .box_card .link_card {
    gap: 16px;
  }

  .box_card_media.type_wide {
    aspect-ratio: 1 / 1;
  }

  .title_card {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  /* HERO ------------------------------------------------------------------ */
  .section_main_hero {
    padding-top: 60px;
  }

  .title_hero {
    gap: 0;
  }

  .img_hero_logo {
    width: 250px;
  }

  .area_hero_carousel {
    padding-top: 60px;
    padding-left: 20px;
  }

  .box_hero_swiper {
    overflow: hidden;
  }

  .box_hero_swiper .swiper-slide {
    width: calc(100% - 28px);
  }

  .box_hero_main,
  .box_hero_swiper.is_hero_ready .box_hero_main,
  .box_hero_swiper .swiper-slide-active ~ .swiper-slide .box_hero_main,
  .box_hero_swiper .swiper-slide-active .box_hero_main {
    height: auto;
    margin-top: 0;
    aspect-ratio: 3 / 4;
    transition: none;
  }

  .link_hero,
  .bar_hero_progress {
    opacity: 1;
  }

  .link_hero {
    padding: 0 20px 20px;
  }

  .link_hero::before {
    height: 26%;
  }

  .title_hero_headline {
    max-width: 100%;
    font-size: 1.6rem;
  }

  .box_hero_control {
    position: static;
    box-sizing: border-box;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 0 20px;
  }

  .btn_hero_arrow {
    width: 34px;
    height: 34px;
  }

  /* EDITORIAL ------------------------------------------------------------- */
  .list_editorial {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section_main_editorial .area_section_head {
    grid-column: auto;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
  }
.section_main_editorial .area_section_head .img_logo_title {
  width: 120px;
}
  .section_main_editorial .title_section {
    flex: 1;
  }

  .img_editorial_logo {
    width: 119px;
  }

  .box_card.type_main {
    grid-column: auto;
  }

  /* PRESS ----------------------------------------------------------------- */
  .list_press {
    margin-top: 40px;
  }

  .item_press .link_press {
    display: block;
    padding: 20px 0;
  }

  .text_press_date {
    display: block;
    font-size: 1.4rem;
  }

  .title_press {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    margin-top: 12px;
    font-size: 1.6rem;
  }

  .title_press br {
    display: inline;
  }

  /* CTA BAND -------------------------------------------------------------- */
  .section_main_cta {
    --cta-max: 540px;
    --cta-u: calc(min(100vw, var(--cta-max)) / 360);

    box-sizing: border-box;
    margin-top: 80px;
    height: auto;
    aspect-ratio: auto;
    min-height: calc(var(--cta-u) * 508);
    padding: calc(var(--cta-u) * 40) 0 calc(var(--cta-u) * 60);
  }

  .section_main_cta::before {
    left: calc((100% - var(--cta-u) * 360) / 2 + var(--cta-u) * -77.62);
    top: calc(var(--cta-u) * 135.39);
    width: calc(var(--cta-u) * 510.45);
    height: calc(var(--cta-u) * 461.9);
  }

  .area_cta_content {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .box_cta_content {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .title_cta {
    font-size: 3.2rem;
  }

  .text_cta_copy {
    line-height: 1.5;
    width: fit-content;
    min-width: 340px;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-38%);
  }

  .img_cta_logo {
    left: 50%;
    bottom: 60px;
    transform: translateX(-55%);
    display: block;
    width: 274px;
    z-index: 1;
  }

  /* POPULAR ARTICLES ------------------------------------------------------ */
  /* MO 는 swiper 를 파기하고 세로 목록으로 전환한다(main.js) */
  .box_popular_control {
    display: none;
  }

  .area_popular_list {
    overflow: visible;
    margin-top: 48px;
    padding: 0 20px;
  }

  .box_popular_swiper .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .box_popular_swiper .swiper-slide {
    width: 100%;
  }
}



/* MOBILE Small (~425px) / cta band 스케일링 조정 */
@media only screen and (max-width:425px) {
  .text_cta_copy {
    font-size: 1.4rem;
    min-width: 240px;
  }
} 


/* CUSTOM CURSOR (PC + 마우스 포인터 기기 전용) ------------------------------ */
@media (min-width: 1170px) and (hover: hover) and (pointer: fine) {
  /* 자손이 자기 자신에게 직접 cursor 를 지정하면(a/button 의 기본 pointer, style.css 의
     리셋 등) 상속으로는 못 이기므로 전부 명시적으로 덮어쓴다. .box_cursor 는
     pointer-events:none 이라 이 규칙과 무관하게 항상 클릭을 통과시킨다. */
  body,
  body * {
    cursor: none !important;
  }

  .box_cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: radial-gradient(circle at 72% 76%, rgba(0, 227, 1, .9), rgba(0, 227, 1, 0) 55%), rgba(0, 227, 1, .5);
    box-shadow: inset 0 -3px 8px rgba(255, 255, 255, .45), inset 0 3px 6px rgba(0, 0, 0, .18);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .25s cubic-bezier(.22, .61, .36, 1), height .25s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
  }

  .box_cursor.is_active {
    opacity: 1;
  }

  .box_cursor.is_grow {
    width: 60px;
    height: 60px;
  }

  .box_cursor.is_hero {
    width: 120px;
    height: 120px;
  }

  .text_cursor_label {
    font-weight: 700;
    font-size: 2rem;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .15s ease;
  }

  .box_cursor.is_hero .text_cursor_label {
    opacity: 1;
  }
}

/* ==========================================================================
   모션 최소화 설정
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .img_card,
  .btn_hero_arrow {
    transition: none;
  }

  .box_card .link_card:hover .img_card,
  .box_card .link_card:focus .img_card {
    transform: none;
  }

  .swiper-slide-active .bar_hero_progress_fill {
    animation: none;
    width: 100%;
  }
}
