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

/* 숨김 콘텐츠 */
.sr-only,
legend {
  background: red;
  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 Std", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, "Helvetica Neue", "Segoe UI", "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;
  width: 100%;
  text-align: center;
  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: 0px 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: end;
  transform: translateX(8px);
}

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

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

/* 비주얼 */
@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-text {
  animation-name: moveEffect;
  animation-duration: 2000ms;
  animation-fill-mode: forwards;
  display: inline-block;
  font-family: Georgia, "Times New Roman", Times, serif;
}
.visual::before,
.visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  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;
}
/* 메인 메뉴 */
.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-meunu {
  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: 0.2em;
}

.sub-menu a:hover::before,
.sub-menu a:focus::before {
  content: "\e800";
}
.menu-item.is-active .sub-menu {
  display: block;
}
/* 메인 콘텐츠 */
.main {
  display: flow-root;
  background: #fff;
  padding: 30px 15px;
  border-radius: 15px 15px 0 0;
  min-height: 400px;
  /* overflow: hidden; */
}
/* .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;
}
.user-pwd {
}
.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: #ed552f;
  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);
  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, #aaa);
  border: 1px solid #000;
  border-radius: 5px;
  padding: 15px;
}
.term-title {
  font-weight: 700;
  font-size: 1.5rem;
}
.term-list {
  margin-top: 15px;
}
.term-list 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 {
  float: right;
  width: 145px;
  margin-top: 5px;
  line-height: 1.5;
}
.odd .term-list-subject,
.odd .term-list-brief {
  float: right;
}
.odd .term-list-thumbnail {
  float: left;
}
.even .term-list-subject,
.even .term-list-brief {
  float: left;
}
.even .term-list-thumbnail {
  float: right;
}
/* 검색 폼 */
.search-form {
  background: #ccc linear-gradient(to bottom, #ccc, #eee);
  border: 1px solid #aaa;
  border-radius: 10px 10px 0 0;
  padding: 15px 25px 10px;
  border-bottom-color: #fff;
}
.search-form fieldset {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}
.search-form label,
.search-button {
  white-space: nowrap;
}

.search-form input {
  -webkit-appearance: none;
  border: 1px solid #aaa;
  height: 24px;
  border-radius: 4px 4px 0 0;
  padding: 2px 2px 2px 0.5rem;
  width: 100%;
  margin: 0 10px;
  background: #fff;
}
.search-button {
  background: #000;
  color: #fff;
  padding: 2px 10px;
  height: 24px;
  border: 0;
  border-radius: 4px;
}
/* 공지사항 및 자료실 */
.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%;
}
.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;
}
/* 공지사항, 자료실, 새소식, 인기사이트 더보기 링크 웹폰트 금지 색상 일괄 적용*/
.more::before {
  color: hsla(110, 50%, 30%, 1);
}

.board-section.is-select .board-more {
  display: block;
}

/* 새소식 */
.news {
  margin-top: 20px;
  position: relative;
}
.news::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 0;
  width: 80%;
  height: 2px;
  background: #aaa linear-gradient(to right, #aaa, #fff);
}
.news-title {
  color: #d16527;
  font-weight: 700;
  font-size: 1.5rem;
}
.news-link {
  display: block;
  border-top: 1px solid transparent;
}
.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: 15px;
}
.news-more {
  position: absolute;
  top: -8px;
  right: -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;
  align-items: flex-start;
  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: 0;
  padding: 20px 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;
  border: 0;
  background-color: 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 a {
  display: block;
  line-height: 25px;
  padding: 0 0 0 20px;
}
/* 인기 사이트 */
.favorite {
  position: relative;
  margin-top: 20px;
}
.favorite-list {
  margin-top: 10px;

  list-style-type: none;
  position: relative;
}
.favorite-list li {
  margin-top: 8px;
  counter-increment: number;
  position: relative;
}
.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: center;
  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: url(./images/rank.png);
  background-repeat: no-repeat;
}
.favorite-list .stop {
  background-position: 0 50%;
}
.favorite-list .down {
  background-position: 0 100%;
}

.favorite-more {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 8px;
}
/* 슬로건 */
.slogan {
  position: relative;
  padding: 10px 100px 10px 180px;
}

.slogan-title {
  position: absolute;
  left: 35px;
  bottom: -25px;
  width: 110px;
  height: 83px;
  text-align: center;
  line-height: 83px;
}
.slogan-title::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url(./images/coffee.png) no-repeat 0 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;
}

/* 가이드 링크 */
.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;
}

.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;
}
