/* ============================
   공통 전역 커스텀 CSS
============================ */

/* =========== 
기본 세팅
=========== */

/*
Theme Name:     Astra Child
Theme URI:      http: //example.com/
Description:    Child theme for the Astra theme 
Author:         Your name here
Author URI:     http: //example.com/about/
Template:       astra
Version:        0.1.0
*/

:root {
   /* font 기본 세팅 */
   --font-family:  "Pretendard", sans-serif !important;
   --line-height-body: 1.6;

   /* font size */
   --h1-size: 48px;
   --h2-size: 40px;
   --h3-size: 32px;
   --p-title: 24px;
   --p-body: 18px;
   --p-caption: 15px;


   /* font weight */
   --font-w-b : 800;
   --font-w-bm : 600;
   --font-w-m : 500;
   --font-w-r : 400;
   --font-w-sr : 400;

   /* 여백 */
  --space-unit: 8px;

  --space-xs: calc(var(--space-unit) * 2); /* 16px */
  --space-sm: calc(var(--space-unit) * 3); /* 24px */
  --space-md: calc(var(--space-unit) * 5); /* 40px */
  --space-lg: calc(var(--space-unit) * 6); /* 48px */

  --section-padding: 120px;

  /* width */
  --container-s-width: 1200px;
  --container-m-width: 1400px;
  --container-w-width: 1600px;

  /* color */
  --bagic-color: #474747;
  --main-c : #2cbdae;
  --sub-c-01 : #292929;
  --sub-c-02 : #a3a3a3;
  --sub-c-03 : #e9f4f2;
  --sub-c-04 : #287870; 
  --white-c : #ffffff;
}

/* color */
.mc {
  color: var(--main-c);
}

.sc1 {
  color: var(--sub-c-01);
}
.sc2 {
  color: var(--sub-c-02);
}
.sc3 {
  color: var(--sub-c-03);
}
.sc4 {
  color: var(--sub-c-04);
}

/* 기본 태그 적용 */
body {
  font-family: var(--font-family);
  color: var(--bagic-color);
  padding: 0;
  margin: 0;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nobr {
   display: inline-block;
   white-space: nowrap; 
}
strong{
  font-weight: var(--font-w-b);
}
b{
  font-weight: var(--font-w-bm);
}
h1 { font-size: var(--h1-size); font-weight: var(--font-w-b); line-height: 1.3; margin-bottom: calc(var(--space-unit) * 4); }
h2 { font-size: var(--h2-size); font-weight: var(--font-w-b); line-height: 1.4; margin-bottom: calc(var(--space-unit) * 3); letter-spacing: -2px;}
h3 { font-size: var(--h3-size); font-weight: var(--font-w-m); line-height: 1.4; margin-bottom: calc(var(--space-unit) * 2); }
.p_t { font-size: var(--p-title); font-weight: var(--font-w-m); }
p { font-size: var(--p-body); line-height: 1.6;  font-weight: var(--font-w-r); }
.caption { font-size: var(--p-caption); color: #888; }

a{
  text-decoration: none;
}

/* 마우스·터치로 클릭했을 때 남는 포커스 테두리 / 모바일 터치 하이라이트 제거
   (키보드 Tab 이동 시에는 :focus-visible 로 테두리가 그대로 보여 접근성 유지) */
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
a, button, [tabindex] {
  -webkit-tap-highlight-color: transparent;
}

/* 일반 글자를 클릭했을 때 깜빡이는 세로 커서(캐럿) 숨김. 입력창에서는 커서가 보여야 하므로 되살린다 */
body {
  caret-color: transparent;
}
input, textarea, select, [contenteditable="true"] {
  caret-color: auto;
}
/* 섹션 공통 스타일 */
.section {
   padding-top: var(--section-padding);
   padding-bottom: var(--section-padding);
   overflow: hidden;
}

.check_icon {
    position: relative;
    padding-left: 36px;

    &::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.4em; 
        width: 25px;
        height: 25px;
        background-color: #3f94e4;
         mask-image: url('./assets/images/check_icon.png');
         mask-size: contain;
         mask-repeat: no-repeat;
         mask-position: center top;
    }
}



.pc_view{
   display: block;
}

.mo_view{
   display: none;
}
.mo_img_view{
   display: none;
}
.sm_view{
   display: none;
}

img{
   width: 100%;
   height: auto;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none; 
}
.bg_c{
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}



/* 줄바꿈 : pc_br 은 모바일(900px 이하)에서 없애 글이 자연스럽게 흐르게, mo_br 은 모바일에서만 줄바꿈 */
.mo_br{
   display: none;
}

@media (max-width: 900px) {
   .pc_br{
      display: none;
   }

   .mo_br{
      display: inline;
   }
}


@media (max-width: 1279px) {
   h1, h2, h3, .p_t , p , .caption {
      padding: 0 var(--space-xs);
   }
}

/* 태블릿 구간 - iPad 세로 및 소형 태블릿*/
@media (max-width: 1023px) {
    :root {
        --h1-size: 40px;
        --h2-size: 34px;
        --h3-size: 26px;
        --p-title: 20px;
        --p-body: 17px;
        --p-caption: 14px;
    }
}

/* 모바일 */
@media (max-width: 900px) {
    :root {

      --section-padding: 56px;
    }

  .pc_view{
      display: none;
   }

   .mo_view{
      display: block;
   }
   .mo_img_view{
      display: block;
   }

}
/* 모바일 글자 크기 : 화면 폭(vw)에 비례 (전달받은 기준값). 360px 화면 기준 h1 34 · h2 29 · h3 25 · p-title 21 · body 15 · caption 11 */
@media (max-width: 639px) {
    :root {
      --h1-size: 8.9vw;
      --h2-size: 7.9vw;
      --h3-size: 6.9vw;
      --p-title: 5vw;
      --p-body: 4.08vw;
      --p-caption: 3.1vw;
    }
}

@media (max-width: 480px) {
    :root {
      --section-padding: 48px;
    }

  .pc_view{
      display: none;
   }

   /* .mo_view{
      display: none;
   } */
/* 
   .sm_view{
      display: block;
   } */

}


/* form reset css */
.wpcf7 form>div {
   margin-bottom: 0 !important;
}