/* 기존 Wix 사이트(bestconsulting.id) 디자인을 따른 스타일 */
:root {
  --navy: #0E3B5E; --navy-2: #3E6F96; --ink-dark: #0A1628; --sky: #5DC0EA;
  --about: #D3E1EC; --cream: #FCF7EC; --gold: #BE9A5A;
  --yellow: #F0BE5E; --coral: #FF6464; --blue: #566CB8;
  --text: #1E3A56;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: 'Open Sans', 'Noto Sans KR', -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; word-break: keep-all; }
body.lang-ko { font-family: 'Noto Sans KR', 'Open Sans', -apple-system, sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
.in { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* 머리글 */
.hd { position: sticky; top: 0; z-index: 30; background: var(--navy); }
.hd-in { max-width: 980px; margin: 0 auto; padding: 0 20px; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: Raleway, sans-serif; font-weight: 400; font-size: 22px; letter-spacing: 1px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--sky); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: #fff; text-decoration: none; font-family: Raleway, 'Noto Sans KR', sans-serif; font-size: 13px; padding: 8px 10px; }
.nav a:hover, .nav a.on { color: var(--sky); }
.nav a.st { border: 1px solid rgba(255,255,255,.55); border-radius: 2px; margin-left: 4px; }
.langsel select { margin-left: 10px; background: #fff; color: var(--navy); border: 0; font: inherit; font-size: 13px; padding: 2px 22px 2px 10px; width: 76px; height: 22px; border-radius: 0; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E3B5E' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; cursor: pointer; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .2s; }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 6px 20px 18px; transform: translateY(-130%); transition: transform .25s; box-shadow: 0 10px 20px rgba(0,0,0,.25); }
  .nav.open { transform: none; }
  .nav a { font-size: 16px; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.st { margin: 10px 0 0; text-align: center; border-radius: 2px; }
  .langsel select { margin: 12px 0 0; width: 100%; height: 34px; font-size: 15px; }
  .burger.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.x span:nth-child(2) { opacity: 0; }
  .burger.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* 홈 — 첫 화면 */
.hero { position: relative; min-height: 640px; background-size: cover; background-position: center 30%; display: flex; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(14,30,50,.08); }
.hero-in { position: relative; width: 100%; max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }
.hero-logo { width: 170px; display: block; }
.hero h1 { margin: 40px 0 0; text-align: center; color: #fff; font-family: 'Noto Sans KR', sans-serif; font-weight: 300; font-size: clamp(38px, 5.6vw, 58px); line-height: 1.45; letter-spacing: -1px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.lang-en .hero h1 { font-family: Raleway, sans-serif; letter-spacing: 0; }
.hero h1 b { font-weight: 700; }
@media (max-width: 700px) { .hero { min-height: 480px; } .hero-logo { width: 120px; } .hero h1 { margin-top: 50px; } }

/* 홈 — 업무 상자 */
.boxes { background: #FAFAFA; padding: 26px 0 30px; }
.boxes-in { max-width: 980px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.box { background: var(--navy); color: #fff; padding: 30px 30px 60px; min-height: 370px; display: flex; flex-direction: column; align-items: center; }
.box h3 { margin: 0 0 18px; font-weight: 400; font-size: 23px; letter-spacing: 1px; text-align: center; }
.box ul { margin: 0 0 22px; padding: 0 0 0 18px; font-size: 17px; line-height: 2; align-self: center; }
.box .mi { margin-top: auto; background: var(--navy-2); color: #fff; text-decoration: none; padding: 8px 30px; font-size: 15px; }
.box .mi:hover { background: #4C83AF; }
@media (max-width: 900px) { .boxes-in { grid-template-columns: 1fr; gap: 16px; max-width: 480px; } .box { min-height: 0; padding-bottom: 32px; } }

/* 홈 — 소개 */
.about { background: var(--about); padding: 70px 0 60px; }
.big { font-family: Raleway, sans-serif; font-weight: 300; font-size: clamp(40px, 6vw, 58px); color: var(--navy); text-align: center; margin: 0 0 40px; letter-spacing: 1px; }
.big.light { color: #fff; }
.about-txt { max-width: 720px; margin: 0 auto 80px; font-size: 14.5px; line-height: 1.75; color: var(--navy); }
.about-txt p { margin: 0 0 14px; }
.about-txt .q { font-weight: 700; text-decoration: underline; color: var(--navy); }
.pts { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pt { width: 222px; height: 242px; color: #fff; display: flex; flex-direction: column; align-items: center; padding: 14px 10px 16px; text-align: center; }
.pt0 { background: var(--yellow); } .pt1 { background: var(--coral); } .pt2 { background: var(--blue); }
.pt h4 { margin: 0 0 8px; font-weight: 400; font-size: 25px; letter-spacing: 1px; }
.pt2 h4 { font-family: Raleway, sans-serif; }
.pt-img { flex: 1; display: grid; place-items: center; width: 100%; }
.pt-img img { max-height: 132px; max-width: 160px; display: block; }
.pt b { font-family: 'Open Sans', sans-serif; font-size: 13.5px; font-weight: 700; }
.stband { margin: 56px auto 0; max-width: 680px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; flex-wrap: wrap; }
.stband b { display: block; font-size: 17px; font-weight: 500; }
.stband span { font-size: 13.5px; opacity: .8; }
.stband a { background: var(--navy-2); color: #fff; text-decoration: none; padding: 9px 22px; font-size: 14px; white-space: nowrap; }

/* 홈 — 연락처 */
.contact { background: var(--navy); color: #fff; padding: 70px 0 90px; }
.c-grid { display: grid; grid-template-columns: 450px 1fr; gap: 46px; align-items: start; }
.map { width: 100%; height: 360px; border: 0; margin-top: 30px; background: #ddd; }
.c-addr { font-style: normal; text-align: center; font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.c-addr b { font-size: 16px; }
.c-addr a { color: #fff; text-decoration: none; font-size: 15px; }
.cform label { display: block; font-size: 14.5px; margin-bottom: 8px; }
.cform label i { color: #F0BE5E; font-style: normal; }
.cform input, .cform textarea { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 14px; color: #222; background: #fff; border: 1px solid #fff; border-radius: 0; padding: 6px 10px; }
.cform textarea { margin-top: 22px; min-height: 118px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--sky); }
.cform .hp { position: absolute; left: -9999px; }
.c-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cform button { background: var(--navy-2); color: #fff; border: 0; font: inherit; font-size: 15px; padding: 6px 44px; cursor: pointer; }
.cform button:disabled { opacity: .6; }
.cmsg { margin: 0; font-size: 14px; font-weight: 600; }
.cmsg.ok { color: #9FE3BC; } .cmsg.err { color: #FFB3B3; }
@media (max-width: 900px) { .c-grid { grid-template-columns: 1fr; gap: 24px; } .map { height: 280px; margin-top: 0; order: 2; } }

/* 종합컨설팅 */
.cs { background-size: cover; background-position: center; padding: 50px 0 100px; }
.cs-in { max-width: 940px; margin: 0 auto; padding: 0 20px; text-align: center; color: #fff; }
.cs h1 { font-weight: 400; font-size: clamp(32px, 4.4vw, 44px); letter-spacing: 6px; margin: 30px 0 28px; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.lang-en .cs h1 { letter-spacing: 2px; font-family: Raleway, sans-serif; }
.hl { margin: 0 0 30px; line-height: 2.1; font-size: 15.5px; }
.hl span { display: inline; background: var(--ink-dark); padding: 3px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl span::after { content: ''; display: block; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.flow li { position: relative; background: var(--ink-dark); min-height: 240px; padding: 26px 12px; display: flex; flex-direction: column; align-items: center; }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: -32px; top: 74px; width: 40px; height: 40px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M8 2l18 18L8 38' fill='none' stroke='white' stroke-width='9'/%3E%3C/svg%3E") no-repeat center/contain; }
.flow .n { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 76px; line-height: 1.1; }
.flow .dash { display: block; width: 36px; height: 2px; background: #fff; margin: 14px 0 26px; }
.flow b { font-weight: 500; font-size: 15px; letter-spacing: 1px; }
.risk { margin-top: 42px; background: var(--ink-dark); padding: 26px; font-size: 21px; letter-spacing: 1px; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr 1fr; } .flow li::after { display: none; } .flow li { min-height: 190px; } .flow .n { font-size: 58px; } }

/* 법인설립·비자대행 (3단) */
.tri { display: grid; grid-template-columns: 28fr 44fr 28fr; min-height: calc(100vh - 70px - 110px); }
.tri-img { background-size: cover; background-position: center; min-height: 300px; }
.tri-mid { background: var(--cream); padding: 50px 9% 60px; }
.tri-mid h1 { color: var(--gold); text-align: center; font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; margin: 0 0 18px; }
.subt { text-align: center; letter-spacing: 2px; font-size: 14px; margin: 0 0 28px; color: var(--navy); }
.mark { text-align: center; margin: 36px 0 22px; font-size: 22px; font-weight: 500; }
.mark span { background: var(--navy); color: #fff; padding: 2px 4px; }
.terms { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 2; color: var(--navy); }
.terms li { margin-bottom: 2px; }
.terms b { font-weight: 700; }
.upd { margin-top: 30px; font-size: 12.5px; color: #6B7F92; line-height: 1.6; }
@media (max-width: 900px) {
  .tri { grid-template-columns: 1fr; }
  .tri-img { min-height: 200px; }
  .tri-img:last-child { display: none; }
  .tri-mid { padding: 36px 22px 44px; }
}

/* 자료실 */
.blog { padding: 50px 0 70px; }
.gtk { font-family: Raleway, sans-serif; font-weight: 300; font-size: clamp(36px, 5vw, 50px); color: var(--navy); text-align: center; margin: 0 0 50px; letter-spacing: 1px; }
.gtk::after { content: ''; display: block; width: 84px; height: 4px; background: var(--navy); margin: 8px auto 0; }
.posts { max-width: 866px; margin: 0 auto; display: grid; gap: 30px; }
.post { display: grid; grid-template-columns: 416px 1fr; border: 1px solid #E5EDF3; text-decoration: none; color: var(--navy); min-height: 312px; }
.post:hover h3 { color: var(--navy-2); }
.post-img { background-size: cover; background-position: center; min-height: 220px; }
.post-txt { padding: 30px 30px; }
.post h3 { font-family: Raleway, 'Noto Sans KR', sans-serif; font-weight: 400; font-size: 25px; margin: 0 0 16px; line-height: 1.35; }
.post p { margin: 0; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .post { grid-template-columns: 1fr; } .post-txt { padding: 20px; } }
.art { max-width: 740px; margin: 0 auto; border: 1px solid #E5EDF3; padding: 50px 60px; color: var(--navy); }
.art h1 { font-family: Raleway, 'Noto Sans KR', sans-serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 32px); margin: 0 0 8px; line-height: 1.35; }
.art .date { font-size: 13px; color: #6B7F92; margin: 0 0 30px; }
.art p, .art li { font-size: 15.5px; line-height: 1.8; }
.art h3 { font-size: 18px; margin: 28px 0 8px; }
.art img { display: block; margin: 6px auto; }
.art .note { background: #EEF4F9; padding: 12px 14px; font-size: 13.5px; color: #3D5872; }
.art .back { margin-top: 30px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 6px; }
.ptable th { background: #C9DDF1; font-weight: 500; }
.ptable th, .ptable td { border: 1px solid #555; padding: 4px 8px; }
.ptable td:first-child, .ptable th:first-child { text-align: center; width: 44px; }
@media (max-width: 700px) { .art { padding: 28px 18px; border: 0; } .ptable { font-size: 12.5px; } }

/* 바닥글 */
.ft { background: var(--navy); color: #fff; border-top: 6px solid #fff; }
.ft-in { max-width: 980px; margin: 0 auto; padding: 26px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.ft p { margin: 0; }
.ft address { font-style: normal; text-align: center; line-height: 1.5; }
.ft a { color: #fff; text-decoration: none; }
.ft .staff { opacity: .35; font-size: 12px; margin-left: 8px; }
@media (max-width: 760px) { .ft-in { flex-direction: column-reverse; text-align: center; font-size: 13px; } }
