@charset "utf-8";

@import url('//fonts.googleapis.com/css?family=Nanum+Myeongjo');

body {
  font-weight: 400;
  font-family: '맑은 고딕','Malgun Gothic',Pretendard-Regular, sans-serif;
  font-size: 1em;
  line-height: 1.25;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
}

div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, figure {
  margin: 0;
  padding: 0;
}

header, footer, section, article, aside, nav, hgroup, details, menu, figure, figcaption {
  display: block;
}

button, input[type=submit], input[type=reset], input[type=button] {
  overflow: visible;
  cursor: pointer;
}

input[type=text], input[type=email], input[type=password], input[type=submit], textarea {
  -webkit-appearance: none;
}

input, select, textarea, button {
  font-family: '맑은 고딕','Malgun Gothic',Pretendard-Regular, sans-serif;
  font-size: 100%;
  border-radius: 0;
}

button {
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

ul li { list-style: none; }
img, fieldset { border: none; vertical-align: top; }
hr { display: none; }

#acc-nav { position: absolute; top: 0; left: 0; z-index: 1000; width: 100%; height: 0; }
#acc-nav a {
  display: block; position: absolute; left: 0; top: 0; overflow: hidden;
  width: 1px; height: 1px; margin-left: -1px; margin-bottom: -1px;
  text-align: center; font-weight: bold; font-size: 0.875em; color: #000; white-space: nowrap;
}
#acc-nav a:focus, #acc-nav a:hover, #acc-nav a:active {
  width: 100%; height: auto; padding: 10px 0; background: #000; color: #fff; z-index: 1000;
}

#header { position: relative; width: 100%; }
#header h1 {
  padding: 28px 0; text-align: center; font-size: 1.5em; line-height: 1; color: #1a1a1a;
  font-family: '맑은 고딕','Malgun Gothic',sans-serif; font-weight: 700;
}
#header h1 a { display: inline-block; text-decoration: none; vertical-align: top; color: #1a1a1a; }
#header .mobile-menu {
  position: absolute; top: 20px; left: 33px; z-index: 500; width: 40px; height: 40px; outline: none;
}
#header .mobile-menu span {
  position: absolute; top: 50%; left: 50%; width: 26px; height: 2px;
  margin: -2px 0 0 -13px; background-color: #000; text-indent: -999em;
}
#header .mobile-menu:before, #header .mobile-menu:after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 26px; height: 2px; margin-left: -13px; background-color: #000;
}
#header .mobile-menu:before { margin-top: -9px; }
#header .mobile-menu:after { margin-top: 5px; }
#header .mobile-menu.on { position: fixed; }
#header .mobile-menu.on span { display: none; }
#header .mobile-menu.on:before, #header .mobile-menu.on:after { margin-top: -2px; }
#header .mobile-menu.on:before { transform: rotate(-45deg); }
#header .mobile-menu.on:after { transform: rotate(45deg); }
#header .menu {
  position: fixed; top: 0; left: -348px; z-index: 400; width: 348px; height: 100%;
  padding: 94px 40px 189px; background-color: #fff; box-sizing: border-box;
  transition: left .5s ease-in-out;
}
#header .menu .social-link { position: absolute; left: 40px; bottom: 129px; }
#header .menu p { position: absolute; left: 40px; bottom: 79px; font-size: 0.75em; color: #9b9b9b; }
#header .menu.on { left: 0; }
#header .search { position: absolute; top: 20px; right: 19px; width: 0; padding-right: 40px; }
#header .search input {
  display: none; width: 100%; height: 40px; padding: 0 10px; font-size: 1em;
  line-height: 40px; color: #000; border: 0; box-sizing: border-box; background-color: transparent;
}
#header .search button {
  display: none; position: absolute; top: 0; right: 0; z-index: 10; width: 40px; height: 40px;
  background: url(./images/ico_package.png) no-repeat 0 0; text-indent: -999em; outline: none;
}
#header .search:before {
  content: ""; position: absolute; top: 0; right: 0; z-index: 20; width: 40px; height: 40px;
  background: url(./images/ico_package.png) no-repeat 0 0; cursor: pointer;
}
#header .search:hover:before { background-color: #ebebeb; }
#header .search.on { width: 322px; border-bottom: 1px solid #000; }
#header .search.on input { display: block; outline: none; }
#header .search.on button { display: block; }
#header .search.on:before { display: none; }

#gnb { overflow: auto; height: 100%; margin-bottom: 8px; }
#gnb ul li { margin-bottom: 6px; font-size: 1.125em; line-height: 1.5; }
#gnb ul li a { display: block; text-decoration: none; color: #000; }
#gnb ul li ul li ul li a.link_sub_item { color: #333; }
#gnb ul li a:hover { text-decoration: underline; color: #4e2e28; }
#gnb ul li ul { margin: 22px 0 0; }
#gnb ul li ul li { font-size: 1em; }
#gnb ul li ul li ul { margin: 6px 0 13px; }
#gnb ul li ul li ul li { margin: 0; font-size: 0.875rem; line-height: 1.5625rem; }
#gnb ul li ul li ul li a:before { content: "-"; margin-right: 5px; color: #333; }
#gnb ul li ul li ul li a { padding: 0 12px; }

#content .inner { max-width: 100%; margin: 0; padding: 0; }
#content>.inner { max-width: 100%; padding: 0; }
#content .inner:after { content: ""; clear: both; display: block; height: 0; visibility: hidden; }

#footer { position: relative; padding: 29px 0; border-top: 1px solid #ebebeb; }
#footer p { text-align: center; font-size: 0.75em; color: #9b9b9b; }
#footer p a { text-decoration: none; color: #9b9b9b; }
#footer .admin { color: #666; }
#footer .admin:before {
  content: ""; display: inline-block; width: 1px; height: 15px;
  margin: 0 9px; background-color: #b2b2b2; vertical-align: middle;
}
#tt-body-index #footer { border-top: 0; }

.social-link a {
  display: inline-block; width: 18px; height: 18px; margin-right: 5px;
  text-indent: -999em; background-image: url(./images/ico_package.png);
  background-repeat: no-repeat; vertical-align: top;
}
.social-link a:hover { background-position-y: -68px; }
.social-link .pinterest { background-position: 0 -50px; }
.social-link .facebook { background-position: -50px -50px; }
.social-link .twitter { background-position: -100px -50px; }
.social-link .instagram { background-position: -150px -50px; }

.btn, a.btn {
  display: inline-block; width: 158px; height: 50px; border: 1px solid #dcdcdc;
  font-size: 0.875em; line-height: 50px; color: unset;
}
.btn:hover { border-color: #4d4d4d; }

/* 인기글 숨기기 - cover-thumbnail-list는 홈 커버로 사용 */

/* 홈 커버 썸네일 그리드 */
.cover-thumbnail-list .inner { max-width: 100% !important; padding: 0 !important; }
.cover-thumbnail-list ul { overflow: hidden; margin: 0; padding: 0; }
.cover-thumbnail-list ul li { float: left; width: 50%; box-sizing: border-box; margin-bottom: 40px; }
.cover-thumbnail-list ul li:nth-child(2n+1) { clear: both; }
.cover-thumbnail-list ul li a { display: block; text-decoration: none; color: #333; padding: 0; }
.cover-thumbnail-list ul li .thum { display: block; width: 100%; overflow: hidden; }
.cover-thumbnail-list ul li .thum img { display: block; width: 100%; height: auto; image-rendering: auto; }
.cover-thumbnail-list ul li .title { display: block; padding: 8px 4px; font-size: 0.9em; font-family: '맑은 고딕','Malgun Gothic',sans-serif; }
.cover-thumbnail-list ul li .category { display: none; }

.post-header {
  position: relative; overflow: hidden; max-width: 100%;
  margin: 0 0 30px; padding: 30px 20px 15px; border-bottom: 1px solid #ebebeb;
}
.post-header h1 { float: left; font-size: 1em; }
.post-header .list-type { float: right; }
.post-header .list-type button {
  float: left; width: 24px; height: 24px; margin-left: 4px;
  background-image: url(./images/ico_package.png); background-repeat: no-repeat;
  text-indent: -999em; outline: none;
}
.post-header .list-type button:hover { background-color: #ebebeb; }
.post-header .list-type .list { background-position: 0 -200px; }
.post-header .list-type .thum { background-position: -100px -200px; }
.post-header .list-type .list.current { background-position: -50px -200px; }
.post-header .list-type .thum.current { background-position: -150px -200px; }

.post-item { overflow: hidden; width: 100%; border-bottom: 1px solid #ebebeb; }
.post-item a { display: block; padding: 0; text-decoration: none; color: #080808; }
.post-item a:hover .title { text-decoration: underline; color: #4e2e28; }
.post-item .thum { display: block; width: 100%; overflow: hidden; }
.post-item .thum img { display: block; width: 100%; height: auto; margin: 0; }
.post-item .category {
  display: inline-block; margin-bottom: 16px; border-bottom: 1px solid #a3a3a3;
  font-family: 'Nanum Myeongjo', serif; font-size: 0.875em; color: #808080;
}
.post-item .title {
  display: block; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; max-height: 2.8em;
  font-weight: 700; font-size: 1.125em; line-height: 1.4;
  font-family: '맑은 고딕','Malgun Gothic',sans-serif;
}
.post-item .excerpt {
  display: block; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 0.9375em; line-height: 1.6; color: #666;
}
.post-item .date { display: block; font-size: 0.8125em; color: #999; }

.pagination { max-width: 860px; margin: 60px auto 160px; text-align: center; }
.pagination .current { display: none; }
.pagination .view-more {
  display: inline-block; width: 158px; height: 50px;
  border: 1px solid #dcdcdc; font-size: 0.875em; line-height: 50px; color: #000;
}
.pagination .view-more:hover { border-color: #4d4d4d; background: none; }
.pagination a {
  display: inline-block; width: 24px; height: 24px; margin: 0 4px;
  text-decoration: none; font-size: 0.9375em; line-height: 24px; color: #b2b2b2; vertical-align: middle;
}
.pagination a:hover { background-color: #ebebeb; }
.pagination .selected { color: #000; }
.pagination .prev, .pagination .next {
  width: 50px; height: 50px; background-image: url(./images/ico_package.png);
  background-repeat: no-repeat; border: 1px solid #dcdcdc; text-indent: -999em;
  vertical-align: middle; box-sizing: border-box;
}
.pagination .prev { background-position: -50px 0; }
.pagination .next { background-position: -100px 0; }
.pagination .prev:hover, .pagination .next:hover { background-color: transparent; border-color: #4d4d4d; }
.pagination .no-more-prev, .pagination .no-more-next { display: none; }

.hgroup { max-width: 860px; margin: 50px auto 60px; padding: 0 0 20px; border-bottom: 1px solid #ebebeb; }
.hgroup .category {
  display: inline-block; margin-bottom: 16px; padding-top: 5px;
  border-bottom: 1px solid #a3a3a3; font-family: 'Nanum Myeongjo', serif;
  font-size: 0.875em; color: #808080;
}
.hgroup h1 {
  display: block; margin-bottom: 9px; font-weight: 700;
  font-size: 1.6875em; line-height: 1.4444em;
  font-family: '맑은 고딕','Malgun Gothic',sans-serif;
}
.hgroup .post-meta { display: block; font-size: 0.8125em; color: #808080; }
.hgroup .post-meta a { text-decoration: none; color: #999; }
.hgroup .post-meta a:hover { text-decoration: underline; }
.hgroup .post-meta span:before {
  content: ""; display: inline-block; width: 1px; height: 10px;
  margin: 0 7px 0 10px; background-color: #ebebeb; vertical-align: baseline;
}
.hgroup .post-meta span:first-child:before { content: none; }

.tags {
  position: relative; overflow: hidden; max-width: 860px; margin: 53px auto;
  padding: 27px 0 28px 47px; border-top: 1px solid #ebebeb; border-bottom: 1px solid #ebebeb;
  color: #999; box-sizing: border-box;
}
.tags h2 { float: left; width: 47px; margin-left: -47px; font-weight: 400; font-size: 1em; color: #000; }
.tags .items a {
  display: inline-block; margin-left: 15px; text-decoration: none;
  font-size: 0.8125em; line-height: 1.5384; color: #999;
}
.tags .items a:hover { color: #7a583a; }
.tags .items a:before { content: "#"; }

.related-articles { overflow: hidden; width: 100%; margin: 57px 0 69px; }
.related-articles h2 { margin-bottom: 28px; font-weight: 400; font-size: 1em; }
.related-articles h2 em { border-bottom: 1px solid #000; font-style: normal; }
.related-articles ul li { float: left; width: 24.0625%; padding-left: 1.25%; }
.related-articles ul li:first-child { padding-left: 0; }
.related-articles ul li a { display: block; text-decoration: none; color: #080808; }
.related-articles ul li a:hover .title { text-decoration: underline; color: #4e2e28; }
.related-articles ul li .thum {
  display: block; position: relative; overflow: hidden; height: 0;
  margin-bottom: 12px; padding-bottom: 75.757575757575758%; background-color: #ebebeb;
}
.related-articles ul li .title {
  display: block; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 2.75em; margin-bottom: 9px; font-weight: 700; line-height: 1.375;
}
.related-articles ul li .date { display: block; font-size: 0.8125em; color: #999; }

.comments { max-width: 860px; margin: 0 auto 60px; padding-bottom: 30px; border-bottom: 1px solid #e6e6e6; }
.comments h2 { font-weight: 400; font-size: 1em; color: #000; }

#dimmed {
  position: fixed; top: 0; left: 0; z-index: 300;
  width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.43);
}

/* ══════════════════════════════
   2열 썸네일 그리드
══════════════════════════════ */
#content > .inner,
#content .inner {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.post-header {
  max-width: 100% !important;
  padding: 30px 20px 15px !important;
}
.post-type-thumbnail .post-item {
  float: left;
  width: 50% !important;
  margin: 0 0 40px !important;
  padding: 0 8px !important;
  border: 0;
  box-sizing: border-box;
}
.post-type-thumbnail .post-item:nth-child(2n+1) {
  clear: both !important;
}
.post-type-thumbnail .post-item a { padding: 0; }
.post-type-thumbnail .post-item .thum {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f6f6f6;
  margin: 0 0 8px 0;
}
.post-type-thumbnail .post-item .thum img {
  display: block;
  width: 100%;
  height: auto;
}
.post-type-thumbnail .post-item .title {
  display: block;
  overflow: hidden;
  width: 100%;
  font-weight: 400;
  font-size: 0.9em;
  line-height: 1.4em;
  font-family: '맑은 고딕','Malgun Gothic',sans-serif;
  color: #333;
  padding: 0 4px;
}
.post-type-thumbnail .post-item .excerpt { display: none; }
.post-type-thumbnail .pagination { margin-top: 0; clear: both; }

/* ══════════════════════════════
   커스텀 카테고리 탭 바
══════════════════════════════ */
.custom-nav {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e8e4de;
  position: sticky;
  top: 0;
  z-index: 999;
  overflow: visible !important;
}
.custom-nav ul {
  display: flex;
  list-style: none;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: visible !important;
  scrollbar-width: none;
}
.custom-nav ul::-webkit-scrollbar { display: none; }
.custom-nav > ul > li > a {
  display: block;
  padding: 15px 22px;
  font-size: 13px;
  font-family: '맑은 고딕', 'Malgun Gothic', sans-serif;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  text-decoration: none;
}
.custom-nav > ul > li:hover > a {
  color: #1c1a17;
  border-bottom-color: #b07040;
}
.custom-nav .has-sub { position: relative; }
.custom-nav .has-sub .sub-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid #e8e4de;
  border-top: 2px solid #b07040;
  min-width: 150px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 1000;
  pointer-events: none;
}
.custom-nav .has-sub:hover .sub-nav {
  display: block !important;
  pointer-events: auto;
}
.custom-nav .sub-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  font-family: '맑은 고딕', 'Malgun Gothic', sans-serif;
  color: #555;
  border-bottom: 1px solid #f0ece6;
  text-decoration: none;
  white-space: nowrap;
}
.custom-nav .sub-nav a:last-child { border-bottom: none; }
.custom-nav .sub-nav a:hover {
  background: #faf8f4;
  color: #b07040;
  padding-left: 26px;
}

/* ══════════════════════════════
   미디어 쿼리
══════════════════════════════ */
@media screen and (max-width:1023px) {
  #content .guest_inner, #content>.inner { padding: 0 40px; }
  .post-header { padding: 40px; }
}

@media screen and (max-width:767px) {
  #header .mobile-menu { top: 10px; left: 11px; }
  #header .menu { padding: 84px 20px 189px; }
  #header .menu .social-link, #header .menu p { left: 20px; }
  #header h1 { padding: 15px 62px; line-height: 1.25; }
  #header h1 a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #header .search { top: 10px; right: 1px; }
  #header .search.on {
    position: absolute; top: 60px; left: 0; right: auto; z-index: 100;
    width: 100%; padding: 10px 18px; border: 0; background-color: #fff; box-sizing: border-box;
  }
  #header .search.on input { border-bottom: 1px solid #000; }
  #header .search.on button { top: -50px; right: 1px; }
  #content .guest_inner, #content>.inner { padding: 0; }
  .post-header { padding: 20px 12px; }
  .post-item a { min-height: 0; }
  .post-item .thum { max-width: none; margin-left: 0; }
  .post-item .thum img { width: 100%; height: auto; margin: 0; }
  .post-item .title { line-height: 1.2; }
  .post-item .excerpt { -webkit-line-clamp: 2; }
  .post-type-thumbnail .post-item { width: 50% !important; margin-bottom: 20px; padding: 0 !important; box-sizing: border-box; }
  .post-type-thumbnail .post-item:nth-child(2n+1) { clear: both !important; }
  .pagination { padding: 0 18px; }
  .pagination a { display: none; }
  .pagination .current { display: block; font-size: 0.875em; line-height: 50px; }
  .pagination .prev { display: block; float: left; margin: 0; }
  .pagination .next { display: block; float: right; margin: 0; }
  .custom-nav { display: flex !important; width: 100%; }
  .custom-nav > ul > li > a { padding: 13px 16px; font-size: 12px; }
  .custom-nav .has-sub .sub-nav {
    position: fixed; left: 0; right: 0;
    border-left: none; border-right: none;
  }
  .custom-nav .has-sub .sub-nav { display: none !important; }
}