/* ─────────────────────────────────────────────────────────────
   모바일·태블릿 보강 (2026-10-04)
   - 모든 규칙은 화면 폭 1024px 이하에서만 적용 → PC(1025px 이상) 화면은 바뀌지 않는다.
   - 원본 디자인(main.css·resphone.css)은 그대로 두고 이 파일만 head.sub.php 에서 마지막에 불러온다.
   - 함께 바뀐 것: tail.sub.php 풀페이지 responsiveWidth 861 → 1025 (1024 이하에서는 한 화면씩 넘기기 대신 일반 스크롤)
   ───────────────────────────────────────────────────────────── */

/* 태블릿·접는 폰 펼친 화면·'데스크톱 사이트' 모드 휴대폰(약 980px) */
@media (max-width: 1024px) {
  /* 일반 스크롤일 때 구간 높이를 내용만큼 (빈 공간 제거) */
  .fp-overflow { max-height: max-content; height: auto; }

  /* 숫자 구간: 화면이 세로로 길면 내용이 아래로 밀려 위가 비던 것 → 위에서부터 배치, 높이는 내용만큼 */
  #fullpage .section.main_count { height: auto !important; min-height: 0 !important; justify-content: flex-start; padding-top: 120px; }
  /* 제목 왼쪽 + PTSC 로고 같은 줄 오른쪽, 소개 문장은 아래 전체 폭 (2026-10-04 사장님 지정) */
  .main_count .main_product_title { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 16px; }
  .main_count .main_product_title .right { display: contents; }
  .main_count .main_product_title h2 { order: 1; flex: 1 1 auto; }
  .main_count .main_product_title .right img { order: 2; flex: none; max-width: 160px; margin: 0; }
  .main_count .main_product_title .right p { order: 3; flex: 0 0 100%; }
  .main_product_title p { font-size: 17px; line-height: 160%; }

  /* 숫자 박스: 4칸 → 2×2, 아이콘·제목은 가운데로 모아 크게 */
  .count_flex { flex-wrap: wrap; gap: 14px; }
  .count_flex li { flex: none; width: calc(50% - 7px); padding: 22px 20px; }
  .count_flex li .top { flex-direction: column; justify-content: center; gap: 10px; text-align: center; }
  .count_flex li .top img { height: 34px; width: auto; }
  .count_flex li .top p { font-size: 18px; }
  .count_flex li .bottom { text-align: center; }
  .count_flex li .bottom h2 { font-size: 38px; }

  /* 제품 소개: 사진·설명을 위아래로, 설명 글씨 조금 키움 */
  .main_product_flex { flex-direction: column; gap: 40px; }
  .main_product_flex .thum { width: 100%; max-width: 460px; margin: 0 auto; }
  .main_product_flex .txt { padding-bottom: 0; text-align: center; }
  .main_product .tab { position: relative; left: 0; bottom: auto; width: 100%; justify-content: center; margin-top: 50px; }
  .main_product .tab__item a { padding: 10px 12px; }

  /* 회사소식: 4칸 → 2칸 */
  .main_board_list { flex-wrap: wrap; }
  .main_board_list li { flex: none; width: calc(50% - 10px); }
}

/* 휴대폰 */
@media (max-width: 600px) {
  #fullpage .section.main_count { padding-top: 100px; }
  .main_product_title p { font-size: 15px; }
  .main_count .main_product_title { gap: 14px 8px; flex-wrap: wrap; }
  .main_count .main_product_title h2 { font-size: 21px; flex: 0 1 auto; }
  .main_count .main_product_title .right img { max-width: 92px; }
  .count_flex { gap: 10px; }
  .count_flex li { width: calc(50% - 5px); padding: 18px 12px; }
  .count_flex li .top img { height: 28px; }
  .count_flex li .top p { font-size: 15px; }
  .count_flex li .bottom h2 { font-size: 28px; }
  .main_product_flex { gap: 30px; }
  .main_product_flex .thum { max-width: 300px; }
  .main_product_flex .txt p { font-size: 15px; line-height: 160%; }
  .main_product .tab { margin-top: 40px; }
  .main_product .tab__item a { font-size: 15px; padding: 9px 8px; }
  .main_board_list li { width: 100%; }
}

/* 작은 휴대폰: 제목·로고가 한 줄에 들어가도록 조금 더 줄임 */
@media (max-width: 400px) {
  .main_count .main_product_title h2 { font-size: 19px; }
  .main_count .main_product_title .right img { max-width: 74px; }
}

/* ─── 글씨 크기 키우기 (2026-10-04 사장님 지시: 전반적으로 작다) ───
   PC 디자인보다 뒤에 오도록 html body 를 붙여 우선순위를 높임. 1024px 이하만. */
@media (max-width: 1024px) {
  html body .header .lang_top a { font-size: 17px; }
  html body .footer .right .txt h4, html body .footer .right .txt a { font-size: 19px; }
  html body .footer .right .txt li p { font-size: 18px; }
  html body .foot_bottom p { font-size: 17px; }

  html body .main_product_title p { font-size: 19px; line-height: 160%; }
  html body .count_flex li .top p { font-size: 20px; }
  html body .main_product_flex .txt p { font-size: 19px; line-height: 165%; }
  html body .main_product .tab__item a { font-size: 17px; }
  html body a.more_view { font-size: 18px; }
  html body .main_board_list li a h3 { font-size: 20px; }
  html body .main_board_list li a p { font-size: 17px; line-height: 160%; }
  html body .main_board_list li a p.date { font-size: 16px; }

  html body .board_list_txt h3 { font-size: 19px; }
  html body .board_list_txt p.list_date { font-size: 16px; }
  html body #bo_cate a { font-size: 18px; }
  html body .partner_flex li p { font-size: 18px; }
  html body .empty_list, html body .empty_li { font-size: 15px; }

  html body .product_flex .right .box p { font-size: 20px; }
  html body .product_flex .right li h4 { font-size: 20px; }
  html body .product_flex .right li p { font-size: 19px; line-height: 160%; }
  html body .product_flex .right li p.small { font-size: 17px; }
  html body .ceo_flex .right .txt p { font-size: 19px; line-height: 170%; }
  html body .ceo_flex .left p { font-size: 18px; }
  html body .location .txt li, html body .location .txt li b, html body .location .txt li span { font-size: 18px; }
  html body .sns_link a span { font-size: 17px; }
  html body .sub_visual_in p { font-size: 17px; }
}
@media (max-width: 600px) {
  html body .header .lang_top a { font-size: 14px; }
  html body .footer .right .txt h4, html body .footer .right .txt a { font-size: 16px; }
  html body .footer .right .txt li p { font-size: 15px; }
  html body .foot_bottom p { font-size: 14px; }

  html body .main_product_title p { font-size: 16px; }
  html body .count_flex li .top p { font-size: 16px; }
  html body .main_product_flex .txt p { font-size: 16px; }
  html body .main_product .tab__item a { font-size: 15px; }
  html body a.more_view { font-size: 16px; }
  html body .main_board_list li a h3 { font-size: 18px; }
  html body .main_board_list li a p { font-size: 15px; }
  html body .main_board_list li a p.date { font-size: 14px; }

  html body .board_list_txt h3 { font-size: 16px; }
  html body .board_list_txt p.list_date { font-size: 14px; }
  html body #bo_cate a { font-size: 15px; }
  html body .partner_flex li p { font-size: 16px; }

  html body .product_flex .right .box p { font-size: 17px; }
  html body .product_flex .right li h4 { font-size: 17px; }
  html body .product_flex .right li p { font-size: 16px; }
  html body .product_flex .right li p.small { font-size: 15px; }
  html body .ceo_flex .right .txt p { font-size: 16px; }
  html body .ceo_flex .left p { font-size: 16px; }
  html body .location .txt li, html body .location .txt li b, html body .location .txt li span { font-size: 16px; }
  html body .sns_link a span { font-size: 15px; }
  html body .sub_visual_in p { font-size: 15px; }
}
