/* 핫세일 — 빨강 + 흰 바탕, 사진 쿠폰 카드 4열 (선데이투어 느낌) */
:root {
  --font: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --main: #c8102e;
  --main-dark: #9a0c23;
  --link: #b00d28;
  --accent: #c8102e;
  --soft: #fdeef0;
  --ink: #1b1d22;
  --muted: #555b66;
  --line: #e3e5ea;
  --bg-alt: #f6f6f8;
  --card-bg: #f6f6f8;
  --code-bg: #fdeef0;
  --code-ink: #9a0c23;
  --th-bg: #f1f2f5;
  --th-ink: #1b1d22;
  --foot-bg: #1b1d22;
  --foot-ink: #cfd2d8;
  --radius: 8px;
  --card-radius: 14px;
  --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.75; color: var(--ink); background: #fff; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--main-dark); }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.narrow { max-width: 800px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: 64px 0; }
.section.tint { background: var(--bg-alt); }
.sec-lead { color: var(--muted); margin-top: -.3em; max-width: 44em; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--radius); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--main); cursor: pointer; white-space: nowrap; }
.btn-main { background: var(--main); color: #fff; }
.btn-main:hover { background: var(--main-dark); border-color: var(--main-dark); color: #fff; }
.btn-line { background: #fff; color: var(--main); }
.btn-line:hover { background: var(--soft); color: var(--main-dark); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.kcode { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .92em; font-weight: 700; background: var(--code-bg); color: var(--code-ink); padding: 2px 8px; border-radius: 4px; letter-spacing: .04em; }
.kcode-none { font-weight: 700; color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo-text { font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; }
.logo-sub { font-weight: 700; color: var(--main); }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { padding: 8px 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--main); border-bottom-color: var(--main); }
.main-nav .nav-cta { display: none; }
.menu-toggle { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.ico svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; display: block; }

/* 사진 쿠폰 카드 */
.code-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.code-card { background: var(--card-bg); border-radius: var(--card-radius); overflow: hidden; display: flex; flex-direction: column; }
.cc-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.cc-body h3 { font-size: 17px; margin: 0 0 6px; }
.cc-body h3 a { color: var(--ink); text-decoration: none; }
.cc-body h3 a:hover { text-decoration: underline; }
.cc-rate { margin: 0 0 8px; font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.cc-rate .kcode { font-size: 14px; vertical-align: middle; }
.cc-brief { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.cc-body .btn { width: 100%; white-space: normal; text-align: center; padding: 8px 12px; }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; }
.code-table, .info-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.info-table thead th { text-align: left; font-size: 15px; font-weight: 700; padding: 12px; background: var(--th-bg); color: var(--th-ink); white-space: nowrap; }
.info-table td, .info-table tbody th { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.info-table tbody th { font-weight: 700; white-space: nowrap; }
.info-table td, .info-table th { overflow-wrap: normal; }
.spec-table tbody th { width: 9em; color: var(--muted); }

.steps, .checklist { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step-no { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius); background: var(--main); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.checklist li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist h3 { margin-bottom: 4px; }
.checklist p { margin: 0; color: var(--muted); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 18px; }
.faq[open] .ico { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; margin: 0; color: var(--muted); }
.digest-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.digest-item h3 { margin: 0 0 4px; }
.digest-item h3 span { color: var(--accent); font-size: 16px; margin-left: 6px; }
.digest-item p { margin: 0; color: var(--muted); }
.directory { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.directory li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.directory a { font-weight: 700; font-size: 18px; text-decoration: none; }
.directory p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }

.breadcrumb { font-size: 15px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--muted); }
.page-head { padding: 28px 0 44px; }
.page-head-in { display: grid; grid-template-columns: 1fr; gap: 32px; }
.page-head.has-photo .page-head-in { grid-template-columns: 1.15fr .85fr; align-items: center; }
.page-lead { font-size: 18px; color: var(--muted); max-width: 40em; }
.page-head-photo, .detail-photo { margin: 0; border-radius: var(--card-radius); overflow: hidden; }
.page-head-photo img, .detail-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.detail-head-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center; }
.detail-head.no-photo .detail-head-in { grid-template-columns: 1fr; }
.detail-rate { font-size: 22px; font-weight: 800; color: var(--accent); }
.page-actions { margin-top: 18px; }
.text-block { margin-bottom: 36px; }
.text-block:last-child { margin-bottom: 0; }
.text-photo { margin: 0 0 18px; border-radius: var(--card-radius); overflow: hidden; }
.plain-list, .num-list { padding-left: 1.3em; margin: 0 0 1em; }
.plain-list li, .num-list li { margin-bottom: .5em; }
.block-go { margin-top: 12px; }
.cta-strip { background: var(--main); color: #fff; }
.cta-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cta-strip p { margin: 0; font-weight: 700; font-size: 18px; }
.cta-strip .btn-main { background: #fff; color: var(--main-dark); border-color: #fff; }
.more-menu ul, .related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.more-menu a { font-weight: 600; }
.related-list { flex-direction: column; }
.related-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.related-list span { color: var(--muted); font-size: 15px; margin-left: 6px; }
.back-link { margin-top: 20px; font-weight: 700; }
.static-page h1 { margin-top: 12px; }
.notfound { text-align: center; padding: 100px 0; }

.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding: 52px 0 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 28px; margin-bottom: 28px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 15px; margin-top: 10px; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.footer-title { font-weight: 800; color: #fff; margin: 0 0 4px; font-size: 16px; }
.footer-nav .strong { font-weight: 800; }
.disclaimer { font-size: 15px; margin: 0 0 8px; }
.to-top { display: inline-block; margin-top: 12px; font-weight: 700; }

.hero-in > *, .split > *, .page-head-in > *, .detail-head-in > *, .code-cards > *, .code-card > *, .footer-top > * { min-width: 0; }
.header-cta { white-space: nowrap; }

@media (max-width: 1080px) {
  .code-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .page-head.has-photo .page-head-in, .detail-head-in { grid-template-columns: 1fr; }
  .code-cards { grid-template-columns: repeat(2, 1fr); }
  .directory { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .summary-table thead, .compare-table thead, .card-table thead, .calc-table thead, .text-block .info-table thead, .matrix-table thead { display: none; }
  .summary-table, .summary-table tbody, .summary-table tr, .compare-table, .compare-table tbody, .compare-table tr, .card-table, .card-table tbody, .card-table tr, .calc-table, .calc-table tbody, .calc-table tr, .text-block .info-table, .text-block .info-table tbody, .text-block .info-table tr, .matrix-table, .matrix-table tbody, .matrix-table tr { display: block; width: 100%; }
  .summary-table tr, .compare-table tr, .card-table tr, .calc-table tr, .text-block .info-table tr, .matrix-table tr { padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
  .summary-table tbody th, .summary-table td, .compare-table tbody th, .compare-table td, .card-table tbody th, .card-table td, .calc-table tbody th, .calc-table td, .text-block .info-table tbody th, .text-block .info-table td, .matrix-table tbody th, .matrix-table td { display: flex; gap: 12px; width: 100%; padding: 4px 0; border: 0; white-space: normal; background: transparent; }
  .summary-table tbody th, .compare-table tbody th, .card-table tbody th, .calc-table tbody th, .text-block .info-table tbody th, .matrix-table tbody th { font-size: 18px; padding-bottom: 6px; }
  .summary-table td::before, .compare-table td::before, .card-table td::before, .calc-table td::before, .text-block .info-table td::before, .matrix-table td::before { content: attr(data-label); flex: 0 0 5.6em; font-weight: 700; color: var(--ink); }
  .spec-table tbody th { width: 6.5em; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .code-cards { grid-template-columns: 1fr; gap: 16px; }
  .directory { grid-template-columns: 1fr; }
  .cta-strip .wrap { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}
@media (max-width: 480px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .main-nav .nav-cta { display: block; font-weight: 800; color: var(--main); }
  .logo-text { font-size: 18px; }
}

/* 휴대폰 쿠폰 카드: 사진 왼쪽 작게 */
@media (max-width: 560px) {
  .code-card { display: grid; grid-template-columns: 112px 1fr; }
  .cc-photo { display: block; height: 100%; }
  .cc-photo img { height: 100%; aspect-ratio: auto; min-height: 100%; }
  .cc-body { padding: 14px 14px 16px; text-align: left; align-items: stretch; }
  .cc-body h3 { font-size: 16px; }
  .code-card .cc-rate { font-size: 22px; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .cc-brief { font-size: 14px; margin-bottom: 12px; }
  .cc-body .btn { min-height: 40px; font-size: 15px; }
}

/* 첫 화면: 빨간 띠 + 오른쪽 사진 */
.hero { background: var(--main); color: #fff; padding: 56px 0; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { white-space: nowrap; font-size: clamp(26px, 5vw, 56px); margin-bottom: .45em; }
.hero-lead { font-size: 19px; font-weight: 500; max-width: 30em; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 0 0 26px; font-weight: 800; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.btn-white { background: #fff; color: var(--main-dark); border-color: #fff; }
.btn-white:hover { background: var(--soft); border-color: var(--soft); color: var(--main-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--main-dark); }
.hero-photo { margin: 0; border-radius: var(--card-radius); overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-height: 440px; }

/* 쿠폰 카드: 가운데 정렬, 큰 할인율 */
.cc-body { text-align: center; align-items: center; }
.cc-body h3 { font-size: 17px; }
.cc-rate { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cc-rate::before { content: none; }
.code-card .cc-rate { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.code-card .cc-rate .kcode { font-size: 14px; font-weight: 700; }

/* 사용 방법: 가로 다섯 칸 */
.home .steps, .menu-page .part-steps .steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.home .steps li, .menu-page .part-steps .steps li { flex-direction: column; background: var(--bg-alt); border: 0; border-radius: var(--card-radius); padding: 22px 18px; }
.home .steps h3, .menu-page .part-steps .steps h3 { font-size: 17px; }
.section.tint .steps li { background: #fff; }

/* 카드사표: 빨간 코드 칸 */
.card-table tbody th a { color: var(--ink); }
.compare-table tbody th { color: var(--accent); }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo img { max-height: 320px; }
  .home .steps, .menu-page .part-steps .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 32px 0 36px; }
  .hero h1 { font-size: clamp(22px, 7.6vw, 34px); }
  .hero-lead { font-size: 17px; }
  .home .steps, .menu-page .part-steps .steps { grid-template-columns: 1fr; }
}
/* 휴대폰 쿠폰 카드: 사진 왼쪽 작게 */
@media (max-width: 560px) {
  .code-card { display: grid; grid-template-columns: 112px 1fr; }
  .cc-photo { display: block; height: 100%; }
  .cc-photo img { height: 100%; aspect-ratio: auto; min-height: 100%; }
  .cc-body { padding: 14px 14px 16px; text-align: left; align-items: stretch; }
  .cc-body h3 { font-size: 16px; }
  .code-card .cc-rate { font-size: 22px; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .cc-brief { font-size: 14px; margin-bottom: 12px; }
  .cc-body .btn { min-height: 40px; font-size: 15px; }
}

/* 상세 제목: 휴대폰에서 3줄 안쪽 */
@media (max-width: 560px) { .coupon-page h1 { font-size: 24px; } .menu-page h1 { font-size: 26px; } }
