@charset "utf-8";




/* 상위 css 초기화 */
#container {
  all: unset; 
}

#container_wr {
  width: 100%;
}


/* ---------- 공통 헤더 ---------- */
.hm-header {
  height: 64px;
  background: #fdfaf2;
  border-bottom: 1px solid #e8e2d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 2000;
}

/* 메뉴 버튼 */
.hm-menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b4e3e;
  cursor: pointer;
  padding: 4px;
}

.hm-menu-icon {
  display: inline-block;
  font-size: 28px;
}

/* 타이틀 */
.hm-title {
  margin: 0;
  font-size: 22px;
  color: #5b4437;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* 프로필 이미지 */
.hm-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  box-shadow: 0 0 0 2px #d6c8ba;
}



/* ================================
      좌측 슬라이드 메뉴
================================== */

.hm-side-menu {
  position: fixed;
  top: 0;
  left: -260px; /* 처음에는 화면 밖 */
  width: 260px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.25s ease;
  z-index: 3000;
  padding-top: 80px; /* 헤더 높이만큼 여유 */
}

.hm-side-menu.open {
  left: 0; /* 열릴 때 왼쪽에서 등장 */
}

.hm-side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hm-side-menu ul li {
  border-bottom: 1px solid #eee;
}

.hm-side-menu ul li a {
  display: block;
  padding: 15px 20px;
  color: #444;
  text-decoration: none;
  font-size: 16px;
}

.hm-side-menu ul li a:hover {
  background: #f1f1f1;
}

/* 오버레이 (메뉴 열렸을 때 배경 어둡게) */
.hm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 2500;
}

.hm-overlay.show {
  display: block;
}




/* 좌측 슬라이드 메뉴 */
.side-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #2e2e2e;
  color: white;
  padding: 50px 30px;
  box-sizing: border-box;
  transition: left 0.35s ease;
  z-index: 999999 !important;   /* 최상위 */
  border-right: 1px solid #444;
}

.side-menu.open {
  left: 0;
}

.side-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #ffffff;
  letter-spacing: 1px;
}

.side-title a {
  color: #ffffff;
  text-decoration: none;
}

/* 메뉴 리스트 */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-list a {
  text-decoration: none;
  font-size: 17px;
  color: #ececec;
  padding: 8px 0;
  border-bottom: 1px solid #444;
  transition: color 0.2s;
}
.menu-list a:hover {
  color: #ffffff;
}

/* 메뉴 닫기 버튼 */
.close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #cfcfcf;
}

/* 오버레이 */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 150;
}
.overlay.show {
  display: block;
}


/* 히어로 섹션 */
.hero {
  width: 100%;
  text-align: center;
  padding: 80px 20px;
  background: #f6f2eb;
  box-sizing: border-box;
}

.hero-inner h1 {
  font-size: 28px;
  font-weight: 700;
  color: #5a4a3a;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-inner p {
  font-size: 16px;
  color: #7b6a57;
  margin-bottom: 26px;
}

.hero-btn {
  padding: 12px 22px;
  background: #7a624d;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-btn:hover {
  background: #6a5644;
}

/* 섹션 공통 제목 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #5a4a3a;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  letter-spacing: -0.3px;
}

/* 카드 섹션 */
.core-section {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 카드 그리드 */
.core-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

/* 카드 디자인 */
.core-card {
  background: #fffdf8;
  border: 1px solid #e1d6c8;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0px 4px 14px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.core-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 6px 18px rgba(0,0,0,0.07);
}

/* 아이콘 */
.core-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

/* 카드 제목 */
.core-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #6a5544;
  margin-bottom: 8px;
}

/* 카드 설명 */
.core-card p {
  font-size: 14px;
  color: #7c6f63;
  line-height: 1.5;
}




/* 최근 글 섹션 */
.recent-section {
  padding: 20px;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* 그리드 */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* 개별 카드 */
.recent-card {
  background: #fffdf8;
  border: 1px solid #e1d6c8;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0px 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.recent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.09);
}

/* 썸네일 */
.thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* 내용 */
.content {
  padding: 18px;
}

.content h3 {
  font-size: 17px;
  color: #6a5544;
  margin: 0 0 10px;
  line-height: 1.35;
}

.content p {
  font-size: 14px;
  color: #7c6f63;
  line-height: 1.45;
  height: 40px;
  overflow: hidden;       /* 2줄 요약 효과 */
  display: -webkit-box;
  -webkit-line-clamp: 2;  /* 2줄 */
  -webkit-box-orient: vertical;
}

.date {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #9b8e83;
}



/* 푸터 전체 */
.footer {
  margin-top: 80px;
  background: #f2ede6;
  padding: 40px 20px 30px;
  color: #6a5544;
  border-top: 1px solid #d8c7b8;
  box-sizing: border-box;
}

/* 내부 레이아웃 */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* About */
.footer-about h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
  color: #5a4a3a;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.45;
  max-width: 250px;
  color: #7c6f63;
}

/* 메뉴 링크 */
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-menu a {
  text-decoration: none;
  color: #7c6f63;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: #5a4a3a;
}

/* 하단 카피라이트 */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #9d9087;
}




/* About Me Section */
.about-section {
  padding: 60px 20px;
  background: #faf7f2;
  box-sizing: border-box;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

/* 사진 */
.about-photo {
  flex: 1 1 280px;
  text-align: center;
}

.about-photo img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #d8c7b8;
  box-shadow: 0 0 0 6px #f2ede6 inset;
}

/* 텍스트 */
.about-text {
  flex: 2 1 400px;
}

.about-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: #5a4a3a;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #6a5b4c;
}

.about-text .intro {
  font-size: 17px;
  font-weight: 500;
  color: #5f4d3f;
}

/* 태그 */
.about-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tags span {
  background: #f2ede6;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #6a5544;
  border: 1px solid #d8c7b8;
}



.hm-signin-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #ffffff;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hm-signin-btn:hover {
  background: #f5f5f5;
  border-color: #c4c4c4;
}

.hm-signin-btn:active {
  background: #e9e9e9;
  border-color: #bcbcbc;
}


.hm-title a {
  color: #5b4437;
  text-decoration: none;
}

#container_title {
  text-align: center;
}

#wrapper {
  padding: 20px;
}


@media (max-width: 768px) {
  /* 전체 폭 제한 해제 */
  #hd, #wrapper, #ft,
  #hd_pop, #hd_wrapper, #tnb .inner,
  #gnb .gnb_wrap, #container_wr, #ft_wr {
    width: 100% !important;
    min-width: auto !important;
    padding: 0;
    box-sizing: border-box;
  }

  #wrapper {
    padding: 10px;
  }

}