/* ============================================================
   다정(dajeong) — 공통 스타일
   색상은 data/config.js 에서 CSS 변수로 주입됩니다.
   (색상 변경은 style.css 가 아니라 config.js 에서)
   ============================================================ */

:root {
  --ink: #2b2a26;
  --paper: #f7f4ee;
  --panel: #fffdf9;
  --line: #e6e0d4;
  --muted: #76716a;
  --accent: #5b7f73;
  --accent-soft: #e8efea;
  --warm: #b9824f;
  --maxw: 1060px;
  --serif: "Nanum Myeongjo", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247,244,238,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand .logo-mark { flex: none; display: block; }
.brand .brand-text { display: inline-flex; align-items: baseline; gap: 8px; }
.brand .mark { font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: 0.04em; }
.brand .en { font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }

.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-size: 15px; text-decoration: none; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 62px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4.6vw, 46px); line-height: 1.28; letter-spacing: -0.01em; margin: 0 0 18px; }
.hero p.lede { font-size: 18px; color: var(--muted); max-width: 56ch; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-visual { display: block; }
.hero-art { width: 100%; height: auto; max-width: 460px; margin: 0 auto; display: block;
  filter: drop-shadow(0 18px 40px rgba(91,127,115,0.14)); }

/* 아이콘 버튼 */
.btn-icon { display: inline-flex; align-items: center; gap: 9px; }
.btn-icon svg { width: 19px; height: 19px; flex: none; }

/* ---------- Section head ---------- */
.tools-section { padding-top: 8px; }
.sh-sub { font-size: 14px; color: var(--muted); }

/* ---------- Tool cards on home ---------- */
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.tool-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color .15s, transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.tool-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px;
  background: var(--accent-soft); border-radius: 50%; opacity: .6; transition: transform .2s; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(91,127,115,0.14); }
.tool-card:hover::after { transform: scale(1.15); }
.tool-card .tc-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--accent); color: #fff;
  display: grid; place-items: center; position: relative; z-index: 1; }
.tool-card .tc-icon svg { width: 27px; height: 27px; }
.tool-card h3 { font-family: var(--serif); font-size: 21px; margin: 0; position: relative; z-index: 1; }
.tool-card p { font-size: 15px; color: var(--muted); margin: 0; flex: 1; position: relative; z-index: 1; }
.tool-card .tc-go { font-weight: 600; color: var(--accent); font-size: 15px; position: relative; z-index: 1; }

/* 이름 밴드 (메인 하단) */
.name-band { display: flex; gap: 22px; align-items: center; padding: 28px 30px;
  background: linear-gradient(120deg, var(--accent-soft), var(--panel)); border: 1px solid var(--line);
  border-radius: 16px; }
.name-band .nb-mark { flex: none; }
.name-band .nb-logo { width: 56px; height: 56px; }
.name-band .nb-title { font-family: var(--serif); font-size: 19px; margin: 0 0 6px; }
.name-band .nb-title b { color: var(--accent); }
.name-band p { margin: 0; font-size: 15px; color: var(--muted); }
.name-band .nb-more { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--accent); font-size: 14.5px; }

/* ---------- About 페이지 ---------- */
.about-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.about-hero .about-logo { width: 60px; height: 60px; flex: none; }
.meaning-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; }
.meaning-cards .mc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; position: relative; }
.meaning-cards .mc-num { font-family: var(--serif); font-size: 30px; color: var(--accent); opacity: .5; position: absolute; top: 16px; right: 20px; }
.meaning-cards .mc h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; }
.meaning-cards .mc p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ---------- Section ---------- */
.section { padding: 50px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.section-head h2 { font-family: var(--serif); font-size: 24px; margin: 0; }
.section-head a { font-size: 14px; }

/* ---------- Entry list ---------- */
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.entry:hover .entry-title a { color: var(--accent); }
.entry-title { font-family: var(--serif); font-size: 20px; line-height: 1.32; margin: 0 0 6px; }
.entry-title a { color: var(--ink); text-decoration: none; }
.entry .excerpt { font-size: 15px; color: var(--muted); margin: 0; }
.entry .meta-cat { font-size: 12.5px; color: var(--accent); white-space: nowrap; background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; }

/* ---------- Card grid (칼럼) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .kicker { font-size: 12px; letter-spacing: 0.06em; color: var(--warm); font-weight: 700; }
.card h3 { font-family: var(--serif); font-size: 19px; margin: 0; line-height: 1.32; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card:hover h3 a { color: var(--accent); }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; flex: 1; }
.card .byline { font-size: 13px; color: var(--muted); }

/* ---------- Article ---------- */
.article { padding: 50px 0 24px; }
.article-head { max-width: 740px; margin: 0 auto 28px; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.article-head .cat { display: inline-block; font-size: 12.5px; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.article-head h1 { font-family: var(--serif); font-size: clamp(25px, 3.6vw, 36px); line-height: 1.3; margin: 0 0 16px; }

.byline-box { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline-box .avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.byline-box .who .name { font-weight: 600; }
.byline-box .who .name a { color: var(--ink); }
.byline-box .who .name a:hover { color: var(--accent); }
.byline-box .who .sub { font-size: 13px; color: var(--muted); }

.article-body { max-width: 740px; margin: 0 auto; }
.article-body h2 { font-family: var(--serif); font-size: 24px; margin: 40px 0 14px; }
.article-body h3 { font-size: 18.5px; margin: 26px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-fig { margin: 30px 0 32px; }
.article-fig svg { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(91,127,115,0.08); }
.article-fig figcaption { margin-top: 10px; text-align: center; font-size: 13.5px; color: var(--muted); }

.article-footer { max-width: 740px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.disclaimer { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--warm); border-radius: 8px; padding: 16px 18px; font-size: 14px; color: var(--muted); margin-top: 12px; }

.author-cta { background: var(--accent-soft); border-radius: 12px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; }
.author-cta .avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.author-cta .name { font-weight: 700; margin-bottom: 4px; }
.author-cta p { font-size: 14px; color: #3f5a51; margin: 0 0 10px; }
.author-cta a.more { font-size: 14px; font-weight: 600; }

/* ---------- Generic page ---------- */
.page { padding: 50px 0; }
.page-inner { max-width: 740px; margin: 0 auto; }
.page-inner h1 { font-family: var(--serif); font-size: clamp(25px, 3.6vw, 34px); margin: 0 0 8px; }
.page-inner .lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.page-inner h2 { font-family: var(--serif); font-size: 21px; margin: 32px 0 12px; }
.page-inner p { margin: 0 0 16px; }
.page-inner ul { padding-left: 22px; margin: 0 0 16px; }
.page-inner li { margin-bottom: 8px; }

/* ---------- Forms / Tools ---------- */
.tool-wrap { max-width: 760px; margin: 0 auto; }
.tool-intro { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 26px; font-size: 15px; color: var(--muted); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; font-family: inherit; background: var(--panel); color: var(--ink);
}
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; padding: 12px 24px; border-radius: 9px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* checkbox group */
.checkgroup { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkitem { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.checkitem input { margin-top: 3px; }
.checkitem .ci-label { font-weight: 600; font-size: 15px; }
.checkitem .ci-desc { font-size: 13px; color: var(--muted); }

/* result box */
.result { margin-top: 28px; }
.result.hidden { display: none; }
.result-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.result-card h3 { font-family: var(--serif); font-size: 20px; margin: 0 0 6px; }
.result-order { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }

.heir-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.heir-table th, .heir-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.heir-table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.heir-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.heir-table .hl { color: var(--accent); font-weight: 600; }

.result-notes { margin-top: 16px; padding: 16px 18px; background: var(--accent-soft); border-radius: 10px; }
.result-notes ul { margin: 0; padding-left: 20px; }
.result-notes li { font-size: 13.5px; color: #3f5a51; margin-bottom: 6px; }

/* 상속재산 요약 */
.estate-summary { margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.estate-summary b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 법정상속분 분배 막대 */
.dist { margin: 20px 0 4px; }
.dist-title { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.dist-bar { display: flex; width: 100%; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.dist-bar .seg { display: flex; align-items: center; justify-content: center; min-width: 0; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.dist-bar .seg.s0 { background: var(--accent); }
.dist-bar .seg.s1 { background: var(--warm); }
.dist-bar .seg.s2 { background: #8a9c6e; }
.dist-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.dist-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.dist-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.dist-legend i.s0 { background: var(--accent); } .dist-legend i.s1 { background: var(--warm); } .dist-legend i.s2 { background: #8a9c6e; }

/* checklist result */
.cl-result-group { margin-bottom: 22px; }
.cl-result-group h4 { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; color: var(--accent); }
.cl-result-group ul { list-style: none; margin: 0; padding: 0; }
.cl-result-group li { padding: 9px 0 9px 28px; position: relative; font-size: 15px; border-bottom: 1px dashed var(--line); }
.cl-result-group li::before { content: "□"; position: absolute; left: 4px; color: var(--accent); font-size: 16px; }

.related-tool { margin-top: 24px; padding: 18px 20px; background: var(--accent-soft); border-radius: 12px; font-size: 14.5px; }
.related-tool a { font-weight: 600; }

/* ---------- 법령 안내(접이식) ---------- */
.law-note { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.law-note > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.law-note > summary::-webkit-details-marker { display: none; }
.law-note > summary::before { content: "＋"; color: var(--accent); font-weight: 700; }
.law-note[open] > summary::before { content: "－"; }
.law-note > summary span { color: var(--muted); font-weight: 400; }
.law-note-body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.law-note-body p { font-size: 14.5px; color: var(--ink); margin: 14px 0 0; line-height: 1.75; }
.law-note-body ul { margin: 12px 0 0; padding-left: 20px; }
.law-note-body li { font-size: 14.5px; color: var(--ink); margin-bottom: 7px; line-height: 1.7; }
.law-ref { display: inline-block; background: var(--accent-soft); color: #3f5a51; font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 6px; }
.law-caveat { font-size: 13.5px !important; color: var(--muted) !important; background: #faf6ef; border-radius: 8px; padding: 12px 14px; }

/* ---------- 예상 상속세 카드 ---------- */
.tax-card { margin-top: 16px; border: 1px solid #e6d4be; border-radius: 14px; background: linear-gradient(180deg, #fffaf3, #fff); padding: 22px 24px; }
.tax-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.tax-head h3 { font-family: var(--serif); font-size: 19px; margin: 0; }
.tax-badge { background: var(--warm); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.tax-amount { font-size: 17px; margin: 6px 0 14px; color: var(--ink); }
.tax-amount b { font-family: var(--serif); font-size: 26px; color: var(--warm); }
.tax-amount.tax-free b { color: var(--accent); }
.tax-amount .tax-short { font-size: 14px; color: var(--muted); margin-left: 6px; }
.tax-detail { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px dashed #e6d4be; }
.tax-detail li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #e6d4be; font-size: 14px; }
.tax-detail li span { color: var(--muted); flex: none; }
.tax-detail li b { text-align: right; font-weight: 600; }
.tax-warn { font-size: 13px; color: #7a5a33; background: #f6ecdd; border-radius: 10px; padding: 13px 15px; margin: 0; line-height: 1.7; }
.tax-warn a { font-weight: 600; color: var(--warm); white-space: nowrap; }

/* ---------- 안심상속 원스톱 서비스 카드 ---------- */
.service-card { margin-top: 30px; display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center;
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px;
  background: linear-gradient(120deg, var(--accent-soft), var(--panel)); }
.service-card .svc-media { display: grid; place-items: center; }
.service-card .svc-art { width: 130px; height: 130px; }
.service-card .svc-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.service-card h2 { font-family: var(--serif); font-size: 23px; margin: 10px 0 8px; }
.service-card p { font-size: 14.5px; color: var(--ink); margin: 0 0 12px; line-height: 1.75; }
.service-card .svc-points { list-style: none; margin: 0 0 16px; padding: 0; }
.service-card .svc-points li { font-size: 14px; color: var(--ink); padding: 5px 0 5px 22px; position: relative; }
.service-card .svc-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.service-card .svc-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* ---------- 한정승인 안내 페이지 ---------- */
.callout-warn { margin: 18px 0 8px; padding: 16px 20px; background: #f6ecdd; border: 1px solid #e6d4be; border-left: 4px solid var(--warm); border-radius: 12px; font-size: 14.5px; color: #7a5a33; }
.la-h2 { font-family: var(--serif); font-size: 23px; margin: 40px 0 8px; }
.la-lead { color: var(--muted); font-size: 15px; margin: 0 0 18px; max-width: 64ch; }
.la-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.la-choice .lc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.la-choice .lc h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; }
.la-choice .lc p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.7; }
.la-choice .lc-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 8px 22px rgba(91,127,115,0.12); }
.la-choice .lc-on h3 { color: var(--accent); }
.la-choice .lc-on p { color: #3f5a51; }

.la-steps { list-style: none; counter-reset: la; margin: 0; padding: 0; }
.la-step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.la-step:last-child { border-bottom: 0; }
.la-step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.la-step h3 { font-size: 17px; margin: 4px 0 6px; }
.la-step p { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.75; }

.la-docs { list-style: none; margin: 0; padding: 0; }
.la-docs li { padding: 14px 0 14px 30px; position: relative; border-bottom: 1px dashed var(--line); }
.la-docs li::before { content: "□"; position: absolute; left: 4px; top: 13px; color: var(--accent); font-size: 17px; }
.la-doc-name { display: block; font-weight: 600; font-size: 15px; }
.la-doc-desc { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.la-faq { display: flex; flex-direction: column; gap: 10px; }
.la-guide { margin: 4px 0 0; padding-left: 20px; }
.la-guide li { margin-bottom: 10px; font-size: 15px; line-height: 1.7; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 100px 0; }
.error-page .code { font-family: var(--serif); font-size: 84px; color: var(--accent); line-height: 1; }
.error-page h1 { font-family: var(--serif); font-size: 25px; margin: 14px 0 10px; }
.error-page p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 42px 0; background: var(--panel); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink); font-size: 14.5px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .mark { font-family: var(--serif); font-weight: 700; font-size: 21px; display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .mark .logo-mark-sm { width: 28px; height: 28px; flex: none; }
.footer-brand .mark .en { font-size: 12px; color: var(--accent); margin-left: 7px; }
.footer-brand p { font-size: 14px; color: var(--muted); margin: 8px 0 0; max-width: 40ch; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tool-row { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { order: -1; }
  .hero-art { max-width: 320px; }
  .meaning-cards { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .service-card .svc-points { text-align: left; display: inline-block; }
  .service-card .svc-points li { padding-left: 22px; }
  .la-choice { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: inline-block; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .entry .meta-cat { justify-self: start; }
  .field-row { grid-template-columns: 1fr; }
  .checkgroup { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .name-band { flex-direction: column; text-align: center; gap: 14px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .tax-detail li { flex-direction: column; gap: 2px; }
  .tax-detail li b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
