/* 파츠 조각: 스크롤 표시 — 변수 --ms-pt_scroll-color
   모양(kind): line 선+글자 · line0 선만 · mouse_t 마우스+글자 · mouse 마우스만 · arrow_t 화살표+글자 · arrow 화살표만 (루트 ms-pt_scroll-kind-*)
   위치(pos): center = 아래 가운데 / left = inner 왼쪽 끝 / out = inner 밖, 화면 왼쪽에서 lx (루트 ms-pt_scroll-pos-*)
   여백: bot = 아래에서 · lx = 왼쪽에서(out) · 세로 글자(vert) = 글자를 세워 선 위에
   ★1119 html 을 inner 틀(.ms_pt_in = contents-container {container}) 안에 넣음 → 왼쪽이 글자 시작선과 맞음 */
.MAIN_TOP_SET .ms_part--pt_scroll { left: 0; right: 0; bottom: var(--ms-pt_scroll-bot, 0px); }   /* 아래 여백(bot) */
.MAIN_TOP_SET .ms_part--pt_scroll .ms_pt_in { display: flex; justify-content: center; width: 100%; float: none; }
.MAIN_TOP_SET .ms_pt_scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ms-pt_scroll-color, #fff); }
.MAIN_TOP_SET .ms_pt_scroll em { font-style: normal; font-size: 11px; letter-spacing: .2em; }

/* 선 */
.MAIN_TOP_SET .ms_pt_line { position: relative; display: block; width: 1px; height: var(--ms-pt_scroll-len, clamp(40px, calc(1.88vw + 34px), 64px));   /* 선 높이 옵션(len) */ overflow: hidden; background: rgba(255, 255, 255, .25); }
.MAIN_TOP_SET .ms_pt_line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ms-pt_scroll-accent, var(--ms-pt_scroll-color, #fff)); animation: mset_pt_scroll 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes mset_pt_scroll { to { top: 100%; } }

/* 마우스 — 휠 점이 아래로 흘렀다 사라짐 */
.MAIN_TOP_SET .ms_pt_mouse { display: none; position: relative; width: 24px; height: 38px; border: 2px solid var(--ms-pt_scroll-color, #fff); border-radius: 13px; box-sizing: border-box; }
.MAIN_TOP_SET .ms_pt_mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ms-pt_scroll-color, #fff); animation: mset_pt_wheel 1.6s ease-in-out infinite; }
@keyframes mset_pt_wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(10px); } }

/* 화살표 — 꺾쇠 두 개가 차례로 내려옴 */
.MAIN_TOP_SET .ms_pt_arrow { display: none; position: relative; width: 18px; height: 28px; }
.MAIN_TOP_SET .ms_pt_arrow i { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-right: 2px solid var(--ms-pt_scroll-color, #fff); border-bottom: 2px solid var(--ms-pt_scroll-color, #fff); transform: rotate(45deg); animation: mset_pt_arrow 1.6s ease-in-out infinite; }
.MAIN_TOP_SET .ms_pt_arrow i:first-child { top: 0; }
.MAIN_TOP_SET .ms_pt_arrow i:last-child { top: 9px; animation-delay: .2s; }
@keyframes mset_pt_arrow { 0%, 100% { opacity: .2; transform: translateY(-3px) rotate(45deg); } 50% { opacity: 1; transform: translateY(3px) rotate(45deg); } }

/* 모양 고르기 */
.MAIN_TOP_SET.ms-pt_scroll-kind-line0 .ms_pt_scroll em,
.MAIN_TOP_SET.ms-pt_scroll-kind-mouse .ms_pt_scroll em,
.MAIN_TOP_SET.ms-pt_scroll-kind-arrow .ms_pt_scroll em { display: none; }
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-mouse"] .ms_pt_line,
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-arrow"] .ms_pt_line { display: none; }
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-mouse"] .ms_pt_mouse,
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-arrow"] .ms_pt_arrow { display: block; }
/* 아이콘형: 글자는 아이콘 아래 · 바닥에서 띄움 */
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-mouse"] .ms_pt_scroll,
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-arrow"] .ms_pt_scroll { gap: 12px; padding-bottom: clamp(20px, calc(1.56vw + 15px), 40px); }
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-mouse"] .ms_pt_scroll em,
.MAIN_TOP_SET[class*="ms-pt_scroll-kind-arrow"] .ms_pt_scroll em { order: 2; }

/* 왼쪽: 선형 = ┌ 모양(선이 inner 왼쪽 끝, 글자는 선 오른쪽 위) · 아이콘형 = 아이콘 오른쪽에 글자 */
.MAIN_TOP_SET:is(.ms-pt_scroll-pos-left, .ms-pt_scroll-pos-out) .ms_part--pt_scroll .ms_pt_in { justify-content: flex-start; }
.MAIN_TOP_SET:is(.ms-pt_scroll-pos-left, .ms-pt_scroll-pos-out) .ms_pt_scroll { flex-direction: row-reverse; align-items: flex-start; gap: 8px; }
.MAIN_TOP_SET:is(.ms-pt_scroll-pos-left, .ms-pt_scroll-pos-out) .ms_pt_scroll em { order: 0; margin-top: -.15em; line-height: 1; }
.MAIN_TOP_SET:is(.ms-pt_scroll-pos-left, .ms-pt_scroll-pos-out)[class*="ms-pt_scroll-kind-mouse"] .ms_pt_scroll,
.MAIN_TOP_SET:is(.ms-pt_scroll-pos-left, .ms-pt_scroll-pos-out)[class*="ms-pt_scroll-kind-arrow"] .ms_pt_scroll { align-items: center; gap: 12px; }
.MAIN_TOP_SET:is(.ms-pt_scroll-pos-left, .ms-pt_scroll-pos-out)[class*="ms-pt_scroll-kind-mouse"] .ms_pt_scroll em,
.MAIN_TOP_SET:is(.ms-pt_scroll-pos-left, .ms-pt_scroll-pos-out)[class*="ms-pt_scroll-kind-arrow"] .ms_pt_scroll em { margin-top: 0; }

/* ★1119 inner 밖(out): 화면 왼쪽에서 lx, 아래에서 bot — inner 틀을 풀어 버림 */
.MAIN_TOP_SET.ms-pt_scroll-pos-out .ms_part--pt_scroll { left: var(--ms-pt_scroll-lx, 40px); right: auto; }
.MAIN_TOP_SET.ms-pt_scroll-pos-out .ms_part--pt_scroll .ms_pt_in { width: auto; max-width: none; margin: 0; padding: 0; }

/* ★1119 세로 글자 + 선 (vert): 글자를 세워(위→아래로 읽힘) 선 위에 · 움직이는 선은 accent 색 */
.MAIN_TOP_SET.ms-pt_scroll-kind-vert .ms_part--pt_scroll .ms_pt_scroll { flex-direction: column; align-items: center; gap: 14px; }
.MAIN_TOP_SET.ms-pt_scroll-kind-vert .ms_part--pt_scroll .ms_pt_scroll em { order: 0; margin: 0; writing-mode: vertical-rl; line-height: 1; font-weight: 600; letter-spacing: .18em; white-space: nowrap; }
.MAIN_TOP_SET.ms-pt_scroll-kind-vert .ms_pt_line { height: var(--ms-pt_scroll-len, clamp(70px, calc(3.13vw + 60px), 110px)); overflow: visible; }
.MAIN_TOP_SET.ms-pt_scroll-kind-vert .ms_pt_line::after { left: -.5px; width: 2px; }
.MAIN_TOP_SET.ms-pt_scroll-kind-vert .ms_pt_line { clip-path: inset(0 -2px); }

/* 모바일 보이기/숨김 (mo) — ★1119 예전 "모바일 숨김" 규칙은 켜기 규칙(.ms-parts--pt_scroll …{display:block})에 눌려 실제론 보였음 → 기본 = 보이기 */
@media screen and (max-width: 768px) {
    .MAIN_TOP_SET.ms-parts--pt_scroll.ms-pt_scroll-mo-hide .ms_part--pt_scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .MAIN_TOP_SET .ms_pt_line::after, .MAIN_TOP_SET .ms_pt_mouse i, .MAIN_TOP_SET .ms_pt_arrow i { animation: none; }
}
