/*
  [생성일] 2026-11-20
  [경위] 다모아커텐 시공후기 게시판 리뉴얼 제안 시안의 공통 스타일. 색, 글꼴, 알약 버튼은 의뢰인 현재 사이트(damoacurtain.imweb.me) 실측값 그대로
  [변경이력]
    - 2026-11-20: 최초 생성
  주의: 아임웹 기본 위젯으로 옮길 수 있는 모양만 쓴다. 표, 그라데이션, 그림자, 확대 효과, 사진 모서리 둥글게, 음수 여백은 쓰지 않는다
*/

/* 색과 치수 (현재 사이트 실측: 파랑 #2457A6, 옅은 배경 #F8F8F8 #FBFBFB, 푸터 #0E0E0E) */
:root {
  --blue: #2457A6;
  --blue-d: #1C4687;
  --ink: #111111;
  --text: #333333;
  --mute: #6A6A70;
  --line: #E4E4E7;
  --bg1: #F8F8F8;
  --bg2: #FBFBFB;
  --foot: #0E0E0E;
  --wrap: 1160px;
  --pad: 20px;
}

/* 기본값 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; word-break: keep-all; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.bar button:focus-visible, .head a:focus-visible, .hero a:focus-visible { outline-color: #fff; }
.wrap { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* 등장 효과: 투명도만 바뀌는 페이드인 (아임웹 위젯 애니메이션과 같은 종류) */
.js .fade { opacity: 0; transition: opacity .5s ease; }
.js .fade.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .fade { opacity: 1; transition: none; } }

/* 맨 위 시안 안내 띠와 제작 메모 (제안용, 실제 사이트에는 들어가지 않는다) */
.bar { background: var(--foot); color: #fff; font-size: 13px; line-height: 1.5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.bar-t { flex: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; min-height: 24px; }
.memo { background: var(--bg1); border-bottom: 1px solid var(--line); font-size: 14px; }
.memo .wrap { padding-top: 24px; padding-bottom: 24px; }
.memo h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.memo li { padding: 8px 0; border-top: 1px solid var(--line); }
.memo li b { display: block; font-weight: 600; color: var(--ink); }

/* 헤더: 글자 로고, 메뉴 5개, 알약 버튼 (현재 사이트와 같은 구성) */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.nav { display: flex; gap: 32px; margin: 0 auto; }
.nav a { display: block; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 2px solid transparent; transition: color .2s ease; white-space: nowrap; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }
.menu-t { display: none; font-size: 14px; font-weight: 500; color: var(--ink); min-height: 40px; padding: 0 4px; white-space: nowrap; }

/* 버튼: 알약형 (현재 사이트 실측 둥글기 9999px, 파랑 바탕 흰 글자) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 9999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; border: 1px solid var(--blue); transition: background-color .2s ease, color .2s ease; }
.btn:hover { background: var(--blue-d); }
.btn--s { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn--line { background: #fff; color: var(--ink); border-color: #C9C9CE; }
.btn--line:hover { background: var(--bg1); }

/* 메인 첫 화면 재현: 전면 사진 + 검정 단색 음영 + 가운데 글 + 버튼 */
.hero { position: relative; background: #1b1b1b url(/img/hero.jpg) center / cover no-repeat; color: #fff; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(5, 5, 5, .6); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { font-size: 40px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.hero p { margin: 20px 0 32px; font-size: 17px; }

/* 「기존 그대로」 자리 표시 (시안 전용) */
.keep { background: var(--bg2); border-top: 1px dashed #C9C9CE; border-bottom: 1px dashed #C9C9CE; text-align: center; color: var(--mute); font-size: 14px; }
.keep .wrap { padding-top: 56px; padding-bottom: 56px; }
.keep b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

/* 「여기부터 바뀌는 영역」 표시 (시안 전용) */
.mark { background: var(--foot); color: #fff; font-size: 14px; }
.mark .wrap { padding-top: 16px; padding-bottom: 16px; }
.mark b { display: block; font-weight: 600; }
.mark span { color: #D0D0D4; }

/* 시공후기 머리 띠: 파랑 바탕 흰 글 (현재 시공후기 영역의 제목 모양 그대로) */
.head { background: var(--blue); color: #fff; }
.head .wrap { padding-top: 64px; padding-bottom: 64px; }
.head-e { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.head-t { font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; }
.head-d { margin-top: 16px; font-size: 16px; }
.head--s .wrap { padding-top: 40px; padding-bottom: 40px; }
.head--s .head-e { margin-bottom: 8px; }
.head--s .head-t { font-size: 26px; }

/* 후기 카드 목록: 같은 크기 카드 (사진, 제목, 날짜) */
.sec { padding: 64px 0 80px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: block; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg1); }
.card-t { display: block; margin-top: 16px; font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--ink); transition: color .2s ease; }
.card:hover .card-t { color: var(--blue); }
.card-d { display: block; margin-top: 8px; font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.card[hidden] { display: none; }
.more-row { margin-top: 48px; text-align: center; }

/* 분류 탭: 글자와 밑줄 */
.tabs { border-bottom: 1px solid var(--line); background: #fff; }
.tabs ul { display: flex; gap: 32px; }
.tabs a { display: block; padding: 16px 0 14px; font-size: 16px; font-weight: 500; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s ease; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

/* 후기 글 한 건 */
.post { max-width: 800px; margin: 0 auto; }
.post-c { font-size: 15px; font-weight: 600; color: var(--blue); }
.post h1 { margin-top: 8px; font-size: 32px; line-height: 1.4; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.post-d { margin-top: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.body { padding-top: 32px; font-size: 17px; line-height: 1.8; }
.body img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg1); }
.body p { margin-bottom: 16px; }
.body strong { font-weight: 600; color: var(--ink); }
.body .lead { margin-top: 24px; }
.body .info { margin: 24px 0 40px; }
.body .info p { margin-bottom: 4px; }
.body .q { margin: 32px 0 8px; }
.body .shot { margin-top: 40px; }
.body .cap { margin-top: 12px; }
.body .go { margin: 48px 0 8px; }
.body a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.body a:hover { color: var(--blue-d); }
.body .note { font-size: 15px; color: var(--mute); }
.post-b { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* 견적 띠: 옅은 회색 바탕 + 글 + 버튼 */
.cta { background: var(--bg1); text-align: center; }
.cta .wrap { padding-top: 64px; padding-bottom: 64px; }
.cta h2 { font-size: 26px; line-height: 1.4; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.cta p { margin: 12px 0 28px; color: var(--text); }

/* 푸터: 현재 사이트 문구 그대로 */
.foot { background: var(--foot); color: #C9C9CE; font-size: 14px; }
.foot .wrap { padding-top: 48px; padding-bottom: 48px; }
.foot-s { margin-top: 16px; font-size: 13px; color: #A3A3A9; }

/* 태블릿 */
@media (max-width: 1023px) {
  .nav { gap: 20px; }
  .cards { gap: 32px 20px; }
}

/* 휴대폰과 좁은 태블릿: 메뉴 접기, 카드 2칸 */
@media (max-width: 859px) {
  .top .wrap { gap: 8px; min-height: 60px; flex-wrap: wrap; }
  .logo { font-size: 17px; margin-right: auto; }
  .menu-t { display: block; }
  .nav { display: none; width: 100%; margin: 0; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current] { border-bottom-color: var(--line); }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .head .wrap { padding-top: 48px; padding-bottom: 48px; }
  .head-t { font-size: 26px; }
  .head-d { font-size: 15px; }
  .head--s .wrap { padding-top: 28px; padding-bottom: 28px; }
  .head--s .head-t { font-size: 20px; }
  .sec { padding: 40px 0 56px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .card-t { margin-top: 12px; font-size: 15px; }
  .card-d { font-size: 13px; }
  .tabs ul { gap: 24px; }
  .tabs a { font-size: 15px; }
  .post h1 { font-size: 24px; }
  .body { font-size: 16px; line-height: 1.75; }
  .cta .wrap { padding-top: 48px; padding-bottom: 48px; }
  .cta h2 { font-size: 22px; }
  .bar .wrap { align-items: flex-start; }
}

/* 아주 좁은 휴대폰 (320) */
@media (max-width: 359px) {
  :root { --pad: 16px; }
  .logo { font-size: 16px; }
  .btn--s { padding: 0 12px; font-size: 13px; }
  .hero h1 { font-size: 24px; }
  .card-t { font-size: 14px; }
  .tabs ul { gap: 20px; }
}
