@charset "utf-8";

/* =========================================================
   OPTIJUNG Tistory Skin
   ---------------------------------------------------------
   1. 색 · 글꼴 기본값
   2. 공통 (여백, 버튼)
   3. 헤더 · 모바일 메뉴
   4. 홈 커버 (첫 화면 · 과정 · 상담 분야 · 최신 글 · 오시는 길)
   5. 글 목록 · 페이지 번호
   6. 글 본문 · 예약 박스 · 관련 글
   7. 푸터 · 모바일 하단 바
   8. 반응형
   ========================================================= */

/* 1. 색 · 글꼴 기본값 -------------------------------------- */
:root {
  --navy: #0B1F58;        /* 로고 글자색 · 주색 */
  --text: #33384D;        /* 본문 */
  --muted: #6A7085;       /* 보조 글자 */
  --line: #E3E7F0;        /* 구분선 */
  --tint: #F4F6FB;        /* 섹션 배경 */
  --blue: #2F6FB5;        /* 링크 · 카테고리 */
  --white: #FFFFFF;
  --grad: linear-gradient(90deg, #56C0E6, #D9496F, #EBC86E); /* 로고 색 포인트 */

  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-head: "Hahmlet", "Noto Serif KR", Georgia, serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --inner: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* 2. 공통 ------------------------------------------------ */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

.inner {
  width: 100%;
  max-width: calc(var(--inner) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 15.5px; }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: #16307A; }
.btn-line { border-color: #C3CADB; color: var(--navy); background: var(--white); }
.btn-line:hover { border-color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--tint); }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.sec-title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  text-wrap: balance;
}
.more { font-size: 14px; color: var(--muted); }
.more::after { content: " →"; }
.more:hover { color: var(--navy); }

.search { display: flex; gap: 8px; }
.search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #D5DAE6;
  border-radius: 8px;
  background: var(--white);
}
.search button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
}

/* 3. 헤더 · 모바일 메뉴 ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.wordmark {
  font-family: "Montserrat", var(--font-body);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .01em;
  color: var(--navy);
  line-height: 1;
}
.wordmark small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: #4D4F5C;
  text-align: right;
}

/* [##_blog_menu_##] 가 만드는 ul > li > a */
.gnb ul { display: flex; gap: 28px; }
.gnb a {
  display: block;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 2px solid transparent;
}
.gnb a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

.drawer { display: none; border-top: 1px solid var(--line); background: var(--white); }
.drawer.is-open { display: block; }
.drawer-inner { display: grid; gap: 22px; padding-block: 20px 28px; }
.drawer-menu ul { display: grid; }
.drawer-menu a {
  display: block;
  padding-block: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.drawer-label { font-size: 12.5px; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }

/* [##_category_list_##] 가 만드는 구조 */
.drawer-category .tt_category > li > a { display: none; }       /* '분류 전체보기' 숨김 */
.drawer-category .category_list > li { padding-block: 4px; }
.drawer-category .link_item { font-weight: 600; color: var(--text); }
.drawer-category .sub_category_list { padding: 4px 0 4px 14px; display: grid; gap: 2px; }
.drawer-category .link_sub_item { font-size: 14.5px; color: var(--muted); }
.drawer-category .c_cnt { display: none; }

/* 4. 홈 커버 --------------------------------------------- */
.cover { padding-block: 64px; }
.cover + .cover { border-top: 1px solid var(--line); }

/* 첫 화면 */
.cover-hero { padding-block: 72px 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); }
.hero-title {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.28;
  color: var(--navy);
  text-wrap: balance;
}
.hero-desc { margin-top: 18px; max-width: 46ch; font-size: 17px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

.eye-chart {
  display: grid;
  gap: 14px;
  padding: 30px 28px 18px;
  background: var(--tint);
  border-radius: 16px;
  color: var(--navy);
}
.eye-chart .row { display: flex; justify-content: center; align-items: center; gap: calc(var(--s) * .7); }
.eye-chart svg { width: var(--s); height: var(--s); }
.eye-chart .r90 { transform: rotate(90deg); }
.eye-chart .r180 { transform: rotate(180deg); }
.eye-chart .r270 { transform: rotate(270deg); }
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed #C9CFDC;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* 상담 과정 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { display: grid; gap: 8px; align-content: start; padding-right: 22px; }
.step + .step { padding-left: 22px; border-left: 1px solid var(--line); }
.step-no { font-family: var(--font-mono); font-size: 12.5px; color: var(--blue); }
.step h3 { font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.45; }
.step p { font-size: 14.5px; color: var(--muted); }

/* 상담 분야 */
.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.field { display: grid; gap: 4px; padding: 22px 24px; background: var(--white); transition: background-color .2s; }
.field:hover { background: var(--tint); }
.field h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.field h3::after { content: "→"; font-weight: 400; color: #A7ADBF; transition: transform .2s, color .2s; }
.field:hover h3::after { color: var(--navy); transform: translateX(3px); }
.field p { font-size: 14.5px; color: var(--muted); }

/* 카드 (최신 글 · 글 목록 공통) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.card { display: grid; gap: 8px; align-content: start; }
.card-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #E6EEF9, #F3E6EE);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-cat { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--blue); }
.card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-thumb + .card-title { margin-top: 6px; }
.card:hover .card-title { text-decoration: underline; text-underline-offset: 3px; }
.card-summary {
  font-size: 14.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-date { font-size: 13px; color: #9197AB; font-variant-numeric: tabular-nums; }

/* 오시는 길 */
.cover-visit { background: var(--tint); }
.cover + .cover-visit { border-top: 0; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.visit-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.map-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, #E3E7F0 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, #E3E7F0 0 1px, var(--white) 1px 32px);
  font-family: "Montserrat", var(--font-body);
  font-weight: 800;
  letter-spacing: .12em;
  color: #C3CADB;
}
.visit-info { display: grid; gap: 20px; }
.info-list > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid #DCE1EC;
  font-size: 15px;
}
.info-list dt { color: var(--muted); }
.info-list dd { color: var(--text); }
.info-list a { color: var(--navy); font-weight: 600; }
.visit-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* 5. 글 목록 · 페이지 번호 ---------------------------------- */
.list-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 56px;
}
.list-title { font-family: var(--font-head); font-size: clamp(24px, 3vw, 32px); font-weight: 600; color: var(--navy); }
.list-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

.post-area:has(> *) { padding-block: 40px 64px; }
.post-area:has(> .card) {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

.paging {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-bottom: 72px;
  font-size: 15px;
}
.paging-nums { display: flex; gap: 4px; }
.paging-num, .paging-prev, .paging-next {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding-inline: 10px;
  border-radius: 999px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.paging-num:hover, .paging-prev:hover, .paging-next:hover { color: var(--navy); background: var(--tint); }
.paging .selected { color: var(--white); background: var(--navy); border-radius: 999px; display: inline-grid; place-items: center; min-width: 38px; height: 38px; }
.paging-num:has(.selected) { padding: 0; }
.no-more-prev, .no-more-next { visibility: hidden; }

/* 6. 글 본문 · 예약 박스 · 관련 글 -------------------------- */
.article { max-width: 720px; margin-inline: auto; }
.article-head { display: grid; gap: 12px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-cat { font-size: 14px; font-weight: 600; color: var(--blue); }
.article-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  text-wrap: balance;
}
.article-meta { font-size: 14px; color: var(--muted); }

/* 에디터로 쓴 본문 */
.entry-content { font-size: 17px; line-height: 1.9; color: var(--text); }
.entry-content p { margin-bottom: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--navy); line-height: 1.45; }
.entry-content h2 { font-family: var(--font-head); font-size: 25px; font-weight: 600; margin: 2em 0 .7em; }
.entry-content h3 { font-size: 21px; font-weight: 700; margin: 1.8em 0 .6em; }
.entry-content h4 { font-size: 18px; font-weight: 700; margin: 1.6em 0 .5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .3em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.entry-content blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--tint);
  border-left: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  color: var(--navy);
}
.entry-content hr { margin: 2.4em 0; border: 0; border-top: 1px solid var(--line); }
.entry-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--tint); color: var(--navy); }
/* 처방값 · 검사 수치: 에디터에서 '코드 블록'으로 넣으면 이 모양 */
.entry-content pre, .entry-content code { font-family: var(--font-mono); font-size: 14px; }
.entry-content pre {
  margin: 1.6em 0;
  padding: 14px 18px;
  background: var(--tint);
  border-radius: 8px;
  overflow-x: auto;
  color: var(--navy);
  white-space: pre;
}

.article-tags { margin-top: 36px; font-size: 14px; color: var(--muted); }
.article-tags a { color: var(--blue); }

.reserve-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 48px;
  padding: 24px 26px;
  border: 1px solid #D5DAE6;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.reserve-box::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.reserve-mark { width: 52px; height: 52px; object-fit: contain; }
.reserve-box:not(:has(.reserve-mark)) { grid-template-columns: 1fr auto; }
.reserve-title { font-size: 18px; font-weight: 700; color: var(--navy); }
.reserve-desc { margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.reserve-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.related { margin-top: 56px; }
.related-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.related-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-list a { display: grid; gap: 10px; }
.related-list .card-title { font-size: 15px; }

.comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }

.protected { max-width: 480px; margin: 40px auto; display: grid; gap: 10px; text-align: center; }
.protected-title { font-size: 20px; font-weight: 700; color: var(--navy); }
.protected-desc { color: var(--muted); margin-bottom: 8px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 14px; border: 1px solid #D5DAE6; border-radius: 999px; font-size: 14px; }
.tag-cloud a:hover { border-color: var(--navy); color: var(--navy); }

/* 7. 푸터 · 모바일 하단 바 ---------------------------------- */
.cta-band { background: var(--navy); color: #DCE2F2; }
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 44px;
}
.cta-title { font-family: var(--font-head); font-size: clamp(21px, 2.6vw, 26px); font-weight: 600; color: var(--white); text-wrap: balance; }
.cta-desc { margin-top: 4px; font-size: 15px; color: #AEB6D0; }
#tt-body-page .cta-band { display: none; }   /* 글 화면에는 예약 박스가 있으므로 숨김 */

.site-footer { background: var(--tint); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 32px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-info { display: grid; gap: 2px; }
.footer-name { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.copyright { font-size: 13px; }

.dock { display: none; }

/* 8. 반응형 ---------------------------------------------- */
@media (max-width: 960px) {
  .gnb { display: none; }
  .menu-toggle { display: flex; }
  .header-bar { height: 64px; }
  .brand-logo { height: 34px; }

  .hero-grid, .visit-grid { grid-template-columns: 1fr; gap: 36px; }
  .eye-chart { max-width: 420px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .step:nth-child(odd) { padding-left: 0; border-left: 0; }

  .fields, .card-grid, .post-area:has(> .card) { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 15px; padding-bottom: 60px; }   /* 하단 바 높이만큼 */
  .header-actions .btn-reserve { display: none; }   /* 하단 바에 예약 버튼이 있으므로 */

  .cover { padding-block: 48px; }
  .cover-hero { padding-block: 40px 48px; }
  .hero-desc { font-size: 16px; }
  .hero-cta .btn { flex: 1; }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .step, .step + .step { padding: 16px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }

  .fields { grid-template-columns: 1fr; }
  .field { padding: 18px 20px; }
  .card-grid, .post-area:has(> .card) { grid-template-columns: 1fr; gap: 28px; }
  .related-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .entry-content { font-size: 16px; }
  .reserve-box, .reserve-box:not(:has(.reserve-mark)) { grid-template-columns: 1fr; padding: 22px 20px; }
  .reserve-actions .btn { flex: 1; }

  .cta-inner .btn { width: 100%; }

  .dock {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(11, 31, 88, .06);
  }
  .dock a {
    flex: 1;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
  }
  .dock a + a { border-left: 1px solid var(--line); }
  .dock .dock-reserve { flex: 1.5; background: var(--navy); color: var(--white); border-left: 0; }
}
