/* ===== 컬러 팔레트 (Figma Refilled/…) ===== */
:root {
  --gray-25: #F7F8F9;
  --gray-50: #F3F4F5;
  --gray-100: #EEEFF1;
  --gray-200: #DFE2E4;
  --gray-300: #D2D5D8;
  --gray-400: #AFB3B8;
  --gray-500: #8D939A;
  --gray-600: #6E747B;
  --gray-700: #585E65;
  --gray-800: #41464C;
  --gray-900: #2A2F34;
  --gray-950: #1A1C1F;

  --blue-50: #E7F3FE;
  --blue-100: #CFE6FC;
  --blue-200: #ABD1F8;
  --blue-300: #7EB8F1;
  --blue-400: #539CEA;
  --blue-500: #2081E9;
  --blue-600: #006DE2;
  --blue-700: #0058BD;
  --blue-800: #004394;
  --blue-900: #002C66;

  --white: #FFFFFF;
  --black: #000000;

  /* 히어로 이미지 배경과 이어지는 회색 (이미지 가장자리 색) */
  --hero-bg: #F3F3F3;

  /* 푸터 (Figma bg/footer · line/footer · dark/… 변수) */
  --footer-bg: #0A0B0C;
  --footer-line: #232628;
  --footer-line-dark: #2A2D2F;
  --footer-text: #A9ACAD;
  --footer-text-info: #7D8081;
  --footer-text-muted: #8C8F90;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  --gutter: 40px;
  --font: 'Pretendard JP Variable', 'Pretendard JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

/* ===== 기본 ===== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

body {
  font-family: var(--font);
  color: var(--gray-950);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

.container {
  width: min(100% - var(--gutter) * 2, 1160px);
  margin-inline: auto;
}

/* 작은 링크·버튼의 터치 영역을 44px 이상으로 넓힌다 (레이아웃은 그대로) */
.view-all, .button, .footer__links a { position: relative; }
.view-all::after, .button::after, .footer__links a::after {
  content: '';
  position: absolute;
  inset: -14px -8px;
}
.button::after { inset: -5px 0; }
.footer__links a::after { inset: -5px -4px; }

.eyebrow {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.section-title { font-size: 36px; font-weight: 600; line-height: 1.4; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gray-800);
  white-space: nowrap;
}

/* 대각선 화살표: Figma처럼 위쪽 화살표를 45° 돌려서 쓴다 */
.arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px;
  height: 16px;
}
.arrow-icon img { transform: rotate(45deg); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 140px;
  padding: 10px 20px;
  border-radius: 30px; /* Figma 1106 수정본: 둥근 버튼 (희설님 요청 2026-11-06) */
  background: var(--gray-950);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* ===== 헤더 ===== */
.header { background: var(--gray-950); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 94px;
  min-height: 44px;
}
.header__logo-mark { width: 90px; height: 20px; }
.header__nav {
  display: flex;
  gap: 40px;
  color: var(--gray-50);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.header__nav a { padding: 14px 0; }

/* ===== 히어로 ===== */
.hero {
  position: relative;
  height: 570px;
  overflow: hidden;
  background: var(--hero-bg);
  touch-action: pan-y;
}
/* 배너 이미지(Figma Hero_01~06)는 배경까지 포함된 1440×570 비율. 좁은 화면에서는 제품이 있는 오른쪽 기준으로 자른다 */
/* 슬라이드는 겹쳐 두고 투명도만 바꿔서 디졸브로 전환한다 */
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transition: opacity 1s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.hero__slide.is-active { opacity: 1; }
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  height: 100%;
}
.hero__heading { display: flex; flex-direction: column; gap: 20px; }
.hero__eyebrow { font-size: 16px; color: var(--gray-500); }
.hero__title { font-size: 56px; font-weight: 700; line-height: 1.15; }
.hero__title-light { font-weight: 500; }

/* 히어로 인디케이터: 현재 8px·Gray 950, 나머지 6px·Gray 950 20%, 간격 10px */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}
.hero__dot { position: relative; width: 6px; height: 6px; background: rgb(26 28 31 / 0.2); }
.hero__dot[aria-current="true"] { width: 8px; height: 8px; background: var(--gray-950); }
.hero__dot::after { content: ''; position: absolute; inset: -18px -5px; }

/* ===== 브랜드 소개 ===== */
.about { background: linear-gradient(176.04deg, var(--white) 67.56%, #E8E9E9 144.34%); }
.about__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 80px 0 100px;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 456px;
}
.about__heading { display: flex; flex-direction: column; gap: 12px; }
.about__desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--gray-800);
}
.about__expert {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 1 541px;
}
/* 사진은 Figma 프레임 그대로 내보낸 것 (배경색·테두리 포함) */
.about__portrait { aspect-ratio: 541 / 361; }
.about__portrait img { width: 100%; height: 100%; }
.about__expert figcaption { font-size: 13px; line-height: 1.2; color: var(--gray-500); }

/* ===== 상품 카드 ===== */
.product-card { display: flex; flex-direction: column; gap: 16px; }
.product-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-50);
}
.product-card__image { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--blue-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 0.91; /* 10px */
  letter-spacing: 0.03em;
}
.product-card__body { display: flex; flex-direction: column; gap: 10px; }
.product-card__text { display: flex; flex-direction: column; gap: 10px; }
.product-card__name { font-size: 14px; font-weight: 600; line-height: 1.6; }
.product-card__desc { font-size: 13px; line-height: 1.4; color: var(--gray-700); }
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.4;
  white-space: nowrap;
}
.price > * { letter-spacing: -0.01em; } /* 자간은 각 글자 크기 기준 -1% */
.price__discount { font-size: 14px; font-weight: 700; color: var(--blue-600); }
.price__sale { font-size: 15px; font-weight: 600; }
.price__original { font-size: 15px; font-weight: 500; color: var(--gray-400); }

/* ===== 인기상품 (슬라이드) ===== */
.bestsellers { padding-block: 100px; }
.bestsellers .section-header { margin-bottom: 32px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  height: 552px;
  background: var(--gray-950);
}
.feature[hidden] { display: none; }
.feature__intro { grid-area: 1 / 1; padding: 40px; color: var(--white); }
.feature__headline { font-size: 27px; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.feature__name { margin-top: 13px; font-size: 15px; font-weight: 600; line-height: 1.6; white-space: pre-line; }
.feature__lead { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--gray-400); white-space: pre-line; }
/* 사진 영역: Figma의 580×552 틀을 비율 그대로 유지하며 칸을 꽉 채운다. 틀 안 사진 위치는 data.js의 imageCrop */
/* 가운데 맞춤은 transform 대신 좌표로 계산한다 (transform을 쓰면 브라우저에 따라 가장자리에 1px 선이 비칠 수 있음) */
.feature__media { grid-area: 1 / 2 / 3 / 3; position: relative; overflow: hidden; container-type: size; }
.feature__frame {
  --frame-w: max(100cqw, 100cqh * 580 / 552);
  position: absolute;
  left: calc((100cqw - var(--frame-w)) / 2);
  top: calc((100cqh - var(--frame-w) * 552 / 580) / 2);
  width: var(--frame-w);
  aspect-ratio: 580 / 552;
  overflow: hidden;
}
.feature__image { position: absolute; max-width: none; object-fit: cover; }
.feature__product { grid-area: 2 / 1; background: var(--white); }
.feature .product-card { flex-direction: row; gap: 0; }
.feature .product-card__media { flex: none; width: 260px; }
.feature .product-card__body { flex: 1; justify-content: space-between; padding: 30px 30px 30px; }
.feature .product-card__name { font-size: 15px; }
.feature .product-card__desc { font-size: 14px; color: var(--gray-800); }
.feature .price > * { font-size: 16px; }

/* 인디케이터: 모두 8px, 현재 Gray 950·나머지 Gray 200, 간격 10px. 누르는 영역은 ::after로 넓힌다 */
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; }
.carousel-dot { position: relative; width: 8px; height: 8px; background: var(--gray-200); }
.carousel-dot[aria-current="true"] { background: var(--gray-950); }
.carousel-dot::after { content: ''; position: absolute; inset: -18px -5px; }

/* ===== 특허 성분 cADPR™ ===== */
.ingredient { padding-block: 100px; background: var(--gray-50); text-align: center; }
.ingredient .section-title { margin-bottom: 40px; text-align: left; }
.ingredient__accent { color: var(--blue-600); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--gray-200);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 20px;
}
.step + .step { border-left: 1px solid var(--gray-200); }
.step__image {
  position: relative;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.step__image img { position: absolute; max-width: none; object-fit: cover; }
.step__image--01 img { right: -2.95%; top: -5.95%; width: 110.5%; height: 110.5%; }
.step__image--02 img { left: calc(50% - 5.08%); bottom: -3.95%; width: 195.5%; height: 195.5%; transform: translateX(-50%); }
.step__image--03 img { left: calc(50% - 4.25%); bottom: -4.45%; width: 195.5%; height: 195.5%; transform: translateX(-50%); }
.step__image--04 img { right: -27%; bottom: -4.45%; width: 155%; height: 126%; }
.step__label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--blue-600);
}
.step__text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--gray-800);
}
.ingredient__note { margin-top: 40px; font-size: 15px; line-height: 1.7; color: var(--gray-600); }

/* ===== 전체 상품 ===== */
.products { padding-block: 120px; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== 캠페인 영상 ===== */
/* 16:9 영상을 1440×600 칸에 가운데 기준으로 채운다 */
.campaign { --campaign-h: 600px; height: var(--campaign-h); overflow: hidden; background: var(--gray-50); }
.campaign__video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== 취급처 · SNS ===== */
.channels { padding-block: 80px; background: var(--gray-25); }
.channels__title { margin-bottom: 36px; font-size: 36px; font-weight: 600; }
.channels__groups { display: flex; flex-direction: column; gap: 32px; }
.channels__label { margin-bottom: 16px; font-size: 16px; font-weight: 500; color: var(--gray-600); }
.channels__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.channel-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 24px 0 28px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: var(--white);
}
.channel-card__logo--qoo10 { width: 93px; height: 26px; object-fit: contain; }
.channel-card__logo--amazon { width: 112px; height: 28px; object-fit: cover; }
.channel-card__action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
}
.channel-card--sns { justify-content: flex-start; gap: 16px; height: 85px; padding: 0 23px 0 28px; }
.channel-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
}
.channel-card__icon--line { width: 39px; height: 40px; }
.channel-card__icon--instagram { width: 36px; height: 36px; }
.channel-card__icon--x { width: 33px; height: 33px; object-fit: contain; }
.channel-card__text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; line-height: 1.2; }
.channel-card__name { font-size: 15px; font-weight: 600; }
.channel-card__sub { font-size: 12px; color: var(--gray-500); }

/* ===== 푸터 ===== */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg);
  color: var(--footer-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
.footer__main { display: flex; gap: 40px; padding-bottom: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.footer__brand-name {
  color: var(--white);
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 259.2px; }
.footer__nav-title { color: var(--white); font-weight: 700; letter-spacing: 0.12em; }
.footer__nav-title--underline { padding-bottom: 2px; border-bottom: 1px solid var(--white); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__company {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 28px;
  border-top: 1px solid var(--footer-line-dark);
  color: var(--footer-text-info);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.03em;
}
.footer__company p { display: flex; flex-wrap: wrap; column-gap: 16px; }
.footer__company span + span::before { content: '|'; margin-right: 16px; color: var(--footer-line-dark); }
.footer__copyright {
  padding-top: 20px;
  color: var(--footer-text-muted);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

/* PC·모바일에서만 보이는 요소 (모바일 기준 767px) */
@media (min-width: 768px) { .only-mo { display: none; } }
@media (max-width: 767px) { .only-pc { display: none; } }

/* ===== 태블릿 (Figma 시안 없음 — PC 레이아웃을 좁힌 것) ===== */
@media (max-width: 1023px) {
  .about__desc br, .ingredient__note br.only-pc { display: none; }
  .step { padding-inline: 8px; }
  .feature .product-card__media { width: 200px; }
  .channels__list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 인기상품 쌓기 (890px 이하) — 위에서부터 사진(정사각형) → 소개(검정) → 상품 카드 ===== */
@media (max-width: 890px) {
  .feature { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .feature__media { order: -1; grid-area: auto; height: auto; aspect-ratio: 1; }
  .feature__frame { inset: 0; width: 100%; aspect-ratio: auto; }
  .feature__image { inset: 0 !important; width: 100% !important; height: 100% !important; object-position: var(--mobile-position, center); }
  .feature__intro { grid-area: auto; }
  .feature__product { grid-area: auto; }
}

/* ===== 모바일 (Figma 시안 없음 — 초안) ===== */
@media (max-width: 767px) {
  :root { --gutter: 20px; }

  /* 헤더: 위아래 20px, 로고 84×18, 로고-메뉴 간격 20px. 누르는 영역은 ::after로 44px 확보 */
  .header__inner { flex-direction: column; align-items: stretch; gap: 20px; height: auto; padding-block: 20px; }
  .header__logo { position: relative; justify-content: flex-start; width: 84px; min-height: 0; height: 18px; }
  .header__logo-mark { width: 84px; height: 18px; }
  .header__logo::after { content: ''; position: absolute; inset: -12px 0; }
  .header__nav {
    gap: 24px;
    font-size: 13px;
    line-height: 1.4;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .header__nav::-webkit-scrollbar { display: none; }
  .header__nav a { position: relative; padding: 0; }
  .header__nav a::after { content: ''; position: absolute; inset: -13px 0; }

  /* 히어로: Figma 일본_임시_자사몰_mo (375×600, 배너 mo_banner_01~06 위에 문구를 아래쪽 가운데 배치) */
  .hero { height: auto; aspect-ratio: 375 / 600; }
  .hero__slide { object-position: center; }
  .hero__content {
    position: absolute;
    left: 50%;
    bottom: 68px;
    width: auto;
    height: auto;
    align-items: center;
    gap: 16px;
    text-align: center;
    transform: translateX(-50%);
  }
  .hero__heading { align-items: center; gap: 10px; white-space: nowrap; }
  .hero__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--gray-800); }
  .hero__title { font-size: 27px; }
  .hero__br-pc { display: none; }
  .hero .button {
    min-width: 0;
    gap: 3px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: -0.01em;
  }
  .hero .button::after { inset: -5px 0; }
  .hero .arrow-icon { width: 14px; height: 14px; }
  .hero .arrow-icon img { width: 8px; height: auto; }
  .hero__dots { gap: 6px; }
  .hero__dot { width: 5px; height: 5px; }
  .hero__dot[aria-current="true"] { width: 6px; height: 6px; }

  .section-title, .channels__title { font-size: 24px; }
  .channels__title { line-height: 1.2; }
  .section-header { margin-bottom: 24px; }
  .view-all { font-size: 13px; }

  .about__inner { flex-direction: column; align-items: stretch; gap: 32px; min-height: 0; padding-block: 56px; }
  .about__text { gap: 16px; }
  .about__heading { gap: 8px; }
  .about .eyebrow { font-size: 14px; }
  .about__expert { flex: none; }
  .about__desc { gap: 8px; font-size: 15px; line-height: 1.5; letter-spacing: -0.01em; }

  .bestsellers, .products, .ingredient { padding-block: 56px; }
  .bestsellers .section-header { margin-bottom: 24px; }
  /* 인기상품: 쌓는 구조는 890px 이하 규칙 참고. 소개 문단(lead)은 모바일에서 뺀다 */
  .feature__intro { padding: 28px 20px; }
  .feature__headline { font-size: 18px; }
  .feature__name { margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--gray-400); white-space: normal; }
  .feature__lead { display: none; }
  .feature .product-card__media { width: 140px; }
  .feature .product-card__body { justify-content: center; padding: 12px 16px; gap: 8px; }
  .feature .product-card__text { gap: 8px; }
  .feature .product-card__name { font-size: 14px; line-height: 1.4; }
  .feature .product-card__desc { font-size: 13px; }
  .feature .price > * { font-size: 14px; }
  .feature .badge { left: 8px; top: 8px; padding: 4px 6px; font-size: 10px; line-height: 1; letter-spacing: -0.01em; }
  .carousel-dots { margin-top: 28px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .badge { left: 8px; top: 8px; }
  .product-card__name { line-height: 1.5; letter-spacing: -0.01em; }

  .ingredient .section-title { margin-bottom: 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { padding: 20px 8px; }
  .step + .step { border-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--gray-200); }
  .step:nth-child(n+3) { border-top: 1px solid var(--gray-200); }
  .step__image { width: min(140px, 100%); margin-bottom: 16px; }
  .step__text { font-size: 14px; letter-spacing: -0.01em; }
  .step__text br { display: none; }
  .ingredient__note { margin-top: 24px; font-size: 14px; }

  .campaign { --campaign-h: 200px; }

  .channels { padding-block: 48px; }
  .channels__title { margin-bottom: 24px; }
  .channels__groups { gap: 28px; }
  .channels__list { grid-template-columns: 1fr; gap: 8px; }
  .channel-card { height: 60px; padding: 0 16px 0 20px; }
  .channel-card--sns { height: 64px; padding: 0 16px 0 20px; }
  .channel-card__logo--qoo10 { width: 72px; height: 20px; }
  .channel-card__logo--amazon { width: 96px; height: 24px; }
  .channel-card__icon { width: 36px; height: 36px; }
  .channel-card__icon--line { width: 35px; height: 36px; }
  .channel-card__icon--instagram { width: 32px; height: 32px; }
  .channel-card__icon--x { width: 30px; height: 30px; }
  .channel-card__name { font-size: 14px; }

  .footer { padding-top: 48px; }
  .footer__main { flex-wrap: wrap; row-gap: 32px; }
  .footer__brand { flex-basis: 100%; }
  .footer__brand-desc br { display: none; }
  .footer__nav { width: auto; flex: 1; }
  .footer__company p { flex-direction: column; }
  .footer__company span + span::before { content: none; }
}
