@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');

*{margin: 0; padding: 0;}
body{background: #f1f5f8; font-family: "Noto Sans KR", sans-serif; text-align: center; padding: 7.81vw 0 0 0;}
.logo img{width: 42.08vw;}
.logo p{font-size: 1.04vw; color: #777777; letter-spacing:-0.03em;}
h1{margin-top: 5.83vw; font-size: 1.82vw; color: #444444; letter-spacing: -0.03em;}

/* ── 검색 컨테이너 ── */
#search {
  margin-top: 1.56vw;
  width: 46.87vw;
  margin-left: auto;
  margin-right: auto;
}

/* ── 검색창 + 버튼 행 (flexbox) ── */
.search-bar {
  display: flex;
  align-items: stretch;
}

#lawfirmName {
  flex: 1 1 0;
  min-width: 0;
  height: 3.91vw;
  padding: 0.5vw 2vw;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 50px 0 0 50px;
  border: none;
  box-shadow: 0px 0px 8px rgba(0, 99, 178, 0.1);
  font-size: 1.3vw;
  color: #444444;
}
#lawfirmName::placeholder { color: #dfe9f1; }

#search button {
  flex: 0 0 6.82vw;
  height: 3.91vw;
  background: #0063b2;
  border-radius: 0 50px 50px 0;
  border: none;
  box-shadow: 0px 0px 8px rgba(0, 99, 178, 0.1);
  font-size: 1.3vw;
  color: #ffffff;
  cursor: pointer;
}

/* ── 자동완성 목록 ── */
#suggestions { padding-top: 1vw; padding-bottom: 0.5vw; width: 46.87vw; margin: 0 auto; }
#suggestions li { font-size: 1.04vw; line-height: 2.2vw; color: #777777; }
#suggestions li.active { background: #E8F1FF; color: #0063b2; }

/* ── 검색 결과 카드 (세로형) ── */
#result {
  width: 46.87vw;
  margin: 3vw auto 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 99, 178, 0.10);
  overflow: hidden;
  font-size: 0.9vw;
  letter-spacing: -0.03em;
  color: #444444;
  text-align: left;
}

/* 각 항목 행: 라벨(h3) + 값(p) 좌우 배치 */
#result > div {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-bottom: 1px solid #eef2ff;
}
#result > div:last-child { border-bottom: none; }

#result h3 {
  flex: 0 0 7vw;
  background: #0063b2;
  color: #ffffff;
  font-size: 0.83vw;
  font-weight: 600;
  padding: 0.85vw 1.2vw;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: none;
  box-sizing: border-box;
  list-style: none;
}
#result h3::before, #result h3::after { content: none; }

#result p {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.85vw 1.5vw;
  font-size: 0.83vw;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
}

/* "검색 결과가 없습니다" / "검색 중..." — div 없이 바로 p */
#result > p {
  display: block;
  padding: 1.5vw;
  text-align: center;
  color: #777777;
  font-size: 0.83vw;
}

/* ── 하단 안내 문구 ── */
.ment{color: #777777; font-size: 0.63vw; letter-spacing: -0.03em; margin-top: 3vw; margin-bottom: 2.5vw;}

/* ── QnA ── */
.qna{text-align: left; padding: 2.08vw 2.6vw;width: 41.67vw; background: #ffffff; border-radius: 30px; box-shadow: 0px 0px 8px rgba(0, 99, 178, 0.1); margin: 4.17vw auto 7.81vw auto;}
.qna li{list-style: none; font-size: 0.83vw; color: #444444; letter-spacing: -0.03em; margin-top:2.08vw;}
.qna li:nth-child(1){margin-top: 0;}
.qna li h3{color: #0063b2; margin-bottom: 0.3vw; font-size: 0.83vw; letter-spacing: -0.03em; background: none; border: none; padding: 0; font-weight: 700; white-space: normal; flex: none; display: block;}

/* ── 제목 / 로고 ── */
h2{font-size: 2vw; letter-spacing: -0.03em; color: #003962; line-height: 1.75;}
h2 span{display: block; color: #0063b2;}
.com div img{ width: 20vw; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.s{font-size: 1.563vw; line-height: 1.75;}

/* ── 레이아웃 기준선 ── */
.baseLayout {
  width: 41.67vw;
  margin: 0 auto;
  padding: 0 2.6vw;
}

/* ── 푸터 ── */
footer { padding-bottom: 1.6vw; }
footer button {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #3A3A47;
  cursor: pointer;
}
