:root {
  --brand-blue: #145cff;
  --brand-blue-dark: #0d3fb3;
  --brand-blue-soft: #edf4ff;
  --brand-mint: #18c29c;
  --brand-yellow: #ffd84d;
  --brand-ink: #111827;
  --brand-muted: #5b6472;
  --brand-line: #d9e3f0;
  --brand-surface: #f4f7fb;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #fff !important; color: var(--brand-ink); font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; word-break: keep-all; }
body > header { position: sticky; top: 0; z-index: 1000; width: 100%; min-height: 68px; display: flex; align-items: center; gap: 18px; padding: 0 max(16px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--brand-line); background: rgba(255,255,255,.97); box-shadow: none; }
.logo-wrap { min-width: 0; display: inline-flex; align-items: center; gap: 9px; color: var(--brand-ink); text-decoration: none; }
.logo-wrap img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.logo-text { color: var(--brand-ink); font-size: 17px; font-weight: 900; white-space: nowrap; }
.logo-text .accent { color: var(--brand-blue); }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-menu > a { min-height: 44px; display: flex; align-items: center; color: #263246; font-size: 14px; font-weight: 800; text-decoration: none; }
.nav-menu > a:hover, .nav-menu > a.active, .nav-menu > a[aria-current="page"] { color: var(--brand-blue); }
.nav-dropdown { display: none !important; }
.nav-menu > a[href="step2"] { order: 1; }
.nav-menu > a[href="plans"] { order: 2; }
.nav-menu > a[href="usim-guide"] { order: 3; }
.nav-menu > a[href="faq"] { order: 4; }
.nav-menu > a[href="board"] { order: 5; }
.nav-menu > a[href="franchise"] { order: 6; }
.nav-menu-cta { order: 7; }
.nav-menu-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 14px; font-size: 14px; font-weight: 900; text-decoration: none; }
.nav-btn-outline { border-color: #bfd0e8; background: #fff; color: var(--brand-blue-dark); }
.nav-btn-fill { background: var(--brand-blue); color: #fff; box-shadow: 0 7px 18px rgba(20,92,255,.18); }
.hamburger { display: none; width: 44px; height: 44px; flex: 0 0 44px; place-content: center; gap: 5px; padding: 0; border: 1px solid var(--brand-line); border-radius: 14px; background: #fff; }
.hamburger span { width: 20px; height: 2px; display: block; border-radius: 2px; background: var(--brand-ink); }
.menu-overlay { display: none; }

.main-section, .page-wrapper { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 72px; }
.page-title, .main-title { margin: -52px calc(50% - 50vw) 42px !important; padding: 58px max(16px, calc((100vw - 1080px) / 2)) !important; border: 0 !important; border-radius: 0 !important; background: var(--brand-blue-soft) !important; color: var(--brand-ink) !important; text-align: center; box-shadow: none !important; }
.page-title::before, .main-title::before { display: inline-flex !important; align-items: center; min-height: 30px; height: auto !important; margin: 0 0 16px !important; padding: 0 13px !important; border-radius: 999px; background: var(--brand-blue) !important; color: #fff !important; font-size: 12px; font-weight: 900; }
.page-title h1, .main-title h1, .page-wrapper h1 { margin: 0; color: var(--brand-ink) !important; font-size: clamp(30px, 5vw, 46px) !important; line-height: 1.2 !important; }
.page-title h1 span, .main-title h1 span { color: var(--brand-blue) !important; }
.page-title .subtitle, .page-title > p:not(.count), .main-title .sub, .form-desc { max-width: 680px; margin: 13px auto 0 !important; color: var(--brand-muted) !important; font-size: 16px; line-height: 1.7; }
.page-title .count { display: inline-flex; align-items: center; min-height: 30px; margin: 14px 0 0 !important; padding: 5px 11px; border: 1px solid #bfd2ff; border-radius: 999px; background: #fff !important; color: var(--brand-blue) !important; font-size: 13px; font-weight: 900; }
.step-question { margin: 18px auto 0; color: var(--brand-blue-dark) !important; font-size: 20px; font-weight: 900; }
.board-page-title { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.board-page-title h1 { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 10px; text-align: center !important; }
.board-page-title .board-brand { color: var(--brand-ink) !important; }
.board-page-title .board-title-accent { color: var(--brand-blue) !important; }
.board-page-title .subtitle { width: min(100%, 680px); text-align: center !important; }

.page-wrapper { display: grid; gap: 24px; }
.form-panel, .contact-panel, .franchise-fit, .faq-section, .bottom-cta, .faq-guide-card { border: 1px solid var(--brand-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(17,24,39,.06); }
.form-panel, .contact-panel { padding: 28px; }
.form-panel h1 { font-size: clamp(30px, 5vw, 44px); }
.franchise-intro { padding: 8px 0 2px; }
.franchise-eyebrow { display: inline-flex; margin: 0 0 12px; padding: 7px 12px; border-radius: 999px; background: var(--brand-blue-soft); color: var(--brand-blue); font-size: 14px; font-weight: 900; }
.franchise-lead { margin: 16px 0 0; color: var(--brand-ink); font-size: 19px; line-height: 1.65; }
.franchise-lead strong, .franchise-detail strong { color: var(--brand-blue); }
.franchise-detail { margin: 10px 0 0; color: var(--brand-muted); font-size: 16px; line-height: 1.75; }
.franchise-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.franchise-keywords span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #bfd2ff; border-radius: 999px; background: #fff; color: var(--brand-blue-dark); font-size: 13px; font-weight: 800; }
.mobile-only { display: none; }
.form-group label, .consent-title { color: var(--brand-ink); font-weight: 800; }
.form-group input, .form-group textarea, .board-search input { min-height: 52px; border: 1px solid var(--brand-line); border-radius: 14px; background: #fff; color: var(--brand-ink); font-size: 16px; }
.form-group textarea { min-height: 130px; }
.field-help { display: block; margin-top: 7px; color: var(--brand-muted); font-size: 13px; line-height: 1.5; }
.consent-desc { margin: 5px 0 12px; color: var(--brand-muted); font-size: 13px; line-height: 1.6; }
.form-group input:focus, .form-group textarea:focus { outline: 3px solid rgba(20,92,255,.14); border-color: var(--brand-blue); }
.submit-btn, .cta-btn, .inquiry-btn, .bottom-cta a { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 16px; background: var(--brand-blue); color: #fff; font-size: 16px; font-weight: 900; text-decoration: none; box-shadow: 0 9px 20px rgba(20,92,255,.2); }
.franchise-hero-actions, .bottom-cta-actions { display: grid; gap: 9px; margin: 20px 0 24px; }
.franchise-hero-actions a { min-height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 15px; background: var(--brand-blue); color: #fff; font-weight: 900; text-decoration: none; }
.franchise-hero-actions a:last-child { background: var(--brand-yellow); color: #251f00; }
.contact-panel { background: var(--brand-blue-soft); color: var(--brand-ink); }
.contact-panel h2, .contact-panel h3, .contact-info a { color: var(--brand-ink); }
.contact-icon { background: #fff; color: var(--brand-blue); }
.contact-icon svg { fill: var(--brand-blue) !important; }
.contact-info .ci-label { color: var(--brand-blue-dark) !important; }
.contact-info a { font-weight: 800; }
.franchise-fit, .faq-section { padding: 28px; }
.fit-grid { display: grid; gap: 14px; }
.fit-card { padding: 20px; border: 1px solid var(--brand-line); border-radius: 18px; background: var(--brand-surface); }
.fit-card strong { color: var(--brand-blue-dark); }

.category-filter, .faq-tabs { display: flex; gap: 8px; margin: 0 0 24px; padding: 4px 0 8px; overflow-x: auto; scrollbar-width: thin; }
.board-search { margin: 0 0 22px; padding: 18px; border: 1px solid var(--brand-line); border-radius: 18px; background: var(--brand-surface); }
.board-search label { display: block; margin-bottom: 8px; color: var(--brand-ink); font-size: 14px; font-weight: 900; }
.board-search div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.board-search input { width: 100%; padding: 0 15px; }
.board-search button { min-width: 76px; border: 0; border-radius: 14px; background: var(--brand-blue); color: #fff; font-weight: 900; cursor: pointer; }
.filter-btn, .faq-tab { min-height: 44px; flex: 0 0 auto; padding: 0 16px; border: 1px solid var(--brand-line); border-radius: 999px; background: #fff; color: #445166; font-weight: 800; cursor: pointer; }
.filter-btn.active, .faq-tab.active { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
.post-list { display: grid; gap: 14px; }
.post-card { display: block; padding: 22px; border: 1px solid var(--brand-line); border-radius: 18px; background: #fff; color: var(--brand-ink); text-decoration: none; box-shadow: 0 7px 20px rgba(17,24,39,.05); transition: transform .16s ease, border-color .16s ease; }
.post-card:hover { transform: translateY(-2px); border-color: var(--brand-blue); }
.post-category, .q-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--brand-blue-soft); color: var(--brand-blue); font-size: 12px; font-weight: 900; }
.post-title { margin: 12px 0 7px; color: var(--brand-ink); font-size: 20px; line-height: 1.45; }
.post-excerpt { margin: 0; color: var(--brand-muted); font-size: 14px; line-height: 1.7; }
.post-meta { margin-top: 14px; color: #7a8595; font-size: 12px; }
.empty-state { padding: 40px 20px; border-radius: 18px; background: var(--brand-surface); color: var(--brand-muted); text-align: center; }

.faq-list { border-top: 1px solid var(--brand-line); }
.faq-item { border-bottom: 1px solid var(--brand-line); background: #fff; }
.faq-question { width: 100%; min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 15px 4px; border: 0; background: transparent; color: var(--brand-ink); text-align: left; font-size: 16px; font-weight: 800; cursor: pointer; }
.faq-question .arrow { margin-left: auto; color: var(--brand-blue); }
.faq-answer { color: var(--brand-muted); font-size: 15px; line-height: 1.75; }
.faq-answer a { color: var(--brand-blue); font-weight: 800; }
.faq-item.open .faq-answer { padding-bottom: 20px; }
.note { padding: 14px; border-radius: 14px; background: var(--brand-blue-soft); color: #40506a; }

.cards { display: grid; gap: 16px; }
.card { padding: 24px; border: 1px solid var(--brand-line); border-radius: 20px; background: #fff; box-shadow: 0 9px 26px rgba(17,24,39,.06); }
.cards .card.card-yes { border-color: #bdd0ff !important; background: #edf4ff !important; color: var(--brand-ink) !important; }
.cards .card.card-no { border-color: #bdebe1 !important; background: #f0fbf8 !important; color: var(--brand-ink) !important; }
.cards .card h2 { color: var(--brand-ink) !important; }
.cards .card .card-desc { color: var(--brand-muted) !important; }
.cards .card .cta-btn { background: var(--brand-blue) !important; color: #fff !important; border-color: var(--brand-blue) !important; }
.card h2 { color: var(--brand-ink); }
.card-desc { color: var(--brand-muted); }
.notice { padding: 16px 18px; border: 1px solid #bdebe1; border-radius: 16px; background: #e9faf6; color: #25584e; }
.inquiry-btn-wrap { margin: 24px 0; }
.opening-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(128px, 1fr); gap: 8px; margin: 0 0 24px; padding: 4px 0 10px; overflow-x: auto; }
.opening-steps span { min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--brand-line); border-radius: 15px; background: #fff; color: var(--brand-muted); font-size: 13px; font-weight: 800; }
.opening-steps b { color: var(--brand-blue); }
.opening-steps .current { border-color: var(--brand-blue); background: var(--brand-blue-soft); color: var(--brand-blue-dark); }
.bottom-cta-actions { margin-bottom: 0; }
.bottom-cta-actions a:nth-child(2) { background: var(--brand-yellow); color: #251f00; }
.bottom-cta-actions a:nth-child(3) { border: 1px solid var(--brand-line); background: #fff; color: var(--brand-blue-dark); box-shadow: none; }

.sub-footer { padding: 36px 16px 110px; background: #101827; color: #c8d0dc; }
.sub-footer-inner { width: min(1080px, 100%); margin: 0 auto; }
.sub-footer b { color: #fff; font-size: 16px; }
.sub-footer p { margin: 8px 0 0; font-size: 13px; line-height: 1.7; }
.sub-footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.sub-footer a { color: #fff; font-size: 13px; text-decoration: none; }
.sub-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--brand-line); background: rgba(255,255,255,.97); box-shadow: 0 -7px 20px rgba(17,24,39,.1); }
.sub-mobile-cta a { min-height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; font-size: 16px; font-weight: 900; text-decoration: none; }
.sub-mobile-cta a:first-child { background: var(--brand-yellow); color: #251f00; }
.sub-mobile-cta a:last-child { background: var(--brand-blue); color: #fff; }
.float-inquiry, .float-buttons { display: none !important; }

@media (min-width: 720px) {
  .page-wrapper { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); }
  .franchise-fit, .page-wrapper > .faq-section { grid-column: 1 / -1; }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .franchise-hero-actions { grid-template-columns: 1fr 1fr; }
  .bottom-cta-actions { grid-template-columns: repeat(3, 1fr); }
  .post-list { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  body > header { min-height: 78px; }
  .sub-footer { padding-bottom: 38px; }
  .sub-mobile-cta { display: none; }
}

@media (max-width: 899px) {
  body > header { padding: 0 16px; }
  .logo-text { font-size: 15px; }
  .nav-cta { margin-left: auto; }
  .nav-cta .nav-btn-fill { display: none; }
  .hamburger { display: grid; }
  .nav-menu { position: fixed; top: 68px; left: 0; right: 0; z-index: 1100; display: none; height: auto; max-height: calc(100vh - 68px); grid-template-columns: 1fr 1fr; align-items: stretch; justify-content: start; gap: 8px; margin: 0; padding: 18px 16px 24px; overflow-y: auto; border-bottom: 1px solid var(--brand-line); background: #fff; box-shadow: 0 18px 32px rgba(17,24,39,.14); }
  .nav-menu.open { display: grid; }
  .nav-menu > a { min-height: 52px; padding: 0 15px; border: 1px solid var(--brand-line); border-radius: 14px; background: #fff; }
  .nav-menu-cta { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
  .menu-overlay.open { position: fixed; inset: 68px 0 0; z-index: 900; display: block; background: rgba(17,24,39,.34); }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-section, .page-wrapper { padding-top: 42px; padding-bottom: 64px; }
  .page-title, .main-title { margin-top: -42px; }
  .franchise-intro { text-align: center; }
  .franchise-intro h1 { margin-left: auto; margin-right: auto; line-height: 1.25; }
  .franchise-lead { font-size: 18px; }
  .franchise-detail { font-size: 15px; }
  .franchise-keywords { justify-content: center; }
  .mobile-only { display: block; }
  .contact-panel { text-align: left; }
}

@media (max-width: 380px) {
  body > header { gap: 8px; padding: 0 12px; }
  .logo-wrap img { width: 40px; height: 40px; }
  .logo-text { font-size: 14px; }
  .nav-cta .nav-btn { min-height: 42px; padding: 0 10px; font-size: 12px; }
  .hamburger { width: 42px; height: 42px; flex-basis: 42px; }
  .main-section, .page-wrapper { width: min(100% - 24px, 1080px); }
}

@media (max-width: 600px) {
  .board-page-title h1 { flex-direction: column; align-items: center; gap: 3px; font-size: 30px !important; }
}
