/* 헤더 펼침 메뉴 (랜딩 모든 페이지). 메뉴에 마우스를 올리면 위에서부터 흰 안개 판이 내려온다 */
header#top { position: relative; z-index: 40; }
.home-page > header#top { position: absolute; z-index: 40; }
body > header#top { z-index: 40; }
header#top nav[aria-label="주요 메뉴"] a { transition: color .2s; }
header#top.menu-open nav[aria-label="주요 메뉴"] a { color: #8B95A1; }
header#top.menu-open nav[aria-label="주요 메뉴"] a.is-hot { color: #191F28; }

.mega {
  position: fixed; inset: 0 0 auto; z-index: 39; height: 520px; pointer-events: none;
  opacity: 0; transition: opacity .28s cubic-bezier(.2,.7,.2,1);
}
.mega::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, #fff 0%, rgba(255,255,255,.97) 42%, rgba(255,255,255,.78) 68%, rgba(255,255,255,0) 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.mega.open { opacity: 1; pointer-events: auto; }
.mega__panel {
  position: absolute; top: 108px; left: 0; display: none; gap: 72px;
  transform: translateY(-6px); transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.mega.open .mega__panel.on { display: flex; transform: none; }
.mega__col { min-width: 168px; }
.mega__col h3 { margin: 0 0 22px; font-size: 14px; font-weight: 500; color: #8B95A1; letter-spacing: -0.03em; }
.mega__col a { display: block; margin-bottom: 14px; font-size: 16px; font-weight: 500; color: #333D4B; text-decoration: none; letter-spacing: -0.03em; transition: color .15s; }
.mega__col a:hover { color: #191F28; text-decoration: underline; text-underline-offset: 4px; }

/* 아래로 내려가면 헤더는 위로 숨고, 화면 맨 위에 마우스를 대면 다시 내려온다 (어느 섹션이든) */
body > header#top.is-float { position: fixed; left: 0; right: 0; margin-inline: auto; transform: translateY(-110%); transition: transform .32s cubic-bezier(.2,.7,.2,1); } /* 떠 있는 머리도 평소와 같은 폭·가운데(폭을 안 주면 내용만큼 줄어 왼쪽에 몰린다) */
body > header#top.is-float.is-peek { transform: none; }
/* 하위 쪽(홈 밖)은 내려가도 숨기지 않고 위에 붙여 둔다 (11-20) */
body:not(.home-page) > header#top.is-float { transform: none; }
@media (max-width: 760px) { body:not(.home-page) > header#top.is-float { left: var(--page-gutter, 24px); right: var(--page-gutter, 24px); } } /* 휴대폰: 떠 있을 때도 원래 머리처럼 양옆을 비운다 */
header#top.is-float::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0; z-index: -1;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body[data-dark-header] > header#top.is-float a { color: #333d4b; }
body[data-dark-header] > header#top.is-float a.header-cta { background: rgba(225, 218, 239, .45); }
body[data-dark-header] > header#top.is-float .site-logo img { filter: none; }

/* 언어 고르기 */
.lang { position: relative; display: flex; align-items: center; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: #333d4b; cursor: pointer; letter-spacing: 0; }
.lang__btn:hover { color: #7938d6; }
.lang__btn:focus-visible { outline: 2px solid #7938d6; outline-offset: 6px; }
.lang__caret { width: 0; height: 0; border-inline: 5px solid transparent; border-top: 6px solid currentColor; transition: transform .2s; }
.lang.open .lang__caret { transform: rotate(180deg); }
.lang__list { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0; min-width: 132px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(25,31,40,.12), 0 0 0 1px #ECECF0;
  opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .18s, transform .18s; }
.lang.open .lang__list { opacity: 1; pointer-events: auto; transform: none; }
.lang__list a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 16px; color: #333d4b; }
.lang__list a:hover { background: #F5F6F8; color: #191F28; }
.lang__list a[aria-current="true"] { color: #7517d6; font-weight: 600; }
body[data-dark-header] > header#top:not(.is-float) .lang__btn { color: #fff; }
@media (max-width: 760px) { .lang__list { left: auto; right: 0; translate: none; } }
.mega__col a.is-soon { color: #8B95A1; cursor: default; } .mega__col a.is-soon:hover { text-decoration: none; color: #8B95A1; }

/* 판 글자·간격은 토스(toss.im) 펼침 메뉴 실측값: 칸 203px·사이 24px, 칸 제목 14/500 회색, 항목 16/600, 줄 간격 약 37px */
.mega { height: 560px; }
.mega::before { background: linear-gradient(to bottom, #fff 0%, #fff 64%, rgba(255,255,255,.85) 82%, rgba(255,255,255,0) 100%); }
.mega__panel { gap: 24px; }
.mega__col { width: 203px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.mega__col h3 { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.6; color: #727780; letter-spacing: -0.01em; }
.mega__links { display: flex; flex-direction: column; gap: 12px; }
.mega__col a { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.6; color: #333840; letter-spacing: -0.02em; }
.mega__col a:hover { color: #191F28; text-decoration: none; }
.mega__col a.is-soon, .mega__col a.is-soon:hover { color: #B0B8C1; cursor: default; }
header#top.menu-open nav[aria-label="주요 메뉴"] a.is-hot { font-weight: 600; }

/* 11-19 조정: 토스 글꼴보다 우리 글꼴이 굵게 보여 항목 굵기를 두 단계 낮춘다(600→400).
   판은 토스처럼 4칸 자리(203×4 + 24×3 = 884px)를 늘 잡고 헤더 오른쪽 끝에 붙인다 → 칸이 3개여도 첫 칸이 메뉴보다 왼쪽에서 시작 */
.mega__panel { width: 884px; justify-content: flex-start; }
.mega__col h3 { font-weight: 400; color: #8B95A1; }
.mega__col a { font-weight: 400; color: #333D4B; }
header#top.menu-open nav[aria-label="주요 메뉴"] a.is-hot { font-weight: 500; }

/* 토스처럼: 메뉴가 열리면 화면 전체를 흰 안개로 덮는다(판 아래는 흐릿하게 비친다) */
.mega { height: 100vh; height: 100dvh; }
.mega::before {
  background: linear-gradient(to bottom, #fff 0%, #fff 50%, rgba(255,255,255,.9) 72%, rgba(255,255,255,.82) 100%);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: none; mask-image: none;
}

/* 휴대폰 메뉴 */
.mnav-btn { display: none; }
@media (max-width: 760px) {
  .mnav-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-right: -8px; padding: 0 9px; border: 0; background: none; cursor: pointer; }
  .mnav-btn span { display: block; height: 2px; border-radius: 1px; background: #333D4B; }
  body[data-dark-header] > header#top:not(.is-float) .mnav-btn span { background: #fff; }
  header nav[aria-label="계정 메뉴"] { gap: 14px; }
}
.mnav { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mnav[hidden] { display: none; }
html.mnav-lock, html.mnav-lock body { overflow: hidden; }
.mnav__head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 20px; }
.mnav__head .site-logo img { display: block; width: 96px; height: auto; }
.mnav__close { position: relative; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; cursor: pointer; }
.mnav__close::before, .mnav__close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 19px; height: 2px; border-radius: 1px; background: #333D4B; transform: rotate(45deg); }
.mnav__close::after { transform: rotate(-45deg); }
.mnav__list { display: flex; flex-direction: column; padding: 8px 20px 24px; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 18px; font-weight: 600; line-height: 1.5; color: #191F28; text-decoration: none; letter-spacing: -0.02em; cursor: pointer; list-style: none; }
.mnav__top::-webkit-details-marker { display: none; }
summary.mnav__top::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid #8B95A1; border-bottom: 2px solid #8B95A1; transform: rotate(45deg); transition: transform .2s; }
.mnav__group[open] > summary.mnav__top::after { transform: rotate(-135deg); }
.mnav__body { display: flex; flex-direction: column; gap: 24px; padding: 4px 0 20px; }
.mnav__col { display: flex; flex-direction: column; gap: 12px; }
.mnav__col h3 { margin: 0 0 2px; font-size: 14px; font-weight: 400; line-height: 1.6; color: #8B95A1; }
.mnav__col a { font-size: 16px; font-weight: 400; line-height: 1.6; color: #333D4B; text-decoration: none; }
.mnav__col a.is-soon { color: #B0B8C1; }
.mnav__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.mnav__foot a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; }
.mnav__foot a:first-child { background: #F2F4F6; color: #333D4B; }
.mnav__foot a.mnav__cta { background: #7517d6; color: #fff; }
/* 영어·일본어는 글이 길다: 칸은 최소 203px, 글이 길면 한 줄로 넓어진다 */
.mega__panel { width: auto; min-width: 884px; }
.mega__col { width: auto; min-width: 203px; }
.mega__col h3, .mega__col a { white-space: nowrap; }
/* 바닥글 링크 세 칸(위쪽 메뉴와 같은 구성): 칸은 글 길이만큼, 한 줄로 */
.footer-content .footer-navigation { grid-template-columns: repeat(3, max-content); column-gap: 48px; }
.footer-navigation a { white-space: nowrap; }
/* 휴대폰·태블릿: 영어 메뉴는 세 칸이 한 줄에 402px 라 390·700 에서 바닥글이 화면 밖에 나갔다 — 안 들어가는 칸만 다음 줄로.
   한 줄에 들어가는 한국어·일본어는 지금과 같은 모습(칸은 글 길이만큼, 사이 48px)이다. */
@media (max-width: 960px) {
  .footer-content .footer-navigation { display: flex; flex-wrap: wrap; column-gap: 48px; row-gap: var(--space-3); }
}

/* ── 랜딩 글자 굵기 규칙 (11-19) ────────────────────────────────────────────
   큰 글씨도 최대 semibold(600). 작은 글씨(16px 이하)는 얇게: 본문·이름표 400, 단추·숫자 표시 500.
   첫 화면 태블릿 속 앱 화면 모형(견적서·표)은 실제 앱 모습이라 건드리지 않는다. */
body .sp-flow .sp-hero h1, body.sp-flow .sp-hero h1 { font-weight: 600; }
body .bids-more__title { font-weight: 600; }
/* 단추·링크 단추 */
body header a.header-cta, body .mnav__foot a, body .feature-cta, body .lang__list a[aria-current="true"] { font-weight: 500; }
/* 작은 이름표·본문 */
body .terrain-label__name, body .terrain-label__value, body .terrain-map-city-label { font-weight: 400; }
body .sp-num, body .bids-due { font-weight: 400; }
body .sp-step-num, body .bids-badge, body .bids-org, body .company-tech__label, body .history-events time { font-weight: 500; }
body.sp-flow .page-content .bids-demo .bids-industries__label, body .bids-industries__chips button, body .bids-sources button { font-weight: 400; }
body .subpage .page-content caption, body.subpage .page-content caption { font-weight: 400; }
/* 원래 규칙이 더 구체적인 곳 */
body.sp-flow .page-content .bids-demo .bids-more__title { font-weight: 600; }
body .bids-row__meta > .bids-org { font-weight: 500; }
body .bids-search button { font-weight: 500; }
body .company-content .company-tech__label { font-weight: 500; }
/* 하위 쪽 떠 있는 머리의 흰 막: styles.css 의 transform(-50%) 과 위의 translate(-50%) 가 겹쳐 막이 반 폭 왼쪽으로 밀려
   왼쪽 반만 하얗고 오른쪽은 비쳐 보였다(11-20) → 가운데 맞춤은 translate 하나로 */
body:not(.home-page) > header#top.is-float::before { transform: none; }
