/* [국내] 휴대폰 상단 새 틀 — 작업기록 1_test\255, 261(막대 + 판 한 몸으로 움직임), 263(두 단계 메뉴)
   왼쪽 로고 · 오른쪽 검색과 메뉴, 열린 메뉴는 화면 전체 흰 판(누르면 그 자리에서 펼침). 767px 이하에서만 */
@media (max-width: 767.98px) {
    html[lang="ko"] .krm { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: 50px; background: #fff; font-family: Pretendard, "Noto Sans KR", sans-serif; -webkit-tap-highlight-color: transparent; }
    .krm-bar { position: relative; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 50px 0 20px; background: #fff; box-shadow: inset 0 -1px 0 #eef0f1; transition: box-shadow .2s; }
    .krm.krm-open .krm-bar, .krm.krm-sopen .krm-bar { box-shadow: inset 0 -1px 0 transparent; }
    .krm-logo { position: relative; display: block; line-height: 0; }
    .krm-logo img { display: block; width: 59px; height: 28px; }
    .krm-acts { display: flex; align-items: center; }
    .krm-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: none; color: #111; cursor: pointer; border-radius: 0; }
    .krm-btn:focus-visible { outline: 2px solid #009ca6; outline-offset: -4px; border-radius: 8px; }

    /* 메뉴 단추: 가는 줄 둘 */
    /* 262: 메뉴 단추는 막대 밖 맨 위에 고정(판보다 위). 열리면 제자리에서 X */
    .krm-mbtn { position: absolute; z-index: 5; top: 3px; right: 6px; flex-direction: column; gap: 6px; }
    .krm-ln { display: block; width: 20px; height: 1.6px; border-radius: 1px; background: currentColor; transition: transform .5s cubic-bezier(.65,0,.35,1); }
    .krm-open .krm-ln:first-child { transform: translateY(3.8px) rotate(45deg); }
    .krm-open .krm-ln:last-child { transform: translateY(-3.8px) rotate(-45deg); }
    .krm-closing .krm-ln { transition-duration: .42s; }
    .krm-sopen .krm-sbtn { color: #009ca6; }

    /* 검색 판 */
    .krm-search { position: absolute; z-index: 2; top: 50px; left: 0; right: 0; padding: 4px 20px 16px; background: #fff; box-shadow: 0 1px 0 #eef0f1, 0 16px 24px -16px rgba(20, 40, 50, .18); }
    .krm-search[hidden] { display: none; }
    /* 검색 판 아래는 옅게 어둡게(누르면 닫힘) */
    .krm.krm-sopen::after { content: ""; position: fixed; z-index: 1; top: 50px; left: 0; right: 0; bottom: 0; background: rgba(12, 20, 24, .32); }
    .krm-sfield { display: flex; align-items: center; gap: 10px; height: 48px; margin: 0; padding: 0 14px; border-radius: 10px; background: #f4f6f7; color: #8b9095; font-weight: 400; }
    .krm-sfield:focus-within { background: #fff; box-shadow: inset 0 0 0 1px #009ca6; color: #009ca6; }
    .krm-sfield input { flex: 1 1 auto; min-width: 0; height: 46px; margin: 0; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 16px; color: #1c1f22; outline: 0; -webkit-appearance: none; appearance: none; }
    .krm-sfield input::placeholder { color: #8b9095; }
    .krm-sfield input::-webkit-search-cancel-button { -webkit-appearance: none; }
    /* 267: 치는 동안 찾은 모델 */
    .krm-search { max-height: calc(100vh - 50px); max-height: calc(100dvh - 50px); overflow-y: auto; overscroll-behavior: contain; }
    .krm-shint { margin: 12px 2px 0; color: #8b9095; font-size: 13px; line-height: 1.5; }
    .krm-shint:empty { display: none; }
    .krm-res { margin: 6px 0 0; padding: 0; list-style: none; }
    .krm-res:empty { display: none; }
    .krm-res a { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0f2f3; color: #222 !important; text-decoration: none !important; }
    .krm-res a:active { background: #f5f6f7; }
    .krm-rimg { flex: 0 0 52px; height: 40px; border-radius: 8px; background: #f5f6f7 center / contain no-repeat; }
    .krm-rt { min-width: 0; }
    .krm-rt b { display: block; color: #111; font-size: 15px; font-weight: 600; letter-spacing: -0.2px; }
    .krm-rt b mark { padding: 0; background: none; color: #009ca6; }
    .krm-rt span { display: block; margin-top: 2px; color: #8b9095; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .krm-sall { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding: 14px 0 2px; color: #333 !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
    .krm-sall[hidden] { display: none; }
    .krm-sall span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* 메뉴 판 */
    /* 261: 상단 막대와 메뉴 판이 한 장처럼 붙어 함께 움직임
       막대는 -100%, 판은 100% → 0. 같은 거리 · 같은 곡선 · 같은 시간이라 이음매가 벌어지지 않음. 끝이 늘어지지 않는 곡선(처음 · 끝 부드럽게) */
    .krm-bar { transition: transform .5s cubic-bezier(.65,0,.35,1); }
    .krm-open .krm-bar { transform: translateX(-100%); }
    .krm-closing .krm-bar, .krm-closing .krm-panel { transition-duration: .42s; }
    .krm-drag-on .krm-bar, .krm-panel.krm-drag { transition: none; }
    .krm-panel { position: fixed; z-index: 2; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; overflow: hidden; background: #fff; transform: translateX(100%); transition: transform .5s cubic-bezier(.65,0,.35,1); touch-action: pan-y; }
    .krm-panel[hidden] { display: none; }
    .krm-open .krm-panel { transform: none; }

    /* 263: 판 맨 위 줄 — 2단에서 ‹ 뒤로 · 가운데 제목. 오른쪽은 메뉴 단추(X) 자리 */
    .krm-ptop { position: relative; z-index: 1; flex: 0 0 50px; height: 50px; background: #fff; }
    .krm-back { position: absolute; top: 3px; left: 6px; opacity: 0; visibility: hidden; transform: translateX(12px); transition: opacity .3s, transform .42s cubic-bezier(.65,0,.35,1), visibility .3s; }
    .krm-ptitle { position: absolute; top: 0; left: 60px; right: 60px; height: 50px; line-height: 50px; text-align: center; color: #111; font-size: 17px; font-weight: 600; letter-spacing: -0.3px; opacity: 0; transition: opacity .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .krm-deep .krm-back { opacity: 1; visibility: visible; transform: none; }
    .krm-deep .krm-ptitle { opacity: 1; transition-delay: .1s; }

    /* 두 단계 화면: 1단은 왼쪽으로, 2단은 오른쪽에서(메뉴가 열리던 방향 그대로) */
    .krm-views { position: relative; flex: 1 1 auto; overflow: hidden; }
    .krm-view { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; transition: transform .42s cubic-bezier(.65,0,.35,1); }
    .krm-view[hidden] { display: none; }
    .krm-sub { transform: translateX(100%); padding: 4px 20px calc(32px + env(safe-area-inset-bottom)); }
    .krm-deep .krm-root { transform: translateX(-100%); }
    .krm-sub.is-in { transform: none; }

    /* 1단 */
    .krm-list { margin: 0; padding: 4px 0 0; list-style: none; }
    .krm-list > li { margin: 0 20px; border-bottom: 1px solid #f0f2f3; }
    .krm-top { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 60px; margin: 0; padding: 0; border: 0; background: none; color: #222 !important; font: 500 20px/1 Pretendard, "Noto Sans KR", sans-serif; letter-spacing: -0.4px; text-align: left; text-decoration: none !important; cursor: pointer; }
    .krm-top.is-on { color: #111 !important; font-weight: 700; }
    .krm-top > span { display: inline-flex; align-items: center; gap: 6px; }
    .krm-ic { flex: 0 0 16px; margin-right: 2px; color: #a3a9ae; }
    .krm-ext { flex: 0 0 12px; color: #8b9095; }
    .krm-top .krm-ext { width: 13px; height: 13px; margin-top: 2px; }

    /* 2단: 제품 대분류 + 사진 */
    .krm-cats { margin: 0; padding: 0; list-style: none; }
    .krm-cats a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 0; border-bottom: 1px solid #f0f2f3; color: #222 !important; font-size: 17px; font-weight: 500; letter-spacing: -0.3px; text-decoration: none !important; }
    .krm-cats a.is-on { color: #009ca6 !important; font-weight: 700; }
    .krm-cn { flex: 1 1 auto; min-width: 0; }

    /* 2단: 묶음별 펼침(솔루션 · 자료실) — 펼친 묶음은 청록, 하위는 회색 상자 하나에 */
    .krm-sec { border-bottom: 1px solid #f0f2f3; }
    .krm-sech { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 60px; margin: 0; padding: 0; border: 0; background: none; color: #222; font: 600 18px/1 Pretendard, "Noto Sans KR", sans-serif; letter-spacing: -0.3px; text-align: left; cursor: pointer; }
    .krm-dn { flex: 0 0 16px; margin-right: 2px; color: #6b7177; transition: transform .3s cubic-bezier(.65,0,.35,1); }
    .krm-sec.on .krm-sech { color: #009ca6; }
    .krm-sec.on .krm-dn { transform: rotate(180deg); color: #009ca6; }
    .krm-acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.65,0,.35,1); }
    .krm-sec.on .krm-acc { grid-template-rows: 1fr; }
    .krm-acc-in { min-height: 0; overflow: hidden; }
    .krm-acc .krm-box { margin-bottom: 16px; }
    .krm-box { margin: 12px 0 0; padding: 6px 18px; list-style: none; border-radius: 12px; background: #f5f6f7; }
    .krm-box a { display: flex; align-items: center; gap: 6px; padding: 12px 0; color: #333 !important; font-size: 16px; font-weight: 500; line-height: 1.35; text-decoration: none !important; }
    .krm-box a.is-on { color: #009ca6 !important; font-weight: 700; }
    .krm-box a:active, .krm-cats a:active { color: #009ca6 !important; }

    /* 269: 2단 = PC 와 같은 타일(연회색 칸, 왼쪽 이름 · 오른쪽 아이콘 또는 제품 사진), 한 줄 2칸 */
    .krm-th2 { margin: 18px 0 8px; color: #8b9095; font-size: 13px; font-weight: 500; }
    .krm-sub > .krm-th2:first-child { margin-top: 8px; }
    .krm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .krm-tiles + .krm-tiles { margin-top: 8px; }
    .krm-tt em.krm-flag { flex: none; padding: 0 5px; border-radius: 3px; background: #fff1e8; color: #d9480f; font-style: normal; font-size: 11px; font-weight: 600; line-height: 17px; letter-spacing: 0; white-space: nowrap; }   /* 275: 딱지(수정 중) */   /* 274: 묶음 제목 없는 대분류(공공기관 인증 등)에서 '전체 보기' 칸과 타일이 붙던 것 */
    .krm-tile { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 10px 12px 10px 14px; border-radius: 10px; background: #f6f7f8; color: #222 !important; text-decoration: none !important; transition: background .15s, box-shadow .15s; }
    .krm-tile:active { background: #eef1f2; }
    .krm-tt { display: inline-flex; align-items: center; gap: 4px; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.35; letter-spacing: -0.3px; word-break: keep-all; }
    .krm-tile .krg-ico { flex: 0 0 22px; width: 22px; height: 22px; color: #8b9095; }
    .krm-tile img { flex: 0 0 auto; max-width: 40px; max-height: 30px; width: auto; height: auto; object-fit: contain; }
    .krm-tile.is-on { box-shadow: inset 0 0 0 1.5px #009ca6; background: #f1fafb; }
    .krm-tile.is-on .krm-tt { color: #00808f; font-weight: 700; }
    .krm-all { grid-column: 1 / -1; min-height: 48px; background: #fff; box-shadow: inset 0 0 0 1px #009ca6; }
    .krm-all .krm-tt { color: #00808f; font-weight: 600; }
    .krm-all .krm-ic { color: #009ca6; }
    /* 제품 대분류 줄(누르면 그 자리에서 타일이 펼쳐짐) */
    .krm-psech { height: 56px; gap: 12px; justify-content: flex-start; font-size: 17px; font-weight: 500; } /* 270: 대분류 사진 뺌 */
    .krm-psech .krm-cn { flex: 1 1 auto; text-align: left; }
    .krm-psec.on .krm-psech { color: #009ca6; font-weight: 700; }
    .krm-psec .krm-acc-in > .krm-tiles:first-child { margin-top: 4px; }
    .krm-psec .krm-acc-in > :last-child { margin-bottom: 16px; }

    .krm-foot { margin-top: auto; padding: 28px 20px calc(24px + env(safe-area-inset-bottom)); }
    .krm-cta { display: flex; gap: 8px; }
    .krm-cta a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 48px; border-radius: 50px; font-size: 15px; font-weight: 600; text-decoration: none !important; }
    .krm-cm { color: #111 !important; box-shadow: inset 0 0 0 1px #d6dadc; }
    .krm-buy { color: #fff !important; background: #00a2b9; }
    .krm-util { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
    .krm-util a { color: #8b9095 !important; font-size: 13px; text-decoration: none !important; }
    /* 273: 언어 두 칸 */
    .krm-lang { display: inline-flex; gap: 2px; margin-top: 18px; padding: 3px; border-radius: 50px; background: #f2f4f5; }
    .krm-lang a { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 12px; border-radius: 50px; color: #6b7175 !important; font-size: 13px; font-weight: 500; text-decoration: none !important; }
    .krm-lang a.on { background: #fff; color: #111 !important; font-weight: 600; box-shadow: 0 1px 3px rgba(20, 40, 50, .1); }
    .krm-flag { display: inline-flex; flex: none; border-radius: 1px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .09); }
    .krm-globe { display: inline-flex; flex: none; color: #8a9499; }

    /* 256: 오른쪽 아래 떠 있는 구매문의(제품 상세 · 목록 · 디자이너 페이지 공통, 인라인 스타일이라 !important) — 높이 55 → 44px, 오른쪽 30 → 16px */
    /* 304: 다른 페이지 떠 있는 단추(.tk-float 등)와 같게 — 높이 40 · 글자 14 · 오른쪽 · 아래 16px */
    #univFloatingBtn, #krbInquiryBtn { height: 40px !important; padding: 0 16px !important; right: 16px !important; bottom: 16px !important; gap: 6px !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1 !important; letter-spacing: -0.2px; box-shadow: 0 4px 12px rgba(0, 162, 185, .3) !important; }
    #univFloatingBtn i, #krbInquiryBtn i { font-size: 14px !important; line-height: 1; }
    /* 264: 예전 사이트의 회사소개 펼침 칸(.mobile_dropdown: 아이디스 소개 · 찾아오시는 길 · 투자정보 · 채용 페이지, 옛 목록)을 휴대폰에서 숨김. 새 메뉴의 회사소개가 같은 일을 함. 숨겨도 본문은 헤더 바로 밑(50px)에서 시작 */
    html[lang="ko"] .mobile_dropdown { display: none !important; }
    /* 264: 페이지 안 위에 붙는 탭(회사 소개 · 투자정보 · 채용 · 제품 목록)이 고정 헤더(50px) 밑에 가려지던 것 → 헤더 바로 아래에 붙게 */
    .kra-tabs, .kra-find .kra-tabs, .krc-nav, .krb-tabs, .kra-tab2 { top: 50px !important; }
    /* 282: 헤더 밑에 닿으면 탭 줄도 헤더와 같은 고정(fixed)으로 바꿈(kr-mnav.js 가 .krm-fix + 같은 높이 빈칸). 아이폰이 고정 헤더와 달라붙는 탭을 따로 그려 스크롤 중 흔들리던 것 */
    .kra-tabs.krm-fix, .krc-nav.krm-fix, .krb-tabs.krm-fix, .kra-tab2.krm-fix { position: fixed !important; top: 50px !important; left: 0 !important; right: 0 !important; width: auto !important; margin: 0 !important; z-index: 1050 !important; }
    .kra-tabs ul, .krc-nav ul, .krb-tabs ul { overflow-y: hidden !important; overscroll-behavior-x: contain; }   /* 280: 탭 줄은 옆으로만. 안쪽이 1px 커서 위아래로도 들썩이던 것 */
    /* 266: 페이지 제목 칸(뉴스 · 자료실 .kra-top, 투자정보 · 찾아오시는 길 · CI .kra-head.is-top) 높이를 설명 두 줄 기준(185px)으로 맞춤. 설명이 한 줄이어도 같은 높이, 제목은 칸 가운데 */
    html[lang="ko"] .kra-top, html[lang="ko"] .kra-head.is-top > div { min-height: 185px !important; box-sizing: border-box !important; justify-content: center !important; }
    html[lang="ko"] .kra-top { display: flex; flex-direction: column; }
    body.krm-lock { overflow: hidden !important; }
    html.krm-hlock, html.krm-hlock body { overflow: hidden !important; overscroll-behavior: none; }   /* 279: 검색 판 열린 동안 바깥 화면 고정 */
    body.krm-lock #univFloatingBtn, body.krm-lock #krbInquiryBtn, body.krm-lock .ic-float { opacity: 0 !important; pointer-events: none !important; }

    @media (prefers-reduced-motion: reduce) { .krm-panel, .krm-bar, .krm-ln, .krm-view, .krm-back, .krm-ptitle, .krm-acc, .krm-dn { transition: none !important; } }
}
@media (min-width: 768px) { html[lang="ko"] .krm { display: none !important; } }

/* 291: 자료실 탭 줄(.kra-tab2)도 붙으면 고정. 화면 끝까지 붙으므로 안쪽 여백을 줌 */
@media (max-width: 767.98px) { .kra-tab2.krm-fix { padding-left: 16px !important; padding-right: 16px !important; box-shadow: none; clip-path: none; } }

/* ===== 293: 휴대폰 하위메뉴 줄은 44px · 14px 로 얇게, 왼쪽부터(옆으로 밀어 봄). 295: 상단 움직임은 아래 */
@media (max-width: 767.98px) {
    html[lang="ko"] .kra-tabs, html[lang="ko"] .krc-nav { background: #fff !important; border-bottom: 1px solid #e5e5e5 !important; backdrop-filter: none !important; }
    html[lang="ko"] .kra-tabs::after { display: none !important; }
    html[lang="ko"] .kra-tabs ul, html[lang="ko"] .krc-nav ul { justify-content: flex-start !important; gap: 24px !important; padding: 0 16px !important; }
    html[lang="ko"] .kra-tabs a, html[lang="ko"] .krc-nav a { display: block; height: 44px; line-height: 44px; padding: 0 !important; margin: 0 !important; border: 0 !important; font-size: 14px !important; font-weight: 500 !important; color: #555 !important; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
    html[lang="ko"] .kra-tabs a.on, html[lang="ko"] .krc-nav a.on { color: #009ca6 !important; font-weight: 600 !important; box-shadow: inset 0 -2px 0 #009ca6; }
    html[lang="ko"] .ir-ind .kra-tabs a.on { box-shadow: none; }
    html[lang="ko"] .kra-tab2 { gap: 24px !important; height: 44px; padding: 0 !important; border-bottom: 1px solid #e5e5e5 !important; }
    html[lang="ko"] .kra-tab2 a, html[lang="ko"] .kra-tab2 button { height: 44px; line-height: 44px !important; font-size: 14px !important; box-shadow: inset 0 -2px 0 transparent; }
    html[lang="ko"] .kra-tab2 .on { color: #009ca6 !important; font-weight: 600 !important; box-shadow: inset 0 -2px 0 #009ca6; }
    html[lang="ko"] .kra-tab2 .on::after { display: none !important; }
    html[lang="ko"] .kra-tab2.krm-fix { padding: 0 16px !important; }
    html[lang="ko"] .sticky-nav-menu a { padding: 10px 5px !important; font-size: 14px !important; line-height: 24px !important; }
}

/* ===== 295: 휴대폰도 같은 방식. 하위메뉴가 상단 밑에 붙은(.krm-fix) 뒤 아래로 내리면 상단(50px)이 위로 비켜 주고 하위메뉴가 맨 위로. 조금이라도 위로 올리면 같이 내려옴 */
@media (max-width: 767.98px) {
    html[lang="ko"] .krm, html[lang="ko"] .krm-fix, html[lang="ko"] .sticky-nav-container { transition: transform .3s cubic-bezier(.2, .7, .3, 1); }
    html.krg-hide .krm { transform: translateY(-100%); }
    html.krg-hide .krm-fix, html.krg-hide .sticky-nav-container { transform: translateY(-50px); }
    html[lang="ko"] .sticky-nav-container { background: #fff !important; }   /* 반투명이라 밑 글자가 비쳤음 */
    html[lang="ko"] .spec-sticky-nav { top: 95px !important; }   /* 296: 제품 상세 사양 필터 줄은 상단 50 + 하위메뉴 45 밑 */
    html.krg-hide .spec-sticky-nav { top: 45px !important; }   /* 297: 상단이 비키면 top 으로 올림(transform 은 아직 붙지 않은 줄까지 50px 떠서 제목 쪽으로 붙었음) */
    /* 298: 제품 상세 사양 필터 · 자료 다운로드 분류 단추를 휴대폰 크기로(49px · 15px → 36px · 13px) */
    html[lang="ko"] .spec-sticky-nav { padding: 10px 0 !important; }
    html[lang="ko"] .spec-sticky-nav .dl-filter-btn, html[lang="ko"] #section-downloads .dl-filter-btn { height: 36px; padding: 0 14px !important; font-size: 13px !important; line-height: 34px !important; }
}
@media (prefers-reduced-motion: reduce) { html[lang="ko"] .krm, html[lang="ko"] .krm-fix, html[lang="ko"] .sticky-nav-container { transition: none; } }
