@charset "utf-8";

/* ===== 기본 ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
  font-family: "Nanum Myeongjo", serif;
  color: #3a3a3a;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
button, input { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 100vh; }

/* ===== 좌측 메뉴 ===== */
.side {
  padding: 64px 28px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.nav a { display: block; padding: 9px 0; color: #555; font-size: 14px; letter-spacing: 1px; transition: color .2s; }
.nav a:hover { color: #111; }

/* 메뉴 종류 선택 (스킨 옵션) */
.menu-menu .nav-category { display: none; }
.menu-category .nav-menu { display: none; }

/* 카테고리 목록 */
.nav-category .tt_category > li > a.link_tit { color: #999; font-size: 12px; }
.nav-category .category_list { margin-top: 4px; }
.nav-category .sub_category_list { padding-left: 12px; }
.nav-category .sub_category_list a { font-size: 13px; color: #777; padding: 6px 0; }
.nav-category .c_cnt { font-size: 11px; color: #c4c4c4; margin-left: 2px; }

/* ===== 본문 영역 ===== */
.main { padding: 64px 56px 80px; min-width: 0; border-left: 1px solid #f0f0f0; }
.content { max-width: 720px; }

/* ===== 메인(홈) 편지봉투 ===== */
.cover { display: none; }
#tt-body-index .cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - 144px);
}
#tt-body-index .content { display: none; }

.stage { position: relative; width: 320px; height: 370px; }
.shd { position: absolute; left: 40px; top: 330px; width: 260px; height: 20px; }
.env { position: absolute; left: 30px; top: 170px; width: 260px; height: 170px; cursor: pointer; outline: none; }
.env > * { position: absolute; left: 0; top: 0; }
.env-back { z-index: 1; }
.card {
  z-index: 2; left: 83px !important; top: 12px !important;
  width: 94px; height: 146px; background: #fff;
  border: 1.2px solid #111; border-radius: 7px;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.env.card-up .card { transform: translateY(-126px); cursor: pointer; }
.env.card-up .card:hover { transform: translateY(-134px); }
.ix { position: absolute; color: #f00; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1; text-align: center; }
.ix-top { top: 6px; left: 7px; }
.ix-bottom { bottom: 6px; right: 7px; transform: rotate(180deg); }
.card-heart { position: absolute; left: 33px; top: 58px; }
.env-pocket { z-index: 3; pointer-events: none; }
.env-flap { z-index: 4; transform-origin: 0 0.5px; transition: transform .55s cubic-bezier(.4, .1, .2, 1); }
.env.flap-open .env-flap { transform: scaleY(-1); }
.env.flap-low .env-flap { z-index: 1; }
.seal { transition: opacity .3s; }
.env.flap-open .seal { opacity: 0; }
.clover { position: absolute; left: 10px; top: 262px; z-index: 5; transform: rotate(-18deg); pointer-events: none; }
.tagline { margin: 18px 0 0; font-size: 14px; color: #8a8a8a; letter-spacing: 1px; text-align: center; }

/* ===== 공지 팝업 ===== */
.notice-pop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(255, 255, 255, .85);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.notice-pop.on { display: flex; }
.notice-letter {
  background: #fff; border: 1px solid #dcdcdc; border-radius: 4px;
  width: 100%; max-width: 380px; padding: 28px 30px 22px;
  font-size: 14px; line-height: 1.9;
}
.np-heart { text-align: center; color: #f00; font-size: 15px; }
.np-title { text-align: center; font-size: 16px; font-weight: 400; color: #222; margin: 4px 0 16px; }
.np-body { color: #555; max-height: 50vh; overflow-y: auto; word-break: keep-all; }
.np-body img { display: block; margin: 10px auto; }
.np-body p { margin: 0 0 8px; }
.np-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.np-more { font-size: 12px; color: #999; }
.np-more:hover { color: #111; }
.np-close, .protected-form button {
  background: #fff; border: 1px solid #d6d6d6; border-radius: 3px;
  padding: 6px 14px; font-size: 12px; color: #555; cursor: pointer;
}
.np-close:hover, .protected-form button:hover { border-color: #999; color: #111; }

/* ===== 글 목록 공통 ===== */
.list-title { font-size: 19px; font-weight: 400; color: #222; margin: 0 0 26px; }
.list-title::before { display: block; font-size: 11px; color: #aaa; letter-spacing: 3px; margin-bottom: 8px; content: "LIST"; }
.list.album .list-title::before { content: "ALBUM"; }
.guest .list-title::before { content: "GUESTBOOK"; }
.list-count { font-size: 12px; color: #bbb; }
.list-empty { color: #aaa; font-size: 13px; padding: 40px 0; text-align: center; }
.item-title { font-weight: 400; color: #222; }
.item-date { font-size: 11px; color: #b5b5b5; letter-spacing: 1px; white-space: nowrap; }

/* 리스트형 (기본) */
.list .item { border-top: 1px solid #efefef; }
.list .item:last-child { border-bottom: 1px solid #efefef; }
.list .item-link { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; }
.list .item-thumb { display: none; }
.list .item-text { min-width: 0; }
.list .item-title { display: block; font-size: 15px; transition: color .2s; }
.list .item-link:hover .item-title { color: #8c1c24; }
.list .item-summary {
  margin: 6px 0 0; font-size: 12px; color: #999; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* 앨범형 */
.list.album .list-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
.list.album .item, .list.album .item:last-child { border: 0; }
.list.album .item-link { display: block; padding: 0; }
.list.album .item-thumb {
  display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid #ececec; transition: transform .35s ease, border-color .35s;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='-12 -12 24 24'%3E%3Cg fill='%23d6d6d6'%3E%3Cellipse cx='0' cy='4' rx='4.4' ry='3.7'/%3E%3Cellipse cx='-6.1' cy='-0.6' rx='1.7' ry='2.1' transform='rotate(-20 -6.1 -0.6)'/%3E%3Cellipse cx='-2.5' cy='-4' rx='1.7' ry='2.2'/%3E%3Cellipse cx='2.5' cy='-4' rx='1.7' ry='2.2'/%3E%3Cellipse cx='6.1' cy='-0.6' rx='1.7' ry='2.1' transform='rotate(20 6.1 -0.6)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center;
}
.list.album .item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.list.album .item-link:hover .item-thumb { transform: translateY(-4px); border-color: #cfcfcf; }
.list.album .item-title { display: block; font-size: 13px; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list.album .item-summary { display: none; }
.list.album .item-date { display: block; margin-top: 3px; }

/* 보호글 (목록) */
.item.is-protected .item-summary { color: #bbb; }
.list.album .item.is-protected .item-thumb img { display: none; }

/* ===== 보호글 (비밀번호 화면) ===== */
.protected { text-align: center; padding: 40px 0; }
.protected-title { margin: 22px 0 0; font-size: 12px; color: #aaa; letter-spacing: 1px; }
.protected-msg { margin: 8px 0 4px; font-size: 16px; color: #222; }
.protected-sub { margin: 0 0 18px; font-size: 12px; color: #999; }
.protected-form { display: flex; gap: 8px; justify-content: center; }
.protected-form input {
  width: 190px; text-align: center; padding: 7px 10px; font-size: 13px;
  border: 1px solid #dcdcdc; border-radius: 3px; outline: none;
}
.protected-form input:focus { border-color: #999; }

/* ===== 글 화면 ===== */
.post-cat { font-size: 11px; color: #aaa; letter-spacing: 3px; margin-bottom: 8px; }
.post-title { font-size: 23px; font-weight: 400; color: #222; margin: 0 0 10px; line-height: 1.5; word-break: keep-all; }
.post-date { font-size: 11px; color: #b5b5b5; letter-spacing: 1px; }
.post-admin { margin-top: 8px; font-size: 11px; }
.post-admin a { color: #bbb; margin-right: 8px; }
.post-admin a:hover { color: #111; }
.post-line { height: 1px; background: #efefef; margin: 28px 0; }
.post-body { font-size: 15px; line-height: 2; color: #444; word-break: keep-all; overflow-wrap: break-word; }
.post-body p { margin: 0 0 1em; }
.post-body img { display: block; margin: 1.4em auto; }
.post-body blockquote { border-left: 1px solid #ccc; margin: 1.6em 0; padding: 0 0 0 18px; color: #777; }
.post-body a { color: #8c1c24; border-bottom: 1px solid #e8c9cb; }
.post-body hr { border: 0; height: 1px; background: #efefef; margin: 2em 0; }
.post-tags { margin-top: 26px; font-size: 12px; color: #aaa; }
.post-tags a { margin-right: 8px; }
.post-tags a::before { content: "#"; }
.post-paw { text-align: center; margin: 44px 0 30px; }
.post-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  font-size: 12px; color: #999; padding: 14px 0; margin-bottom: 34px;
  border-top: 1px solid #efefef; border-bottom: 1px solid #efefef;
}
.post-nav a:hover { color: #111; }
.pn-prev { text-align: left; }
.pn-list { text-align: center; }
.pn-next { text-align: right; }
.pn-prev a, .pn-next a { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.post-index { display: flex; justify-content: space-between; border-top: 1px solid #efefef; padding: 14px 0; }

/* ===== 페이지 번호 ===== */
.paging { text-align: center; margin-top: 40px; font-size: 12px; color: #aaa; }
.paging a { display: inline-block; padding: 2px 6px; margin: 0 3px; }
.paging a:hover { color: #111; }
.paging .selected { color: #111; border-bottom: 1px solid #111; }
.paging a.no-more-prev, .paging a.no-more-next { visibility: hidden; }

/* ===== 방명록 ===== */
.guest { font-size: 13px; }

/* ===== 모바일 ===== */
@media (max-width: 760px) {
  .wrap { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid #f0f0f0; padding: 18px 20px; }
  .nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
  .nav-category .tt_category > li > a.link_tit { display: none; }
  .nav-category .category_list { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; }
  .nav-category .sub_category_list { display: none; }
  .main { padding: 36px 20px 60px; border-left: 0; }
  #tt-body-index .cover { min-height: calc(100vh - 140px); }
  .stage { transform: scale(.9); }
  .list.album .list-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
