@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.4/dist/web/static/pretendard.css");
@import url("./fonts.css");
@import url("./normalize.css");
@import url("./reset.css");
@import url("./fontello.css");

/* 숨김 콘텐츠 */
.sr-only, legend{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: polygon(0 0, 0 0, 0 0);
}

/* 기본 스타일 */
*, *::before, *::after{
  box-sizing:border-box;
}

/* 링크 스타일 */
a{
  color: inherit;
  text-decoration: none;
}

/* 본문 스타일 */
html{
  font-size: 10px;
}

body{
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  font-weight: 400;
  background: url(./images/bg_flower.png) no-repeat 50% 0, #ccc linear-gradient(to bottom, #ccc 0%, #eee 35%, #fff 60%, #fff 100%);
  color: #181818;
  font-size: 1.4rem;
}

/* 스킵 네비게이션 */
.skip-nav{
  position: absolute;
  text-align: center;
  width: 100%;
  padding: 4px 0;
  transform: translateY(-110%);
  background: #000;
  color: #fff;
  z-index: 10;
}

.skip-nav span{
  display: inline-block;
  padding: 8px;
  border: 2px solid #00f;
  border-radius: 4px;
}

.skip-nav:focus{
  outline: 0;
  transform: none;
}

/* 레이아웃 */
.header, .visual, .main, .slogan, .footer-inner{
  width: 940px;
  margin: 0 auto;
}

/* 헤더 */
.header{
  background: #fff;
  position: relative;
  padding: 8px 30px;
  border-radius: 0 0 15px 15px;
}

/* 로고 */
.logo{
  position: absolute;
  top: 50px;
  left: 65px;
  /* z-index: 1; */
}

/* 멤버링크 */
.member{
  text-align: right;
  transform: translateX(8px);
}

.member li{
  display: inline-block;
  text-transform: uppercase;
}

.member a{
  display: inline-block;
  padding: 8px;
}

/* 메인 메뉴 */
.navigation{
  padding-bottom:30px;
}

.menu{
  background: #d16527 linear-gradient(to bottom,#edad2d 0%,#d16527 45%,#d16527 60%,#edad2d 100%); 
  padding-left: 232px;
  display: flow-root;
  height:47px;
  border-top: 2px solid #000;
  border-radius: 0 0 5px 5px;
}

.menu-item{
  position: relative;
  float: left;
}

.menu-button{
  line-height: 45px;
  border: 0;
  padding: 0 21px;
  background: transparent;
  border-left: 2px solid #fff;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000;
}

.menu-item.is-active .menu-button{
  color: #ff0;
}

.menu-item.is-active .menu-button::after{
  content: "";
  display: block;
  background: #000;
  height: 2px;
}

.menu-item:nth-child(-n+3) .sub-menu{
  left: 0;
}

.menu-item:nth-child(n+4) .sub-menu{
  right: 0;
}

.sub-menu{
  position: absolute;
  display: none;
  top: 47px;
  white-space: nowrap;
}

.sub-menu li{
  display: inline-block;
}

.sub-menu a{
  display: inline-block;
  padding: 8px 10px;
  margin-right: 10px;
}

.sub-menu a::before{
  content: '\f192';
  font-family: 'fontello';
  display: inline-block;
  width: 1em;
  margin-right: .2em;
}

.sub-menu a:hover::before, .sub-menu a:focus::before{
  content: '\e800';
  font-family: 'fontello';
  display: inline-block;
  width: 1em;
  margin-right: .2em;
}

.menu-item.is-active .sub-menu{
  display: block;
}

/* 비주얼 */
@keyframes moveEffect {
  0%{
    font-size: 12px;
    color: rgba(0,0,0,0);
    transform: translate(0, 0);
  }
  100%{
    font-size: 24px;
    color: rgba(0,0,0,1);
    transform: translate(400px, 75px);
  }
}

@keyframes fadeEffect {
  0%{opacity: 1;}
  100%{opacity: 0;}
}

.visual{
  height: 120px;
  position: relative;
}

.visual::before, .visual::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  animation-name: fadeEffect;
  animation-duration: 2000ms;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation: fadeEffect 2000ms infinite alternate;
}

.visual::before{ 
  background-image: url(./images/ani_flower_01.png) , url(./images/ani_flower_02.png);
  background-position: 0 -10px , 670px 0;
}

.visual::after{ 
  background-image: url(./images/ani_flower_03.png) , url(./images/ani_flower_04.png);
  background-position: 300px 10px , 800px 10px;
  animation-delay: 1000ms;
}

.visual-text{
  animation-name: moveEffect;
  animation-duration: 2000ms;
  animation-fill-mode: forwards;
  display: inline-block;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* 메인 콘텐츠 */
.main{
  display: flow-root;
  background: #fff;
  padding: 30px 15px;
  border-radius: 15px 15px 0 0;
  min-height: 400px;
  /* overflow: hidden; */
  /* display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly; */
}

/* .main::after{
  content: "";
  display: block;
  clear: both;
} */

/* 그룹 */
.group{
  float: left;
  margin: 0 15px;
}

.group1{
  width: 250px;
}
.group2{
  width: 380px;
}
.group3{
  width: 190px;
}

/* 로그인 */
.login{
  background:  #e8852e radial-gradient(circle at right top, #e8852e, #ed552f);
  border-radius: 5px;
  padding: 10px;
  box-shadow: 5px 5px 0 0 #aaa;
}

.login-title{
  color: #ff0;
  font-size: 1.5rem;
  font-weight: 600;
  text-indent: 10px;
}

.login-form{
  margin-top: 10px;
  background: #fff;
  padding: 10px 10px 0 10px;
  border-radius: 5px 5px 0 0;
}

.login-form fieldset{
  position: relative;
  border-bottom: 1px solid #aaa;
  padding-bottom: 10px;
}

.user-email{
  margin-bottom: 5px;
}

.login-form label{
  width: 56px;
  display: inline-block;
}

.login-form input{
  width: 90px;
  height: 24px;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 2px 2px 2px 0.5em;
}

.login-button{
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 53px;
  padding: 0;
  font-size: 1.3rem;
  color: #fff;
  background: #e8852e;
  border: 0;
  border-radius: 4px;
}

.sign{
  background: #fff;
  padding: 4px 10px;
  border-radius: 0 0 5px 5px;
  display: flow-root;
}

.sign li:first-child{
  float: left;
}

.sign li:last-child{
  float: right;
}

.sign a{
  display: block;
  padding: 6px 0;
  font-size: 1.3rem;
  /* letter-spacing: -1px; */
}

.sign .icon-right-open::before{
  color:#ed552f;
}

/* 유효성 검사 배너 링크 그룹 */
.validation-list{
  margin-top: 25px;
}

.validation-list li{
  margin-top: 10px;
}

.validation-list a{
  background: url("./images/validation_icon.png") no-repeat 20px 50% / 16px 16px, #aaa linear-gradient(to bottom, #ccc, #aaa) repeat;
  display: block;
  padding: 10px;
  border-radius: 50px;
  padding-left: 45px;
}

.validation-list a:hover, .validation-list a:focus{
  color: #f00;
  background-size: 14px 14px, 100%;
}

/* 웹 관련 용어 */
.term{
  margin-top: 20px;
  background: #aaa linear-gradient(to bottom, #ccc, #eee);
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 15px;
}

.term-title{
  font-weight: 700;
  font-size: 1.5rem;
}

.term-list{
  margin-top: 15px;
}

.term div{
  display: flow-root;
  margin-top: 10px;
}

.term-list-subject{
  width: 145px;
  color: #296897;
}

.term-list-thumbnail{
  position: relative;
  top: 2px;
}

.term-list-thumbnail img{
  vertical-align: top;
}

.term-list-brief{
  width: 145px;
  margin-top: 5px;
  line-height: 1.5;
}

.even .term-list-brief,
.even .term-list-subject,
.odd .term-list-thumbnail{
  float: left;
}

.odd .term-list-brief,
.odd .term-list-subject,
.even .term-list-thumbnail{
  float: right;
}

/* 검색 폼 */
.search-form{
  background: #ccc linear-gradient(to bottom, #ccc, #eee);
  padding: 15px 25px 10px;
  text-align: center;
  border-radius: 10px 10px 0 0;
  border: 1px solid #aaa;
  border-bottom-color: #fff;
}

.search-form fieldset{
  display: flex;
  flex: row nowrap;
  align-items: center;
}

.search-form input{
  -webkit-appearance: none;
  border: 1px solid #aaa;
  height: 24px;
  border-radius: 4px 4px 0 0;
  padding: 2px 2px 2px 0.5em;
  flex-grow: 1;
  width: 100%;
  margin: 0 10px;
}

.search-form label, .search-button{
  white-space: nowrap;
}

.search-button{
  background-color: #000;
  color: #fff;
  border-radius: 4px;
  padding: 2px 10px;
  height: 24px;
  border: 0;
}

/* 공지사항 및 자료실 */
/* .board{
  margin-top:20px;
  position: relative;
  padding-top: 45px;
  min-height: 214px;
}

.board-tab{
  position: absolute;
  top: 0;
  border: 1px solid #aaa;
  border-radius: 5px 5px 0 0;
  background: #ccc;
  padding: 10px 15px;
  color: #666;
}

.notice-tab{
  left:0;
}

.archive-tab{
  left:80px;
}

.board-section.is-select .board-tab{
  z-index: 10;
  background: #fff;
  color: #ed552f;
  border-color: currentColor currentColor #fff currentColor;
}

.board-panel{
  display: none;
}

.board-section.is-select .board-panel{
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}

.board-panel li{
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  align-items: center;
}

.board-panel a{
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 0;
}

.board-more{
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 8px;
}

.board-more::before{
  color: hsla(110, 50%, 30%, 1);
}

.board-section.is-select .board-more{
  display: block !important;
} */

.board{
  margin-top:20px;
  position: relative;
  min-height: 214px;
}

.board-list{
  display: none;
  margin-top: 10px;
}

.tab-panel.is-select .board-list{
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}

.tab-list{
  margin-top:20px;
}

.tab.is-select {
  z-index: 10;
  background: #fff;
  color: #ed552f;
  border-color: currentColor currentColor #fff currentColor;
}

.tab-list button{
  border: 1px solid #aaa;
  border-radius: 5px 5px 0 0;
  background: #ccc;
  padding: 10px 15px;
  color: #666;
}

.board-list li{
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  align-items: center;
}

.board-list a{
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 0;
}

.board-more{
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 8px;
}

/* 공지사항, 자료실, 새소식, 인기사이트 더보기 링크 웹폰트 글자 색상 일괄 적용 */

.more::before{
  color: hsla(110, 50%, 30%, 1);
}

.tab-panel.is-select .board-more{
  display: block !important;
}

/* 새소식 */
.news{
  margin-top: 20px;
  position: relative;
}

.news::before{
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 80%;
  height: 1px;
  background: #aaa linear-gradient(to right, #aaa, #fff);
}

.news-title{
  color: #d16527;
  font-weight: 700;
  font-size: 1.5rem;
}

.news-link{
  display: block;
}

.news-item{
  margin-top: 35px;
  padding-left: 130px;
  position: relative;
  min-height: 115px;
}

.news-item-title{
  font-weight: 600;
  margin-bottom: 5px;
}

.news-item-brief{
  line-height: 1.5;
  margin-top: 10px;
  text-align: justify;
}

.news-item-thumbnail{
  position: absolute;
  top: 0;
  left: 0;
  text-align: center;
}

.news-item-thumbnail img{
  box-shadow: 0 15px 15px 5px #aaa;
}

.news-item-thumbnail figcaption{
  margin-top: 15px;
}

.news-more{
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 8px;
}

/* 신규 이벤트 및 관련 사이트 */
.gradient-effect{
  border: 1px solid #aaa;
  border-radius: 5px;
  padding: 10px;
  background: #ccc linear-gradient(to bottom, #ccc, #eee);
}

.accent-color{
  color: #d16527;
}

.event{
  display: flex;
  flex-flow: row wrap;
  border-bottom: 1px solid #aaa;
}

.event-title, .related-title, .favorite-title{
  font-size: 1.5rem;
  font-weight: 700;
}

/* .event-button-wrapper{
  margin-left: auto;
  height: 18px;
  overflow: hidden;
  display: flex;
  gap: 6px;
}

.event button{
  width: 19px;
  height: 0 !important;
  border: 0;
  padding: 18px 0 0 0;
  background-color: transparent;
  background-image: url(./images/back_forward.png);
  background-repeat: no-repeat;
}

.event button:focus{
  outline-offset: -2px;
}

.event-button-next{
  background-position: -36px 0;
} */

.event-button-container{
  padding: 4px;
  margin-left: auto;
  display: flex;
  flex-flow: row nowrap;
  gap: 6px;
  transform: translate(4px ,-4px);
}

.event-button-container button{
  width: 19px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  background-image: url(./images/back_forward.png);
  background-repeat: no-repeat;

}

.event-button-container .event-button-next{
  background-position: -36px 0;
}

.event-detail{
  width: 100%;
}

.event-thumbnail{
  margin: 2px 0 10px;
}

.event-brief{
  margin: 10px 0;
}

.event-thumbnail img{
  border: 1px solid #aaa;
  box-shadow: 5px 5px 0 0 #bbb;
}

.related{
  padding-top: 10px;
}

.related-list{
  margin-top: 10px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  height: 27px;
  overflow: hidden;
  transition: height 400ms, padding 400ms 400ms;
}

.related-list:hover, .related-list:focus{
  height: 147px;
  padding: 10px 0;
}

/* .related-list.is-active{
  height: 147px;
  padding: 10px 0; 
} */

.related-list a{
  display: block;
  line-height: 25px;
  padding: 0 0 0 20px;
}

/* 인기사이트 */
.favorite{
  position: relative;
  margin: 20px 0;
}

.favorite-list{
  margin-top: 10px;
  /* overflow: hidden; */
  list-style-type: none;
}

.favorite-list li{
  position: relative;
  margin-top: 8px;
  counter-increment: number;
}

.favorite-list li::before{
  content: counter(number);
  display: inline-flex;
  padding: 2px 5px 1px;
  font-size: 1.1rem;
  color: #fff;
  background: #aaa;
  border-radius: 4px;
  min-width: 1.5em;
  justify-content: 1;
  margin-right: 0.5em;
}

.favorite-list a{
  vertical-align: middle;
}

.favorite-list em{
  position: absolute;
  width: 9px;
  height: 11px;
  right: 0;
  top: 50%;
  margin-top: -5px;
  background-image: url(./images/rank.png);
  background-repeat: no-repeat;

}

.favorite-list .down{
  background-position: 0 100%;
}

.favorite-list .stop{
  background-position: 0 50%;
}

.favorite-more{
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 8px;
}

/* 슬로건 */
.slogan{
  /* clear: both;
  margin-top: 200px; */
  position: relative;
  padding: 10px 100px 10px 180px;
}

.slogan-title{
  /* position: absolute;
  left: 35px;
  bottom: -25px; */
  filter: grayscale(80%);
  width: 110px;
  height: 83px;
  text-align: center;
  line-height: 83px;
  background-color: yellow;
}

.slogan-title::after{
  content:'';
  position: absolute;
  width: 100%;
  height: 100%;
  background: url(./images/coffee.png) no-repeat 0 0;
  top: 0;
  left: 0;
}

.slogan-content{
  color: #a09784;
  line-height: 1.5;
}

.slogan-content q::before{
  display: inline-block;
  font-size: 2.5rem;
  transform: translateY(5px);
}

.slogan-content q::after{
  content:"";
}



/* 푸터 */
.footer{
  background:  #ccc linear-gradient(to bottom, #ccc 0%, #eee 35%, #fff 60%, #fff 100%);
}

.footer-inner{
  display:grid;
  grid-template-columns: 140px 1fr 120px;
  padding: 20px 0;
}

/* 푸터 로고 */
.footer-logo{
  grid-area: 1/1/4/2;
  align-self: center;
  justify-self: center;

  /*   
  grid-row-start: 1;
  grid-column-start: 1;
  grid-row-end: 4;
  grid-column-end: 2; 
  */

  /* 그리드 줄임 표기법  
  grid-row: 1/4;
  grid-column: 1/2; 
  */
}

/* 가이드 링크 */
.guide-list{
  grid-area: 1/2/2/3;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  background: #7b8385;
  color: #fff;
  border-radius: 20px;
  padding: 4px 20px;
  margin: 5px 20px;
  text-transform: uppercase;
  /* font-variant: small-caps; */
}

.guide-list a{
  display: block;
  padding: 6px 10px;
}

/* 주소 */
.address{
  grid-area: 2/2/3/3;
  margin: 5px 20px;
}

/* 저작권 정보 */
.copyright{
  grid-area: 3/2/4/3;
  margin: 5px 20px;
}

/* 배지 그룹 */
.badge-container{
  grid-area: 1/3/4/4;
}