:root {
  --red: #e10600;
  --red-2: #ff4b45;
  --blue: #1d6fe8;
  --green: #1e9d45;
  --ink: #1b2430;
  --muted: #5d6b7c;
  --line: #e5ebf2;
  --bg: #f3f6f9;
  --card: #fff;
  --soft: #f7f9fc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.post-shell {
  width: min(720px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 48px;
}
@media (max-width: 720px) {
  .post-shell { padding-bottom: 108px; }
}

.post-badges, .crumb { display: flex; flex-wrap: wrap; gap: 8px; }
.post-badges a, .post-badges span, .crumb a {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #edf1f6;
}
.crumb { margin-top: 10px; }
.crumb a { color: var(--muted); font-weight: 600; }

.post-header h1 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}
.post-header p, .lead { margin: 0; color: var(--muted); }

.post-call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 16px;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--red-2), var(--red));
  color: #fff;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 12px 28px rgba(225, 6, 0, 0.22);
}
.post-call span { font-size: 14px; font-weight: 700; opacity: 0.95; }
.post-call strong { font-size: 34px; letter-spacing: -0.03em; line-height: 1.2; }
.post-call small { font-size: 13px; opacity: 0.92; }

.post-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.post-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  text-align: center;
}
.post-action.blue { background: var(--blue); }
.post-action.green { background: var(--green); }
.post-action strong { font-size: 18px; }

.post-notice, .summary-card, .form-card, .place-card, .city-card, .info-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.post-notice { margin-top: 10px; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.post-notice p { margin: 0 0 6px; }
.post-notice strong { color: var(--ink); }

.post-hero-media, .post-map-promo { margin: 14px 0 0; }
.post-hero-media img, .post-map-promo img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.form-card { margin-top: 14px; padding: 16px; }
.form-card h2 { margin: 0 0 6px; font-size: 20px; }
.form-card .hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.fields { display: grid; gap: 10px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  padding: 12px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.agree-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.agree-box p { margin: 0 0 8px; }
.agree-box ul { margin: 0 0 8px; padding-left: 18px; }
.agree-box strong { color: var(--ink); }
.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}
.agree input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  padding: 0;
}
.submit {
  border: 0;
  border-radius: 12px;
  background: #142033;
  color: #fff;
  font-weight: 800;
  padding: 13px 14px;
  cursor: pointer;
}
.estimate-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f8ff;
  color: var(--ink);
}
.estimate-result a { color: var(--red); font-weight: 800; }

.post-summary { margin-top: 18px; }
.summary-card { padding: 16px; }
.summary-card h2, .post-strip h2, .section-heading h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.summary-card p { margin: 0 0 8px; color: #314052; }
.summary-card dl { display: grid; gap: 8px; margin: 12px 0 0; }
.summary-card dl div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.summary-card dt { color: var(--muted); font-weight: 700; }
.summary-card dd { margin: 0; font-weight: 700; }

.post-strip { margin-top: 18px; }
.rowx {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
}
.pcitem { flex: 0 0 148px; scroll-snap-align: start; text-decoration: none; }
.pcimg { width: 148px; height: 148px; object-fit: cover; border-radius: 14px; background: #dde3ea; }
.pcname { margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.35; }

.section-heading { margin: 22px 0 8px; }
.section-heading span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.place-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 12px;
  padding: 14px;
  margin-top: 10px;
}
.place-rank {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #142033;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.place-main h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; letter-spacing: -0.03em; }
.place-main h3 a { text-decoration: none; }
.place-cat, .place-addr, .place-kw, .place-desc { margin: 0; }
.place-cat, .place-addr { color: var(--muted); font-size: 13px; }
.place-kw { margin-top: 6px; color: #2458b5; font-size: 13px; font-weight: 700; }
.place-desc { margin-top: 4px; font-size: 14px; }
.place-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.place-links a, .mini a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.post-mini-cta, .mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mini a.solid { background: var(--red); color: #fff; }

.faq-button {
  width: 100%;
  text-align: left;
  margin-top: 8px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}
.faq-button[aria-expanded="true"] { background: #fff6f6; border-color: #f3c2c2; }
.faq-panel { padding: 8px 6px 4px; color: #314052; }
.faq-panel[hidden] { display: none; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pager a {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.pager a.pager-next { background: #142033; color: #fff; border-color: #142033; }

.post-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.post-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }

.post-resource-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.post-resource-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.post-resource-title { flex: 1; font-size: 15px; }
.post-resource-arrow { color: var(--muted); font-style: normal; font-size: 22px; }

.site-footer { margin-top: 22px; color: var(--muted); font-size: 13px; }
.city-grid, .service-grid { display: grid; gap: 10px; margin-top: 12px; }
.service-grid { grid-template-columns: 1fr 1fr; }
.city-card, .info-band { display: block; padding: 16px; text-decoration: none; }
.service-grid .info-band { padding: 10px; min-width: 0; }
.service-grid .info-band img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}
.city-card strong, .info-band strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.service-grid .info-band strong { margin-top: 8px; font-size: 16px; }
.city-card span, .info-band span { color: var(--muted); }
.service-grid .info-band span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; }
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.kw-row a {
  background: var(--soft);
  border-radius: 999px;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.area-block { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.area-block h2 { margin: 0; font-size: 18px; }
.area-block p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.callbar { display: none; }
@media (max-width: 720px) {
.callbar {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}
.callbar a {
  display: block;
  text-align: center;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px;
}

}
@media (max-width: 640px) {
  .post-header h1 { font-size: 22px; }
  .post-call strong { font-size: 28px; }
  .post-action-row { grid-template-columns: 1fr; }
  .post-thumbs { grid-template-columns: repeat(2, 1fr); }
  .summary-card dl div { grid-template-columns: 1fr; gap: 2px; }
}
