@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/bold/style.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css");

:root {
    --minici-font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    --font-family: var(--minici-font-family);
    --minici-font-size: 16px;
    --minici-font-style: normal;
    --minici-font-weight: 400;
    --minici-line-height: 1.6;
}

html {
    font-size: var(--minici-font-size);
}

body {
    font-family: var(--minici-font-family);
    font-style: var(--minici-font-style);
    font-weight: var(--minici-font-weight);
    line-height: var(--minici-line-height);
}

:root {
  --border-color: #dee2e6;
  --section-padding: 160px 0;
  --primary: rgb(138, 0, 252);
  --primary-dark: rgb(77, 15, 128);
  --primary-light: rgba(138, 0, 252, 0.1);
  --danger: #dc3545;
  --danger-dark: #c82333;
  --text-primary: #212529;
  --text-secondary: #868e96;
  --border-color-dark: #c8cfd5;
  --bg-light: #f5f7f8;
  --white: #ffffff;
}

.field-error {
    min-height: 16px;
    margin-top: 8px;
    margin-bottom: 6px;
    color: #dc3545;
    font-size: 13px;
}

.field-error.is-success {
    color: #34c759;
}

.field-error:not(:empty) {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
    padding-bottom: 6px;
}

.field-error:not(:empty)::before {
    content: '!';
    display: inline-flex;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    align-items: center;
    justify-content: center;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.floating-field {
  position: relative;
  display: block;
  width: 100%;
}

.floating-field > label {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  padding: 0 3px;
  color: #5f6368;
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: top 0.16s ease, color 0.16s ease, font-size 0.16s ease, transform 0.16s ease;
}

.floating-field:focus-within > label,
.floating-field.has-value > label {
  top: 8px;
  color: #5f6368;
  font-size: 12px;
  transform: translateY(0);
}

.floating-field > input {
  display: block;
  width: 100%;
  border: 1px solid #e5e8eb;
  border-radius: 12px;
  background: #f9fafb;
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
  min-height: 56px;
  height: 56px !important;
  outline: none;
  padding-top: 12px;
  padding-right: 16px;
  padding-left: 16px;
  padding-bottom: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.floating-field > input::placeholder {
  color: transparent;
}

.floating-field > input:focus {
  border-color: #3182f6;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(49 130 246 / 15%);
}

.floating-field.is-invalid > input {
  border-color: #ef4444;
  background: #fff1f3;
}

.floating-field > input.is-invalid {
  border-color: #ef4444;
  background: #fff1f3;
}

.floating-field.is-invalid > input:focus,
.floating-field > input.is-invalid:focus {
  border-color: #3182f6 !important;
  background: #fff !important;
}

.floating-field:focus-within > input,
.floating-field.has-value > input {
  padding-top: 16px;
  padding-bottom: 6px;
}

.scroll-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin: 50px auto 0;
}

@media (min-width: 768px) {
  .scroll-controls.only-mb {
    display: none;
  }
}

@media (max-width: 767px) {
  .scroll-controls {
    margin: 10px auto 0;
  }
}

.scroll-track {
  position: relative;
  flex: 1;
  height: 3px;
  background-color: #e5e5e5;
  border-radius: 2px;
  overflow: hidden;
}

.scroll-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: #111;
  border-radius: 2px;
  will-change: width, left;
}

.scroll-pause {
  position: relative;
  width: 10px;
  height: 12px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
  background: transparent;
  border: none;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.scroll-pause:hover {
  opacity: 1;
}

.scroll-pause::before,
.scroll-pause::after {
  content: "";
  display: block;
  width: 4px;
  height: 100%;
  background-color: #000;
  border-radius: 1px;
}

.scroll-pause.is-play::before {
  display: none;
}

.scroll-pause.is-play::after {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #000;
  background-color: transparent;
}

/* 툴팁 */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0px;
  background-color: #333;
  color: #fff;
  padding: 10px 10px;
  line-height: 1.2;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* 기타 컴포넌트 */
#slider-track picture {
  display: block;
  width: 100%;
  height: 100%;
}

.input-underline {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  outline: none;
  font-size: 1.6rem;
  color: #111;
  background: transparent;
  border-radius: 0;
  transition: border-color 0.3s;
}

.input-underline::-moz-placeholder {
  color: #6b7280;
}

.input-underline::placeholder {
  color: #6b7280;
}

.input-underline:focus {
  border-bottom-color: #111;
}

/* ==============================================
* Horizontal Scroll (Integrated)
* ============================================== */
.grid.wide-scroll {
  grid-template-columns: none !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 15px;
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.grid.wide-scroll::-webkit-scrollbar {
  display: none;
}

.grid.wide-scroll.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.grid.wide-scroll>* {
  flex: 0 0 82%;
  scroll-snap-align: center;
  will-change: transform;
}

@media (min-width: 768px) {
  .grid.wide-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    /* 1. 컨테이너 가용 너비 계산 (단위 패딩 제외) */
    /* 2. 우측 화면 끝까지 강제 확장 */
    margin-right: calc(-1 * (100vw - 100%) / 2) !important;
    padding-right: 100px !important;
  }

  .grid.wide-scroll>* {
    /* 3. 3개 노출을 위한 정확한 너비 공식 */
    flex: 0 0 calc((calc(min(1600px, 100vw) - 80px) - 60px) / 3) !important;
    min-width: 280px;
  }
}

@media (max-width: 767px) {
  .grid.wide-scroll>* {
    flex: 0 0 82% !important;
  }
}

@media (max-width: 767px) {
  .grid.mo-scroll {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 16px;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 15px;
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }

  .grid.mo-scroll::-webkit-scrollbar {
    display: none;
  }

  .grid.mo-scroll.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
  }

  .grid.mo-scroll>* {
    flex: 0 0 82%;
    scroll-snap-align: center;
    will-change: transform;
  }

  .grid.mo-scroll>* {
    flex: 0 0 82% !important;
    width: auto !important;
    max-width: none !important;
  }
}

.ani-on,
.letter {
  /* 트랜지션 충돌 방지를 위해 !important 유지 */
  transition-property: opacity, transform, filter !important;
}

.ani-on {
  opacity: 0;
  /* 기본적으로 아래에서 위로 올라오는 위치값 */
  transform: translateY(30px);
}

/* [기본 동작] data-ani 속성이 없을 때 작동 (Slide Up) */
.ani-on-active {
  animation: aniontxt 0.8s cubic-bezier(0.33, 0.45, 0.78, 0.85) forwards;
}

@keyframes aniontxt {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ani-on[data-ani] {
  opacity: 0;
  animation: none;
  transform: none;
  /* 기본 translateY(30px)를 여기서 초기화 */
  transition: none !important;
}

/* ------------------------------------------------------------------
   Type A: Fade (부드럽게 등장)
   ------------------------------------------------------------------ */
.ani-on[data-ani=fade] {
  opacity: 0;
  /* transform은 위 초기화 구문 덕분에 none 상태임 */
}

.ani-on[data-ani=fade].ani-on-active {
  animation-name: fadeReveal;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);
  animation-fill-mode: forwards;
}

@keyframes fadeReveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ani-on[data-ani=slide-up] {
  transform: translateY(50px);
}

.ani-on[data-ani=slide-up].ani-on-active {
  animation-name: slideUpReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

@keyframes slideUpReveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------
   Type B: Scale (작은 크기에서 확대)
   ------------------------------------------------------------------ */
.ani-on[data-ani=scale] {
  opacity: 0;
  transform: scale(0.92);
  /* 초기화 구문을 덮어쓰고 적용됨 */
  transform-origin: center center;
}

.ani-on[data-ani=scale].ani-on-active {
  animation-name: scaleReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-fill-mode: forwards;
}

@keyframes scaleReveal {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ------------------------------------------------------------------
   Type C: Slide Left / Right
   ------------------------------------------------------------------ */
/* Slide Right (왼쪽 → 오른쪽) */
.ani-on[data-ani=slide-right] {
  transform: translateX(-50px);
}

.ani-on[data-ani=slide-right].ani-on-active {
  animation-name: slideRightReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

/* Slide Left (오른쪽 ← 왼쪽) */
.ani-on[data-ani=slide-left] {
  transform: translateX(50px);
}

.ani-on[data-ani=slide-left].ani-on-active {
  animation-name: slideLeftReveal;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

@keyframes slideRightReveal {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideLeftReveal {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ------------------------------------------------------------------
   Type D: Wipe (스크롤바 제거 & 완벽 대응)
   ------------------------------------------------------------------ */
.ani-on[data-ani=wipe] {
  /* 1. 투명도 1 강제 (숨김 방지) */
  opacity: 1 !important;
  /* 2. 기존 트랜지션/변형 제거 */
  transform: none !important;
  transition: none !important;
  /* 3. 박스 설정 */
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  /* [핵심 1] 하단 미세 여백(세로 스크롤 원인) 제거 */
  vertical-align: bottom;
  /* 4. 초기 상태: 너비 0 */
  max-width: 0;
  padding-right: 0;
  /* 5. 최적화 */
  will-change: max-width;
}

.ani-on[data-ani=wipe].ani-on-active {
  animation-name: wipeWidthReveal;
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
  animation-fill-mode: forwards;
}

@keyframes wipeWidthReveal {
  from {
    max-width: 0;
  }

  to {
    max-width: 100%;
  }
}

/* ==============================
   Type E: Blur 텍스트 전용 처리
   ============================== */
/* Blur 타입은 자식(.letter)이 움직이므로 부모 컨테이너는 고정 */
.ani-on[data-ani=blur] {
  opacity: 1;
  transform: none;
}

.letter {
  display: inline-block;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(12px);
  will-change: transform, opacity, filter;
}

.ani-on[data-ani=blur].ani-on-active .letter {
  animation: blurLetter 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes blurLetter {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ==============================
   이미지 줌 (Ken Burns)
   ============================== */
@keyframes kenburns {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.2) translate(-20px, -10px);
  }
}

.img-zoom img {
  animation: kenburns 12s ease-in-out infinite alternate;
}

/* ==============================
   이미지 호버 (Image Hover)
   ============================== */
.img-hover {
  overflow: hidden;
}

/* ------------------------------------------------------------------
   Type F: Soft Pop (애플 스타일 - 블러+스케일 동시 적용)
   - 용도: 모달, 알림창, 강조하고 싶은 카드
   ------------------------------------------------------------------ */
.ani-on[data-ani=soft-pop] {
  opacity: 0;
  /* 작고 흐릿하게 시작 */
  transform: scale(0.94);
  filter: blur(10px);
  /* 기존 트랜지션 제거 */
  transition: none !important;
  will-change: transform, opacity, filter;
}

.ani-on[data-ani=soft-pop].ani-on-active {
  animation: softPopReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes softPopReveal {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* ------------------------------------------------------------------
   Type G: 3D Flip Up (입체 회전 등장)
   - 용도: 제품 카드, 리뷰 박스, 가격표
   ------------------------------------------------------------------ */
.ani-on[data-ani=flip-up] {
  opacity: 0;
  /* 3D 원근감 부여 */
  transform: perspective(1000px) rotateX(15deg) translateY(30px);
  transform-origin: center bottom;
  transition: none !important;
  will-change: transform, opacity;
}

.ani-on[data-ani=flip-up].ani-on-active {
  animation: flipUpReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flipUpReveal {
  to {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
  }
}

/* ------------------------------------------------------------------
   Type H: Grayscale Reveal (흑백에서 컬러로)
   - 용도: 갤러리 이미지, 분위기 있는 인물 사진
   ------------------------------------------------------------------ */
.ani-on[data-ani=grayscale] {
  opacity: 0;
  transform: translateY(20px);
  filter: grayscale(100%);
  /* 완전 흑백 */
  transition: none !important;
}

.ani-on[data-ani=grayscale].ani-on-active {
  animation: grayReveal 1.2s ease-out forwards;
}

@keyframes grayReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: grayscale(0%);
  }
}

/* ------------------------------------------------------------------
   Type I: Card List (순차 등장 컨테이너)
   - 부모 요소에 적용: data-ani="card-list"
   - 자식 요소: .card-ani 클래스 유지
   ------------------------------------------------------------------ */
.ani-on[data-ani=card] {
  /* 부모 컨테이너는 투명해지거나 움직이면 안 됨 (자식만 움직임) */
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

/* [자식 요소] 카드 애니메이션 (기존 유지) */
.card-ani {
  opacity: 0;
  transform: translateY(30px);
  /* JS 로드 전 깜빡임 방지 */
  will-change: opacity, transform;
}

.card-ani.ani-on-active {
  opacity: 1;
  transform: translateY(0);
  /* 부드러운 등장 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ==============================
   텍스트 리빌 (Text Reveal)
   ============================== */
.text-reveal {
  display: block;
  overflow: hidden;
  line-height: 1.2;
  margin-bottom: -0.2em;
}

.text-reveal>span {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

.ani-on-active .text-reveal>span {
  transform: translateY(0);
  opacity: 1;
}

.text-reveal:nth-child(2)>span {
  transition-delay: 0.1s;
}

.text-reveal:nth-child(3)>span {
  transition-delay: 0.2s;
}

/* ==============================
   Expanding Image Container
   ============================== */
.expanding-image-container {
  position: relative;
  will-change: transform;
  transform-origin: center center;
  z-index: 10;
}

/* ==============================
   Marquee (Infinite Scroll)
   ============================== */
.marquee-wrap {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  gap: 20px;
  will-change: transform;
}

.scroll-left {
  animation: scrollLeft 60s linear infinite;
}

.scroll-right {
  animation: scrollRight 65s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

/* ==============================
   스크롤 텍스트 채움 (Scroll Fill)
   ============================== */
.scroll-fill {
  display: inline-block;
  word-break: keep-all;
  background-image: linear-gradient(var(--fill-color, #111827), var(--fill-color, #111827)), linear-gradient(var(--base-color, #e5e7eb), var(--base-color, #e5e7eb));
  background-repeat: no-repeat;
  background-size: 0% 100%, 100% 100%;
  /* JS 제어 */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-size 0.1s ease-out;
  will-change: background-size;
}

.scroll-fill[data-color=black] {
  --fill-color: #111827;
  /* gray-900 */
}

.scroll-fill[data-color=red] {
  --fill-color: #ef4444;
  /* red-500 */
}

.scroll-fill[data-color=gray] {
  --fill-color: #4b5563;
  /* gray-600 */
}

.scroll-fill[data-color=brand] {
  --fill-color: #3b82f6;
  /* blue-500 */
}

.scroll-fill {
  --base-color: #e5e5e5;
}

/* ==============================
   소프트 블러 전환 효과 (Soft Reveal)
   ============================== */
.soft-reveal img {
  filter: blur(15px) grayscale(100%);
  opacity: 0;
  transform: scale(1.05);
  transition: filter 1.5s ease, opacity 1s ease, transform 1.5s ease;
}

.soft-reveal.ani-on-active img {
  filter: blur(0) grayscale(0);
  opacity: 1;
  transform: scale(1);
}

/* ==============================
   Hover-Up 버튼 효과
   ============================== */
.hover-up {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hover-up:hover {
  transform: translateY(-4px);
}

i.ph {
  vertical-align: middle;
}

