/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', 'Montserrat', sans-serif;
}

body.notice-open {
  overflow: hidden;
}

/* 사이트 접속 공지 팝업 */
.notice-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.notice-modal.is-hidden {
  display: none;
}

.notice-modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 48px 38px 34px;
  border-top: 6px solid #f36b16;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.notice-kicker {
  margin-bottom: 14px;
  color: #f36b16;
  font-size: 16px;
  font-weight: 900;
}

.notice-modal-card h1 {
  color: #222;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.55;
  word-break: keep-all;
}

.notice-confirm {
  min-width: 130px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: #f36b16;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notice-confirm:hover {
  background: #d95708;
}

.notice-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.notice-close:hover {
  color: #222;
}

/* =======================================
   PC / 데스크톱 기본 스타일
   ======================================= */
.site-header {
  position: relative;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1100px;
  height: 100px;
  margin: 0 auto;
  padding: 0 50px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 0.5fr);
  align-items: center;
}

.logo img {
  height: 58px;
  display: block;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 45px;
}

.main-nav > ul > li {
  position: static;
}

.main-nav a {
  text-decoration: none;
  color: #111;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.35px;
  line-height: 100px;
  display: block;
  padding: 0 10px;
  border-radius: 8px;
  position: relative;
  border-bottom: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 18px;
  left: 10px;
  height: 4px;
  border-radius: 999px;
  background: #ff5500;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

/* 마우스 올렸을 때(호버)만 주황색 및 밑줄 표시 */
.main-nav > ul > li:hover > a {
  color: #ff5500;
  transform: translateY(-5px);
  text-shadow: 0 2px 0 rgba(255, 85, 0, 0.12);
}

.main-nav > ul > li:hover > a::after {
  transform: scaleX(1);
}

.main-nav > ul > li.nav-active > a {
  color: #ff5500;
}

.main-nav > ul > li.nav-active > a::after {
  transform: scaleX(1);
}

/* 햄버거 버튼 (PC에서는 숨김) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #222;
}

/* =======================================
   데스크톱 드롭다운 메뉴
   ======================================= */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 101%;
  left: 0;
  width: 100%;
  background-color: #262626;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* 호버시에만 드롭다운 메뉴 표시 */
.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.dropdown-inner a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ccc;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-inner a:hover {
  background: transparent;
  color: #fff;
}

.dropdown-inner .dot {
  color: #666;
  font-size: 12px;
}


/* =======================================
   모바일 반응형 (화면 너비 768px 이하)
   ======================================= */
@media (max-width: 1000px) {
  .header-inner {
    height: 80px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
  }

  .logo img {
    height: 45px;
  }

  .mobile-toggle {
    display: flex; /* 햄버거 버튼 표시 */
  }

  /* 네비게이션 전체를 모바일 드롭다운 모달 형태로 변환 */
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 200;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    line-height: 48px;
    font-size: 16px;
    border-bottom: 1px solid #f5f5f5;
  }

  .main-nav > ul > li > a:hover {
    border-bottom: 1px solid #f5f5f5; /* 모바일 기본 구분선 유지 */
  }

  /* 모바일용 서브메뉴 스타일 */
  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    background-color: #333;
    border-radius: 6px;
    margin: 5px 0 15px;
  }

  /* 모바일에서는 호버 대신 항상 펼침 or 스타일 상시 노출 */
  .has-dropdown .dropdown-menu {
    display: block;
  }

  .dropdown-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }

  .dropdown-inner a {
    color: #ddd;
    font-size: 14px;
    line-height: 1.5;
  }

  .dropdown-inner .dot {
    display: none; /* 모바일 세로 목록에서는 구분점 제거 */
  }

}


/* =========================
   메인 비주얼 영역
========================= */

.main-visual {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.main-visual.is-dragging {
    cursor: default;
}

.slide-background,
.slide-layer {
    position: absolute;
    inset: 0;
}

.slide-background {
    z-index: 0;
}

.slide-layer {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}

.slide-layer.is-visible {
    opacity: 1;
}


/* 메인 문구 */

.visual-content {
    position: absolute;
    top: 110px;
    left: 50%;

    width: min(1140px, calc(100% - 40px));

    transform: translateX(-50%);
    z-index: 1;
}


.sub-title {
    display: block;

    color: #f36b16;
    font-size: 26px;
    font-weight: 700;

    margin-bottom: 0px;
}


.main-title {
    color: #222;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.3;

    margin: 0;
}


/* 슬라이드 점 */

.slide-dots {
    position: absolute;

    bottom: 28px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 12px;
    z-index: 1;
}


.slide-dots button {
    padding: 0;
    border: 0;
    width: 7px;
    height: 7px;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.slide-dots button:hover {
    transform: scale(1.35);
    opacity: 1;
}

.slide-dots button.active {
    width: 11px;
    height: 11px;
    border: 2px solid white;
    background: transparent;
    opacity: 1;
}



/* =========================
   하단 기능 메뉴
========================= */

.quick-menu-wrap {
    width: 100%;
    margin: 0;
}

.quick-menu {
    display: flex;
    width: 100%;
}

/* 개별 기능 카드 */
.quick-card {
    flex: 1;
    min-height: 138px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 0 0 25px;

    text-decoration: none;
    color: white;

    overflow: hidden;
    box-sizing: border-box;

    position: relative;
    transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

/* 카드별 배경색 */
.card-brown {
    background: rgba(173, 115, 96, 0.95);
}

.card-dark {
    background: rgba(28, 48, 46, 0.95);
}

.card-gray {
    background: rgba(90, 90, 87, 0.95);
}

/* 마우스 효과 */
.quick-card:hover {
    filter: brightness(1.15);
    transform: translateY(-5px) scaleY(1.08);
    transform-origin: center;
    z-index: 2;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* 카드 글자 */
.text-box {
    flex: 1;
    min-width: 0;
}

.text-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.text-box p {
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.text-box .business-items {
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    overflow: visible;
}

.business-items span {
    white-space: nowrap;
}

.business-items span:not(:first-child)::before {
    content: "•";
    margin-right: 8px;
}

/* 오른쪽 이미지 영역 */
.icon-box {
    width: 138px;
    height: 138px;

    flex-shrink: 0;
    margin-left: 15px;

    overflow: hidden;
}

/* 이미지 */
.icon-box img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.quick-card:hover .icon-box img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.04);
}


/* 메인 비주얼 및 주요 메뉴 반응형 */
@media (max-width: 1000px) {
    .main-visual {
        height: 420px;
        background-position: center top;
    }

    .visual-content {
        top: 65px;
    }

    .sub-title {
        font-size: 18px;
    }

    .main-title {
        font-size: clamp(30px, 8vw, 40px);
    }

    .quick-menu {
        flex-direction: column;
    }

    .quick-card {
        flex: none;
        width: 100%;
    }
}


/* =========================
   회사 정보 푸터
========================= */
.site-footer {
    background: #fff;
    color: #555;
}

.footer-inner {
    position: relative;
    width: min(1320px, calc(100% - 60px));
    min-height: 185px;
    margin: 0 auto;
    padding: 36px 100px 32px 0;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
    gap: 38px;
}

.footer-brand {
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.footer-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-company {
    display: block;
    margin-bottom: 10px;
    color: #222;
    font-size: 19px;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    font-size: 15px;
    line-height: 1.65;
}

.footer-info p {
    display: flex;
    gap: 8px;
}

.footer-label {
    color: #333;
    font-weight: 700;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
}

.footer-info a:hover,
.footer-links a:hover {
    color: #ff8a2a;
}

.footer-copyright {
    margin-top: 10px;
    color: #777;
    font-size: 13px;
}

.footer-links {
    display: flex;
    align-self: start;
    gap: 0;
    padding-top: 6px;
    white-space: nowrap;
}

.footer-links a {
    color: #333;
    padding: 0 12px;
    border-right: 1px solid #d9d9d9;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:last-child {
    border-right: 0;
}

.top-button {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 58px;
    height: 58px;
    z-index: 900;
    border: 0;
    border-radius: 50%;
    background: #f36b16;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
}

.top-button:hover {
    background: #ff7a21;
}


/* =========================
   관리자 회사정보 편집 화면
========================= */
.admin-page {
    min-height: 100vh;
    padding: 50px 20px;
    background: #f3f5f7;
}

.admin-panel {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 38px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.admin-panel h1 {
    margin-bottom: 10px;
    color: #171717;
    font-size: 30px;
}

.admin-description {
    margin-bottom: 28px;
    color: #666;
    line-height: 1.6;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-field {
    display: grid;
    gap: 7px;
}

.admin-field label {
    color: #222;
    font-size: 16px;
    font-weight: 700;
}

.admin-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #cfd4da;
    border-radius: 7px;
    color: #222;
    font: inherit;
    font-size: 16px;
}

.admin-field input:focus {
    border-color: #f36b16;
    outline: 3px solid rgba(243, 107, 22, 0.16);
}

.admin-help {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.admin-save,
.admin-home {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.admin-save {
    border: 0;
    background: #f36b16;
    color: #fff;
    cursor: pointer;
}

.admin-home {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfd4da;
    color: #333;
}

.admin-message {
    min-height: 24px;
    color: #187a35;
    font-weight: 700;
}

.admin-notice {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 7px;
    background: #fff7ed;
    color: #7a431a;
    font-size: 14px;
    line-height: 1.6;
}

.performance-admin-panel {
    margin-top: 24px;
}

.performance-admin-list {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.performance-admin-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e1e5e8;
    border-radius: 7px;
}

.performance-admin-item strong,
.performance-admin-item small {
    display: block;
}

.performance-admin-item small {
    margin-top: 5px;
    color: #777;
}

.performance-admin-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.performance-admin-actions button {
    padding: 7px 10px;
    border: 1px solid #d5d9dd;
    border-radius: 5px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.performance-admin-actions button:last-child {
    color: #c43d2c;
}

/* 사업실적 목록 페이지 */
.sub-page {
    background: #f3f5f7;
    color: #222;
}

.sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    height: 88px;
    margin: 0 auto;
}

.sub-logo img {
    display: block;
    width: 175px;
    height: auto;
}

.sub-home {
    color: #555;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.performance-page {
    display: grid;
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 18px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 50px;
}

.performance-side {
    align-self: start;
    overflow: hidden;
    border-radius: 3px;
    background: #118fc9;
    color: #fff;
    text-align: center;
}

.sub-side-column {
    align-self: start;
}

.sub-side-menu {
    display: grid;
    gap: 7px;
    margin-top: 10px;
}

.sub-side-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 0 15px;
    border: 1px solid #dce2e6;
    border-radius: 3px;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sub-side-menu a::after {
    content: "›";
    color: #a4adb3;
    font-size: 18px;
}

.sub-side-menu a:hover,
.sub-side-menu a:focus-visible {
    border-color: #1594cc;
    background: #f3faff;
    color: #118fc9;
}

.performance-side-image {
    height: 116px;
    background: url("main-bg-slide-2.png") center center / cover no-repeat;
    filter: saturate(0.8) brightness(0.72);
}

.company-side-image,
.business-side-image,
.board-side-image,
.misc-side-image {
    height: 116px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.company-side-image {
    background-image: url("icon1.png");
}

.business-side-image {
    background-image: url("icon2.png");
}

.board-side-image {
    background-image: url("icon4.png");
}

.misc-side-image {
    background-image: url("main-bg-slide-4.png");
}

.performance-side strong {
    display: block;
    padding: 13px 10px;
    font-size: 16px;
}

.performance-panel {
    min-width: 0;
    padding: 34px 34px 38px;
    background: #fff;
}

.performance-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.performance-eyebrow {
    margin-bottom: 6px;
    color: #f36b16;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.performance-heading h1 {
    font-size: 34px;
}

.performance-heading a {
    color: #999;
    font-size: 12px;
    text-decoration: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 12px;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: #f36b16;
    text-decoration: underline;
}

.performance-total {
    margin-bottom: 8px;
    color: #444;
    font-size: 13px;
}

.performance-table-wrap {
    overflow-x: auto;
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.performance-table th,
.performance-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #e2e5e8;
    text-align: left;
    vertical-align: middle;
}

.performance-table th {
    background: #e8f0f4;
    color: #333;
    font-weight: 700;
}

.performance-table th:nth-child(1),
.performance-table td:nth-child(1) { width: 9%; text-align: center; }
.performance-table th:nth-child(2),
.performance-table td:nth-child(2) { width: 15%; text-align: center; }
.performance-table th:nth-child(3),
.performance-table td:nth-child(3) { width: 39%; }
.performance-table th:nth-child(4),
.performance-table td:nth-child(4) { width: 25%; }
.performance-table th:nth-child(5),
.performance-table td:nth-child(5) { width: 12%; text-align: center; }

.performance-project {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.performance-download {
    color: #222;
    text-decoration: none;
}

.performance-download:hover {
    color: #f36b16;
    text-decoration: underline;
}

.attachment-icon {
    display: inline-block;
    margin-left: 7px;
    padding: 2px 6px;
    border: 1px solid #f36b16;
    border-radius: 4px;
    color: #f36b16;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
}

.performance-empty {
    padding: 48px 10px;
    color: #888;
    text-align: center;
}

.performance-empty[hidden] {
    display: none;
}

/* 회사소개 · 사업안내 페이지 */
.sub-content-intro {
    margin-bottom: 24px;
    padding: 24px 26px;
    border-left: 4px solid #f36b16;
    background: #f7f9fa;
}

.sub-content-intro h2 {
    margin-bottom: 8px;
    font-size: 22px;
}

.sub-content-intro p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.sub-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sub-content-card {
    display: block;
    min-height: 110px;
    padding: 22px;
    border: 1px solid #e0e5e8;
    background: #fff;
    color: inherit;
    text-decoration: none;
    scroll-margin-top: 20px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.sub-content-card:hover,
a.sub-content-card:focus-visible,
a.sub-content-card:target {
    border-color: #f36b16;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    outline: none;
}

.sub-content-card h2 {
    margin-bottom: 8px;
    color: #222;
    font-size: 18px;
}

.sub-content-card p {
    color: #777;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .footer-inner {
        width: min(700px, calc(100% - 40px));
        padding: 32px 0 96px;
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .footer-links {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    .top-button {
        right: 20px;
        bottom: 20px;
    }

    .performance-page {
        display: block;
    }

    .performance-side {
        display: none;
    }

    .sub-side-column {
        display: none;
    }
}

@media (max-width: 600px) {
    .sub-content-grid {
        grid-template-columns: 1fr;
    }

    .performance-panel {
        padding: 28px 20px 32px;
    }

    .performance-heading h1 {
        font-size: 28px;
    }

    .footer-inner {
        display: block;
        width: calc(100% - 40px);
    }

    .footer-brand {
        width: 165px;
        margin-bottom: 25px;
    }

    .footer-links {
        flex-wrap: wrap;
        margin-top: 24px;
        row-gap: 12px;
    }

    .footer-links a:first-child {
        padding-left: 0;
    }

    .admin-panel {
        padding: 26px 20px;
    }

    .admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-save,
    .admin-home {
        justify-content: center;
        width: 100%;
    }

    .performance-admin-item {
        align-items: stretch;
        flex-direction: column;
    }

    .performance-admin-actions button {
        flex: 1;
    }

    .performance-panel {
        padding: 26px 16px 30px;
    }

    .performance-heading h1 {
        font-size: 28px;
    }
}
