:root {
  --font-h1: 40px;
  --font-p: 18px;
  --font-ltitle: 50px;
  --font-title: 40px;
  --font-lg: 24px;
  --font-m-md: 22px;
  --font-md: 18px;
  --font-sm: 16px;
  --font-mc: 14px;

  --padding-ex-lg: 75px;
  --padding-lg: 50px;
  --padding-md: 30px;
  --padding-sm: 20px;
  --padding-mc: 10px;

  --title-cl: #262626;
  --txt-button: #e3e3e3;
  --txt-p: #5f6464;
  --menu-cl: #5e5e5e;
  --menu-hcl: #011e41;
  --bg-button: white;
  --bg-footer: #efeeed;
  --bg-icon: #afaead;
  --bg-submenu: #f5f6f8;
  --button-cl: #f8f8f8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
li {
  list-style: none;
}

a {
  text-decoration: none;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
}

header {
  width: 100%;
  height: auto;
  
}

header .container {
  position: relative;
  width: 100%;
  height: 100px;
  background-color: var(--bg-button);
  z-index: 5;
}

header .container .banner {
  position: relative;
  width: 92%;
  margin: auto;
  height: 100px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}




/*header logo 부분*/
header .container .banner .logo {
  width: 10%;
  display: flex;
  gap: calc(var(--padding-mc)/2);
  cursor: pointer;
}
header .container .banner .logo .logotxt{
  height: 50px;
  margin-top: 20px;
}

header .container .banner .logo .logotxt h1 {
  font-size: var(--font-md);
  letter-spacing: 2px;
  color: var(--menu-cl);
}
header .container .banner .logo .logotxt p{
  font-size: var(--font-sm);
  font-weight: 600;
  margin-top: -8px;
  margin-left: 10px;
  color: var(--menu-cl);
}


/*hover*/
header .container .banner .logo .logotxt:hover h1,
header .container .banner .logo .logotxt:hover p{
  color: var(--menu-hcl);
}

header.container .banner .logo .img {
  width: 100%;
  height: 75px;
}

header .container .banner .logo .img img {
  width: calc(var(--padding-sm)*2);
  height: calc(var(--padding-sm)*2);
  margin-top: 14px;
}


header .container .banner .nav{
  width: 80%;
  height: 100%;
  letter-spacing: -1px;
}

header .container .banner .nav>ul{
  display: flex;
  gap: 30px;
  text-align: center;
  margin-top: 20px;
  height: 220px;
}
header .container .banner .nav>ul>li{
  flex: 1;
}
header .container .banner .nav>ul>li>a{
  display: inline-block;
  width: fit-content;
  padding: 2px 0;
  color: var(--menu-cl);
  font-size: 14px;
  font-weight: 500; 
}
header .container .banner .nav>ul>li:first-child>a{
  color: var(--menu-hcl);
  font-weight: bold;
}
header .container .banner .nav .sub{
  display: none;
  width: 180px;
  padding: 10px 10px;
  background-color: var(--bg-button);
  text-align: center;
}
header .container .banner .nav .sub a{
  display: block;
  margin-bottom: 20px;
  color: var(--menu-cl);
  font-size: 14px;
}



/*mobile_nav menu*/
header .mobile_tab {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 90;
  margin-right: var(--padding-lg);
  width: 28px;
}

header .mobile_stop {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  z-index: 120;
  margin-right: var(--padding-lg);
  width: 28px;
  height: 28px;

}

header .mobile_tab i {
  width: 100%;
  height: 100%;
  font-size: 40px;
  color: black;
}

header .mobile_stop i {
  width: 100%;
  height: 100%;
  font-size: 40px;
  color: black;
}

header .mobile_stop.active {
  display: block;
}

header .mobile_nav {
  position: fixed;
  right: -100%;
  top: 0;
  z-index: 110;
  padding: 40px 24px;
  width: 100%;
  height: 100%;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease-out;
}

header .mobile_tab img {
  width: calc(var(--padding-sm)*2);
  line-height: calc(var(--padding-sm)*2);
}

header .mobile_nav.active {
  right: 0;
}

header .mobile_nav>ul>li>a {
  display: block;
  padding: 0 10px;
  width: 100%;
  line-height: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #2f2f2f;
  border-bottom: 1px dotted #ccc;
  box-sizing: border-box;
}

header .mobile_nav>ul>li:hover>a {
  color: var(--menu-hcl);
}

header .mobile_nav .sub {
  display: block;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s;
}

header .mobile_nav .sub>li {
  height: 35px;
  border-top: 1px dotted #eaeaea;
}

header .mobile_nav .sub>li:first-child {
  border-top: none;
}

header .mobile_nav .sub>li>a {
  display: block;
  padding: 0 10px;
  width: 100%;
  line-height: 35px;
  font-size: 13px;
  color: #2f2f2f;
  background: #f4f4f4;
  border-bottom: 1px dotted #eaeaea;
  transition: background 0.3s;
}

header .mobile_nav .sub>li>a:hover {
  background: #fff;
}



/*header img*/
main {
  width: 100%;
  height: auto;
  position: relative;
  top: -100px;
}

#sec1 {
  width: 100%;
  height: 45vh;
  position: relative; 
}

#sec1 .img {
  width: 100%;
  height: 100%;
}

#sec1 .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.15, 1.15)
}

#sec1 .img h1 {
  font-size: 4rem;
  font-weight: bold;
  color: var(--bg-button);
  letter-spacing: 3px;
  position: absolute;
  left: 5%;
  bottom: 5%;
}
#art1{
  width: 80%;
  margin: auto;
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
}
#art1 .txt{
  width: 60%;
  padding: 60px;
}
#art1 .txt h1{
  font-size: var(--font-h1);
  color: var(--menu-hcl);
  margin-bottom: 10px;
}
#art1 .txt p{
  font-size: var(--font-p);
  color: var(--menu-cl);
  line-height: 1.8;
}

#art1 .list{
  width: 40%;
  padding: 60px 0;
}
#art1 .list h1{
  font-size: var(--font-h1);
  color: var(--menu-hcl);
  margin-bottom: 10px;
}
#art1 .list .part{
  padding: 10px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}
#art1 .list .part .date{
  font-size: var(--font-p);
  color: var(--menu-cl);
  margin-bottom: 10px;
}
#art1 .list .part .title a{
  font-size: var(--font-p);
  font-weight: 500;
  color: #555;
}
#art1 .list .btn{
  width: 100%; 
  padding: 20px;
}
#art1 .list .btn button{
  width: 100%;
  padding: 20px;
  font-size: var(--font-p);
  background-color: #f2f2f2;
  color: var(--menu-cl);
  cursor: pointer;
  border: 2px solid #000;
  border-radius: 5px;
}
/*hover*/
#art1 .list .btn button:hover{
  color: var(--bg-button);
  background-color: var(--menu-hcl);
  border: none;
}


#art2{
  width: 100%;
  background-color: #ddd; 
}
#art2 .part{
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: space-between;
}
#art2 .part .box1{
  width: 50%;
  padding: 60px;
}
#art2 .part .box1 h1{
  font-size: var(--font-h1);
  color: var(--menu-cl);
  margin-bottom: 10px;
}
#art2 .part .box1 p{
  font-size: var(--font-p);
  color: var(--menu-cl);
  line-height: 2;
}
#art2 .part .box1 p i{
  font-size: 18px;
  color: var(--menu-cl);
  line-height: 2;
}

#art2 .part .box2{
  width: 50%;
  padding: 60px;
}
#art2 .part .box2 h1{
  font-size: var(--font-h1);
  color: var(--menu-cl);
  margin-bottom: 10px;
}
#art2 .part .box2 p{
  font-size: var(--font-p);
  color: var(--menu-cl);
  line-height: 2;
  margin-bottom: 10px;
}
#art2 .part .box2 #sub{
  width: 100%;
}
#art2 .part .box2 #sub input{
  width: 75%;
  height: 40px;
  font-size: 18px;
  margin-right: 10px;
}

#art2 .part .box2 #sub button{
  width: 15%;
  height: 40px;
  font-size: 18px;
  background-color: var(--menu-hcl);
  color: var(--bg-button);
  border-radius: 5px;
  cursor: pointer;
}
footer{
  width: 100%;
  height: 100px;
}
footer .bottom{
  width: 80%;
  height: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .bottom p{
  color:#222;
  font-size: 14px;
}
footer .bottom .icon{
  width: 20%;
  line-height: 30px;
  display: flex;
  justify-content: space-between;
}

footer .bottom .icon a i{
  background-color: var(--menu-hcl);
  padding: 15px;
  font-size: 20px;
  color: var(--bg-button);
  border-radius: 50%;
}
footer .bottom .icon a p{
  background-color: var(--menu-hcl);
  padding:10px;
  font-size: 8px;
  color: var(--bg-button);
  border-radius: 50%;
}
footer .bottom .icon a:hover{
  transform: scale(1.2);
}





/*1280px*/
@media screen and (max-width:1280px) {
  :root{
    --font-h1:24px;
    --font-p:14px
  }
#sec1 .img h1{
  font-size: 3rem;
} 
#art1 .txt{
  padding: 30px;
}
#art1 .list{
  padding: 30px 0;
}

#art1 .list .btn{
  font-size: 16px;
  padding: 10px;
}
#art2 .part .box1,
#art2 .part .box2{
  padding: 40px 30px ;
}

#art2 .part .box2 #sub input{
  font-size: 14px;
}
#art2 .part .box2 #sub button{
  font-size: 12px;
}
footer{
  height: 60px;
}
footer .bottom .icon a i{
  padding: 10px;
  font-size: 16px;
}
footer .bottom .icon a p{
  padding:3px 8px;
  font-size: 6px;
} 
}



/*1024px*/
@media screen and (max-width:1024px) {
  header .nav{
    display: none;
  }
  header .mobile_tab{
    display: block;
  }
  #sec1 .img h1{
    font-size: 36px;
  } 

  #art1{
    display: block;
  }
  #art1 .txt,
  #art1 .list{
    width: 100%;
  }
  #art1 .list{
    padding: 30px;
  }
 

}

/*786px*/
@media screen and (max-width:786px) {
  #sec1 {
    height: 30vh; 
  }
#art2 .part{
  display: block;
}  
#art2 .part .box1,
#art2 .part .box2{
  width: 100%;
}
footer{
  position: relative;
  top: -100px;
}
footer .bottom{
  height: 120px; 
  display: block;
  text-align: center;
  align-items: center;
}
footer .bottom p{
  padding: 20px;
}
footer .bottom .icon{
  width: 60%;
  margin: auto;
  justify-content: space-between;
}
}

