:root {
  --font-h2: 2.4rem;
  --font-p: 1rem;
  --font-btn: 0.8rem;
  --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: "Source_Han_Sans_SC";/*Adobe Fonts*/
}

header {
  width: 100%;
  height: 100%;
}

header .container {
  position: relative;
  width: 100%;
  height: 75px;
  z-index: 5;
}

header .container .banner {
  position: relative;
  width: 85%;
  margin: auto;
  height: 75px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}

/*거상요소*/
header .banner .nav .bg {
  position: absolute;
  width: 140%;
  height: 0px;
  background-color: rgba(255, 255, 255, 0.8);
  left: -20%;
  top: 0;
  transition: 0.3s;
  z-index: -3;
}

header .banner .nav .bg.over {
  height: 350px;
}


/*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(--bg-button);
}
header .container .banner .logo .logotxt p{
  font-size: var(--font-sm);
  font-weight: 600;
  margin-top: -8px;
  margin-left: 10px;
  color: var(--bg-button);
}

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 .banner .nav {
  width: 55%;
  margin: auto;
  height: 75px;
  padding: 24px 0;
  letter-spacing: -1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .banner .nav .nav-list{
  position: relative;
}

header .banner .nav .nav-list>a{
  /* width: fit-content; */
  color: var(--bg-button);
  font-size: var(--font-mc);
  /* word-break: break-word;
  overflow-wrap: break-word; */
}
header .banner .nav .nav-list>.sub{
  position: absolute;
  left: -50px;
  width: 150px;
  max-height: 0;
  margin-top: 20px;
  text-align: center;
  z-index: 5;
  background-color: #fff;
}
header .banner .nav .nav-list:nth-of-type(4)>.sub{
  left: -30px;
}
header .banner .nav .nav-list>.sub>a{
  display: block;
  margin: auto;
  color: var(--bg-button);
  font-size: var(--font-mc);
  margin-bottom: 10px;
  opacity: 0;
}


header .container .banner .location {
  width: 15%;
  height: 75px;
  text-align: center;
  cursor: pointer;
}

header .container .banner .location .label {
  width: 100%;
  line-height: 75px;
  font-size: var(--font-sm);
  color: var(--bg-button);
  /* margin-left: var(--padding-lg); */
  cursor: pointer;
}

header .banner .location .label i {
  width: 25px;
  font-size: var(--font-sm);
  color: var(--bg-button);
  cursor: pointer;
}

header .container .banner .location .optionList {
  width: 90%;
  background-color: transparent;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
  max-height: 0;
  /* Initially collapsed */
  overflow: hidden;
  /* Prevents content from spilling out */
  transition: max-height 0.3s ease;
  /* Smooth transition */
  margin-left: 10px;
  opacity: 0;
}

header .container .banner .location .optionList .optionItem {
  height: 30px;
  cursor: pointer;
}

header .container .banner .location .optionList .optionItem a {
  color: var(--menu-cl);
  font-size: var(--font-sm);
}

/*hover*/
header .container:hover {
  background-color: var(--bg-button);
  /* Change the background color to white */
}

/*Show the .sub menu only when hovering over its parent li */
header .banner .nav .nav-list:hover .sub {
  max-height: 300px;
  /* Show submenu on hover */
}


header .banner .nav .nav-list>a:hover {
  color: var(--menu-hcl) !important;
  /* Change color of links when hovering */
}

header .banner .nav .nav-list:hover .sub a {
  color: var(--menu-cl);
  opacity: 1;
}

header .banner .nav .nav-list>.sub a:hover {
  color: var(--menu-hcl);
}

header .container:hover .banner .logo h1,
header .container:hover .banner .logo p {
  color: #222;
}

header .container:hover .nav .nav-list>a,
header .container:hover .location .label,
header .container:hover .location .label i {
  color: var(--menu-cl);
}

/* When hovering over .location, expand the .optionList */
header .container .banner .location:hover .optionList {
  max-height: 150px;
  /* Expand to 150px on hover */
  opacity: 1;
}

header .container .banner .location:hover .label {
  color: var(--menu-hcl);
}

header .container .banner .location:hover .optionList {
  background-color: var(--bg-button);
}

header .container .banner .location .optionList .optionItem:hover a {
  color: var(--menu-hcl);
}

/*mobile_nav menu*/
header .mobile_tab {
  display: none;
  position: absolute;
  right: 0;
  top: 10px;
  z-index: 90;
  margin-right: var(--padding-lg);
  width: 28px;
}
header .mobile_tab i{
  width: 100%;
  height: 100%;
  font-size: 30px;
  color: black;
}
header .mobile_stop {
  display: none;
  position: absolute;
  right: 0;
  top: 10px;
  z-index: 120;
  margin-right: var(--padding-lg);
  width: 28px;
  height: 28px;

}

header .mobile_stop i {
  width: 100%;
  height: 100%;
  font-size: 30px;
  color: black;
}

header .mobile_stop.active {
  display: block;
}

header .mobile_nav {
  width: 100%;
  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_nav .nav-list {
  width: 100%;
  border-bottom: 1px dotted #ccc;
  padding:20px;
}

header .mobile_nav .nav-list .list{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

header .mobile_nav .nav-list .btn .next i,
header .mobile_nav .nav-list .btn .down i{
  font-size: 20px;
  padding: 20px;
  color: #2f2f2f;
  cursor: pointer;
}
header .mobile_nav .nav-list .btn .down{
  display: none;
}



header .mobile_nav.active {
  right: 0;
}

header .mobile_nav>.nav-list>a {
  width: 100%;
  padding: 10px;
  display: block;
  line-height: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #2f2f2f;
  box-sizing: border-box;
}
header .mobile_nav>.nav-list>.list>a {
  width: 100%;
  padding: 10px;
  display: block;
  line-height: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #2f2f2f;
  box-sizing: border-box;
}

header .mobile_nav>.nav-list:hover>a {
  color: var(--menu-hcl);
}

header .mobile_nav .sub {
  width: 100%;
  display: block;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s;
}

header .mobile_nav .sub>a {
  height: 35px;
  border-top: 1px dotted #eaeaea;
}

header .mobile_nav .sub>a:first-child {
  border-top: none;
}

header .mobile_nav .sub>a>p {
  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>a:hover {
  background: #fff;
}

/*header slide 부분*/
#sec1 {
  width: 100%;
  height: 100%;
  position: relative;
  top: -75px;
}

#sec1 #banner_wrap {
  width: 100%;
  height: 100%;
}

#sec1 #banner {
  width: 100%;
  height: 100%;
  display: flex;
}

#sec1 #banner li {
  width: 100%;
  flex: 0 0 100%;
}

#sec1 #banner li img,
#sec1 #banner li video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure the content scales properly */
}

#sec1 #frame {
  width: 100%;
  height: 100%;
  top: 0;
  overflow: hidden;
  transition: width 0.2s;
}

#sec1 .prev {
  position: absolute;
  top: 45%;
  left: 20px;
  cursor: pointer;
}

#sec1 .next {
  position: absolute;
  top: 45%;
  right: 20px;
  cursor: pointer;
}

section #banner_wrap .prev,
section #banner_wrap .next {
  color: var(--bg-button);
  font-size: var(--font-ltitle);
}

#sec1 #banner_wrap #frame #banner>li:first-child {
  position: relative;
}


/*stop + sound button*/
/* Button Styling */
#sec1 #banner_wrap #frame #banner>li .button-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 20px;
}

#sec1 #banner_wrap #frame #banner>li .icon-button {
  background-color: transparent;
  color: white;
  border: none;
  padding: 10px;
  font-size: calc(var(--font-sm)*2);
  /* Icon size */
  font-weight: normal;
  cursor: pointer;
  border-radius: 50%;
}

#sec1 #banner_wrap #frame #banner>li .icon-button:hover {
  transform: scale(1.3);
}

/*font-size color common*/
/*h2*/
article .info .txt .wrap h2,
#sec2 .container .txt .wrap h2,
aside .world .wrap h2 {
  font-size: var(--font-h2);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  /*대문자로 변경*/
}

article .info .txt .wrap h2,
#sec2 .container .txt .wrap h2 {
  color: var(--menu-hcl);
}

aside .world .wrap h2 {
  color: var(--bg-button);
}

/*p*/
article .info .txt .wrap p,
#sec2 .container .txt .wrap p,
aside .world .wrap p {
  font-size: var(--font-p);
  line-height: 2.6rem;
  /* white-space: pre-line; */
}

article .info .txt .wrap p,
#sec2 .container .txt .wrap p {
  color: var(--txt-p);
}

aside .world .wrap p {
  color: var(--bg-button);
}

/*button*/
article .info .txt .wrap button,
#sec2 .container .txt .wrap button,
aside .world .wrap button {
  font-size: var(--font-btn);
  line-height: 1;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  cursor: pointer;
}

article .info .txt .wrap button,
#sec2 .container .txt .wrap button {
  color: #b4b2b2;
  border: 1px solid #b4b2b2;
  background-color: transparent;

}

aside .world .wrap button {
  border: 1px solid var(--bg-button);
  color: var(--bg-button);
  background-color: transparent;
}

/*이미지와 텍스트 같이 부분(위+하단)*/
article {
  width: 100%;
  height: 100%;
}

article .info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

article .info .img {
  width: 50%;
  height: 100%;
}

article .info .img img {
  width: 100%;
  height: 100%;
}

article .info .txt {
  width: 50%;
  height: 100%;
  padding: 64px 24px;
}

article .info .txt .wrap {
  height: 100%;
  padding: 0 5rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 2.5rem;
}

/*middle slide menu 부분*/
#sec2 .container {
  width: 100%;
  display: flex;
  padding: 100px 0;
}

#sec2 .container .txt {
  width: 30%;
  height: 100%;
}

#sec2 .container .txt .wrap {
  height: 100%;
  padding: 5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 2.5rem;
}


/*hover*/
article .info .txt .wrap button:hover,
#sec2 .container .txt .wrap button:hover {
  border: none;
  background-color: var(--menu-hcl);
  color: #f1f1f1;
}

#sec2 .container .slide {
  width: 70%;
  height: 100%;
  overflow: hidden;
}

#sec2 .container .slide .img {
  margin-left: var(--padding-sm);
  padding: var(--padding-sm) 0;
  white-space: nowrap;
  /*텍스트 줄바꿈 없이*/
  overflow-x: auto;
}

#sec2 .container .slide .img img {
  width: 20vw;
  height: 30vw;
  border-radius: 3vw;
  margin-right: var(--padding-md);
  cursor: grab;
  object-fit: cover;
}

#sec2 .container .slide .img::-webkit-scrollbar {
  width: calc(var(--padding-lg)*4);
  height: 10px;
}

#sec2 .container .slide .img::-webkit-scrollbar-thumb {
  background-color: #888;
  /* 스크롤바 색상 */
  border-radius: 6px;
}

#sec2 .container .slide .img::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* 스크롤바 트랙 색상 */
}

/*global 부분*/
aside {
  width: 100%;
  height: 1000px;
}

aside .world {
  width: 100%;
  height: 100%;
  position: relative;
  background: url(../img/地球.webp) bottom center/cover;
}

aside .world .wrap {
  width: 60%;
  position: absolute;
  top: 30%;
  left: 20%;
  text-align: center;
  height: fit-content;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2.5rem;
}

/*hover*/
aside .world .wrap button:hover {
  background-color: var(--menu-hcl);
  color: #f1f1f1;
  border: none;
}



/*fooeter 부분*/
footer {
  width: 100%;
}

footer .foo1 {
  background-color: var(--bg-footer);
  height: 350px;
}

footer .foo1 .wrap {
  width: 90%;
  margin: auto;
  padding: var(--padding-lg) 0;
  display: flex;
  justify-content: space-between;
}

footer .foo1 .wrap .nav {
  width: 55%;
  margin: auto;
  height: 75px;
  padding: 24px 0;
  letter-spacing: -1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .foo1 .wrap .nav .nav-list{
  position: relative;
}

footer .foo1 .wrap .nav .nav-list>a{
  /* width: fit-content; */
  color: var(--menu-cl);
  font-size: var(--font-mc);
  /* word-break: break-word;
  overflow-wrap: break-word; */
}
footer .foo1 .wrap .nav .nav-list>.sub{
  position: absolute;
  left: -20px;
  width: 160px;
  padding-top: 20px;
  padding-left: 20px;
  text-align: left;
  z-index: 5;
}

footer .foo1 .wrap .nav .nav-list:nth-of-type(4)>.sub{
  left: -20px;
}
footer .foo1 .wrap .nav .nav-list>.sub>a{
  display: block;
  color: var(--menu-cl);
  font-size: var(--font-mc);
  margin-bottom: 10px;
}
/*hover*/
footer .foo1 .wrap .nav .nav-list>a:hover,
footer .foo1 .wrap .nav .nav-list>.sub>a:hover{
  color: var(--menu-hcl);
}

footer .foo1 .wrap .icon {
  width: 40%;
}

footer .foo1 .wrap .icon ul {
  margin-left: calc(var(--padding-ex-lg)*2);
  display: flex;
  justify-content: space-around;
}

footer .foo1 .wrap .icon li {
  width: var(--padding-lg);
  line-height: var(--padding-lg);
  text-align: center;
  border-radius: 50%;
  background-color: var(--bg-icon);
  cursor: pointer;
}

footer .foo1 .wrap .icon li i {
  color: var(--bg-button);
}

footer .foo1 .wrap .icon #icon {
  width: var(--padding-lg);
  line-height: var(--padding-lg);
  font-size: 9px;
  border-radius: 50%;
  background-color: var(--bg-icon);
  font-weight: bold;
}

footer .foo1 .wrap .icon #icon a {
  color: #dadada;
}


footer .foo1 .wrap .icon li:hover,
footer .foo1 .wrap .icon #icon:hover {
  background-color: var(--menu-hcl);
}


footer .foo2 {
  width: 85%;
  height: calc(var(--padding-md)*2);
  margin: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: var(--font-mc);
  color: var(--menu-cl);
}

footer .foo2 address {
  display: flex;
  align-items: center;
}

footer .foo2 ul {
  display: flex;
  gap: var(--padding-mc);
}
footer .foo2 ul>li{
  padding: 0 var(--padding-mc);
}

footer .foo2 p,
footer .foo2 ul li {
  cursor: pointer;
}

footer .foo2 ul li:nth-child(2) {
  border-left: 1px solid var(--menu-cl);
  border-right: 1px solid var(--menu-cl);
  padding: 0 var(--padding-mc);
}

/*hover*/
footer .foo2 p:hover,
footer .foo2 ul li:hover {
  color: var(--menu-hcl);
}

footer .top_btn {
  display: none;
}

footer .top_btn i {
  text-align: center;
  align-items: center;
  font-size: 36px;
  color: var(--bg-icon);
  position: fixed;
  right: var(--padding-md);
  bottom: var(--padding-md);
}

footer .top_btn i:hover {
  color: var(--menu-hcl);
}


/*1280px*/
@media screen and (max-width:1280px) {
  :root {
    --font-title: 30px;
    --font-lg: 20px;
    --font-m-md: 18px;
    --font-md: 14px;
    --font-sm: 12px;
    --font-mc: 10px;

    --padding-lg: 40px;
    --padding-md: 30px;
    --padding-sm: 15px;
    --padding-mc: 5px;
  }

  header {
    width: 100%;
    height: auto;
  }

  header .container .banner .logo .img img {
    margin-top: calc(var(--padding-lg)/2);
  }

  header .banner .nav .nav-list:nth-child(6) {
    display: none;
  }
  header .banner .nav .nav-list>.sub{
    left: -80px;
  }
  
  header .banner .nav .nav-list:nth-of-type(4)>.sub{
    left: -50px;
  }

  #sec1 {
    width: 100%;
    height: 100%;
  }

  #sec1 #banner_wrap {
    width: 100%;
    height: 100%;
  }

  /* Adjust the #frame element for slides */
  #sec1 #banner_wrap #frame {
    width: 100%;
    /* Ensure the frame takes full width */
    height: 100%;
    overflow: hidden;
  }

  #sec1 #banner li {
    flex: 0 0 100%;
  }

  #sec1 #banner li img,
  #sec1 #banner li video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure the content scales properly */
  }

  /* Previous and Next buttons adjustments */
  #sec1 .prev,
  #sec1 .next {
    position: absolute;
    top: 40%;
    padding: 10px;
  }

  article .info {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
  }

  article .info .img {
    width: 100%;
    height: auto;
  }

  article .info .txt {
    width: 100%;
    height: 100%;
    margin-left: 0;
  }

  article .info .txt .wrap {
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 2.5rem;
    padding: 0;
  }

  article .info .txt .wrap p {
    width: 100%;
    white-space: pre-line;
  }

  #sec2 .container .txt .wrap {
    padding: 2rem 2rem;
    white-space: pre-line;
  }
}

/*1024px*/
@media screen and (max-width:1024px) {
  :root {
    --font-h2: 22px;
    --font-p: 15px;
    --font-btn: 12px;
  }

  header .banner .nav .nav-list:nth-child(5) {
    display: none;
  }

  #sec2 .container {
    display: block;
    padding: 0;
  }

  #sec2 .container .txt {
    width: 100%;
  }

  #sec2 .container .txt .wrap {
    width: 100%;
    height: 100%;
    text-align: center;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 0;
    white-space: pre-line;
  }

  #sec2 .container .slide {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
  }

  article .info .txt .wrap p,
  #sec2 .container .txt .wrap p,
  aside .world .wrap p {
    line-height: 2.2;
  }

  article .info .txt .wrap button,
  #sec2 .container .txt .wrap button,
  aside .world .wrap button {
    padding: 6px 10px;
  }
}

/*850px*/
@media screen and (max-width:850px) {
  header .container {
    background-color: var(--bg-button);
  }
  header .container .banner .logo .logotxt h1 {
    color: black;
  }
  header .banner .nav{
    display: none;
  }
  header .container .banner .location{
    display: none;
  }
  header .mobile_tab{
    display: block;
  }
  #sec1 {
    top: 0;
    width: 100%;
    height: 100%;
  }

  article .info .txt .wrap p {
    margin-bottom: var(--padding-mc);
  }
  footer .foo1{
    height: 100px;
  }
  footer .foo1 .wrap .nav{
    display: none;
  }
  footer .foo1 .wrap .icon{
    width: 80%;
    margin: auto;
  }
  footer .foo1 .wrap .icon ul {
    margin-left:0;
  }
  footer .foo2{
    display: block;
    text-align: center;
  }
  footer .foo2 address{
    width: 50%;
    margin: auto;
    display: block;
    padding: 20px 0;
  }
  footer .foo2 ul{
    width: fit-content;
    margin: auto;
  }
}


/*480px*/
@media screen and (max-width:480px) {

  article .info .txt .wrap {
    width: 90%;
    height: auto;
    margin: auto;
  }

  article .info .txt .wrap h1 {
    font-size: 18px;
    margin: 0;
  }

  article .info .txt .wrap p {
    font-size: 12px;
    line-height: 2;
  }

  #sec2 .container .txt .wrap h1 {
    font-size: 18px;
  }

  #sec2 .container .txt .wrap p {
    font-size: 12px;
    line-height: 2;
  }

  aside {
    width: 100%;
    height: 400px;
  }

  aside .world {
    width: 100%;
    height: 400px;
  }

  aside .world .wrap {
    width: 80%;
    margin: auto;
    top: 10%;
    left: 10%;
  }

  aside .world .wrap h1 {
    font-size: 18px;
  }

  aside .world .wrap p {
    font-size: 15px;
    line-height: 2.2;
    letter-spacing: 1px;
  }

}