/* =========================================================
 * 조선할매사주 새 디자인 (10단계, 2026-11-25 · 3안 낙관 주홍)
 * 밝은 아이보리 한지 + 가는 선 + 각진 모서리
 * 제목·버튼·진한 글씨 = 프리텐다드 / 본문·설명 = 조선일보명조
 * ========================================================= */
@font-face { font-family: 'ChosunMj'; src: url('fonts/Chosunilbo_myungjo.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'Pretendard'; font-weight: 600; font-display: swap; src: url('fonts/Pretendard-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 700; font-display: swap; src: url('fonts/Pretendard-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Pretendard'; font-weight: 800; font-display: swap; src: url('fonts/Pretendard-ExtraBold.woff2') format('woff2'); }

:root {
  --c-bg: #F8F4EC;        /* 아이보리 한지 */
  --c-bg2: #F1E8D8;       /* 구역 바꿈 */
  --c-card: #FFFFFF;
  --c-line: #E3D5BC;      /* 가는 선 */
  --c-gold: #C9AE78;      /* 금선 */
  --c-title: #3E2716;     /* 제목 밤색 */
  --c-text: #3F2C1E;      /* 본문 */
  --c-sub: #6E5843;       /* 설명 */
  --c-main: #A63A2B;      /* 주인공 = 낙관 주홍 */
  --c-main-dark: #8A2E22;
  --c-main-ink: #FFFFFF;
  --c-sans: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --c-serif: 'ChosunMj', 'Nanum Myeongjo', serif;
  --c-wide: 1120px;       /* PC 내용 폭 */
}

.c-page { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--c-serif); font-size: 18px; line-height: 1.75; word-break: keep-all; -webkit-text-size-adjust: 100%; }
.c-page *, .c-page *::before, .c-page *::after { box-sizing: border-box; }
.c-in { max-width: var(--c-wide); margin: 0 auto; padding: 0 32px; }

/* ---------- 머리줄 ---------- */
.c-top { position: sticky; top: 0; z-index: 10; background: rgba(248, 244, 236, 0.96); border-bottom: 1px solid var(--c-line); }
.c-top .c-in { display: flex; align-items: center; height: 76px; gap: 28px; }
.c-logo { font-family: var(--c-sans); font-weight: 800; font-size: 24px; color: var(--c-title); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.c-nav { display: flex; gap: 30px; margin-left: auto; }
.c-nav a { display: inline-block; font-family: var(--c-sans); font-weight: 600; font-size: 17px; color: var(--c-text); text-decoration: none; white-space: nowrap; padding: 6px 0; transition: transform .2s ease, color .2s ease; }
/* 마우스를 올리면 글씨가 살짝 커지고 붉은색으로 (2026-11-25 운영자) */
.c-nav a:hover, .c-nav a:focus-visible { color: var(--c-main); transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .c-nav a { transition: color .2s ease; } .c-nav a:hover { transform: none; } }

/* ---------- 1쪽 넷째 칸: 받는 방법 4단계 ---------- */
.c-how { padding: 96px 0 104px; text-align: center; }
.c-how .c-eyebrow { letter-spacing: .3em; }
.c-how .c-h2 { margin-top: 12px; }
.c-how-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; padding: 0; list-style: none; counter-reset: none; }
.c-how-steps::before { content: ''; position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 1px; background: var(--c-gold); } /* 동그라미를 잇는 선 */
.c-how-steps li { position: relative; padding: 0 14px; }
.c-how-no { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin: 0 auto; border: 1.5px solid var(--c-gold); border-radius: 50%; background: var(--c-card); box-shadow: 0 0 0 7px var(--c-bg); font-family: var(--c-serif); font-size: 24px; color: #A8865A; }
.c-how-steps li:hover .c-how-no { border-color: var(--c-main); color: var(--c-main); box-shadow: 0 0 0 7px var(--c-bg), 0 0 0 11px rgba(201, 174, 120, 0.35); }
.c-how-steps b { display: block; margin-top: 18px; font-family: var(--c-sans); font-weight: 800; font-size: 20px; color: var(--c-title); }
.c-how-steps .tx { display: block; margin-top: 8px; font-size: 17px; line-height: 1.65; color: var(--c-sub); }
@media (max-width: 899px) {
  .c-how { padding: 56px 0 64px; }
  .c-how-steps { grid-template-columns: 1fr; gap: 0; margin-top: 32px; text-align: left; }
  .c-how-steps::before { content: none; }
  .c-how-steps li:not(:last-child)::after { content: ''; position: absolute; left: 27px; top: 56px; bottom: 0; width: 1px; background: var(--c-gold); }
  .c-how-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; padding: 0 0 26px; }
  .c-how-steps li:last-child { padding-bottom: 0; }
  .c-how-no { grid-row: 1 / 3; width: 56px; height: 56px; margin: 0; font-size: 21px; box-shadow: 0 0 0 6px var(--c-bg); }
  .c-how-steps b { margin-top: 4px; font-size: 19px; }
  .c-how-steps .tx { margin-top: 4px; font-size: 16px; }
  .c-how-steps .tx br { display: none; }
}
.c-top-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border: 1.5px solid var(--c-main); color: var(--c-main); background: var(--c-card); font-family: var(--c-sans); font-weight: 800; font-size: 17px; text-decoration: none; white-space: nowrap; }
.c-top-btn:hover { background: var(--c-main); color: var(--c-main-ink); }

/* ---------- 첫 화면 큰 칸 ---------- */
/* 배경 그림: images/hero-pc.png(원본) → hero-pc-web.jpg, 모바일은 hero-mobile-web.jpg. 못 불러오면 한지색 */
.c-hero { position: relative; overflow: hidden; background: #F4EEE2 url('../images/hero-pc-web.jpg') center bottom / cover no-repeat; border-bottom: 1px solid var(--c-line); }
.c-hero .c-in { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; padding-top: 96px; padding-bottom: 104px; }

.c-eyebrow { font-family: var(--c-sans); font-weight: 700; font-size: 17px; color: var(--c-main); letter-spacing: 0.04em; }
.c-eyebrow .dot { display: inline-block; width: 5px; height: 5px; background: var(--c-gold); transform: rotate(45deg); margin: 0 10px; vertical-align: 3px; }
.c-h1 { font-family: var(--c-sans); font-weight: 800; font-size: 54px; line-height: 1.25; letter-spacing: -0.03em; color: var(--c-title); margin: 18px 0 26px; }
.c-h1 em { font-style: normal; color: var(--c-main); }
.c-lead { font-size: 20px; line-height: 1.8; color: var(--c-text); margin: 0 0 38px; }

.c-acts { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.c-btn { display: inline-flex; align-items: center; justify-content: center; height: 62px; padding: 0 34px; background: var(--c-main); color: var(--c-main-ink); font-family: var(--c-sans); font-weight: 800; font-size: 21px; text-decoration: none; border: 0; }
.c-btn:hover { background: var(--c-main-dark); }
.c-link { font-family: var(--c-sans); font-weight: 700; font-size: 19px; color: var(--c-title); text-decoration: none; padding-bottom: 4px; border-bottom: 1.5px solid var(--c-title); }
.c-link:hover { color: var(--c-main); border-bottom-color: var(--c-main); }

.c-facts { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--c-line); list-style: none; padding-left: 0; font-family: var(--c-sans); font-weight: 600; font-size: 16px; color: var(--c-sub); }
.c-facts li + li::before { content: '·'; margin: 0 14px; color: var(--c-gold); }

/* 오른쪽 풀이서 그림 자리 (운영자가 겹친 그림을 넣을 곳) */
.c-book { position: relative; display: flex; flex-direction: column; align-items: center; }
.c-book-img { width: 100%; max-width: 440px; aspect-ratio: 1 / 1.1; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--c-gold); background: rgba(255, 255, 255, 0.55); color: var(--c-sub); font-family: var(--c-sans); font-weight: 600; font-size: 16px; text-align: center; line-height: 1.6; }
.c-book-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 맨 위 배너 3D 책 그림 (견본 a·b·c, 1쪽 index.html 맨 아래 스크립트가 책 자리를 정함) */
.c-book:has(.c-shelf) { min-width: 0; }
.c-shelf { position: relative; flex: none; width: 640px; max-width: none; margin-right: -120px; align-self: flex-end; }
.c-shelf.is-b { width: 480px; margin-right: -40px; }
.c-shelf.is-d { width: 400px; margin-right: 0; }
.c-shelf.is-d img { filter: none; } /* 4안 확정: 그림자 없음 (운영자 2026-11-26) */
.c-shelf.is-d .c-shelf-floor { display: none; }
.c-shelf.is-e { width: 560px; margin-right: -100px; }
.c-shelf.is-e img, .c-shelf.is-f img { filter: drop-shadow(12px 18px 22px rgba(62, 39, 22, 0.30)) drop-shadow(3px 4px 6px rgba(62, 39, 22, 0.18)); }
.c-shelf.is-e .c-shelf-floor, .c-shelf.is-f .c-shelf-floor { display: none; }
/* f: 가로로 긴 그림 → 글 오른쪽에 넓게, 화면 오른쪽 끝 가까이까지 */
.c-shelf.is-f { width: 620px; margin-right: -170px; }
.c-shelf img { position: absolute; display: block; height: auto; transform: rotate(var(--rot, 0deg)); transform-origin: center bottom; filter: drop-shadow(0 14px 16px rgba(62, 39, 22, 0.28)); }
.c-shelf.is-c img { transform: perspective(1200px) rotateY(16deg); transform-origin: left bottom; }
.c-shelf-floor { position: absolute; left: 4%; right: 4%; bottom: -5%; height: 14%; background: radial-gradient(ellipse at center, rgba(62, 39, 22, 0.22), rgba(62, 39, 22, 0) 70%); }

/* ---------- 풀이서 고르기 (상품 카드) ---------- */
.c-sec { padding: 96px 0 104px; }
.c-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.c-h2 { font-family: var(--c-sans); font-weight: 800; font-size: 40px; line-height: 1.3; letter-spacing: -0.02em; color: var(--c-title); margin: 0; }
.c-sec-sub { font-size: 18px; color: var(--c-sub); margin: 0 0 4px; }

.c-books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 28px; list-style: none; margin: 0; padding: 0; }
.c-card { display: block; text-decoration: none; color: inherit; line-height: 1.35; } /* 행간 좁게 (2026-11-25 운영자) */
/* 잘 나가는 풀이서 표시 (운영자 요청, 영어 BEST) */
.c-best { position: absolute; top: 0; left: 0; z-index: 2; padding: 5px 10px 4px; background: var(--c-main); color: #FFFFFF; font-family: var(--c-sans); font-weight: 800; font-size: 13px; letter-spacing: .12em; line-height: 1.2; }
.c-cover-wrap { position: relative; overflow: hidden; border: 1px solid var(--c-line); box-shadow: 0 6px 18px rgba(62, 39, 22, 0.08); transform-origin: center bottom; transition: transform .4s ease, box-shadow .4s ease; }
.c-cover { position: relative; aspect-ratio: 3 / 4; background: var(--cv, #EFE6D3); overflow: hidden; }
.c-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 마우스를 올리면 표지 한 장 전체가 지금 크기에서 부드럽게 살짝 커짐 (2026-11-25 운영자 요청) */
.c-card:hover .c-cover-wrap, .c-card:focus-visible .c-cover-wrap { transform: scale(1.06); box-shadow: 0 16px 32px rgba(62, 39, 22, 0.16); z-index: 1; }
.c-card:focus-visible { outline: 3px solid var(--c-main); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .c-cover-wrap { transition: none; } }

/* 임시 표지 (운영자가 표지 그림을 주면 img로 바꿈) */
.c-cover .cv-title { position: absolute; top: 12%; right: 14%; writing-mode: vertical-rl; font-family: var(--c-serif); font-size: 21px; letter-spacing: .18em; color: var(--c-title); }
.c-cover .cv-seal { position: absolute; top: 12%; right: calc(14% + 36px); width: 22px; height: 22px; background: var(--c-main); color: #fff; font-family: var(--c-serif); font-size: 13px; line-height: 22px; text-align: center; }
.c-cover .cv-brand { position: absolute; top: 12%; left: 12%; font-family: var(--c-sans); font-weight: 600; font-size: 11px; letter-spacing: .12em; color: var(--c-sub); }
.c-cover svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; }

/* 카드 글 (밝은 바탕 기본): 이름 → 할인 전 가격 → 할인율·지금 가격 → 짧은 머리말 */
.c-card-name { display: block; margin-top: 16px; font-family: var(--c-sans); font-weight: 800; font-size: 22px; line-height: 1.35; color: var(--c-title); }
.c-card-tag { display: block; margin-top: 6px; font-family: var(--c-sans); font-weight: 600; font-size: 16px; color: var(--c-sub); }
.c-card:hover .c-card-name { text-decoration: underline; text-decoration-color: var(--c-gold); text-underline-offset: 5px; }
.c-card-meta { display: block; margin-top: 4px; font-size: 16px; color: var(--c-sub); }
.c-card-price { display: block; margin-top: 6px; font-family: var(--c-sans); font-weight: 800; font-size: 20px; color: var(--c-title); }

/* ---------- 풀이서 고르기 · 검은 바탕 견본 (2026-11-25, 주소 끝 ?dark 로 봄) ---------- */
.c-sec.is-dark { background: #12100E; }
.c-sec.is-dark .c-h2 { color: #FFFFFF; }
.c-sec.is-dark .c-sec-sub { color: #B9B1A6; }
.c-sec.is-dark .c-cover-wrap { border-color: #2A2622; box-shadow: none; }
.c-sec.is-dark .c-card:hover .c-cover-wrap { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6); }
.c-sec.is-dark .c-card-name { color: #FFFFFF; }
.c-sec.is-dark .c-card-tag { color: #A9A196; }
.c-sec.is-dark .c-card-was { color: #7D766D; }
.c-sec.is-dark .c-card-now { color: #FFFFFF; }
.c-sec.is-dark .c-card-now .off { color: #E5533F; }
.c-page .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c-card-was { display: block; margin-top: 8px; font-family: var(--c-sans); font-weight: 600; font-size: 16px; color: #9C8C78; text-decoration: line-through; }
.c-card-now { display: block; margin-top: 0; font-family: var(--c-sans); font-weight: 800; font-size: 22px; color: var(--c-title); }
.c-card-now .off { color: var(--c-main); margin-right: 8px; }
.c-sec.is-dark .c-card-meta { margin-top: 8px; font-family: var(--c-sans); font-weight: 500; font-size: 15px; color: #8E877E; }

/* =========================================================
 * 2쪽 상품 소개 (c-pd-)
 * ========================================================= */
.c-pd { padding: 28px 0 96px; }
.c-pd ~ .c-foot { padding-bottom: 130px; } /* 아래 신청 막대에 가리지 않게 */
.c-back { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border: 1px solid var(--c-gold); background: var(--c-card); font-family: var(--c-sans); font-weight: 700; font-size: 17px; color: var(--c-title); text-decoration: none; }
.c-back:hover { border-color: var(--c-main); color: var(--c-main); }

/* 위: 표지 + 이름·가격 */
.c-pd-top { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: start; margin-top: 28px; }
.c-pd-top .c-cover .cv-title { font-size: 30px; }
.c-pd-top .c-cover .cv-seal { width: 30px; height: 30px; line-height: 30px; font-size: 17px; right: calc(14% + 48px); }
.c-pd-top .c-cover .cv-brand { font-size: 13px; }
.c-pd-top .c-best { font-size: 15px; padding: 7px 14px 6px; }
.c-pd-tag { font-family: var(--c-sans); font-weight: 700; font-size: 17px; color: var(--c-main); margin: 6px 0 0; }
.c-pd-name { font-family: var(--c-sans); font-weight: 800; font-size: 44px; line-height: 1.25; letter-spacing: -0.02em; color: var(--c-title); margin: 8px 0 14px; }
.c-pd-desc { font-size: 20px; line-height: 1.7; color: var(--c-text); margin: 0 0 24px; }
.c-pd-price { padding: 20px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); font-family: var(--c-sans); line-height: 1.3; }
.c-pd-price .was { display: block; font-weight: 600; font-size: 17px; color: #9C8C78; text-decoration: line-through; }
.c-pd-price .now { display: block; margin-top: 2px; font-weight: 800; font-size: 34px; color: var(--c-title); }
.c-pd-price .off { color: var(--c-main); margin-right: 10px; }
.c-pd-facts { list-style: none; margin: 18px 0 26px; padding: 0; }
.c-pd-facts li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 7px 0; font-size: 18px; line-height: 1.5; }
.c-pd-facts b { font-family: var(--c-sans); font-weight: 700; font-size: 16px; color: var(--c-sub); padding-top: 2px; }
.c-pd-cta { width: 100%; }
.c-pd-cta-note { margin: 10px 0 0; font-size: 16px; color: var(--c-sub); text-align: center; }

/* 할미 한마디 */
.c-pd-word { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; margin-top: 64px; padding: 24px 28px; background: var(--c-card); border: 1px solid var(--c-line); border-left: 4px solid var(--c-main); }
.c-pd-word img { display: block; width: 96px; height: 96px; object-fit: cover; object-position: center 18%; border: 1px solid var(--c-line); }
.c-pd-word .who { font-family: var(--c-sans); font-weight: 700; font-size: 15px; letter-spacing: .2em; color: var(--c-sub); }
.c-pd-word .say { margin: 4px 0 0; font-size: 21px; line-height: 1.6; color: var(--c-title); }

/* 칸 제목 */
.c-pd-sec { margin-top: 80px; }
.c-pd-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.c-pd-h2 span { font-family: var(--c-sans); font-weight: 800; font-size: 32px; color: var(--c-title); }
.c-pd-h2 small { font-size: 17px; color: var(--c-sub); }

/* 목차: 마당 머리글 + 장 줄 (누르면 펼침) */
.c-toc { border: 1px solid var(--c-line); background: var(--c-card); }
.c-toc-part { margin: 0; padding: 14px 24px; background: var(--c-bg2); border-top: 1px solid var(--c-line); font-family: var(--c-sans); font-weight: 700; font-size: 17px; color: var(--c-title); letter-spacing: .02em; }
.c-toc-part:first-child { border-top: 0; }
.c-toc-ch { border-top: 1px solid var(--c-line); }
.c-toc-part + .c-toc-ch { border-top: 1px solid var(--c-line); }
.c-toc-btn { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 24px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.c-toc-btn:hover { background: #FCF9F3; }
.c-toc-btn:focus-visible { outline: 3px solid var(--c-main); outline-offset: -3px; }
.c-toc-no { font-family: var(--c-sans); font-weight: 800; font-size: 17px; color: var(--c-main); }
.c-toc-title { font-family: var(--c-sans); font-weight: 700; font-size: 20px; color: var(--c-title); line-height: 1.4; }
.c-toc-more { font-family: var(--c-sans); font-weight: 600; font-size: 15px; color: var(--c-sub); white-space: nowrap; }
.c-toc-more::after { content: ' ▾'; }
.c-toc-ch.open .c-toc-more::after { content: ' ▴'; }
.c-toc-items { display: none; margin: 0; padding: 2px 24px 18px 110px; list-style: none; }
.c-toc-ch.open .c-toc-items { display: block; }
.c-toc-items li { position: relative; padding: 4px 0 4px 18px; font-size: 18px; line-height: 1.6; color: var(--c-text); }
.c-toc-items li::before { content: ''; position: absolute; left: 0; top: 15px; width: 6px; height: 6px; background: var(--c-gold); transform: rotate(45deg); }

/* 받는 방법: 4단계 + 발송 시각 */
.c-steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border: 1px solid var(--c-line); background: var(--c-card); counter-reset: st; }
.c-steps li { padding: 24px 22px 26px; border-left: 1px solid var(--c-line); counter-increment: st; }
.c-steps li:first-child { border-left: 0; }
.c-steps li::before { content: counter(st); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--c-main); color: #fff; font-family: var(--c-sans); font-weight: 800; font-size: 17px; }
.c-steps b { display: block; margin-top: 14px; font-family: var(--c-sans); font-weight: 800; font-size: 20px; color: var(--c-title); }
.c-steps span { display: block; margin-top: 6px; font-size: 17px; line-height: 1.6; color: var(--c-text); }
.c-times { margin-top: 20px; border: 1px solid var(--c-line); background: var(--c-card); }
.c-times-row { display: grid; grid-template-columns: 1fr 1fr; padding: 16px 24px; border-top: 1px solid var(--c-line); font-size: 18px; }
.c-times-row:first-child { border-top: 0; }
.c-times-row.c-times-one { display: block; text-align: center; font-size: 19px; line-height: 1.7; } /* 2026-11-25: 시각표 대신 한 줄 */
.c-times-one b { font-size: inherit; }
.c-times-row b { font-family: var(--c-sans); font-weight: 800; font-size: 19px; color: var(--c-main); }
.c-times-note { margin: 14px 0 0; font-size: 17px; line-height: 1.7; color: var(--c-sub); }

/* 화면 아래 늘 붙어 있는 신청 막대 */
.c-apply-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #FFFFFF; border-top: 1px solid var(--c-line); box-shadow: 0 -6px 18px rgba(62, 39, 22, 0.08); }
.c-apply-bar .c-in { display: flex; align-items: center; gap: 24px; height: 88px; }
.c-apply-bar .nm { font-family: var(--c-sans); font-weight: 800; font-size: 20px; color: var(--c-title); margin-right: auto; }
.c-apply-bar .pr { font-family: var(--c-sans); font-weight: 800; font-size: 22px; color: var(--c-title); }
.c-apply-bar .pr .off { color: var(--c-main); margin-right: 6px; }
.c-apply-bar .c-btn { height: 60px; min-width: 260px; }

/* =========================================================
 * 풀이서 쪽 그림 (미리보기·안내 공통) — 운영자가 쪽 그림을 주기 전까지 빈 종이 모양
 * ========================================================= */
.c-sheet { position: relative; aspect-ratio: 3 / 4; background: #FFFDF8; border: 1px solid var(--c-line); box-shadow: 0 4px 14px rgba(62, 39, 22, 0.08); overflow: hidden; }
.c-sheet img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c-sheet.ph::before { content: ''; position: absolute; inset: 6%; border: 1px solid var(--c-gold); }
.c-sheet .ph-in { position: absolute; inset: 6%; display: flex; flex-direction: column; align-items: center; padding: 14% 12% 0; }
.c-sheet .ph-t { font-family: var(--c-sans); font-weight: 700; font-size: 13px; color: var(--c-sub); white-space: nowrap; }
.c-sheet .ph-l { width: 100%; height: 5px; margin-top: 9%; background: #EFE7D8; }
.c-sheet .ph-l + .ph-l { margin-top: 5%; }
.c-sheet .ph-l.s { width: 70%; }
.c-sheet .ph-n { position: absolute; left: 0; right: 0; bottom: 10%; text-align: center; font-family: var(--c-sans); font-weight: 600; font-size: 12px; color: #B0A08A; }

/* 2쪽: 표지 밑 미리보기 4장 */
.c-peek { margin-top: 22px; }
.c-peek-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-family: var(--c-sans); font-weight: 800; font-size: 18px; color: var(--c-title); }
.c-peek-h small { font-weight: 600; font-size: 14px; color: var(--c-sub); }
.c-peek-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.c-peek-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; transition: transform .25s ease; }
.c-peek-btn:hover, .c-peek-btn:focus-visible { transform: translateY(-3px); }
.c-peek-btn:focus-visible { outline: 3px solid var(--c-main); outline-offset: 3px; }
.c-peek-btn .ph-t { font-size: 9px; }
.c-peek-btn .ph-n { font-size: 9px; }

/* 크게 보기 (한 화면 가득, 양옆 화살표) */
.c-lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(28, 20, 14, 0.94); }
.c-lb[hidden] { display: none; }
.c-lb-stage { height: min(86vh, calc((100vw - 220px) * 4 / 3)); aspect-ratio: 3 / 4; }
.c-lb-stage .c-sheet { height: 100%; width: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.c-lb-stage .ph-t { font-size: 20px; }
.c-lb-stage .ph-l { height: 8px; }
.c-lb-stage .ph-n { font-size: 16px; }
.c-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; padding: 14px 0; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #FFFFFF; cursor: pointer; font-family: var(--c-sans); font-weight: 700; font-size: 15px; }
.c-lb-nav:hover, .c-lb-nav:focus-visible { background: rgba(255, 255, 255, 0.2); }
.c-lb-nav .ar { font-size: 34px; line-height: 1; }
.c-lb-prev { left: 28px; }
.c-lb-next { right: 28px; }
.c-lb-close { position: absolute; top: 20px; right: 24px; height: 48px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font-family: var(--c-sans); font-weight: 700; font-size: 17px; cursor: pointer; }
.c-lb-count { position: absolute; top: 28px; left: 0; right: 0; text-align: center; font-family: var(--c-sans); font-weight: 700; font-size: 17px; color: #E9E1D3; pointer-events: none; }
.c-lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 17px; color: #E9E1D3; pointer-events: none; }

/* 1쪽 셋째 칸: 실제 풀이서 안내 (저절로 천천히 흐르는 그림 줄) */
.c-guide { padding: 96px 0 104px; background: var(--c-bg2); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); text-align: center; }
.c-guide .c-eyebrow { letter-spacing: .3em; }
.c-guide .c-h2 { margin-top: 12px; }
.c-guide-sub { margin: 14px 0 0; font-size: 19px; color: var(--c-text); }
.c-marquee { overflow: hidden; margin-top: 48px; padding: 10px 0 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); } /* 양끝은 부드럽게 흐려짐 */
.c-marquee-track { display: flex; gap: 28px; width: max-content; animation: c-flow 70s linear infinite; }
.c-marquee:hover .c-marquee-track, .c-marquee:focus-within .c-marquee-track { animation-play-state: paused; }
@keyframes c-flow { from { transform: translateX(calc(-50% - 14px)); } to { transform: translateX(0); } } /* 왼쪽 → 오른쪽 */
.c-slide { flex: none; width: 244px; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: center; }
.c-slide:focus-visible { outline: 3px solid var(--c-main); outline-offset: 4px; }
.c-slide-cap { display: block; margin-top: 12px; font-family: var(--c-sans); font-weight: 700; font-size: 17px; color: var(--c-title); }
.c-guide-hint { margin: 6px 0 30px; font-size: 16px; color: var(--c-sub); }
@media (prefers-reduced-motion: reduce) {
  .c-marquee { overflow-x: auto; }
  .c-marquee-track { animation: none; }
}

/* ---------- 1쪽 맨 아래: 자주 묻는 질문 (누르면 펼침) ---------- */
.c-faq { padding: 96px 0 110px; }
.c-faq .c-in { max-width: 860px; }
.c-faq-head { text-align: center; margin-bottom: 40px; }
.c-faq-head .c-eyebrow { letter-spacing: .3em; }
.c-faq-head .c-h2 { margin-top: 10px; }
.c-faq-list { border-top: 1px solid var(--c-line); }
.c-faq-item { border-bottom: 1px solid var(--c-line); }
.c-faq-q { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 72px; padding: 18px 4px; border: 0; background: none; text-align: left; cursor: pointer; font-family: var(--c-sans); font-weight: 700; font-size: 20px; line-height: 1.45; color: var(--c-title); }
.c-faq-q:hover { color: var(--c-main); }
.c-faq-q:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
.c-faq-q .q { flex: none; color: var(--c-main); font-weight: 800; }
.c-faq-q .tx { flex: 1; }
.c-faq-q .sign { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--c-sub); }
.c-faq-q .sign i { position: relative; display: inline-block; width: 16px; height: 16px; }
.c-faq-q .sign i::before, .c-faq-q .sign i::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--c-gold); }
.c-faq-q .sign i::after { transform: rotate(90deg); transition: transform .2s ease; }
.c-faq-item.open .c-faq-q .sign i::after { transform: rotate(0deg); } /* + → − */
.c-faq-a { display: none; margin: 0; padding: 0 4px 24px 38px; font-size: 18px; line-height: 1.8; color: var(--c-text); }
.c-faq-item.open .c-faq-a { display: block; }
.c-faq-a b { font-family: var(--c-sans); font-weight: 700; color: var(--c-title); }

/* ---------- 맨 아래 사업자 정보 (모든 화면 공통) ---------- */
.c-foot { background: #2F2117; color: #CDBEA6; padding: 52px 0 44px; text-align: center; font-family: var(--c-sans); }
.c-foot-logo { font-weight: 800; font-size: 22px; color: #F2EADC; }
.c-foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; padding: 0; list-style: none; }
.c-foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 16px; color: #F2EADC; text-decoration: none; border-bottom: 1px solid transparent; }
.c-foot-links a:hover { border-bottom-color: #C9AE78; }
.c-foot hr { border: 0; border-top: 1px solid #4A3727; margin: 22px auto; max-width: 760px; }
.c-foot-biz { margin: 0; font-weight: 500; font-size: 15px; line-height: 1.95; }
.c-foot-biz span + span::before { content: '|'; margin: 0 10px; color: #6E5843; }
.c-foot-note { margin: 0; font-weight: 500; font-size: 15px; line-height: 1.8; color: #A8977F; }

/* ---------- 이용약관 · 개인정보처리방침 ---------- */
.c-law-head { padding: 64px 0 48px; text-align: center; border-bottom: 1px solid var(--c-line); background: var(--c-bg); }
.c-law-head .c-eyebrow { letter-spacing: .3em; }
.c-law-head .c-h2 { margin-top: 10px; }
.c-law-date { margin: 10px 0 0; font-size: 16px; color: var(--c-sub); }
.c-law-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.c-law-tabs a { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border: 1px solid var(--c-gold); background: var(--c-card); font-family: var(--c-sans); font-weight: 700; font-size: 16px; color: var(--c-title); text-decoration: none; }
.c-law-tabs a[aria-current] { background: var(--c-main); border-color: var(--c-main); color: #fff; }
.c-law { padding: 48px 0 96px; }
.c-law .c-in { max-width: 860px; }
.c-law-draft { margin: 0 0 32px; padding: 14px 18px; border: 1.5px dashed var(--c-main); background: #FBEDE9; font-family: var(--c-sans); font-weight: 600; font-size: 16px; line-height: 1.6; color: var(--c-main-dark); }
.c-law h2 { display: flex; align-items: center; gap: 10px; margin: 44px 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); font-family: var(--c-sans); font-weight: 800; font-size: 21px; color: var(--c-title); }
.c-law h2::before { content: ''; width: 4px; height: 20px; background: var(--c-main); }
.c-law p, .c-law li { font-size: 18px; line-height: 1.8; color: var(--c-text); }
.c-law p { margin: 0 0 10px; }
.c-law ol, .c-law ul { margin: 0 0 10px; padding-left: 26px; }
.c-law li { margin: 4px 0; }
.c-law b { font-family: var(--c-sans); font-weight: 700; color: var(--c-title); }
.c-law a { color: var(--c-main); font-weight: 700; }
.c-law-box { margin: 14px 0; padding: 16px 20px; background: var(--c-bg2); border-left: 4px solid var(--c-gold); }
.c-law-box p:last-child { margin-bottom: 0; }
.c-law table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; background: var(--c-card); font-size: 16px; line-height: 1.6; }
.c-law th, .c-law td { padding: 12px 14px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; color: var(--c-text); }
.c-law th { background: var(--c-bg2); font-family: var(--c-sans); font-weight: 700; color: var(--c-title); }

/* 메뉴 단추 (휴대폰에서만 보임) — 그림만 있는 단추 금지 규칙대로 "메뉴" 글자를 함께 */
.c-menu-btn { display: none; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 1px solid var(--c-line); background: var(--c-card); font-family: var(--c-sans); font-weight: 700; font-size: 16px; color: var(--c-title); cursor: pointer; }
.c-menu-btn .bars { display: inline-block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }

/* =========================================================
 * 휴대폰 (900px 미만): 위에서부터 풀이서 그림 → 글 → 버튼
 * ========================================================= */
@media (max-width: 899px) {
  .c-in { padding: 0 16px; }
  .c-top .c-in { height: 64px; gap: 8px; }
  .c-logo { font-size: 20px; margin-right: auto; }
  .c-nav { display: none; }
  .c-top-btn { height: 44px; padding: 0 12px; font-size: 16px; }
  .c-menu-btn { display: inline-flex; }
  .c-top.open .c-nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 64px; background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: 4px 16px 10px; }
  .c-top.open .c-nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .c-top.open .c-nav a:last-child { border-bottom: 0; }

  .c-hero { background-image: url('../images/hero-mobile-web.jpg'); background-position: center bottom; }
  .c-hero .c-in { grid-template-columns: 1fr; gap: 34px; padding-top: 24px; padding-bottom: 56px; }
  .c-book { order: -1; align-items: flex-start; }
  .c-book-img { max-width: none; aspect-ratio: 4 / 3; }
  .c-shelf, .c-shelf.is-b { width: 100%; margin-right: 0; align-self: center; }
  .c-shelf.is-b { width: 82%; }
  .c-shelf.is-d { width: 66%; }
  .c-shelf.is-e { width: 100%; margin-right: 0; }
  .c-shelf.is-f { width: 100%; margin-right: 0; }
  .c-eyebrow { font-size: 16px; }
  .c-eyebrow .dot { margin: 0 8px; }
  .c-h1 { font-size: 31px; line-height: 1.35; margin: 12px 0 18px; }
  .c-lead { font-size: 18px; margin-bottom: 28px; }
  .c-lead br { display: none; }
  .c-acts { flex-direction: column; align-items: stretch; gap: 20px; }
  .c-btn { width: 100%; height: 62px; padding: 0 16px; }
  .c-link { align-self: center; font-size: 18px; }
  .c-facts { display: block; margin-top: 30px; padding-top: 18px; }
  .c-facts li { padding: 3px 0; }
  .c-sec { padding: 56px 0 64px; }
  .c-sec-head { display: block; margin-bottom: 28px; }
  .c-h2 { font-size: 28px; }
  .c-sec-sub { font-size: 17px; margin-top: 6px; }
  .c-books { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .c-cover .cv-title { font-size: 17px; }
  .c-cover .cv-seal { right: calc(14% + 30px); width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
  .c-cover .cv-brand { display: none; }
  .c-card-name { font-size: 19px; margin-top: 12px; }
  .c-card-tag { margin-top: 4px; font-size: 15px; }
  .c-card-was { font-size: 15px; margin-top: 6px; }
  .c-card-now { font-size: 19px; }
  .c-card-now .off { margin-right: 5px; }
  .c-best { font-size: 11px; padding: 4px 8px 3px; }

  /* 미리보기·크게 보기·풀이서 안내 휴대폰 */
  .c-peek-h { font-size: 17px; }
  .c-lb-stage { height: auto; width: calc(100vw - 32px); max-height: 74vh; }
  .c-lb-stage .c-sheet { width: 100%; height: auto; }
  .c-lb-nav { top: auto; bottom: 16px; transform: none; flex-direction: row; justify-content: center; width: auto; min-width: 112px; height: 56px; padding: 0 14px; font-size: 16px; }
  .c-lb-nav .ar { font-size: 26px; }
  .c-lb-prev { left: 16px; }
  .c-lb-next { right: 16px; }
  .c-lb-close { top: 12px; right: 16px; }
  .c-lb-count { top: 24px; }
  .c-lb-cap { bottom: 86px; font-size: 16px; }
  .c-guide { padding: 56px 0 64px; }
  .c-guide-sub { font-size: 17px; text-align: left; }
  .c-guide-sub br { display: none; }
  .c-marquee { margin-top: 30px; }
  .c-marquee-track { gap: 16px; animation-duration: 55s; }
  @keyframes c-flow { from { transform: translateX(calc(-50% - 8px)); } to { transform: translateX(0); } }
  .c-slide { width: 62vw; }
  .c-slide-cap { font-size: 16px; }

  .c-faq { padding: 56px 0 64px; }
  .c-faq-head { margin-bottom: 26px; }
  .c-faq-q { gap: 10px; min-height: 64px; padding: 16px 0; font-size: 18px; }
  .c-faq-q .sign span { display: none; } /* 휴대폰은 +/− 만 (줄 전체가 누르는 곳이라 글자 없어도 질문이 곧 이름표) */
  .c-faq-a { padding: 0 0 20px 0; font-size: 17px; }

  .c-foot { padding: 40px 0 36px; }
  .c-foot-links { gap: 0 20px; }
  .c-foot-biz span { display: block; }
  .c-foot-biz span + span::before { content: none; }
  .c-foot-biz br { display: none; }
  .c-foot-biz span { margin-bottom: 2px; }
  .c-law-head { padding: 40px 0 32px; }
  .c-law-tabs a { padding: 0 12px; font-size: 15px; }
  .c-law { padding: 28px 0 64px; }
  .c-law h2 { font-size: 19px; margin-top: 34px; }
  .c-law p, .c-law li { font-size: 17px; }
  .c-law table, .c-law thead, .c-law tbody, .c-law tr, .c-law th, .c-law td { display: block; }
  .c-law thead { display: none; }
  .c-law tr { margin-bottom: 10px; border: 1px solid var(--c-line); }
  .c-law td { border: 0; border-top: 1px solid var(--c-line); padding: 10px 12px; }
  .c-law td:first-child { border-top: 0; background: var(--c-bg2); font-family: var(--c-sans); font-weight: 700; color: var(--c-title); }
  .c-law td[data-h]::before { content: attr(data-h) ' · '; font-family: var(--c-sans); font-weight: 700; color: var(--c-sub); }

  /* 2쪽 휴대폰 */
  .c-pd { padding: 16px 0 120px; }
  .c-back { height: 46px; font-size: 16px; }
  .c-pd-top { grid-template-columns: 1fr; gap: 24px; margin-top: 18px; }
  .c-pd-top .c-cover-wrap { width: 50%; margin: 0 auto; }
  .c-pd-top .c-cover .cv-title { font-size: 18px; }
  .c-pd-top .c-cover .cv-seal { width: 20px; height: 20px; line-height: 20px; font-size: 12px; right: calc(14% + 30px); }
  .c-pd-top .c-cover .cv-brand { display: none; }
  .c-pd-top .c-best { font-size: 12px; padding: 5px 10px 4px; }
  .c-pd-name { font-size: 30px; margin: 4px 0 10px; }
  .c-pd-desc { font-size: 18px; margin-bottom: 18px; }
  .c-pd-price .now { font-size: 28px; }
  .c-pd-facts li { grid-template-columns: 80px 1fr; font-size: 17px; }
  .c-pd-cta { display: none; } /* 휴대폰은 아래 막대 버튼 하나만 */
  .c-pd-cta-note { display: none; }
  .c-pd-word { grid-template-columns: 72px 1fr; gap: 14px; margin-top: 36px; padding: 18px 16px; }
  .c-pd-word img { width: 72px; height: 72px; }
  .c-pd-word .say { font-size: 18px; }
  .c-pd-sec { margin-top: 48px; }
  .c-pd-h2 { display: block; margin-bottom: 14px; }
  .c-pd-h2 span { display: block; font-size: 25px; }
  .c-pd-h2 small { display: block; font-size: 16px; margin-top: 4px; }
  .c-toc-part { padding: 12px 16px; font-size: 16px; }
  .c-toc-btn { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 16px; }
  .c-toc-no { grid-column: 1 / -1; font-size: 15px; }
  .c-toc-title { font-size: 18px; }
  .c-toc-items { padding: 0 16px 16px 16px; }
  .c-toc-items li { font-size: 17px; }
  .c-steps { grid-template-columns: 1fr 1fr; }
  .c-steps li { padding: 18px 14px; border-left: 0; border-top: 1px solid var(--c-line); }
  .c-steps li:nth-child(-n+2) { border-top: 0; }
  .c-steps li:nth-child(even) { border-left: 1px solid var(--c-line); }
  .c-steps li::before { width: 28px; height: 28px; font-size: 15px; }
  .c-steps b { font-size: 18px; margin-top: 10px; }
  .c-steps span { font-size: 16px; }
  .c-times-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; font-size: 17px; }
  .c-times-note { font-size: 16px; }
  .c-apply-bar .c-in { height: 80px; gap: 12px; }
  .c-apply-bar .nm { display: none; }
  .c-apply-bar .pr { font-size: 18px; line-height: 1.2; white-space: nowrap; }
  .c-apply-bar .c-btn { flex: 1; min-width: 0; height: 58px; font-size: 20px; }

  .c-facts li::before, .c-facts li + li::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--c-gold); transform: rotate(45deg); margin: 0 10px 2px 2px; }
}
