@charset "UTF-8";

/* 숫자로 보는 올리브영 -------------------------------------------------------*/
.list_numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 32px;
}

.item_numbers {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.item_numbers.type_wide {
  grid-column: span 2;
  flex-direction: row;
  gap: 32px;
  background: #F7F7F8;
}

/* 2칸 안에서 그리드 컬럼과 같은 폭으로 반씩 나눠 열 정렬을 맞춘다 */
.item_numbers.type_wide .box_numbers_info,
.item_numbers.type_wide .box_numbers_img {
  flex: 0 0 calc((100% - 32px) / 2);
}

.box_numbers_info {
  flex: 1;
  padding: 40px;
  background: #F7F7F8;
  box-sizing: border-box;
}

.text_numbers_label {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.4;
}

.text_numbers_value {
  margin-top: 12px;
  font-size: 6rem;
  font-weight: 600;
  line-height: 1.4;
}

.text_numbers_unit {
  margin-left: 8px;
  font-size: 2.4rem;
  font-weight: 500;
  color: #666;
}
.text_numbers_info {
  margin-top: 24px;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 150%;
  color: #666;
}
.img_numbers {
  display: block;
  width: 100%;
  height: 100%;
}

/* 국내 플랫폼 ----------------------------------------------------------- */
/* 국내 플랫폼 > 오프라인 / 썸네일 아코디언 */
.biz_mt {
  margin-top: 160px;
}

h4 + .area_biz_accordion,
.text_label + .area_biz_accordion,
.text_desc + .area_biz_accordion {
  margin-top: 32px;
}

.list_biz_accordion {
  display: flex;
  gap: 16px;
  height: 420px;
}

.item_biz_accordion {
  position: relative;
  flex: 1 1 0px;
  min-width: 0;
  transition: flex-grow .5s cubic-bezier(.22, .61, .36, 1),
              flex-basis .5s cubic-bezier(.22, .61, .36, 1);
}

.item_biz_accordion.is_open {
  flex: 0 1 700px;
}

.btn_biz_accordion {
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: default;
}

.btn_biz_accordion:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 1px;
}

.img_biz_accordion {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn_biz_accordion::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(25, 25, 25, 0) 0%, rgba(29, 29, 29, 0.3) 33.47%, rgba(29, 29, 29, 0.8) 126.56%);
  opacity: 0;
  transition: opacity .5s;
  content: "";
}

.link_biz_download {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 24px;
  height: 24px;
  background: url("/img/common/icon/icon_biz_down-f36e4ed7de571030283b1b0c934163b8.png") no-repeat center;
  background-size: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity .5s, visibility 0s .5s;
}

.text_biz_accordion {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 52px;
  z-index: 1;
  overflow: hidden;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--white);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .5s;
}

.item_biz_accordion.is_open .btn_biz_accordion::before,
.item_biz_accordion.is_open .text_biz_accordion {
  opacity: 1;
}

.item_biz_accordion.is_open .link_biz_download {
  visibility: visible;
  opacity: 1;
  transition: opacity .5s, visibility 0s;
}

/* 국내 플랫폼 > 온라인 */
.contents_box .text_label_lg {
  font-size: 3.2rem;
}

.area_recommend {
  margin: 60px 0 160px;
}

.list_recommend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.item_recommend.type_wide {
  grid-column: span 2;
  margin-bottom: 28px;
}

.item_recommend.type_wide_text {
  justify-content: flex-end;
  margin-bottom: 28px;
}

.item_recommend:not(.type_wide) {
  display: flex;
  flex-direction: column;
}

.box_recommend_visual {
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.img_recommend {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 큐레이션 이미지만 정사각 박스가 아니라 2칸 폭 와이드 박스 : 원본(640x640) 모서리와 같은 배경색으로 여백을 채운다 */
.item_recommend.type_wide .box_recommend_visual {
  aspect-ratio: 16 / 8.55;
  background: #F6F7F9;
}

.item_recommend.type_wide .img_recommend {
  object-fit: contain;
}

.item_recommend:not(.type_wide) .box_recommend_visual {
  margin-bottom: 32px;
}

.text_label + .area_omni {
  margin-top: 60px;
}

.list_omni {
  display: flex;
  gap: 32px;
}

.item_omni {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

.img_omni {
  display: block;
  width: 100%;
  height: auto;
}

.item_omni .text_label {
  margin-top: 32px;
}

/* 글로벌 플랫폼 ------------------------------------------------------------- */
.area_global_content {
  align-items: flex-end;
}

.area_global_content > div {
  flex: 1;
}

.area_global_content > div:has(img) {
  flex: 0 0 928px;
}

.area_global_content .text_desc {
  color: #333;
}

.area_global_content .text_desc sup {
  color: #5EBE01;
}

.img_global {
  display: block;
  width: 100%;
  height: auto;
}

.text_desc.type_note {
  font-size: 1.4rem;
  color: #666;
}

.list_global_link {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.link_global {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: auto;
  padding: 14px;
  border: 1px solid var(--black);
  font-size: 1.4rem;
  color: var(--black);
  text-decoration: none;
}

.icon_global_outlink {
  display: block;
  width: 16px;
  height: 16px;
  background: url("/img/common/icon/icon_outlink-307f5fc2162a38ff6f14191439b1db4b.svg") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* 브랜드 --------------------------------------------------------------- */
.list_brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 32px;
}

.link_brands {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.link_brands:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 1px;
}

.box_brands_visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.img_brands {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.box_brands_visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s;
}

.box_brands_name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  background: transparent;
  color: #1A1A1A;
  transition: background-color .3s, color .3s;
}

.text_brands_name {
  font-size: 2.4rem;
  font-weight: 600;
}

.icon_brands_arrow {
  display: block;
  width: 32px;
  height: 32px;
  background: url("/img/common/icon/icon_brands_arrow-ae00fcf55b679c309f568078ca811e05.svg") no-repeat center;
  background-size: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility 0s .3s;
}

.text_brands_desc {
  position: absolute;
  top: 40px;
  left: 24px;
  right: 24px;
  z-index: 1;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
  opacity: 0;
  transition: opacity .3s;
}

.link_brands:hover .box_brands_visual::after,
.link_brands:focus-visible .box_brands_visual::after,
.link_brands:hover .text_brands_desc,
.link_brands:focus-visible .text_brands_desc {
  opacity: 1;
}

.link_brands:hover .box_brands_name,
.link_brands:focus-visible .box_brands_name {
  background: #000;
  color: var(--white);
}

.link_brands:hover .icon_brands_arrow,
.link_brands:focus-visible .icon_brands_arrow {
  visibility: visible;
  opacity: 1;
  transition: opacity .3s, visibility 0s;
}


/* 반응형 모바일 */
@media only screen and (max-width: 1169.98px) {
  /* 숫자로 보는 올리브영 -------------------------------------------------------*/
  .list_numbers {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 20px;
  }

  .item_numbers.type_wide {
    grid-column: auto;
    flex-direction: column;
    gap: 0;
  }

  .item_numbers.type_wide .box_numbers_info,
  .item_numbers.type_wide .box_numbers_img {
    flex: 0 0 auto;
  }

  .box_numbers_info {
    padding: 24px;
  }

  .text_numbers_label {
    font-size: 1.6rem;
  }

  .text_numbers_value {
    margin-top: 8px;
    font-size: 3.2rem;
  }

  .text_numbers_unit {
    margin-left: 6px;
    font-size: 1.6rem;
  }

  /* 국내 플랫폼 ----------------------------------------------------------- */
  /* 국내 플랫폼 > 오프라인 / 썸네일 아코디언 */
  .biz_mt {
    margin-top: 80px;
  }

  h4 + .area_biz_accordion,
  .text_label + .area_biz_accordion,
  .text_desc + .area_biz_accordion {
    margin-top: 30px;
  }

  .list_biz_accordion {
    gap: 10px;
    flex-direction: column;
    height: auto;
  }

  .item_biz_accordion {
    flex: 0 0 auto;
    height: 60px;
    transition: height .5s cubic-bezier(.22, .61, .36, 1);
  }

  .item_biz_accordion.is_open {
    flex: 0 0 auto;
    height: 192px;
  }

  .link_biz_download {
    right: 12px;
    bottom: 12px;
    width: 20px;
    height: 20px;
  }

  .text_biz_accordion {
    bottom: 12px;
    left: 12px;
    font-size: 1.4rem;
  }

  /* 국내 플랫폼 > 온라인 */
  .contents_box .text_label_lg {
    font-size: 2rem;
  }

  .area_recommend {
    margin: 30px 0 80px;
  }

  .list_recommend {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .item_recommend.type_wide {
    grid-column: auto;
    margin-bottom: -10px;
  }

  .item_recommend.type_wide .box_recommend_visual {
    aspect-ratio: 1 / 1;
    background: transparent;
  }

  .item_recommend.type_wide .img_recommend {
    object-fit: cover;
  }

  .item_recommend:not(.type_wide) .box_recommend_visual {
    margin-bottom: 20px;
  }

  .text_label + .area_omni {
    margin-top: 30px;
  }

  .list_omni {
    flex-direction: column;
    gap: 30px;
  }

  .item_omni .text_label {
    margin-top: 20px;
  }

  /* 글로벌 플랫폼 ------------------------------------------------------------- */
  .area_global_content.type_reverse {
    flex-direction: column-reverse !important;
  }

  .area_global_content > div,
  .area_global_content > div:has(img) {
    flex: 0 0 auto;
  }

  .text_desc.type_note {
    font-size: 1.3rem;
  }

  .list_global_link {
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
  }

  .link_global {
    padding: 12px;
    font-size: 1.3rem;
  }

  /* 브랜드 --------------------------------------------------------------- */
  .list_brands {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .box_brands_name {
    padding: 16px 0 0;
  }

  .text_brands_name {
    font-size: 1.6rem;
  }

  .text_brands_desc {
    position: static;
    margin-top: 8px;
    font-size: 1.4rem;
    font-weight: 400;
    color: #333;
    opacity: 1;
  }

  .icon_brands_arrow {
    display: none;
  }

  .link_brands:hover .box_brands_visual::after,
  .link_brands:focus-visible .box_brands_visual::after {
    opacity: 0;
  }

  .link_brands:hover .box_brands_name,
  .link_brands:focus-visible .box_brands_name {
    background: transparent;
    color: #1A1A1A;
  }

  .link_brands:hover .icon_brands_arrow,
  .link_brands:focus-visible .icon_brands_arrow {
    visibility: hidden;
    opacity: 0;
  }
}


@media (prefers-reduced-motion: reduce) {
  .item_biz_accordion,
  .btn_biz_accordion::before,
  .text_biz_accordion {
    transition: none;
  }

  /* visibility 는 즉시 전환하되 탭 순서 제어는 유지해야 하므로 none 이 아니라 0s 로 둔다 */
  .link_biz_download,
  .item_biz_accordion.is_open .link_biz_download {
    transition: visibility 0s;
  }

  .box_brands_visual::after,
  .box_brands_name,
  .text_brands_desc {
    transition: none;
  }

  .icon_brands_arrow {
    transition: visibility 0s;
  }
}


/* 영어 */
/* 영어 > 숫자로 보는 올리브영 */
html[lang=en] .text_numbers_value {
  letter-spacing: -0.8px;
}

@media only screen and (max-width: 1169.98px) {
  html[lang=en] .text_numbers_value {
    letter-spacing: 0px;
  }
}

/* 일본어 */
/* 일본어 > 숫자로 보는 올리브영 */
html[lang=ja] .text_numbers_label {
  letter-spacing: -1.2px;
}

@media only screen and (max-width: 1169.98px) {
  html[lang=ja] .text_numbers_label {
    letter-spacing: -0.5px;
  }
}