body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
h1, h2, h3, h4, h5, h6, p, ul, body {
  margin: 0;
}
input {
  -webkit-appearance: none;
  padding: 0;
}
ul, ol, dl {
  padding: 0;
}
main {
  display: block;
}
img {
  max-width: 100%;
}

code {
  color: #d63384;
  font-size: 16px;
  line-height: 24px;
  font-family: initial;
}
pre > code {
  display: block;
  background-color: #555;
  padding: 16px;
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  border-radius: 8px;
  font-family: initial;
}
blockquote {
  font-family: initial;
  margin: 0 !important;
}

table[data-ke-style], #tt-body-page table[data-ke-style] {
  margin: 0;
}

/* 애드센스 */
.revenue_unit_wrap {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
* + .revenue_unit_wrap {
  margin-top: 16px !important;
}
.adsbygoogle {
  margin-top: 0;
  margin-bottom: 16px;
}
:not(script) + .adsbygoogle {
  margin-top: 16px;
}

.container {
  background-color: #ffffff;
  margin: 0 auto;
  max-width: 540px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

/* 사이드 메뉴 */
.side-menu {
  display: none;
  z-index: 10001;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.side-menu__inner {
  background-color: #fff;
  width: 280px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
}
.side-menu__close-container {
  display: flex;
  justify-content: end;
  align-items: center;
  box-sizing: border-box;
  min-height: 64px;
  font-size: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.side-menu__close {
  width: 24px;
  height: 24px;
}

/* 카테고리 */
.size-menu__content a {
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
}
.tt_category, .category_list, .sub_category_list {
  list-style: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
.category_list li {
  padding: 16px 0;
}
.category_list > li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.category_list > li > a {
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
}
.sub_category_list > li {
  padding: 8px 0 0;
}
.sub_category_list > li > a {
  font-size: 14px;
  line-height: 22px;
}
.link_tit {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  width: 100%;
  display: block;
  padding-bottom: 16px;
  font-size: 18px;
  line-height: 29px;
  font-weight: bold;
}

/* 헤더 */
.header {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.header__logo-link {
  text-decoration: none;
  font-size: 0;
  line-height: 0;
}
.header__logo-image {
  width: auto;
  max-width: 100%;
  height: 31px;
}
.header__hamburger-menu {
  font-size: 0;
}
.header__hamburger-menu img {
  width: 24px;
  height: 24px;
}

/* 메인 */
.main {
  min-height: 85vh;
}

/* 글 리스트 */
.posts__post {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background-color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.posts > .posts_post:last-child {
  margin-bottom: 0;
}
.posts__title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.posts__description {
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 44px;
}
.posts__image {
  width: 100px;
  height: 100px;
  border-radius: 4px;
}
.posts__post-info {
  width: 100%;
  flex: 1;
  margin-right: 16px;
}

/* 본문 세부 정보 */
.content-info {
  background-color: #fff;
  width: 100%;
  margin: -16px -16px 0;
  padding: 16px 16px 0 16px;
}
.content-info::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
  border-top: 16px solid #fff;
}
.content-info__category {
  padding: 4px 8px;
  background-color: #F5F5F5;
  border-radius: 4px;
  margin-right: 8px;
  text-decoration: none;
}

/* 모바일 내 목차스타일*/
.toc {
  display: none;
  background-color: #fff;
  width: 100%;
  margin: -1px -16px 16px;
  border-top: 16px solid #E9E9E9;
}
.toc__title {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.toc__list {
  list-style: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
.toc__list > .toc__item {
  margin-bottom: 8px;
}
.toc__list > .toc__item:last-child {
  margin-bottom: 0;
}
.toc__item--parent a {
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.87);
  word-break: keep-all;
  display: block;
}
.toc__item--child a {
  text-decoration: none;
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.3);
}

/* 관리자 본문 관리 */
.content-info__controller {
  display: none;
  text-decoration: none;
}

/* 보호글 */
.protected-form {
  display: flex;
  align-items: center;
  justify-content: center;
}
.protected-form__input {
  flex: 1;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  outline: none;
  border-radius: 4px;
  box-sizing: border-box;
  max-height: 40px;
}
.protected-form__input::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-size: inherit;
  line-height: inherit;
}
.protected-form__submit-btn {
  width: 109px;
  padding: 8px 0;
  border-radius: 4px;
  margin-left: 16px;
  border: none;
  outline: none;
  cursor: pointer;
}

/* 이전 글, 다음 글 */
.similar-posts__item {
  z-index: 10001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.similar-posts__title {
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 48px;
}
.similar-posts__image {
  width: 74px;
  height: 74px;
  background-size: 74px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}
.similar-posts__info {
  flex: 1;
  margin-right: 16px;
}

/* 본문 */
.content {
  word-break: break-all;
  width: 100%;
  margin: 0 -16px;
  background-color: #fff;
  color:rgba(0, 0, 0, 0.87);
}
.content ul, .content ol, .content dl {
  margin-inline-start: 32px;
}
.content p {
  font-size: 16px;
  line-height: 24px;
}
#tt-body-page .content h1, #tt-body-page .content h2, #tt-body-page .content h3, #tt-body-page .content h4, #tt-body-page .content h5, #tt-body-page .content h6 {
  font-weight: bold;
  margin: 16px 0;
}
.content h1, .content h2 {
  background-color: #F5F5F5;
  padding: 8px;
  border-left: 8px solid rgba(0, 0, 0, 0.87);
}
.content h4, .content h5, .content h6 {
  border-left: 4px solid rgba(0, 0, 0, 0.3);
  padding-left: 8px;
}
.content h1 {
  font-size: 28px;
  line-height: 41px;
}
.content h2 {
  font-size: 26px;
  line-height: 39px;
}
.content h3 {
  font-size: 22px;
  line-height: 32px;
  border-left: 4px solid rgba(0, 0, 0, 0.87);
  padding-left: 8px;
}
.content h4 {
  font-size: 20px;
  line-height: 32px;
}
.content h5 {
  font-size: 16px;
  line-height: 24px;
}
.content h6 {
  font-size: 14px;
  line-height: 22px;
}
.content figure.imageblock {
  font-size: 0;
  margin-bottom: 0;
}
.content figure figcaption {
  padding-top: 8px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 12px;
  line-height: 19px;
}
hr[data-ke-style], #tt-body-page hr[data-ke-style] {
  margin: 8px auto;
}
.container_postbtn {
  padding: 32px 0 16px !important;
}
.another_category {
  margin: 16px 0 !important;
}
.another_category h4 {
  line-height: inherit;
  border-left: none;
}
figure[data-ke-type='opengraph'], #tt-body-page figure[data-ke-type='opengraph'] {
  margin: 4px 0;
}

/* 태그 */
.tags {
  padding-top: 16px;
  font-size: 0;
  word-break: keep-all;
}
.tags > a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 19px;
  color: rgba(0, 0, 0, 0.6);
  background-color: #F5F5F5;
  border-radius: 8px;
  margin-right: 8px;
  margin-bottom: 8px;
}
.tags > a::before {
  content: "#";
}
.tags > a:last-child {
  margin-right: 0;
}

/* 댓글 */
.comments {
  background-color: #fff;
  width: 100%;
  margin: 0 -16px;
}
.comments__header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.comments__name > a {
  text-decoration: none;
  color: inherit;
}
.comments__control {
  margin-left: 8px;
}
.comments__control > a {
  text-decoration: none;
  color: inherit;
}
.comments__control > a::after {
  content: "\00B7";
  margin: 0 4px;
}
.comments__control > a:last-child::after {
  content: "";
}
.comments__list {
  list-style: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
.comments__list > .comments__item {
  margin-bottom: 16px;  
}
.comments__list > .comments__item:last-child {
  margin-bottom: 0;
}
.comments__sub-item {
  background-color: #F5F5F5;
  border-radius: 4px;
  margin-left: 16px;
  margin-bottom: 16px;
}
.comments__list > .comments__sub:last-child {
  margin-bottom: 0;
}
.comments__info > a {
  margin: 0 -8px 0 6px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.6);
}
.comments__info > a::after {
  content: "\00B7";
  margin: 0 4px;
}

/* 댓글 입력폼 */
.comment-write {
  position: relative;
  text-align: right;
}
.comment-write__submit-btn {
  width: 109px;
  padding: 8px 0;
  border-radius: 4px;
  margin-left: 16px;
  border: none;
  outline: none;
  cursor: pointer;
}
.comment-write__textarea {
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: block;
  width: 100%;
  max-height: 64px;
  border-radius: 4px;
  box-sizing: border-box;
  outline: none;
  resize: none;
}
.comment-write__textarea::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-size: inherit;
  line-height: inherit;
}
.comment-write__secret-form {
  position: absolute;
  right: 125px;
  bottom: 0;
}
.comment-write__secret-checkbox {
  display: none;
}
.comment-write__secret-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 109px;
  padding: 8px 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.3);
}
.comment-write__secret-icon {
  width: 24px;
  height: 24px;
}
.comment-write__secret-checkbox:checked + .comment-write__secret-label {
  color: rgba(0, 0, 0, 0.87);
}
.comment-write__secret-checkbox:checked + .comment-write__secret-label > img {
  content: url("./images/ic_lock.png");
}
.comment-write__guest-form {
  display: flex;
  align-items: center;
  justify-content: center;
}
.comment-write__guest-form > input {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  box-sizing: border-box;
  width: calc(50% - 8px);
  margin-right: 16px;
}
.comment-write__guest-form > input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}
.comment-write__guest-form > input:last-child {
  margin-right: 0;
}

/* 페이지네이션 */
.pagination {
  border-radius: 8px;
  background-color: #fff;
  position: relative;
}
.pagination__number-list {
  text-align: center;
  word-break: break-all;
  margin: 0 40px;
  max-height: 24px;
  overflow: hidden;
}
.pagination__number {
  text-decoration: none;
  margin-right: 16px;
}
.pagination__number-list > .pagination__number:last-child {
  margin-right: 0;
}
.pagination__number .selected {
  font-weight: bold;
}
.pagination__more-prev {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}
.pagination__more-next {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}
.pagination__more-prev img, .pagination__more-next img {
  width: 24px;
  height: 24px;
}
.no-more-prev, .no-more-next {
  display: none;
}

/* 검색 */
.search { 
  position: relative;
  background-color: #fff;
  border-radius: 8px;
}
.search__input {
  width: calc(100% - 40px);
  background-color: transparent;
  border: none;
  outline: none;
}
.search__input::placeholder {
  color: rgba(0, 0, 0, 0.3);
}
.search__button {
  width: 24px;
  height: 24px;
  background-image: url(./images/ic_search.png);
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  cursor: pointer;
}

/* 푸터 */
.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin: 16px 16px 0;
  padding: 16px 0;
}
.footer__sitemap, .footer__sns {
  list-style: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
}
.footer__site, .footer__sns-site {
  display: inline-block;
}
.footer__site::after, .footer__sns-site::after {
  content: "\00B7";
  font-weight: normal;
}
.footer__sitemap > .footer__site:last-child::after, .footer__sns > .footer__sns-site:last-child::after {
  content: "";
}
.footer__site a, .footer__sns-site a {
  text-decoration: none;
  color: inherit;
}

/* H 태그 스타일 */
.headline-1 {
  font-size: 20px;
  line-height: 31px;
}
.headline-2 {
  font-size: 26px;
  line-height: 39px;
}
.headline-3 {
  font-size: 22px;
  line-height: 34px;
}
.headline-4 {
  font-size: 20px;
  line-height: 32px;
}
.subtitle-1 {
  font-size: 16px;
  line-height: 24px;
}
.subtitle-2 {
  font-size: 14px;
  line-height: 22px;
}
.body-1 {
  font-size: 16px;
  line-height: 24px;
}
.body-2 {
  font-size: 14px;
  line-height: 22px;
}
.caption-1 {
  font-size: 12px;
  line-height: 19px;
}
.caption-2 {
  font-size: 10px;
  line-height: 16px;
}

/* 스타일 여백 */
.m-4 {
  margin: 16px;
}
.mt-4 {
  margin-top: 4px;
}
.mb-1 {
  margin-bottom: 4px;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-3 {
  margin-bottom: 12px;
}
.mb-4 {
  margin-bottom: 16px;
}
.mb-5 {
  margin-bottom: 20px;
}
.mb-6 {
  margin-bottom: 24px;
}
.mb-7 {
  margin-bottom: 28px;
}
.mb-8 {
  margin-bottom: 32px;
}
.mr-1 {
  margin-right: 4px;
}
.pb-1 {
  padding-bottom: 4px;
}
.pb-2 {
  padding-bottom: 8px;
}
.pb-3 {
  padding-bottom: 12px;
}
.pb-4 {
  padding-bottom: 16px;
}
.p-1 {
  padding: 4px;
}
.p-2 {
  padding: 8px;
}
.p-4 {
  padding: 16px;
}

/* 색상코드 */
.color-black {
  color: #000;
}
.color-black-high-emphasis {
  color: rgba(0, 0, 0, 0.87);
}
.color-black-medium-emphasis {
  color: rgba(0, 0, 0, 0.6);
}
.color-black-disabled {
  color: rgba(0, 0, 0, 0.3);
}
.color-white {
  color: #fff;
}
.color-white-high-emphasis {
  color: rgba(255, 255, 255, 0.87);
}
.color-white-medium-emphasis {
  color: rgba(255, 255, 255, 0.6);
}
.color-white-disabled {
  color: rgba(255, 255, 255, 0.3);
}

/* 굵기 */
.fw-bold {
  font-weight: bold;
}
.fw-normal {
  font-weight: normal;
}

/* 로딩 */
@-moz-keyframes spin {
  from {
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  to {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@-o-keyframes spin {
  from {
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  to {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@-webkit-keyframes spin {
  from {
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  to {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
@keyframes spin {
  from {
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
  }
  to {
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
  }
}
.loading-spinner {
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  position: fixed;
  display: block;
  opacity: 1;
  -ms-transition: opacity 1s;
  -webkit-transition: opacity 1s;
  -moz-transition: opacity 1s;
  transition: opacity 1s;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 11000;
  pointer-events: none;
}
.loading-spinner__image {
  animation-name: spin;
  animation-duration: 800ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  position: absolute;
  top: calc(50% - 50px);
  left: calc(50% - 50px);
  pointer-events: none;
}

/* 공감 댓글 유도 */
.toast {
  display: none;
  width: fit-content;
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  padding: 16px 32px;
  z-index: 10002;
  word-break: keep-all;
}

/* 스크롤 탑 */
.scroll-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #E9E9E9;
  border-radius: 40px;
  position: fixed;
  bottom: 120px;
  right: 50px;
  z-index: 10000;
}
.scroll-to-top__image {
  width: 24px;
  height: 24px;
}

/* PC 왼쪽 사이드바 */
.pc-left-side {
  display: none;
  position: absolute;
  top: 300px;
  left: calc(50% - 590px);
  width: 300px;
  text-align: center;
}
.pc-left-side > .module {
  margin-bottom: 16px;
}
.pc-left-side > .module:last-child {
  margin-bottom: 0;
}
.pc-left-side__adsense-text {
  font-size: 0;
  margin-bottom: -16px;
}

@media screen and (max-width: 516px) {
  .scroll-to-top {
    background-color: #fff;
    bottom: 100px;
    right: 40px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  }
}

@media screen and (min-width: 1244px) {
  .pc-left-side {
    display: block;
  }
}

@media screen and (min-width: 1030px) {
  .content-info__controller {
    display: inline-block;
  }
  .content-info__controller::before {
    content: "\00B7";
    margin-right: 4px;
  }

  .toc {
    position: fixed;
    top: 300px;
    right: calc(50% - 500px);
    width: 160px;
    border-radius: 4px;
    background: #E9E9E9;
    margin: 0;
    border: 0;
  }
  .toc__title {
    display: none;
  }
  .toc__item--parent a {
    font-weight: normal;
    color: rgba(0, 0, 0, 0.3);
  }
  a.toc__item--active {
    font-weight: bold !important;
    color: rgba(0, 0, 0, 0.87)  !important;
  }
}

@media screen and (min-width: 1900px) {
  .similar-posts__item {
    display: none;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: 50%;
    transform: translateY(50%);
    margin: 0;
    min-width: 264px;
  }
  .similar-posts__item--prev {
    left: 32px;
  }
  .similar-posts__item--next {
    right: 32px;
  }
  .similar-posts__title {
    width: 174px;
  }
}
