@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;
  width: 100%;
  text-align: center;
  transform: translateY(-110px);
  padding: 4px 0;
  background: #000;
  color: #fff;
  z-index: 10;
}

.skip-nav span {
  display: inline-block;
  padding: 8px;
  border: 2px solid blue;
  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 {
  margin-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: 0.2em;
}

.sub-menu a:hover::before,
.sub-menu a:focus::before {
  content: "\e800";
  font-family: "fontello";
  display: inline-block;
  width: 1em;
  margin-right: 0.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;
  /* height: 200px; */
  /* overflow: hidden; */
  /* padding: 30px 15px; */
  /* display: flex;
  flex-flow: row nowrap;
  justify-content: space-around; */
}
/* .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 {
  display: inline-block;
  width: 4em;
}

.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: 5px;
}

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

/* 유효성 검사 배너 */
.balidation-list {
  margin-top: 25px;
}

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

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

.balidation-list a:hover,
.balidation-list a:focus {
  color: #f00;
  background-size: 14px 14px, 100%;
}
/* 웹 관련 용어 */

.term {
  background: #aaa linear-gradient(to bottom, #ccc, #aaa);
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #aaa;
  border-radius: 5px;
}

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

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

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

.odd .term-list-subject,
.odd .term-list-breif {
  float: right;
}

.odd .term-list-thumbnail {
  float: left;
}

.even .term-list-subject,
.even .term-list-breif {
  float: left;
}

.even .term-list-thumbnail {
  float: right;
}

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

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

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

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

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

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

.search-label {
  font-size: 1.5rem;
  font-weight: 500;
  white-space: nowrap;
}

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

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

/* 공지사항 및 자료실 */
/* .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 {
  background: #fff;
  color: #ed552f;
  border-color: currentColor currentColor #fff currentColor;
  z-index: 10;
}

.board-panel {
  display: none;
}

.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-panel {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}

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

/* 탭 UI 형식 */
.board {
  position: relative;
  margin-top: 20px;
}

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

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

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

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

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

/* 공지사항, 자료실, 새소식, 인기사이트 더보기 링크 웹폰트 글자 색상 일괄 적용 */
.more::before {
  color: hsla(110, 50%, 30%, 1);
}

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

/* 새소식 */
.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;
}

/* .news-title {
  padding-bottom: 15px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #ed552f;
  width: 100%;
}
.news-title::after {
  display: block;
  content: "";
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background-image: linear-gradient(to right, #ccc, #fff);
}

.news-item {
  display: flow-root;
  padding-top: 10px;
}

.news-item-title,
.news-item-brief,
.news-item-date {
  float: right;
  width: 250px;
}

.news-item-title {
  line-height: 20px;
  font-weight: 700;
}

.news-item-brief {
  padding: 10px 0;
}

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

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

.news-item-thumbnail > img {
  box-shadow: 1px 10px 10px #eee;
}

.news-item-thumbnail > figcaption {
  padding-top: 10px;
} */

/* 신규 이벤트 및  관련 사이트 */
.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,
.favorite-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.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-top: 10px 0;
}

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

/* .event {
  position: relative;
  line-height: 20px;
  padding-top: 30px;
  padding-bottom: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.event-title {
  position: absolute;
  top: 0;
  left: 0;
}

.event-button-wrapper {
  position: absolute;
  top: 0;
  right: 0;
}

.event-button-wrapper button {
  width: 18px;
  height: 18px;
  overflow: hidden;
  color: rgba(256, 256, 256, 0);
  background-image: url("./images/back_forward.png");
  border: 0;
}

.event-button-next {
  background-position: right top;
}

.event-thumbnail img {
  box-shadow: 5px 5px 0 0 #aaa;
} */

/* 관련 사이트 */

.related {
  padding: 10px 0 0 0;
}

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

.related-list {
  margin-top: 10px;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 5px;
  height: 27px;
  overflow: hidden;
  transition: height 400ms, padding-top 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;
  /* 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: 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-image: 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;
  line-height: 83px;
  text-align: center;
}

.slogan-title::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 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;
  /* grid-template-rows: auto auto auto; */
  padding: 20px 0;
}

/* 푸터 로고 */

.footer-logo {
  /* grid-row-start: 1;
  grid-column-start: 1;
  grid-row-end: 4;
  grid-column-end: 2;

  grid-row: 1/4;
  grid-column: 1/2; */
  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;
  /* 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;
}
