/* 두피영양 — treatment.ezennaworld.com
   구조·타이포 위계: kbooster 참고(컬러는 새로 선정). 폰트: Noto Sans KR / Roboto
   위계 규칙: 섹션은 배경/구분선으로 나누고, h2 = 금색 짧은 선, h3 = 금색 세로선. 리스트 마커에는 숫자를 쓰지 않는다. */
:root {
  --ink: #17211c;
  --sub: #5f6a64;
  --line: #e4e0d8;
  --bg: #ffffff;
  --bg-soft: #f6f3ec;
  --accent: #8a6a2f;
  --accent-deep: #5d4519;
  --gold: #cdb176;
  --kelp: #20352a;
  --radius: 2px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
html { scroll-padding-top: 110px; }
body {
  font-family: 'Noto Sans KR', 'Roboto', sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  letter-spacing: .01em; word-break: keep-all; overflow-wrap: break-word;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
h1, h2, h3, p { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mall_width { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ── */
header.site_header { background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header_row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1280px; margin: 0 auto; }
.header_side { display: flex; align-items: center; gap: 18px; font-size: 12.5px; color: var(--sub); flex: 1; }
.header_side.right { justify-content: flex-end; }
.header_side a:hover { color: var(--ink); }
.site_logo img { height: 28px; width: auto; }
nav.main_nav { border-top: 1px solid var(--line); background: #fff; }
nav.main_nav ul { display: flex; justify-content: center; gap: 44px; font-size: 14px; font-weight: 500; }
nav.main_nav a { position: relative; display: block; padding: 14px 0; }
nav.main_nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
nav.main_nav a:hover { color: var(--accent); }
nav.main_nav a:hover::after { transform: scaleX(1); }

/* ── Hero (배경사진, 버튼 없음) ── */
.hero_banner { position: relative; width: 100%; height: 68vh; min-height: 420px; max-height: 720px; overflow: hidden; background: var(--kelp); display: flex; align-items: flex-end; justify-content: center; text-align: center; padding: 0 24px 64px; color: #fff; }
.hero_banner picture, .hero_banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero_banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,13,.22) 0%, rgba(10,18,13,.30) 40%, rgba(10,18,13,.72) 100%); }
.hero_copy { position: relative; z-index: 2; max-width: 760px; }
.hero_copy .eyebrow { font-size: 12px; letter-spacing: .34em; margin-bottom: 16px; color: #ecdcb8; }
.hero_copy h1 { font-size: 52px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; }
.hero_copy .sub { margin-top: 18px; font-size: 16px; font-weight: 300; line-height: 1.95; letter-spacing: .05em; }

/* ── 섹션 공통: 배경 교차 + 구분선 ── */
.sec { padding: 92px 0; border-top: 1px solid var(--line); }
.sec.soft { background: var(--bg-soft); }
.sec.first { border-top: 0; }
.sec_head { text-align: center; margin: 0 auto 46px; max-width: 720px; }
.sec_head .eyebrow { display: block; font-size: 11.5px; letter-spacing: .3em; color: var(--accent); font-weight: 500; margin-bottom: 12px; text-transform: uppercase; }
.sec_head h2, .t-h2 { font-size: 26px; font-weight: 700; line-height: 1.45; letter-spacing: .02em; }
.sec_head h2::before, .t-h2::before { content: ""; display: block; width: 34px; height: 2px; background: var(--accent); margin: 0 auto 18px; }
.sec_head p { margin-top: 14px; font-size: 14.5px; color: var(--sub); line-height: 1.85; }

/* h3 = 세로선 */
h3.vh, .faq_item h3, .t-article h3, .concern_card h3, .prd_name, .sub_head h3 { font-size: 16px; font-weight: 700; line-height: 1.6; padding-left: 12px; border-left: 3px solid var(--accent); }

/* ── 도입 문단 ── */
.answer_block { max-width: 820px; margin: 0 auto; padding: 64px 24px 72px; text-align: center; font-size: 17px; line-height: 2.05; color: #2b362f; }
.answer_block strong { font-weight: 500; background: linear-gradient(transparent 62%, rgba(205,177,118,.38) 62%); }

/* ── 고민 카드 ── */
.concern_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.concern_card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--kelp); padding: 30px 28px 32px; transition: transform .25s, box-shadow .25s; }
.concern_card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(23,33,28,.08); }
.concern_card h3 { font-size: 17px; }
.concern_card p { margin-top: 14px; font-size: 14px; line-height: 1.9; color: var(--sub); }
.concern_note { margin-top: 38px; text-align: center; font-size: 15px; line-height: 1.95; color: #2b362f; }

/* ── 카테고리 칩 ── */
.category_row { display: flex; justify-content: center; gap: 10px; margin: 0 auto 8px; flex-wrap: wrap; }
.category_row a { padding: 12px 24px; font-size: 13.5px; font-weight: 500; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; transition: all .2s; }
.category_row a:hover { background: var(--kelp); border-color: var(--kelp); color: #fff; }

/* ── 상품 ── */
.sub_group { max-width: 880px; margin: 0 auto; padding: 52px 0 8px; }
.sub_group + .sub_group { border-top: 1px dashed var(--line); margin-top: 28px; }
.sub_head { margin-bottom: 30px; }
.sub_head h3 { font-size: 19px; }
.sub_head p { margin-top: 8px; padding-left: 15px; font-size: 13.5px; color: var(--sub); }
.prd_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.prd_card { display: flex; flex-direction: column; }
.prd_thumb { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); margin-bottom: 20px; }
.prd_thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.prd_card:hover .prd_thumb img { transform: scale(1.04); }
.prd_name { font-size: 15.5px; color: #000; min-height: 50px; }
.prd_sum { margin-top: 10px; font-size: 13.5px; line-height: 1.8; color: var(--sub); flex: 1; }
.prd_price { margin-top: 16px; font-size: 20px; font-weight: 700; }
.btn, .prd_btn, .t-prd .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; letter-spacing: .03em; transition: background .2s, transform .2s; border: 0; cursor: pointer; border-radius: var(--radius); }
.btn:hover, .prd_btn:hover, .t-prd .btn:hover { background: var(--accent-deep); }
.btn:active, .prd_btn:active { transform: scale(.98); }
.btn svg, .prd_btn svg { width: 16px; height: 16px; flex: none; }
.prd_btn { width: 100%; margin-top: 18px; }
.price_note { text-align: center; font-size: 12.5px; color: var(--sub); margin-top: 36px; line-height: 1.8; }

/* ── 표 ── */
.t-tablewrap { margin: 26px auto; overflow-x: auto; max-width: 980px; }
.t-tablewrap table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 14px; text-align: left; background: #fff; }
.t-tablewrap thead { background: var(--bg-soft); font-size: 13px; }
.t-tablewrap th, .t-tablewrap td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.t-tablewrap tbody th { font-weight: 500; }

/* ── 브랜드 배너 ── */
.brand_banner { background: var(--kelp); color: #fff; padding: 100px 24px; border-top: 0; }
.brand_inner { max-width: 980px; margin: 0 auto; }
.brand_banner h2 { font-size: 27px; font-weight: 500; line-height: 1.6; text-align: center; }
.brand_banner h2::before { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin: 0 auto 20px; }
.brand_banner .lead { margin: 24px auto 0; max-width: 720px; text-align: center; font-size: 15px; line-height: 2.05; color: #d4ddd7; }
.brand_facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid #3c5547; }
.brand_facts > div { padding: 30px 26px 0; border-right: 1px solid #3c5547; }
.brand_facts > div:last-child { border-right: none; }
.brand_facts h3 { font-size: 15.5px; font-weight: 700; padding-left: 12px; border-left: 3px solid var(--gold); line-height: 1.5; }
.brand_facts p { margin-top: 14px; font-size: 13.5px; line-height: 1.9; color: #c3cfc8; }

/* ── 사진 스트립 ── */
.photo_strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.photo_strip picture, .photo_strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

/* ── FAQ ── */
.faq_wrap { max-width: 820px; margin: 0 auto; }
.faq_item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.faq_item:first-child { border-top: 2px solid var(--ink); }
.faq_item p { margin-top: 14px; padding-left: 15px; font-size: 14.5px; line-height: 2; color: #38443d; }

/* ── CS ── */
.cs_box { max-width: 820px; margin: 0 auto; border: 1px solid var(--line); background: #fff; padding: 44px 32px; text-align: center; border-top: 3px solid var(--kelp); }
.cs_box h2 { font-size: 19px; font-weight: 700; }
.cs_box p { margin-top: 14px; font-size: 14px; line-height: 1.95; color: #38443d; }
.cs_box .tel { font-size: 26px; font-weight: 700; margin-top: 18px; letter-spacing: .05em; }

/* ── 다른 페이지로 연결: 사진카드 ── */
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcards.three { grid-template-columns: repeat(3, 1fr); }
.pcard { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--kelp); color: #fff; border-radius: var(--radius); }
.pcard picture, .pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,13,0) 35%, rgba(10,18,13,.82) 100%); }
.pcard:hover img { transform: scale(1.06); }
.pcard .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 22px 20px; }
.pcard .ttl { font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.pcard .ttl small { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 400; letter-spacing: .24em; color: #ecdcb8; }
.pcard .go { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .2s; }
.pcard .go svg { width: 18px; height: 18px; }
.pcard:hover .go { background: var(--gold); transform: translateX(3px); }

/* ── 푸터 ── */
footer.site_footer { border-top: 1px solid var(--line); background: #fff; padding: 56px 0 64px; font-size: 12px; color: #6f7872; line-height: 2; }
footer.site_footer .footer_logo { font-weight: 700; letter-spacing: 2px; font-size: 15px; color: var(--ink); margin-bottom: 14px; }
footer.site_footer .copyright { margin-top: 6px; color: #9aa29d; }

/* ── 세부페이지 ── */
.t-article { max-width: 820px; margin: 0 auto; padding: 36px 24px 0; }
.crumb { font-size: 12.5px; color: var(--sub); }
.crumb span { margin: 0 8px; }
.t-article h1 { margin-top: 28px; font-size: 42px; font-weight: 700; line-height: 1.25; letter-spacing: .03em; }
.t-answer { margin-top: 28px; padding: 24px 26px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--bg-soft); font-size: 16px; line-height: 2; }
.t-hero { margin-top: 34px; }
.t-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.t-sec { padding: 64px 0; border-top: 1px solid var(--line); }
.t-sec:first-of-type { border-top: 0; }
.t-h2::before { margin: 0 0 18px; }
.t-h2 { font-size: 25px; text-align: left; }
.t-article p { margin-top: 18px; font-size: 15.5px; line-height: 2.05; color: #2f3a34; }
.t-article h3 { margin-top: 36px; }
.t-list li { position: relative; padding: 11px 0 11px 22px; line-height: 1.9; font-size: 15px; border-bottom: 1px dashed var(--line); }
.t-list li::before { content: ""; position: absolute; left: 0; top: 22px; width: 6px; height: 6px; background: var(--accent); }
/* 단계 목록 — 숫자 마커 없음 */
.t-steps { margin-top: 18px; }
.t-steps li { position: relative; padding: 13px 0 13px 34px; line-height: 1.9; font-size: 15px; border-bottom: 1px dashed var(--line); }
.t-steps li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 2px; background: var(--accent); }
.t-quote { margin: 30px 0; padding: 24px 28px; background: var(--bg-soft); border-left: 4px solid var(--accent); }
.t-quote p { margin: 0 !important; font-size: 17.5px !important; font-weight: 300; line-height: 1.95 !important; color: var(--ink) !important; }
.t-img { margin-top: 34px; }
.t-img img { width: 100%; max-height: 520px; object-fit: cover; }
.t-prd { display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); margin: 30px 0 8px; background: #fff; }
.t-prd .pic { background: var(--bg-soft); }
.t-prd .pic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.t-prd .body { padding: 24px 26px; display: flex; flex-direction: column; }
.t-prd .cat { margin: 0 !important; font-size: 11.5px !important; letter-spacing: .2em; color: var(--accent) !important; font-weight: 500; line-height: 1.4 !important; }
.t-prd h3 { margin-top: 10px !important; font-size: 16px; }
.t-prd .sum { margin-top: 10px !important; font-size: 13.5px !important; line-height: 1.85 !important; color: var(--sub) !important; flex: 1; }
.t-prd .price { margin-top: 14px !important; font-size: 20px !important; font-weight: 700; color: var(--ink) !important; }
.t-prd .btn { align-self: flex-start; margin-top: 16px; }
.t-note { font-size: 12.5px !important; color: var(--sub) !important; line-height: 1.7 !important; }

/* ── 태블릿 ── */
@media (max-width: 1024px) {
  .concern_grid { grid-template-columns: repeat(2, 1fr); }
  .pcards { grid-template-columns: repeat(2, 1fr); }
  .pcards.three { grid-template-columns: repeat(3, 1fr); }
}

/* ── 모바일 ── */
@media (max-width: 767px) {
  html { scroll-padding-top: 96px; }
  .header_side { display: none; }
  .header_row { justify-content: center; padding: 13px 20px; }
  .site_logo img { height: 24px; }
  nav.main_nav ul { gap: 4px; font-size: 13px; overflow-x: auto; justify-content: flex-start; padding: 0 14px; white-space: nowrap; scrollbar-width: none; }
  nav.main_nav ul::-webkit-scrollbar { display: none; }
  nav.main_nav a { padding: 13px 12px; min-height: 44px; }
  nav.main_nav a::after { display: none; }
  .hero_banner { height: 60vh; min-height: 380px; padding: 0 20px 44px; }
  .hero_copy h1 { font-size: 36px; }
  .hero_copy .sub { font-size: 14.5px; }
  .answer_block { padding: 44px 22px 52px; font-size: 15.5px; line-height: 2; }
  .sec { padding: 60px 0; }
  .mall_width { padding: 0 20px; }
  .sec_head { margin-bottom: 32px; }
  .sec_head h2, .t-h2 { font-size: 21px; }
  .concern_grid { grid-template-columns: 1fr; gap: 14px; }
  .concern_card { padding: 24px 22px 26px; }
  .concern_note { font-size: 14.5px; text-align: left; }
  /* 카테고리 칩 — 가로 스크롤, 큰 터치 영역 */
  .category_row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -20px 4px; padding: 4px 20px 10px; scrollbar-width: none; }
  .category_row::-webkit-scrollbar { display: none; }
  .category_row a { flex: none; padding: 12px 20px; }
  .sub_group { padding-top: 40px; }
  .prd_grid { grid-template-columns: 1fr; gap: 44px; }
  .prd_name { min-height: 0; }
  /* 버튼 — 전폭, 엄지 영역 */
  .btn, .prd_btn, .t-prd .btn { width: 100%; min-height: 54px; font-size: 15.5px; border-radius: 3px; }
  .t-prd .btn { align-self: stretch; }
  .brand_banner { padding: 68px 22px; }
  .brand_banner h2 { font-size: 21px; }
  .brand_facts { grid-template-columns: 1fr; margin-top: 40px; }
  .brand_facts > div { border-right: none; border-bottom: 1px solid #3c5547; padding: 26px 0; }
  .brand_facts > div:last-child { border-bottom: 0; }
  .photo_strip { grid-template-columns: 1fr 1fr; }
  .photo_strip picture:nth-child(3) { display: none; }
  .faq_item { padding: 22px 0; }
  .cs_box { padding: 34px 22px; }
  .cs_box .tel { font-size: 24px; }
  .pcards, .pcards.three { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard { aspect-ratio: 3 / 4; }
  .pcard .cap { padding: 14px 12px; }
  .pcard .ttl { font-size: 14px; }
  .pcard .go { width: 36px; height: 36px; }
  .t-article { padding: 28px 20px 0; }
  .t-article h1 { font-size: 32px; }
  .t-answer { padding: 20px; font-size: 15.5px; }
  .t-sec { padding: 46px 0; }
  .t-prd { grid-template-columns: 1fr; }
  .t-prd .body { padding: 20px; }
  .rtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rtable, .rtable tbody, .rtable tr, .rtable th, .rtable td { display: block; width: 100%; }
  .rtable tr { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .rtable th, .rtable td { padding: 3px 0 !important; border: 0 !important; }
  .rtable td::before { content: attr(data-label); display: inline-block; min-width: 6.5rem; font-size: 12px; color: var(--sub); }
}

/* ── 전후 카드 (이 업체가 하는 일) ── */
.work_pairs { margin-top: 28px; display: grid; gap: 16px; }
.work_pair { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: stretch; gap: 0; }
.work_card { background: #fff; border: 1px solid var(--line); padding: 22px 22px 24px; }
.work_card.before { border-top: 3px solid #b0693e; }
.work_card.after { border-top: 3px solid var(--kelp); background: var(--bg-soft); }
.work_card .lbl { display: block; font-size: 11px; letter-spacing: .2em; font-weight: 500; color: #b0693e; }
.work_card.after .lbl { color: var(--kelp); }
.t-article .work_card p { margin-top: 12px; font-size: 14.5px; line-height: 1.95; }
.work_arrow { display: flex; align-items: center; justify-content: center; color: var(--accent); }
.work_arrow svg { width: 22px; height: 22px; }
@media (max-width: 767px) {
  .work_pair { grid-template-columns: 1fr; }
  .work_arrow { height: 36px; }
  .work_arrow svg { transform: rotate(90deg); }
}
