:root {
  --ink: #1F3A3D;
  --accent: #E07A5F;
  --paper: #FBF7F0;
  --line: #E4DACB;
  --muted: #6B6255;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: "Gothic A1", "Noto Sans KR", sans-serif; font-display: swap;
  color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }

.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: #fff; }
.header-inner { max-width: 800px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: inherit; }
.main-nav ul { list-style: none; display: none; gap: 24px; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; }
.hamburger { width: 44px; height: 44px; background: none; border: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { width: 22px; height: 2px; background: #fff; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.mobile-nav a { display: block; padding: 12px 0; color: #fff; text-decoration: none; font-weight: 600; border-top: 1px solid rgba(255,255,255,.15); min-height: 44px; }
@media (min-width: 768px) { .main-nav ul { display: flex; } .hamburger { display: none; } .mobile-nav { display: none !important; } }

main { max-width: 760px; margin: 0 auto; padding: 0 20px 80px; }
.breadcrumb { padding: 16px 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { text-decoration: underline; }

.hero {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: 8px; margin-bottom: 32px;
}
.hero-img { width: 100%; height: 46vh; min-height: 300px; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw; background: linear-gradient(90deg, rgba(31,58,61,.9) 25%, rgba(31,58,61,.25) 90%);
  color: #fff;
}
.ledger-tag {
  display: inline-block; font-size: .78rem; letter-spacing: .08em; color: var(--accent); font-weight: 800;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin: 0 0 14px; align-self: flex-start;
}
.hero-overlay h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin: 0 0 14px; color: #fff; }
.ledger-lead { color: #e7e2d8; margin: 0; max-width: 620px; }

.site-photos { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.site-photos figure { margin: 0; }
.site-photos img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.site-photos figcaption { margin-top: 8px; font-size: .82rem; color: var(--muted); text-align: center; }
@media (min-width: 700px) { .site-photos { grid-template-columns: repeat(2, 1fr); } }

.section { padding: 32px 0; border-top: 1px dashed var(--line); }
.section h2 { font-size: 1.4rem; margin: 0 0 16px; }
.section > p { color: var(--muted); }

.factor-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.factor-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; position: relative; }
.factor-no { font-family: monospace; font-weight: 700; color: var(--accent); font-size: .85rem; }
.factor-card h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.factor-card p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (min-width: 700px) { .factor-grid { grid-template-columns: repeat(2, 1fr); } }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
th, td { border: 1px solid var(--line); padding: 12px; text-align: left; font-size: .93rem; }
th { background: var(--ink); color: #fff; }
tr:nth-child(even) td { background: #f6f1e6; }

@media (max-width: 640px) {
  .table-scroll { overflow-x: visible; }
  .table-scroll table { min-width: 0; }
  .table-scroll thead { display: none; }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
  .table-scroll tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .table-scroll tr:nth-child(even) td { background: #fff; }
  .table-scroll td { border: none; border-bottom: 1px dashed var(--line); padding: 10px 12px; }
  .table-scroll td:last-child { border-bottom: none; }
  .table-scroll td::before {
    content: attr(data-label); display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px;
  }
}

.faq-section .accordion-item { border-bottom: 1px dashed var(--line); }
.accordion-trigger {
  width: 100%; text-align: left; background: none; border: none; padding: 16px 4px; font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; justify-content: space-between; min-height: 44px; color: var(--ink);
}
.accordion-trigger::after { content: "+"; color: var(--accent); font-weight: 400; }
.accordion-trigger[aria-expanded="true"]::after { content: "-"; }
.accordion-panel { padding: 0 4px 16px; color: var(--muted); }

.links-section p { color: var(--ink); }
.links-section a { text-decoration: underline; color: var(--accent); font-weight: 700; }

.cta-section { display: flex; gap: 12px; flex-wrap: wrap; padding: 32px 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 4px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }

.site-footer { background: var(--ink); color: #d8e2e1; padding: 40px 20px 100px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 0 0 20px; padding: 0; max-width: 800px; margin-left: auto; margin-right: auto; }
.site-footer nav a { color: #fff; text-decoration: none; font-size: .92rem; }
.site-footer address { font-style: normal; font-size: .88rem; line-height: 1.8; text-align: center; }
.site-footer a[href^="tel:"] { color: var(--accent); font-weight: 700; }
.site-footer p { text-align: center; }

.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; z-index: 150; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
.mobile-cta { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
.mobile-cta.call { background: var(--accent); color: #fff; }
.mobile-cta.inquiry { background: var(--ink); color: #fff; }
@media (min-width: 1024px) { .mobile-cta-bar { display: none; } }
