/*
  [생성일] 2026-11-24
  [경위] 아임웹 전문가센터 「앤트콘디자인 웹사이트 신규 제작」 제안용 시안(index.html · case.html) 공통 스타일
  [변경이력]
    - 2026-11-24: 최초 생성. 아임웹 기본 위젯으로 옮길 수 있는 모양만 사용(사진 직각 · 그림자 · 그라데이션 · 올리면 바뀌는 효과 없음)
*/

/* ── 색 · 글자 기준값: 사진 속 흰 벽, 화이트오크, 짙은 회색 금속에서 뽑음 ── */
:root {
  --wall: #ffffff;        /* 흰 벽 */
  --plaster: #f3f1ed;     /* 미장 벽(옅은 띠 배경) */
  --ink: #23262a;         /* 짙은 회색 금속(글자 · 버튼 · 어두운 띠) */
  --ink-2: #5a5f66;       /* 보조 글자 */
  --ink-3: #74797f;       /* 가장 옅은 글자(흰 바탕에서 대비 4.5 이상) */
  --line: #dedbd5;        /* 가는 줄 */
  --oak: #8a5a2b;         /* 화이트오크(강조 글자 · 치수선) */
  --oak-light: #d9b88f;   /* 어두운 띠 위의 오크 */
  --wrap: 1280px;
}

/* ── 기본 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.7; font-weight: 400;
  word-break: keep-all; overflow-wrap: anywhere;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }
.num { font-variant-numeric: tabular-nums; }

/* ── 시안 안내 띠(시안 전용, 실제 사이트에는 넣지 않음) ── */
.notice { background: var(--ink); color: #fff; font-size: 13px; line-height: 1.6; padding: 8px 0; }
.notice b { font-weight: 600; color: var(--oak-light); }

/* ── 제작 메모(브랜딩업 → 대표님, 시안 전용) ── */
.memo {
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
  border-left: 2px solid var(--oak); padding: 4px 0 4px 12px; margin-top: 24px; max-width: 720px;
}
.memo b { font-weight: 600; color: var(--oak); }

/* ── 헤더: 글자 로고 · 메뉴 3개 · 상담 버튼 ── */
.hd { border-bottom: 1px solid var(--line); background: var(--wall); }
.hd-in { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.logo b { font-size: 18px; font-weight: 600; letter-spacing: 0.08em; }
.logo span { font-size: 12px; color: var(--ink-2); }
.nav { display: none; width: 100%; order: 5; border-top: 1px solid var(--line); }
.nav.open { display: block; }
.nav a { display: block; padding: 14px 0; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }
.menu-btn {
  font: inherit; font-size: 14px; font-weight: 500; color: var(--ink);
  background: none; border: 1px solid var(--line); height: 40px; padding: 0 12px; cursor: pointer;
}

/* ── 버튼: 직각, 두 가지(채움 · 테두리) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; white-space: nowrap;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); cursor: pointer;
}
.btn-line { background: transparent; color: var(--ink); }
.btn-s { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.txt-link { font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

/* ── 시그니처: 치수선(숫자 + 양끝 눈금 선). 아임웹에서는 이미지 위젯 1개 ── */
.dim { display: block; width: 112px; color: var(--oak); margin-bottom: 20px; }
.dim b { display: block; text-align: center; font-size: 17px; font-weight: 500; line-height: 1; padding-bottom: 8px; font-variant-numeric: tabular-nums; }
.dim i { display: block; position: relative; height: 9px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; }
.dim i::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: currentColor; }
.dark .dim { color: var(--oak-light); }

/* ── 구간 공통 ── */
.sec { padding: 72px 0; }
.sec-plaster { background: var(--plaster); }
.dark { background: var(--ink); color: #fff; }
.sec-name { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: 12px; }
.dark .sec-name { color: #c9ccd0; }
.sec h2 { font-size: 28px; }
.sec-lead { margin-top: 16px; color: var(--ink-2); max-width: 640px; }
.dark .sec-lead { color: #d5d8db; }
.cap { font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }

/* ── 첫 화면: 글(왼쪽 제목 · 오른쪽 설명과 버튼) 아래에 큰 사진 한 장 ── */
.hero { padding: 40px 0 0; }
.hero-eyebrow { font-size: 14px; font-weight: 500; color: var(--oak); margin-bottom: 16px; }
.hero h1 { font-size: 30px; line-height: 1.32; }
.hero-side { margin-top: 20px; }
.hero-side p { color: var(--ink-2); max-width: 520px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-photo { margin-top: 40px; }
.hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ── 사실 줄 4칸 ── */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 40px 0 0; }
.facts li { border-top: 1px solid var(--ink); padding-top: 16px; }
.facts strong { display: block; font-size: 28px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.facts span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }

/* ── 2칸(글 · 사진) ── */
.two { display: grid; gap: 32px; }
.two .txt p + p { margin-top: 16px; }
.two img { aspect-ratio: 4 / 3; object-fit: cover; }
.quote { font-size: 22px; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }

/* ── 3칸 · 4칸 글(위 가로줄) ── */
.cols { display: grid; gap: 32px; margin-top: 48px; }
.cols li { border-top: 1px solid var(--line); padding-top: 20px; }
.cols .no { display: block; font-size: 14px; font-weight: 500; color: var(--oak); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.cols h3 { font-size: 19px; }
.cols p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.sub-h { font-size: 20px; margin-top: 72px; }
.sub-h + .cols { margin-top: 24px; }

/* ── 포트폴리오: 분류 탭 + 갤러리형 카드 ── */
.tabs { display: flex; gap: 20px; margin-top: 32px; border-bottom: 1px solid var(--line); }
.tabs button {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink-3); white-space: nowrap;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 12px 0; cursor: pointer;
}
.tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.cards { display: grid; gap: 40px 24px; margin-top: 32px; }
.card[hidden] { display: none; }
.card a { display: block; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; }
.card h3 { font-size: 19px; margin-top: 16px; }
.card .meta { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.card .staged { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.empty { margin-top: 32px; color: var(--ink-2); font-size: 15px; }
.more { margin-top: 40px; }

/* ── 인사이트: 어두운 띠(계약 전 확인) + 목록형 게시판 ── */
.check { display: grid; gap: 40px; margin-top: 40px; }
.check img { aspect-ratio: 16 / 9; object-fit: cover; }
.check img.second { margin-top: 24px; }
.rows > div { border-top: 1px solid rgba(255, 255, 255, 0.22); padding: 20px 0; }
.rows > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.rows dt { font-size: 14px; font-weight: 500; color: var(--oak-light); }
.rows dd { margin-top: 4px; }
.rows dd strong { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rows dd span { display: block; font-size: 15px; color: #d5d8db; margin-top: 4px; }
.dark .cap { color: #b9bdc2; }
.check-end { margin-top: 48px; }
.check-end .quote { max-width: 760px; }

.list { margin-top: 32px; border-top: 1px solid var(--ink); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: block; padding: 20px 0; }
.list .cat { font-size: 14px; font-weight: 500; color: var(--oak); }
.list h3 { font-size: 18px; font-weight: 500; margin-top: 4px; }
.list .date { font-size: 14px; color: var(--ink-3); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ── 상담: 안내(왼쪽) + 입력폼(오른쪽) ── */
.contact { display: grid; gap: 40px; }
.tel { display: inline-block; font-size: 30px; font-weight: 600; line-height: 1.2; margin-top: 24px; font-variant-numeric: tabular-nums; }
.info { margin-top: 24px; }
.info > div { display: flex; gap: 16px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 15px; }
.info > div:last-child { border-bottom: 1px solid var(--line); }
.info dt { width: 72px; flex: none; color: var(--ink-2); }
.info a { border-bottom: 1px solid var(--line); }
.form { background: var(--wall); padding: 24px 20px; border: 1px solid var(--line); }
.form label, .form .lb { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.form .f { margin-bottom: 20px; }
.form input[type="text"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; height: 48px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid #b9b5ad; border-radius: 0; appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2323262a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form textarea { height: 120px; padding: 12px; line-height: 1.6; resize: vertical; }
.form .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.form .agree input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }
.form .btn { width: 100%; margin-top: 8px; }
.form-msg { font-size: 14px; color: var(--oak); margin-top: 12px; min-height: 22px; }
.f2 { display: block; } /* 아임웹 입력폼 기본 모양: 한 줄에 한 칸 */

/* ── 꼬리말 ── */
.ft { background: var(--ink); color: #c9ccd0; padding: 48px 0 104px; font-size: 14px; line-height: 1.8; }
.ft b { display: block; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 12px; }
.ft a { border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.ft .links { display: flex; gap: 20px; margin-top: 16px; }
.ft .small { margin-top: 24px; font-size: 13px; color: #a3a8ae; }

/* ── 휴대폰 하단 고정 줄(전화 · 문자 · 블로그) — 아임웹에서는 코드 삽입 1곳 ── */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1.4fr 1fr 1fr; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.bar a { display: flex; align-items: center; justify-content: center; height: 56px; color: #fff; font-size: 16px; font-weight: 500; border-left: 1px solid rgba(255, 255, 255, 0.2); }
.bar a:first-child { border-left: 0; background: var(--oak); }

/* ── 사례 글(case.html): 게시판 글 화면 ── */
.post { padding: 40px 0 72px; }
.post-in { max-width: 880px; margin: 0 auto; }
.post-cat { font-size: 14px; font-weight: 500; color: var(--oak); }
.post h1 { font-size: 28px; margin-top: 8px; }
.post-meta { font-size: 14px; color: var(--ink-3); margin-top: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.sum { margin: 32px 0; }
.sum > div { display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.sum dt { width: 64px; flex: none; font-weight: 600; }
.post-body h2 { font-size: 22px; margin: 56px 0 16px; }
.post-body p { margin-top: 16px; }
.post-body figure { margin-top: 32px; }
.post-body figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.req { counter-reset: r; margin-top: 16px; border-top: 1px solid var(--line); }
.req li { counter-increment: r; display: flex; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.req li::before { content: counter(r, decimal-leading-zero); color: var(--oak); font-weight: 500; font-variant-numeric: tabular-nums; }
.area { margin-top: 32px; padding: 32px 20px; background: var(--plaster); }
.area .dim { width: 100%; margin: 0; }
.area .dim.inner { width: 88.75%; margin-top: 20px; color: var(--ink); }
.area .cap { margin-top: 20px; }
.post-end { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--ink); }

/* ── 560px 이상 ── */
@media (min-width: 560px) {
  .wrap { padding: 0 32px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .form { padding: 32px; }
  .area { padding: 40px; }
}

/* ── 900px 이상(태블릿 가로 · PC) ── */
@media (min-width: 900px) {
  .wrap { padding: 0 40px; }
  .hd-in { min-height: 76px; flex-wrap: nowrap; gap: 40px; }
  .logo { flex-direction: row; align-items: baseline; gap: 12px; margin-right: 0; }
  .logo b { font-size: 20px; }
  .logo span { font-size: 13px; }
  .nav { display: flex; width: auto; order: 0; border: 0; gap: 40px; margin-left: auto; }
  .nav a { padding: 8px 0; border: 0; font-size: 15px; }
  .menu-btn { display: none; }
  .sec { padding: 120px 0; }
  .sec h2 { font-size: 40px; }
  .hero { padding: 72px 0 0; }
  .hero-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: end; }
  .hero h1 { font-size: 56px; line-height: 1.24; letter-spacing: -0.02em; }
  .hero-side { margin-top: 0; padding-bottom: 8px; }
  .hero-photo { margin-top: 64px; }
  .hero-photo img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 56px; }
  .facts strong { font-size: 36px; }
  .two { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .two.rev .txt { order: 2; }
  .quote { font-size: 28px; }
  .cols { margin-top: 72px; }
  .cols.c3 { grid-template-columns: repeat(3, 1fr); }
  .cols.c4 { grid-template-columns: repeat(4, 1fr); }
  .sub-h { font-size: 24px; margin-top: 104px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 56px 32px; margin-top: 40px; }
  .card h3 { font-size: 20px; }
  .check { grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 56px; align-items: start; }
  .rows dd strong { font-size: 26px; }
  .list a { display: grid; grid-template-columns: 120px 1fr 120px; align-items: baseline; gap: 24px; padding: 24px 0; }
  .list h3, .list .date { margin-top: 0; }
  .list .date { text-align: right; }
  .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .tel { font-size: 40px; }
  .ft { padding-bottom: 56px; }
  .ft-in { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .bar { display: none; }
  .post { padding: 72px 0 120px; }
  .post h1 { font-size: 40px; }
  .post-body h2 { font-size: 26px; margin-top: 72px; }
}
