/* =========================================================
 * 2026-11 반응형·모바일 보강 (zk_responsive.css)
 * - 1200px 이상 PC 화면은 바꾸지 않음 (아래 규칙은 모두 1199px 이하에서만 적용)
 * - 예외: 모바일 하단 바(.zk_mbar)는 PC에서 숨김만 함
 * ========================================================= */
.zk_mbar { display: none; }
.zk_pccall { display: none; }
/* PC(769px 이상): TOP 버튼 왼쪽에 판촉물 고객센터 안내 — TOP 버튼과 같은 흰 원형 톤 */
@media (min-width: 769px) {
  .zk_pccall { display: flex; align-items: center; gap: 10px; position: fixed; right: 92px; bottom: 30px; z-index: 999; height: 50px; padding: 0 20px 0 6px; box-sizing: border-box; background: #fff; border-radius: 100px; box-shadow: 0 3px 14px rgba(0,0,0,.14); color: #222; text-decoration: none; font-family: 'Pretendard','Noto Sans KR',sans-serif; transition: transform .2s ease, box-shadow .2s ease; }
  .zk_pccall:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  .zk_pccall i { width: 38px; height: 38px; border-radius: 100%; background: #4a7c59; color: #fff; font-size: 19px; display: flex; align-items: center; justify-content: center; }
  .zk_pccall span { display: flex; flex-direction: column; line-height: 1.15; }
  .zk_pccall small { font-size: 11.5px; color: #666; letter-spacing: -.2px; }
  .zk_pccall b { font-size: 19px; font-weight: 700; color: #1f1f1f; letter-spacing: .3px; }
}

/* PC: 라벤더연구소·카페농장 페이지에서는 판촉물 대신 연구소·체험 예약 번호 3개 */
@media (min-width: 769px) {
  .zk_pccall.zk_labcall { display: block; height: auto; padding: 8px 8px 6px; border-radius: 18px; transition: none; }
  .zk_pccall.zk_labcall:hover { transform: none; }
  .zk_labcall a { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 4px; border-radius: 12px; color: #222; text-decoration: none; }
  .zk_labcall a + a { border-top: 1px solid #eef0ec; }
  .zk_labcall a:hover { background: #f4f7f3; }
  .zk_labcall i { width: 34px; height: 34px; font-size: 17px; flex: 0 0 auto; }
  .zk_labcall a:first-child i { background: #6b5b95; }
  .zk_labcall small { font-size: 11.5px; }
  .zk_labcall b { font-size: 17px; }
}

/* 옆에서 들어오는 애니메이션(AOS)이 대기 중 화면 밖에 있어 생기던 가로 스크롤만 잘라냄 — 보이는 모양은 그대로 */
html { overflow-x: clip; }
body { overflow-x: hidden; }

/* ---------- 태블릿·작은 노트북 (1199px 이하): 1200px 고정 폭 때문에 가로로 넘치던 문제 ---------- */
@media (max-width: 1199px) {
  .menu, .topbanner > div, .t_menu > ul { width: 100% !important; max-width: 1200px; box-sizing: border-box; }
  .subtitle { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box; }
  .product_intro, .product_list,
  .history, .pr, .news, .expotop, .expo_list,
  .contribution, .contributionlist, .social, .social_list,
  .cibi, .certification, .establishment,
  main[class^="olmo_"], .olmo_ilsan {
    width: calc(100% - 40px) !important; max-width: 1200px; box-sizing: border-box; margin-left: auto !important; margin-right: auto !important;
  }
  .product_intro { padding-right: 15px; }
  .pi_img img, .pi_img .pi_umb, .pr img, .history img, .cibi img, .certification img, .establishment img, .social img, .contribution img, .expo_list img, .news img { max-width: 100%; height: auto; }
  .process { width: 100%; max-width: 900px; }
}

/* 모바일에서는 좌우 여백 없이 원래대로 (태블릿 여백 규칙 무효화) */
@media (max-width: 768px) {
  .product_intro, .product_list,
  .history, .pr, .news, .expotop, .expo_list,
  .contribution, .contributionlist, .social, .social_list,
  .cibi, .certification, .establishment,
  main[class^="olmo_"], .olmo_ilsan { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
}

/* ---------- 모바일 (768px 이하) ---------- */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }

  /* 1) 상단바: 사진 위에서도 로고가 보이도록 항상 흰 바탕 + 원래 색 로고 */
  #header, #header:hover { height: 58px; background: #fff !important; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.04); }
  #header { transition: height .3s ease !important; }
  #header img { filter: none !important; background: transparent !important; transition: none !important; }
  #header .m_logo { padding: 12px 0 0 16px; }
  #header .m_logo > ol > a > img { width: 122px; margin-top: 4px; }
  #header .m_open { width: 44px; height: 44px; top: 7px; right: 8px; padding: 13px 11px; box-sizing: border-box; }
  #header .m_open > div { left: 11px !important; width: 22px !important; height: 2px !important; background: #222 !important; border-radius: 2px; }
  #header .m_open > div:nth-child(1) { top: 14px; }
  #header .m_open > div:nth-child(2), #header .m_open > div:nth-child(3) { top: 50%; }
  #header .m_open > div:nth-child(4) { bottom: 14px; }

  /* 1-1) 메뉴 펼침: 흰 화면에 진한 글씨, 손가락으로 누르기 쉬운 크기 */
  #header.open { height: 100vh; height: 100dvh; overflow-y: auto; background: #fff !important; }
  #header.open .m_menu { padding: 8px 20px 0; box-sizing: border-box; }
  #header .s_menu > ul > ol > a { padding: 0 !important; border: 0 !important; margin: 0 !important; display: inline; }
  #header.open .m_open > div:nth-child(1), #header.open .m_open > div:nth-child(4) { opacity: 0 !important; }
  #header.open ~ .top_button { display: none !important; }
  #header .s_menu { width: 50% !important; margin: 0 !important; text-align: left; padding: 10px 8px 14px 0; box-sizing: border-box; }
  #header .s_menu > ul > ol, #header .s_menu > ul > ol > a { color: #1f1f1f !important; font-size: 13px; letter-spacing: 1px; height: auto; line-height: 1.4; padding: 10px 0 6px; border-bottom: 1px solid #e6e9e3; margin-bottom: 4px; }
  #header .s_menu > ul > ol:after { display: none; }
  #header .s_menu > ul > li { height: auto; line-height: 1.4; }
  #header .s_menu > ul > li > a { display: block; color: #333 !important; font-size: 15.5px; font-weight: 400; padding: 10px 0; }
  #header .s_menu > ul > li:hover { background: transparent; }
  #header .m_sns { padding: 18px 0 24px; border-top: 1px solid #eee; margin-top: 8px; }
  #header .m_sns > li { width: 52px; height: 52px; padding: 13px; }

  /* 2) 하위 메뉴 탭(가방류·무릎담요…): 가로로 밀어서 보는 칩 형태 */
  #topbanner { height: 190px; }
  .t_menu { height: auto !important; bottom: 0; }
  .t_menu > ul { display: flex !important; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; padding: 8px 12px !important; box-sizing: border-box; background: rgba(255,255,255,.92); justify-content: flex-start; }
  .t_menu > ul::-webkit-scrollbar { display: none; }
  .t_menu > ul > li, .t_m_esg > ul > li, .t_m_news > ul > li { flex: 0 0 auto; width: auto !important; font-size: 14px !important; line-height: 1 !important; border: 1px solid #d5dbd2; border-radius: 100px; background: #fff; }
  .t_menu > ul > li > a { display: block; padding: 10px 14px; white-space: nowrap; color: #333; }
  .t_menu > ul > li[style*="background-color:#fff"], .t_menu > ul > li.on { background: #4a7c59 !important; border-color: #4a7c59; }
  .t_menu > ul > li[style*="background-color:#fff"] > a, .t_menu > ul > li.on > a { color: #fff !important; font-weight: 600; }

  /* 3) 너무 작은 글씨 보정 */
  .pi_text, .pl_list li, .news_list li, .nc_media, .nc_date { font-size: 14px; }
  .pd_intro, .fc_wrap, #about { font-size: 15.5px; }
  .pd_intro table, .pd_guide table, .fc_wrap table { font-size: 14px; }
  .pd_guide { overflow-x: auto; }

  /* 4) 가로 넘침 보정 (사회공헌·OLMO 지점·박람회·기부) */
  .socl_title, .col_title, .pl_title { width: 100% !important; max-width: 400px; }
  .olmo_intro { flex-direction: column; }
  .olmo_intro .left, .olmo_intro .right { width: 100% !important; max-width: 100% !important; flex: 1 1 auto !important; }
  .olmo_intro .left::after { display: none; }
  .text_1 img, .text_2 img, main[class^="olmo_"] img { max-width: 100%; height: auto; }
  .expo_list > li { box-sizing: border-box; }
  .expotop, .ex_title, .expo_slide, .co_vision, .co_con, .co_img, .co_text, .news_box { max-width: 100%; box-sizing: border-box; }
  .news_box { width: 100% !important; }

  /* 5) 버튼·링크 누르기 쉽게 */
  .b_menu_in a, .footer a { display: inline-block; padding: 6px 0; }
  .pd_intro .pd_links a, .fc_wrap .fc_links a { padding: 11px 20px; font-size: 14px; }
  .top_button { right: 12px !important; bottom: 76px !important; transform: scale(.8); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
  .scroll { display: none !important; }

  /* 6) 하단 고정 상담 바 (모바일 레퍼런스: 마플·오프린트미 하단 탭 방식) */
  body { padding-bottom: 64px; }
  .zk_mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 998; height: 60px; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #e3e6e0; box-shadow: 0 -4px 14px rgba(0,0,0,.05); font-family: 'Pretendard','Noto Sans KR',sans-serif; }
  .zk_mbar a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #333; font-size: 12px; text-decoration: none; letter-spacing: -.2px; }
  .zk_mbar a i { font-size: 21px; color: #4a7c59; line-height: 1; }
  .zk_mbar a.main { background: #4a7c59; color: #fff; font-weight: 600; font-size: 13px; }
  .zk_mbar a.main i { color: #fff; }

  /* 7) 첫 화면(OLMO) 문구: 상단바와 하단 상담 바 사이 '실제로 보이는 영역' 정가운데 + 폰 크기에 맞춰 글자 자동 조절 */
  #mainvisual { height: 100vh; height: 100svh; }
  #mainvisual .v_contents { position: absolute !important; top: 58px !important; bottom: 64px !important; left: 0 !important; right: 0 !important; transform: none !important; width: 100% !important; height: auto !important; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 38px !important; box-sizing: border-box; gap: min(2.2vh, 14px); text-shadow: 0 1px 8px rgba(0,0,0,.25); }
  #mainvisual .v_slide li .v_contents > .h1, #mainvisual .v_slide li .v_contents > h1 { font-size: clamp(40px, min(14vw, 9svh), 84px) !important; line-height: 1 !important; padding: 0 !important; margin: 0 0 min(3vh, 22px) !important; top: 0 !important; letter-spacing: 0 !important; }
  #mainvisual .v_slide li .v_contents > .h1 span, #mainvisual .v_slide li .v_contents > h1 span { font-size: clamp(12px, 3.6vw, 16px) !important; margin: 10px 0 0 !important; line-height: 1.4; }
  #mainvisual .v_slide li .v_contents > h2, #mainvisual .v_slide li .v_contents > .h2 { font-size: clamp(20px, min(6.4vw, 4.2svh), 36px) !important; line-height: 1.1 !important; margin: 0 !important; padding: 0 !important; text-align: center !important; }
  #mainvisual .v_slide .v_contents > h2 span, #mainvisual .v_slide .v_contents > .h2 span { display: block !important; margin: 4px 0 0 !important; font-size: clamp(12px, 3.4vw, 15px) !important; line-height: 1.45; word-break: keep-all; }
  #mainvisual .v_slide .slick-arrow { width: 64px !important; height: 26px !important; line-height: 26px !important; font-size: 16px !important; opacity: .45; }

  /* 8) 홈 '인증현황': 인증서 카드가 두 줄로 넘쳐 아래 '사회공헌 파트너' 제목을 덮던 문제 → 한 줄 가로 스크롤 */
  #co .co_text { margin-top: 48px !important; }
  #co .co_img { height: auto !important; }
  #co .co_img > ul { display: flex !important; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 14px; height: auto !important; padding: 18px 20px 26px !important; box-sizing: border-box; text-align: left; }
  #co .co_img > ul::-webkit-scrollbar { display: none; }
  #co .co_img > ul > li { flex: 0 0 auto; width: auto !important; height: 168px !important; }
  #co .co_img > ul > li > img { height: 100% !important; width: auto !important; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
  #co .co_img > ul > li > img:hover { transform: none; }

  /* 하단 바 5칸 (둘러보기용 — 모바일은 일반 소비자 위주라 전화 강조 없음) */
  .zk_mbar a { font-size: 11.5px; }
  .zk_mbar a:active { background: #f2f4f0; }
}

/* 2026-11-14 폰 글자 정리: 한글이 단어 중간에서 끊기지 않게, 너무 크거나 가는 글자 보정 */
@media (max-width: 768px) {
  body { word-break: keep-all; overflow-wrap: break-word; }
  /* 하위 탭: 페이지별 css(nav.t_menu ul li {flex:1})가 칩 폭을 똑같이 나눠 글자가 잘리던 문제 */
  .t_menu ul, nav.t_menu ul { justify-content: flex-start !important; }
  .t_menu ul li, nav.t_menu ul li { flex: 0 0 auto !important; overflow: visible !important; text-overflow: clip !important; }
  h1.zk_pagetitle { font-size: 25px !important; line-height: 1.35 !important; margin-top: 56px !important; word-break: keep-all !important; }
  h1.zk_pagetitle span { height: 30px !important; margin-top: 18px !important; }
  /* 사회공헌활동 */
  .so_vision h1, .so_vision h2 { font-size: 24px !important; line-height: 1.4 !important; }
  .so_text h2, .so_text h2 span, .so_text span { font-size: 16.5px !important; font-weight: 400 !important; line-height: 1.75 !important; }
  /* 보도자료·설립취지·지역사회공헌·박람회·제작과정 큰 제목 */
  .es_news h1, .es_news h2 { font-size: 24px !important; line-height: 1.4 !important; }
  .es_vision h1, .co_vision h1 { font-size: 28px !important; line-height: 1.35 !important; }
  .ex_title h2, .pr > h2 { font-size: 23px !important; line-height: 1.4 !important; }
}

/* ===== 2026-11-14 은은한 움직임 (모든 페이지) — 글씨 읽기에 방해 없게 짧고 작게 ===== */
/* 1) 서브 탭: 마우스 올리면 초록 (라벤더 페이지는 페이지 안에서 보라로 덮어씀) */
.t_menu > ul > li { transition: background-color .25s ease; }
.t_menu > ul > li a { transition: color .25s ease; }
.t_menu > ul > li:hover { background-color: #4a7c59 !important; }
.t_menu > ul > li:hover a { color: #fff !important; }
.t_menu > ul > li.on:hover { background-color: #fff !important; }
.t_menu > ul > li.on:hover a { color: #000 !important; }
/* 2) 상단 배너 사진: 들어올 때 아주 천천히 살짝 당겨지는 효과 */
#topbanner { overflow: hidden; }
#topbanner::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; background: inherit; animation: zkBanner 14s cubic-bezier(.2,.6,.3,1) both; pointer-events: none; }
#topbanner > .topbanner { position: relative; z-index: 1; }
@keyframes zkBanner { from { transform: scale(1.07); } to { transform: scale(1); } }
/* 3) 페이지 제목 아래 세로선이 위에서부터 그려짐 */
h1.zk_pagetitle span { transform-origin: top center; animation: zkLine 1.1s .25s ease-out both; }
@keyframes zkLine { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* 4) 스크롤하면 내용이 살짝 떠오르며 나타남 (js/zk_motion.js) */
.zk-rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .9s cubic-bezier(.2,.65,.3,1); }
.zk-rv.zk-in { opacity: 1; transform: none; }
/* 움직임 줄이기 설정 사용자는 모든 효과 끔 */
@media (prefers-reduced-motion: reduce) {
  #topbanner::before, h1.zk_pagetitle span { animation: none; }
  .zk-rv { opacity: 1; transform: none; transition: none; }
}
