* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: #eef2fb;
  color: #1a1a1a;
  min-height: 100vh;
}

/* 메인화면 전용 — 일러스트를 페이지 전체 배경으로 고정 */
body.main-bg {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.15) 45%, rgba(255,255,255,.05) 100%),
    url('../img/hero-illustration.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.site-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 38px 20px 8px;
  text-decoration: none;
  color: #1e2761;
  font-weight: 800;
}
.site-brand:hover { opacity: .82; }
.site-brand:visited { color: #1e2761; }
.site-brand-icon { width: 56px; height: 56px; flex-shrink: 0; color: #c98a1a; }
.site-brand-text { font-size: 60px; line-height: 1.15; }

.intro { padding: 113.4px 20px 20px; text-align: center; }
.intro .site-brand { padding: 0 0 16px; }
.intro .site-brand-icon { display: none; }
.intro p { color: #46507a; margin: 0; font-size: 19px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 30px 20px 60px; }
.task-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 34px; }
.task-card {
  width: 200px;
  height: 150px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20,26,69,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.task-card:hover { box-shadow: 0 10px 26px rgba(20,26,69,.22); transform: translateY(-2px); }
.task-card h3 {
  margin: 0;
  font-size: 30px;
  color: #1e2761;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 업무 카드 배색 팔레트 — 관리자가 업무별로 선택(app/Core/Options.php CARD_COLORS와 값 동기화) */
.task-card.color-blue   { background: linear-gradient(150deg, #ffffff 0%, #d7e5fb 100%); }
.task-card.color-pink   { background: linear-gradient(150deg, #fff5f8 0%, #fbd0e0 100%); }
.task-card.color-green  { background: linear-gradient(150deg, #f3fdf7 0%, #bdeed2 100%); }
.task-card.color-yellow { background: linear-gradient(150deg, #fffdf2 0%, #fbe8a6 100%); }
.task-card.color-purple { background: linear-gradient(150deg, #f8f6fe 0%, #d9cdf7 100%); }
.task-card.color-orange { background: linear-gradient(150deg, #fff8f2 0%, #fdd3a6 100%); }
.task-card.color-mint   { background: linear-gradient(150deg, #f2fdfb 0%, #b6ecdf 100%); }
.task-card.color-gray   { background: linear-gradient(150deg, #f7f8fb 0%, #dfe2ea 100%); }
.task-card.color-red    { background: linear-gradient(150deg, #fff2f2 0%, #ff9d9d 100%); }
.task-card.color-teal   { background: linear-gradient(150deg, #eefdfb 0%, #6fe0cf 100%); }
.task-card.color-indigo { background: linear-gradient(150deg, #f1f2ff 0%, #a3aefb 100%); }
.task-card.color-brown  { background: linear-gradient(150deg, #faf6f1 0%, #d8b48c 100%); }
.task-card.color-rose   { background: linear-gradient(150deg, #fff0f6 0%, #ff9fc7 100%); }
.task-card.color-sky    { background: linear-gradient(150deg, #eefbff 0%, #8fddf7 100%); }
.task-card.color-lime   { background: linear-gradient(150deg, #fbffec 0%, #cdf07c 100%); }
.task-card.color-navy   { background: linear-gradient(150deg, #eef1fb 0%, #93a0e0 100%); }

.hero {
  background-size: cover;
  background-position: center;
  background-color: #eef2fb;
  color: #1e2761;
  padding: 40px 20px 40px;
  text-align: center;
}
.hero h1 { font-size: 34px; margin: 0 0 10px; }
.hero p { color: #46507a; margin: 0; font-size: 17px; }

.panel { background: #fff; border-radius: 16px; padding: 0 40px 40px; box-shadow: 0 2px 8px rgba(0,0,0,.12); overflow: hidden; }
.panel h2 { margin-top: 26px; font-size: 22px; }
.panel-banner {
  margin: 0 -40px 4px;
  height: 170px;
  background-image: linear-gradient(180deg, rgba(11,18,48,.35), rgba(11,18,48,.68)), url('../img/hero-illustration.svg');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: flex-end;
  padding: 18px 40px;
}
.panel-banner span {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(20,26,69,.55);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 6px 16px;
}
label { display: block; font-size: 15px; color: #444; margin: 16px 0 6px; font-weight: 600; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=number], input[type=date], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: 16px;
  font-family: inherit;
}
input[type=date] {
  padding: 16px 14px;
  font-size: 20px;
  min-height: 56px;
}
.btn {
  display: inline-block;
  padding: 13px 24px;
  background: #1e2761;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(30,39,97,.25);
}
.btn:hover { background: #161d4a; }
.btn:visited { color: #fff; }
.btn.small { padding: 12px 24px; font-size: 16px; }
.btn.secondary { background: #fff; color: #1e2761; border: 1px solid #d8deee; box-shadow: none; }
.btn.secondary:hover { background: #f4f6fb; }

.utility-row { display: flex; justify-content: center; gap: 14px; margin-top: 75.6px; flex-wrap: wrap; }

.site-footer {
  text-align: center;
  color: #6b7599;
  font-size: 12.5px;
  line-height: 1.9;
  padding: 22px 20px 40px;
}
.site-footer p { margin: 0; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(30,39,97,.18);
  width: 100%;
  max-width: 480px;
  margin: 0 auto 37.8px;
}
.footer-brand { font-size: 17px; font-weight: 800; color: #1e2761; margin-bottom: 4px; }
.error { background: #fee2e2; border: 1px solid #ef4444; color: #991b1b; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; }
.dev-hint { background: #fef9c3; border: 1px dashed #ca8a04; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; }
.career-row { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; margin-top: 12px; }
.career-row .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#careers-empty-hint, #certs-empty-hint { color: #888; font-size: 14px; margin-top: 10px; }
.complete-box { text-align: center; padding: 50px 20px; color: #1e2761; }
.complete-box p { color: #46507a; font-size: 17px; }
.complete-box h1 { font-size: 30px; }
.complete-box .notice-box { max-width: 620px; margin: 22px auto 0; text-align: left; }

.task-badge {
  background: linear-gradient(135deg, #fff7e6, #ffedc2);
  border: 1px solid #ffcf6b;
  color: #1e2761;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0 4px;
}
.task-badge .task-badge-name { color: #a9720a; }

.notice-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.6;
  margin: 18px 0;
}
.consent-text {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.sig-wrap {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fafafa;
  touch-action: none;
}
.sig-wrap canvas { display: block; width: 100%; height: 160px; cursor: crosshair; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
  margin-top: 20px;
}
.check-row input { width: auto; margin-top: 3px; }

/* 메인화면 팝업 — 관리자가 크기/위치/노출기간을 지정(admin/setting/popup) */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,20,40,.45);
  z-index: 1000;
}
.popup-box {
  position: fixed;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: 24px;
  overflow: auto;
  z-index: 1001;
}
.popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}
.popup-close:hover { color: #1e2761; }
.popup-title { margin: 4px 28px 12px 0; font-size: 20px; color: #1e2761; font-weight: 800; }
.popup-content { font-size: 15px; line-height: 1.7; color: #334155; white-space: pre-wrap; }
.popup-image { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 4px 0 12px; }
.popup-today-hide {
  display: block;
  margin: 14px 0 0;
  padding: 9px 14px;
  background: #f3f4f6;
  color: #46507a;
  border: 1px solid #d8deee;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
}
.popup-today-hide:hover { background: #e9ebf1; }
