@charset "utf-8";
/* =========================================================
   충남사회서비스원 인권침해신고채널 - 공통 스타일
   (reset / 레이아웃 / 헤더 / 푸터 / 버튼 / 공통 컴포넌트)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --c-primary: #237987;        /* 기존 사이트 대표 틸 */
  --c-primary-dark: #1b5f6a;
  --c-primary-light: #37bdce;  /* 검색버튼 / 포인트 시안 */
  --c-blue: #1460c0;
  --c-navy: #01459f;           /* 서브 소제목 블루 */
  --c-green: #8cc63e;          /* 로고 포인트 */
  --c-orange: #f39a2b;
  --c-yellow: #f6c934;

  --c-bg-soft: #e1ecee;        /* 메인 배경 */
  --c-bg-light: #f4f9fa;
  --c-bg-gray: #f6f7f9;        /* 테이블 th */
  --c-footer: #333d4b;
  --c-footer-bar: #23727f;

  --c-text: #222;
  --c-text-2: #555;
  --c-text-3: #888;
  --c-line: #ddd;
  --c-line-2: #e5e5e5;
  --c-danger: #d9363e;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow: 0 6px 24px rgba(35, 121, 135, .10);
  --container: 1200px;
  --header-h: 90px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 1.6;
  color: var(--c-text); background: #fff; letter-spacing: -0.02em;
  word-break: keep-all;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
legend, caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.blind, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--c-primary-light); outline-offset: 2px; }

/* ---------- Skip nav ---------- */
#skipNav a {
  position: absolute; top: -100px; left: 0; z-index: 9999;
  padding: 10px 20px; background: var(--c-primary); color: #fff; font-weight: 700;
}
#skipNav a:focus { top: 0; }

/* ---------- Layout ---------- */
.inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
#wrap { min-height: 100vh; display: flex; flex-direction: column; }
#container { flex: 1; }

/* ---------- Top util bar ---------- */
.top-util { background: var(--c-bg-light); border-bottom: 1px solid var(--c-line-2); font-size: 13px; color: var(--c-text-2); }
.top-util .inner { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.top-util .util-links { display: flex; gap: 16px; }
.top-util .util-links a { display: inline-flex; align-items: center; gap: 4px; }
.top-util .util-links a:hover { color: var(--c-primary); }
.top-util .util-links a::after { content: "↗"; font-size: 11px; color: var(--c-text-3); }

/* ---------- Header ---------- */
#header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--c-line-2); transition: box-shadow .2s; }
#header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
#header .inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo a { display: flex; align-items: center; gap: 14px; }
.logo .logo-img { height: 30px; }
.logo .logo-txt { display: none; font-size: 22px; font-weight: 700; color: var(--c-text); white-space: nowrap; }
.logo.no-img .logo-txt { display: inline; }
.logo .logo-divider { width: 1px; height: 22px; background: var(--c-line); }
.logo .logo-sub { font-size: 19px; font-weight: 700; color: var(--c-primary); letter-spacing: -0.04em; }

#gnb ul { display: flex; gap: 6px; }
#gnb a {
  position: relative; display: block; padding: 10px 22px;
  font-size: 18px; font-weight: 700; color: var(--c-text); transition: color .2s;
}
#gnb a::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -22px; height: 3px;
  background: var(--c-primary); transform: scaleX(0); transition: transform .25s;
}
#gnb a:hover, #gnb a.is-active { color: var(--c-primary); }
#gnb a:hover::after, #gnb a.is-active::after { transform: scaleX(1); }

.btn-gnb-open { display: none; width: 40px; height: 40px; position: relative; }
.btn-gnb-open span, .btn-gnb-open span::before, .btn-gnb-open span::after {
  position: absolute; left: 8px; width: 24px; height: 2px; background: var(--c-text); content: ""; transition: .25s;
}
.btn-gnb-open span { top: 19px; }
.btn-gnb-open span::before { left: 0; top: -7px; }
.btn-gnb-open span::after { left: 0; top: 7px; width: 16px; }
.btn-gnb-open[aria-expanded="true"] span { background: transparent; }
.btn-gnb-open[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.btn-gnb-open[aria-expanded="true"] span::after { top: 0; width: 24px; transform: rotate(-45deg); }

/* ---------- Footer ---------- */
#footer { background: var(--c-footer); color: rgba(255,255,255,.7); font-size: 14px; }
#footer .footer-top { border-bottom: 1px solid rgba(255,255,255,.1); }
#footer .footer-top .inner { display: flex; justify-content: space-between; align-items: center; height: 60px; }
#footer .footer-menu { display: flex; gap: 24px; }
#footer .footer-menu a { color: rgba(255,255,255,.85); }
#footer .footer-menu a.point { color: var(--c-yellow); font-weight: 700; }
#footer .footer-menu a:hover { color: #fff; text-decoration: underline; }
#footer .footer-family a {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 18px; color: #fff; font-size: 13px;
}
#footer .footer-family a:hover { background: rgba(255,255,255,.08); }
#footer .footer-body .inner { display: flex; gap: 40px; padding-top: 36px; padding-bottom: 40px; }
#footer .footer-logo { flex-shrink: 0; font-size: 20px; font-weight: 700; color: #fff; }
#footer .footer-logo img { height: 28px; }
#footer .footer-logo .logo-txt { display: none; }
#footer .footer-logo.no-img .logo-txt { display: inline; }
#footer address { font-style: normal; line-height: 1.9; }
#footer address .row span { display: inline-block; margin-right: 18px; }
#footer address em { font-style: normal; color: #fff; margin-right: 6px; }
#footer .copyright { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 120px; height: 48px; padding: 0 28px; border-radius: var(--radius-s);
  font-size: 16px; font-weight: 500; border: 1px solid transparent; transition: .2s;
}
.btn-s { min-width: 0; height: 36px; padding: 0 14px; font-size: 14px; }
.btn-l { min-width: 200px; height: 58px; font-size: 18px; font-weight: 700; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-point { background: var(--c-primary-light); color: #fff; }
.btn-point:hover { filter: brightness(.93); }
.btn-line { background: #fff; color: var(--c-text); border-color: #c9c9c9; }
.btn-line:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-gray { background: #6b7480; color: #fff; }
.btn-gray:hover { background: #555d68; }
.btn-area { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }

/* ---------- Floating quick (우측 신고서 작성 버튼) ---------- */
.quick-report {
  position: fixed; right: 30px; bottom: 120px; z-index: 90;
  width: 92px; padding: 18px 0 0; border-radius: 46px; overflow: hidden;
  background: var(--c-primary); color: #fff; text-align: center; box-shadow: 0 8px 24px rgba(35,121,135,.35);
  transition: transform .2s;
}
.quick-report:hover { transform: translateY(-4px); }
.quick-report .ico { display: block; width: 34px; height: 34px; margin: 0 auto 6px; }
.quick-report .txt { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.quick-report .go { display: block; margin-top: 12px; padding: 6px 0 8px; background: var(--c-primary-light); font-size: 13px; font-weight: 700; letter-spacing: .05em; }

.btn-top {
  position: fixed; right: 30px; bottom: 40px; z-index: 90;
  width: 56px; height: 56px; border-radius: 4px; background: #333; color: #fff;
  font-size: 12px; font-weight: 500; line-height: 1.1; opacity: 0; visibility: hidden; transition: .25s;
}
.btn-top::before { content: ""; display: block; width: 8px; height: 8px; margin: 0 auto 4px; border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg); }
.btn-top.is-show { opacity: 1; visibility: visible; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.5); }
.modal.is-open { display: flex; }
.modal-box { width: 100%; max-width: 480px; background: #fff; border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: var(--c-primary); color: #fff; font-size: 18px; font-weight: 700; }
.modal-close { width: 28px; height: 28px; color: #fff; font-size: 24px; line-height: 1; }
.modal-body { padding: 30px 24px; text-align: center; }
.modal-foot { padding: 0 24px 24px; text-align: center; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  :root { --header-h: 70px; }
  .top-util { display: none; }
  .logo .logo-img { height: 24px; }
  .logo .logo-sub { font-size: 16px; }
  .btn-gnb-open { display: block; }
  #gnb {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: .25s;
  }
  #gnb.is-open { opacity: 1; visibility: visible; }
  #gnb ul { flex-direction: column; gap: 0; background: #fff; padding: 10px 0 20px; }
  #gnb a { padding: 16px 24px; border-bottom: 1px solid var(--c-line-2); }
  #gnb a::after { display: none; }
  #footer .footer-top .inner { flex-direction: column; height: auto; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
  #footer .footer-body .inner { flex-direction: column; gap: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .logo a { gap: 10px; }
  .logo .logo-img { height: 20px; }
  .logo .logo-sub { font-size: 15px; }
  .logo .logo-txt { font-size: 16px; }
  .quick-report { right: 16px; bottom: 86px; width: 72px; padding-top: 12px; }
  .quick-report .ico { width: 26px; height: 26px; }
  .quick-report .txt { font-size: 12px; }
  .quick-report .go { margin-top: 8px; font-size: 11px; }
  .btn-top { right: 16px; bottom: 24px; width: 48px; height: 48px; }
  .btn-l { min-width: 0; width: 100%; height: 52px; font-size: 17px; }
  .btn-area { flex-direction: column; }
  .btn-area .btn { width: 100%; }
  #footer .footer-menu { flex-wrap: wrap; gap: 10px 18px; }
}
