/* 기본 초기화 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', 'Montserrat', sans-serif;
}

/* =======================================
   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: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.dropdown-inner a {
  display: block;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ededed;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.35;
  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: 4px;
    padding: 15px;
  }

  .dropdown-inner a {
    padding: 5px 0;
    border-bottom: 0;
    font-size: 1.0625rem;
    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;
    background-color: #20c8c9;
    transform: translateX(100%);
    will-change: transform;
}

.slide-layer.is-visible {
    transform: translateX(0);
}

.slide-layer.is-entering-from-right {
    z-index: 2;
    animation: slide-in-from-right 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-layer.is-entering-from-left {
    z-index: 2;
    animation: slide-in-from-left 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-layer.is-leaving-to-left {
    z-index: 1;
    animation: slide-out-to-left 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.slide-layer.is-leaving-to-right {
    z-index: 1;
    animation: slide-out-to-right 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes slide-in-from-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes slide-in-from-left {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slide-out-to-left {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

@keyframes slide-out-to-right {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .slide-layer.is-entering-from-right,
    .slide-layer.is-entering-from-left,
    .slide-layer.is-leaving-to-left,
    .slide-layer.is-leaving-to-right {
        animation-duration: 0.01ms;
    }
}


/* 메인 문구 */

.visual-content {
    position: absolute;
    top: 50%;
    left: clamp(36px, 5vw, 90px);
    width: min(720px, calc(100% - 72px));
    transform: translateY(-50%);
    z-index: 2;
}


.sub-title {
    display: block;
    color: #f36b16;
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 700;
    margin-bottom: 12px;
}


.main-title {
    color: #222;
    font-size: clamp(36px, 2.6vw, 42px);
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.035em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 2px 12px rgba(255, 255, 255, 0.38);
}

.main-title span {
    display: block;
    white-space: nowrap;
}


/* 슬라이드 점 */

.slide-dots {
    position: absolute;

    bottom: 28px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 12px;
    z-index: 3;
}


.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 {
    padding: clamp(20px, 3vw, 44px) clamp(16px, 3vw, 44px);
    background: #f3f5f7;
}

.quick-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 22px);
    max-width: 1600px;
    margin: 0 auto;
}

.quick-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dce3e8;
    border-radius: 12px;
    background: #fff;
    color: #172739;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(21, 40, 60, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-quote {
    border-color: #172739;
    background: #172739;
    color: #fff;
}

.quick-card:focus-visible {
    outline: 3px solid #9d4114;
    outline-offset: 4px;
}

.quick-card-copy {
    flex: 1;
    min-width: 0;
    padding: 16px clamp(14px, 1.6vw, 24px) 20px;
}

.quick-card-copy h2 {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    line-height: 1.25;
    margin-bottom: 6px;
}

.quick-card-copy p {
    color: #44596a;
    font-size: 0.875rem;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.card-quote .quick-card-copy {
    box-shadow: inset 0 3px #f36b16;
}

.card-quote .quick-card-copy p { color: #ffb582; }

.quick-card-image {
    aspect-ratio: 2.15;
    overflow: hidden;
    background: #dce6eb;
}

.quick-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform 0.25s ease;
}

.quick-card-image-team img { object-position: center 34%; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .quick-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(21, 40, 60, 0.13);
    }

    .quick-card:hover img { transform: scale(1.045); }
}

@media (max-width: 1099px) {
    .quick-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
    .quick-menu { grid-template-columns: minmax(0, 1fr); }
    .quick-card { display: grid; grid-template-columns: clamp(96px, 30%, 145px) minmax(0, 1fr); min-height: 104px; }
    .quick-card-image { position: relative; aspect-ratio: auto; }
    .quick-card-image img { position: absolute; inset: 0; }
    .quick-card-copy { align-self: center; }
    .card-quote .quick-card-copy { align-self: stretch; display: grid; align-content: center; box-shadow: inset 3px 0 #f36b16; }
}

/* 메인 비주얼 반응형 */
@media (max-width: 1000px) {
    .main-visual {
        height: 420px;
    }

    .visual-content {
        top: 42px;
        left: 22px;
        width: calc(100% - 44px);
        transform: none;
    }

    .sub-title {
        font-size: 16px;
        margin-bottom: 7px;
    }

    .main-title {
        font-size: clamp(20px, 5.8vw, 32px);
        line-height: 1.28;
    }

}


/* =========================
   회사 정보 푸터
========================= */
.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 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f3f5f7;
    color: #222;
}

.sub-page .performance-page {
    flex: 1 0 auto;
}

.sub-page .site-footer {
    flex-shrink: 0;
}

.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("card-performance-v2.jpg") 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("card-company-v2.jpg");
}

.business-side-image {
    background-image: url("card-business-v2.jpg");
}

.board-side-image {
    background-image: url("icon4.png");
}

.misc-side-image {
    background-image: url("hero-automated-monitoring-v2.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-tools {
    display: flex;
    gap: 12px;
    margin: 28px 0 12px;
}

.performance-tools label {
    display: grid;
    gap: 6px;
    flex: 1;
    color: #56616f;
    font-size: 13px;
    font-weight: 700;
}

.performance-tools select,
.performance-tools input {
    min-height: 44px;
    border: 1px solid #d9dee5;
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
    color: #1f2933;
    font: inherit;
}

.performance-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.performance-pagination button {
    width: 38px;
    height: 38px;
    border: 1px solid #d9dee5;
    border-radius: 4px;
    background: #fff;
    color: #45505d;
    cursor: pointer;
}

.performance-pagination button.is-current {
    border-color: #1d5d92;
    background: #1d5d92;
    color: #fff;
}

.performance-pagination button.is-navigation {
    font-size: 20px;
    line-height: 1;
}

.performance-pagination button:disabled {
    border-color: #eceff2;
    background: #f7f8f9;
    color: #b8bec6;
    cursor: default;
}

@media (max-width: 640px) {
    .performance-tools {
        flex-direction: column;
    }
}

.performance-table-wrap {
    overflow-x: auto;
}

.performance-table {
    width: 100%;
    min-width: 760px;
    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: 7%; text-align: center; }
.performance-table th:nth-child(2),
.performance-table td:nth-child(2) { width: 16%; text-align: center; }
.performance-table th:nth-child(3),
.performance-table td:nth-child(3) { width: 13%; text-align: center; }
.performance-table th:nth-child(4),
.performance-table td:nth-child(4) { width: 40%; }
.performance-table th:nth-child(5),
.performance-table td:nth-child(5) { width: 24%; }

.performance-project {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.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;
}

/* 회사소개 · 사업안내 페이지 */
.business-detail {
    display: none;
    scroll-margin-top: 170px;
}

.business-detail:target,
.business-panel:not(:has(:is(.business-detail, .automation-topic):target)) #retaining-wall,
.business-automation:has(.automation-topic:target),
.business-automation:target > #fiber-sensor,
.automation-topic:target {
    display: block;
}

.business-detail h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

.business-detail h3,
.business-detail .business-figure-title {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.business-detail p,
.business-detail li,
.business-source-table {
    color: #444;
    font-size: 1rem;
    line-height: 1.75;
}

.business-detail > p,
.automation-topic > p {
    max-width: 72ch;
}

.business-detail p + p {
    margin-top: 0.75rem;
}

.business-source-table {
    margin: 0.8rem 0 1.5rem;
    overflow-x: auto;
}

.business-source-table table {
    width: 100%;
    min-width: 25rem;
    border-collapse: collapse;
}

.business-source-table-wide table {
    min-width: 44rem;
}

.business-source-table :is(th, td) {
    padding: 0.65rem 0.8rem;
    border: 1px solid #dce3e6;
    vertical-align: middle;
    word-break: keep-all;
}

.business-source-table th {
    background: #f4f6f8;
    color: #222;
}

.business-source-category {
    width: 9rem;
}

.business-source-label {
    text-align: center;
    white-space: nowrap;
}

.business-source-table p + p {
    margin-top: 0.35rem;
}

.business-source-figure,
.business-source-images {
    margin: 1rem 0;
}

.business-source-images:has(img:nth-child(2)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.75rem;
}

.business-source-images img:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.business-source-table .business-source-images {
    margin: 0.35rem 0;
}

.business-gps-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.business-gps-photos img {
    display: block;
    width: 100%;
    height: auto;
}

.business-gps-photos figcaption {
    margin-top: 0.3rem;
    color: #555;
    font-size: 0.875rem;
}

.business-gps-diagram,
.business-gps-alert {
    margin: 0 0 0.65rem;
}

.business-gps-diagram img {
    width: 100%;
}

.business-gps-alert img {
    width: min(100%, 16rem);
}

:is(.business-source-figure, .business-source-images) img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.automation-menu ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.75rem;
    margin: 0 0 1.5rem;
    padding: 0.8rem 1rem 0.8rem 2.25rem;
    border: 1px solid #e0e5e8;
    background: #f7f9fa;
}

.automation-menu a {
    display: block;
    padding: 0.35rem 0;
    color: #333;
    text-underline-offset: 0.18em;
}

.automation-menu a[aria-current="location"],
.automation-menu a:hover,
.automation-menu a:focus-visible {
    color: #a84005;
}

.automation-menu a[aria-current="location"] {
    font-weight: 700;
}

.automation-topic {
    display: none;
    scroll-margin-top: 210px;
}

.automation-topic:target > h2 {
    display: none;
}

.business-panel .performance-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem 1.25rem;
    margin-bottom: 1.5rem;
    scroll-margin-top: 0.75rem;
}

.business-panel .performance-heading h1 {
    grid-row: 1 / span 2;
}

.business-panel .breadcrumb {
    grid-column: 2;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.25rem;
    margin-inline-start: auto;
}

.business-section-picker {
    grid-column: 2;
    justify-self: end;
    position: relative;
    max-width: 100%;
}

.business-section-picker::after {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
    content: "";
}

.business-section-picker select {
    appearance: none;
    min-height: 2.75rem;
    width: min(12rem, 100%);
    padding: 0.45rem 2.4rem 0.45rem 0.85rem;
    border: 1px solid #dce3e6;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.business-section-picker select:focus-visible {
    outline: 2px solid #a84005;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .business-panel .performance-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.6rem;
    }

    .business-panel .performance-heading h1,
    .business-panel .breadcrumb,
    .business-section-picker {
        grid-area: auto;
    }

    .business-panel .breadcrumb {
        justify-content: flex-start;
        margin-inline-start: 0;
    }

    .business-section-picker {
        justify-self: start;
    }

    .business-detail {
        scroll-margin-top: 185px;
    }

    .automation-menu ol {
        gap: 0.25rem 1.25rem;
        padding-right: 0.6rem;
    }
}

#greeting {
    scroll-margin-top: 24px;
}

.company-greeting {
    display: none;
    width: 100%;
    color: #333;
    font-size: 1.08rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.company-panel:has(#greeting:target) .company-greeting {
    display: block;
}

.company-panel:has(:is(#greeting, #history, #organization, #location):target) :is(.sub-content-intro, .sub-content-grid) {
    display: none;
}

.company-greeting p + p {
    margin-top: 1.15em;
}

.company-greeting .company-greeting-signature {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #e0e5e8;
    text-align: right;
}

.company-greeting-signature strong {
    margin-inline-start: 0.3em;
}

.company-location {
    display: none;
    width: 100%;
    scroll-margin-top: 140px;
}

.company-location:target {
    display: block;
}

.company-location-map img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e0e5e8;
}

.company-location-details {
    margin-top: 2rem;
    border-top: 2px solid #f36b16;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
}

.company-location-details > div {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.45rem 1.5rem;
    padding: 1.15rem 0.5rem;
    border-bottom: 1px solid #e0e5e8;
}

.company-location-details dt {
    font-weight: 700;
}

.company-location-details address {
    font-style: normal;
}

.company-location-details p + p {
    margin-top: 0.35rem;
}

.company-location-details a {
    color: #a84005;
    text-underline-offset: 0.15em;
}

@media (max-width: 480px) {
    .company-location-details > div {
        grid-template-columns: 1fr;
    }
}

.company-history {
    display: none;
    border-top: 3px solid #f36b16;
    scroll-margin-top: 140px;
}

.company-history:target {
    display: block;
}

.company-history ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

.company-history li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.15rem 0.5rem;
    border-bottom: 1px solid #e0e5e8;
    color: #333;
    font-size: 1.08rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.company-history time {
    color: #a84005;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.company-history small {
    display: block;
    color: #555;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .company-history li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.sub-side-menu a[aria-current="location"] {
    border-color: #f36b16;
    color: #a84005;
}

.company-organization {
    display: none;
    width: 100%;
    scroll-margin-top: 140px;
}

.company-organization:target {
    display: block;
}

.organization-lead,
.organization-unit h2 {
    display: grid;
    place-items: center;
    min-height: 3.75rem;
    padding: 0.65rem 1rem;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 700;
}

.organization-lead {
    width: min(100%, 15rem);
    margin: 0 auto;
    background: #f36b16;
    color: #20160f;
}

.organization-chart {
    --organization-line: #a4adb3;
    --organization-gap: 3rem;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem var(--organization-gap);
    margin: 0;
    padding: 1.5rem 0 0;
    list-style: none;
}

.organization-chart::before {
    position: absolute;
    top: 0;
    left: 50%;
    height: 7.625rem;
    border-left: 1px solid var(--organization-line);
    content: "";
}

.organization-unit h2 {
    position: relative;
    border: 1px solid #e0e5e8;
    background: #f7f9fa;
}

.organization-unit h2::after {
    position: absolute;
    top: 50%;
    left: 100%;
    width: calc(var(--organization-gap) / 2 + 1px);
    border-top: 1px solid var(--organization-line);
    content: "";
}

.organization-unit:nth-child(even) h2::after {
    right: 100%;
    left: auto;
}

.organization-duties {
    margin: 0;
    padding: 1rem 0.5rem 0 1.65rem;
    list-style: disc;
    color: #444;
    font-size: 1.05rem;
    line-height: 1.75;
}

.organization-duties li + li {
    margin-top: 0.35rem;
}

@media (max-width: 600px) {
    .company-greeting {
        font-size: 1rem;
        line-height: 1.85;
    }

    .company-location-details,
    .company-history li,
    .organization-duties {
        font-size: 1rem;
    }

    .organization-chart {
        --organization-gap: 1rem;
    }

    .organization-duties {
        padding-left: 1.05rem;
    }
}

.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;
}

#quoteInquirySection .sub-content-intro h2 {
    font-size: 1.75rem;
}

#quoteInquirySection .sub-content-intro p {
    font-size: 1.125rem;
}

.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;
}

.certification-section {
    display: none;
    scroll-margin-top: 96px;
}

.is-certification-view .performance-heading,
.is-certification-view .sub-content-intro,
.is-certification-view .sub-content-grid {
    display: none;
}

.is-certification-view .certification-section {
    display: block;
}

.certification-heading {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 2px solid #253b4d;
}

.certification-heading h2 {
    margin: 4px 0 10px;
    color: #1e2d39;
    font-size: 28px;
}

.certification-heading > p:last-child,
.certification-group-note {
    color: #66727e;
    font-size: 14px;
    line-height: 1.8;
}

.certification-group-title {
    margin: 34px 0 8px;
    color: #263746;
    font-size: 20px;
}

.certification-group-note {
    margin-bottom: 14px;
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.certification-card {
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe2e7;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-align: left;
    box-shadow: 0 4px 14px rgba(30, 50, 66, 0.06);
}

.certification-card.is-history {
    border-color: #e8c99f;
}

.certification-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-bottom: 1px solid #e4e9ed;
    background: #f3f5f7;
    color: #9aa4ac;
    font-size: 13px;
    font-weight: 500;
}

.certification-card-body {
    display: grid;
    gap: 7px;
    min-height: 130px;
    padding: 16px;
}

.certification-card-body strong {
    color: #1f2d38;
    font-size: 16px;
    line-height: 1.45;
}

.certification-card-body small {
    color: #6f7b85;
    font-size: 12px;
    line-height: 1.55;
}

.certification-status {
    justify-self: start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9f0f5;
    color: #31566f;
    font-size: 11px;
    font-weight: 700;
}

.certification-status.is-current {
    background: #e7f5ec;
    color: #237142;
}

.certification-status.is-expired {
    background: #fff0df;
    color: #9a4b00;
}

.certification-status.is-proof {
    background: #f0eef8;
    color: #59498a;
}

.certification-dialog {
    width: min(880px, calc(100% - 32px));
    max-height: 92vh;
    padding: 0 0 22px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.certification-dialog::backdrop {
    background: rgba(10, 20, 28, 0.72);
}

.certification-dialog-head {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e5e8;
    background: rgba(255, 255, 255, 0.97);
}

.certification-dialog-head h2 {
    font-size: 18px;
}

.certification-dialog-head button {
    padding: 8px 14px;
    border: 1px solid #cfd7dd;
    border-radius: 5px;
    background: #fff;
    color: #34424e;
    cursor: pointer;
}

.certification-dialog > img {
    display: block;
    width: min(760px, calc(100% - 32px));
    height: auto;
    margin: 18px auto 12px;
}

.certification-dialog > p {
    padding: 0 20px;
    color: #6c7882;
    font-size: 12px;
    text-align: center;
}

@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;
    }

    .certification-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {
    .sub-content-grid {
        grid-template-columns: 1fr;
    }

    .certification-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;
    }
}

/* =========================
   운영 관리자 CMS
========================= */
.admin-login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f3f5f7;
  color: #17232b;
}

.admin-login-card {
  width: min(100%, 420px);
  padding: clamp(24px, 5vw, 36px);
  border: 1px solid #e1e6e9;
  border-radius: 12px;
  background: #fff;
}

.admin-login-card img { width: 120px; height: auto; }
.admin-login-card h1 { margin: 16px 0 20px; font-size: 1.6rem; }
.admin-login-card form { display: grid; gap: 8px; margin-bottom: 20px; }
.admin-login-card label { font-weight: 700; }
.admin-login-card input { width: 100%; min-height: 44px; margin-bottom: 8px; padding: 8px 12px; border: 1px solid #a7b1b7; border-radius: 6px; font: inherit; }
.admin-login-card button, .admin-account button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 6px; background: #973600; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.admin-login-feedback { margin-bottom: 14px; color: #922b22; }
.admin-account { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.admin-body {
    min-width: 320px;
    background: #f1f4f6;
    color: #202428;
    font-family: "Noto Sans KR", sans-serif;
}

.admin-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 20px; background: #17232b; color: #fff; }
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; color: #fff; text-decoration: none; }
.admin-brand img { width: 118px; max-height: 40px; object-fit: contain; filter: brightness(0) invert(1); }
.admin-brand span { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.3); font-size: 14px; font-weight: 700; }
.admin-nav { display: grid; gap: 6px; }
.admin-nav button { display: flex; justify-content: space-between; width: 100%; padding: 13px 14px; border: 0; border-radius: 8px; background: transparent; color: #cbd5da; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.admin-nav button:hover, .admin-nav button.is-active { background: #f36b16; color: #fff; }
.admin-nav button span:not(:empty) { min-width: 23px; padding: 2px 7px; border-radius: 20px; background: #fff; color: #d95100; font-size: 12px; text-align: center; }
.admin-view-site { margin-top: auto; padding: 12px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: #fff; font-size: 14px; text-align: center; text-decoration: none; }
.admin-main { width: 100%; max-width: 1440px; padding: 34px 42px 60px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-topbar p { margin-bottom: 4px; color: #f36b16; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.admin-topbar h1 { font-size: 30px; }
.admin-topbar > span { padding: 9px 14px; border-radius: 30px; background: #fff; color: #56616a; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.admin-view { display: none; }
.admin-view.is-active { display: grid; gap: 22px; }
.admin-card { padding: 28px; border: 1px solid #e2e7ea; border-radius: 12px; background: #fff; box-shadow: 0 7px 24px rgba(27,42,52,.06); }
.admin-card h2 { font-size: 21px; }
.admin-card > p, .admin-card-heading p { margin-top: 6px; color: #6b747b; font-size: 14px; line-height: 1.7; }
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-stat-grid article { display: grid; grid-template-columns: 1fr auto; align-items: end; min-height: 136px; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 7px 24px rgba(27,42,52,.06); }
.admin-stat-grid span { grid-column: 1 / -1; align-self: start; color: #69747b; font-size: 15px; }
.admin-stat-grid strong { color: #17232b; font-size: 38px; }
.admin-stat-grid small { padding-bottom: 7px; color: #879198; font-size: 13px; }
.admin-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.admin-form label { display: grid; gap: 8px; color: #30373c; font-size: 14px; font-weight: 700; }
.admin-form input:not([type="checkbox"]), .admin-form select, .admin-form textarea, .admin-search { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cad2d7; border-radius: 7px; background: #fff; color: #222; font: inherit; font-size: 15px; }
.admin-form textarea { resize: vertical; line-height: 1.65; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .admin-search:focus { border-color: #f36b16; outline: 3px solid rgba(243,107,22,.14); }
.admin-form label small { color: #7e878d; font-size: 13px; font-weight: 400; }
.admin-span-2 { grid-column: 1 / -1; }
.admin-check { display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 8px !important; font-weight: 500 !important; }
.admin-check input { width: 18px; height: 18px; accent-color: #f36b16; }
.admin-inline-checks { display: flex; align-items: center; gap: 20px; }
.admin-form-actions { display: flex; gap: 10px; padding-top: 4px; }
.admin-primary, .admin-secondary, .admin-row-actions button, .admin-row-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.admin-primary { border: 1px solid #f36b16; background: #f36b16; color: #fff; }
.admin-secondary, .admin-row-actions button, .admin-row-actions a { border: 1px solid #ccd3d7; background: #fff; color: #354047; }
.admin-primary:disabled, .admin-secondary:disabled { cursor: wait; opacity: .55; }
.admin-search { width: min(320px, 100%); min-height: 42px; }
.admin-list { display: grid; gap: 10px; }
.admin-list-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid #e1e6e9; border-radius: 8px; }
.admin-list-item strong { font-size: 15px; }
.admin-list-item p { margin-top: 5px; color: #768087; font-size: 13px; }
.admin-row-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.admin-row-actions button, .admin-row-actions a { min-height: 36px; padding: 0 11px; }
.admin-row-actions .is-danger { color: #b83226; }
.admin-row-actions select { min-height: 36px; padding: 0 30px 0 9px; border: 1px solid #ccd3d7; border-radius: 6px; background: #fff; font: inherit; font-size: 14px; }
.admin-tag, .admin-status { display: inline-block; margin-right: 7px; padding: 3px 7px; border-radius: 4px; background: #fff0e6; color: #d65302; font-size: 12px; }
.admin-status.is-read { background: #edf2f5; color: #4b5b65; }
.admin-status.is-replied { background: #e9f7ed; color: #26723a; }
.admin-inquiry { padding: 20px; border: 1px solid #e1e6e9; border-radius: 9px; }
.admin-inquiry.is-new { border-left: 4px solid #f36b16; }
.admin-inquiry-head { display: flex; justify-content: space-between; gap: 20px; }
.admin-inquiry-head time, .admin-inquiry-contact { color: #778188; font-size: 13px; }
.admin-inquiry-contact { margin-top: 8px; }
.admin-inquiry-message { margin: 16px 0; padding: 15px; border-radius: 7px; background: #f5f7f8; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.admin-alert { margin-bottom: 20px; padding: 14px 17px; border-radius: 8px; background: #e8f7ed; color: #236a37; font-size: 14px; font-weight: 700; }
.admin-alert.is-error { background: #fff0ee; color: #a73329; }
.admin-storage-notice { margin-bottom: 20px; padding: 14px 17px; border: 1px solid #f0c997; border-radius: 8px; background: #fff7ed; color: #7a431a; font-size: 14px; line-height: 1.65; }
[data-storage-control]:has(input:disabled) { opacity: .55; }
.admin-empty { padding: 36px; color: #7c858b; text-align: center; }

/* 게시판과 온라인 상담 */
.board-section[hidden], .consultation-section[hidden] { display: none; }
.board-status { margin-bottom: 12px; color: #68737a; font-size: 14px; }
.board-list { border-top: 2px solid #38434a; }
.board-item { border-bottom: 1px solid #dfe4e7; }
.board-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 14px; cursor: pointer; list-style: none; }
.board-item summary::-webkit-details-marker { display: none; }
.board-item summary strong { font-size: 15px; }
.board-item summary time { flex-shrink: 0; color: #7d878e; font-size: 13px; }
.board-item[open] summary { background: #f5f8f9; }
.board-item-content { padding: 22px; background: #fafbfb; color: #4a5359; font-size: 14px; line-height: 1.8; }
.board-download { display: inline-flex; margin-top: 18px; padding: 9px 12px; border: 1px solid #f36b16; border-radius: 6px; color: #d65302; font-weight: 700; text-decoration: none; }
.consultation-form { display: grid; gap: 18px; }
.consultation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.consultation-form label { display: grid; gap: 7px; color: #30383d; font-size: 14px; font-weight: 700; }
.consultation-form label[hidden] { display: none; }
.consultation-attachment { min-width: 0; }
.consultation-attachment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.consultation-attachment-title { margin: 0; color: #30383d; font-size: 17px; font-weight: 700; }
.consultation-attachment-title .consultation-field-marker { font-size: 14px; }
.consultation-attachment-count { padding: 3px 9px; border-radius: 999px; background: #edf0f2; color: #4e5c65; font-size: 14px; font-weight: 700; }
.consultation-attachment.has-file .consultation-attachment-count { color: #9b3a0b; background: #ffeadb; }
.consultation-form .consultation-attachment-drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px clamp(16px, 3vw, 24px);
  border: 1px dashed #c7cfd4;
  border-radius: 12px;
  background: #f8f9fa;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.consultation-attachment.has-file .consultation-attachment-drop { border-style: solid; border-color: #e9bda4; background: #fffaf6; }
.consultation-attachment-drop:hover, .consultation-attachment.is-dragging .consultation-attachment-drop {
  border-color: #ed6d25;
  background: #fff7f0;
}
.consultation-attachment-drop:focus-within { outline: 2px solid #b8460e; outline-offset: 3px; }
.consultation-attachment-icon {
  display: grid;
  flex: 0 0 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: #ffeadb;
  color: #a63c09;
  font: 700 24px/1 system-ui, sans-serif;
}
.consultation-attachment-copy { display: grid; flex: 1 1 180px; gap: 4px; min-width: 0; }
.consultation-attachment-copy > span { color: #52616a; font-size: 14px; font-weight: 400; }
.consultation-attachment-copy > .consultation-attachment-selected { color: #9b3a0b; font-weight: 700; }
.consultation-form .consultation-attachment-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.consultation-attachment-button {
  padding: 9px 15px;
  border: 1px solid #e9bda4;
  border-radius: 6px;
  background: #fff;
  color: #9b3a0b;
  font-size: 15px;
  white-space: nowrap;
}
.consultation-attachment-name { color: #263239; font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
.consultation-attachment-message { margin: 7px 0 0; color: #a13214; font-size: 14px; overflow-wrap: anywhere; }
.consultation-attachment-message:empty { display: none; }
.consultation-field-marker { color: #5d6972; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.consultation-field-marker.is-required { color: #9b3a0b; font-weight: 700; }
.consultation-form input:not([type="checkbox"]), .consultation-form textarea { width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid #cdd4d8; border-radius: 6px; font: inherit; font-size: 15px; }
.consultation-form textarea { resize: vertical; line-height: 1.7; }
.consultation-form input:not([type="checkbox"]):focus, .consultation-form textarea:focus { border-color: #f36b16; outline: 3px solid rgba(243,107,22,.14); }
.form-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consultation-privacy-notice { padding: 18px 20px; border: 1px solid #d9dfe2; border-radius: 7px; background: #f8fafb; color: #4c565c; font-size: 14px; line-height: 1.7; }
.consultation-privacy-notice strong { display: block; margin-bottom: 7px; color: #252c30; font-size: 15px; }
.consultation-privacy-notice ul { margin: 0 0 8px; padding-left: 20px; }
.consultation-privacy-notice a { color: #c84f05; font-weight: 700; }
.consultation-consent { display: flex !important; align-items: flex-start; gap: 9px !important; cursor: pointer; }
.consultation-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #f36b16; flex: 0 0 auto; }
.consultation-consent span { line-height: 1.55; }
.consultation-submit { display: flex; align-items: center; gap: 16px; }
.consultation-submit button { min-height: 46px; padding: 0 24px; border: 0; border-radius: 6px; background: #f36b16; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.consultation-submit p { color: #337044; font-size: 14px; }

@media (max-width: 900px) {
    .admin-shell { display: block; }
    .admin-sidebar { position: static; width: 100%; height: auto; padding: 16px; }
    .admin-brand { padding-bottom: 16px; }
    .admin-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-nav button { justify-content: center; text-align: center; }
    .admin-view-site { display: none; }
    .admin-main { padding: 26px 20px 50px; }
}

/* 개인정보처리방침 */
.privacy-page { max-width: 1100px; margin: 0 auto; padding: 72px 28px 100px; }
.privacy-heading { padding-bottom: 26px; border-bottom: 2px solid #263238; }
.privacy-heading p { margin: 0 0 9px; color: #e95f0c; font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.privacy-heading h1 { margin: 0; color: #1c252a; font-size: clamp(30px, 4vw, 44px); }
.privacy-effective { margin: 18px 0 36px; color: #657078; font-size: 14px; }
.privacy-intro { margin-bottom: 36px; padding: 22px 24px; border-radius: 8px; background: #f5f7f8; color: #3d474d; line-height: 1.8; }
.privacy-section { margin-top: 40px; color: #3f494f; line-height: 1.8; }
.privacy-section h2 { margin: 0 0 15px; color: #20292e; font-size: 22px; }
.privacy-section h3 { margin: 22px 0 8px; color: #303a40; font-size: 17px; }
.privacy-section ul { padding-left: 22px; }
.privacy-table-wrap { overflow-x: auto; }
.privacy-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.privacy-table th, .privacy-table td { padding: 13px 14px; border: 1px solid #d8dee1; text-align: left; vertical-align: top; }
.privacy-table th { background: #f0f3f4; color: #273137; }
.privacy-contact { padding: 18px 20px; border-left: 4px solid #f36b16; background: #fff7f2; }
@media (max-width: 640px) {
    .privacy-page { padding: 48px 18px 72px; }
    .privacy-intro { padding: 18px; }
}

@media (max-width: 640px) {
    .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
    .admin-topbar h1 { font-size: 26px; }
    .admin-stat-grid, .admin-form-grid, .consultation-grid { grid-template-columns: 1fr; }
    .admin-span-2 { grid-column: auto; }
    .admin-card { padding: 20px 16px; }
    .admin-card-heading, .admin-list-item, .admin-inquiry-head { align-items: stretch; flex-direction: column; }
    .admin-card-heading .admin-search { width: 100%; }
    .admin-row-actions { flex-wrap: wrap; }
    .admin-form-actions { align-items: stretch; flex-direction: column; }
    .board-item summary { align-items: flex-start; flex-direction: column; gap: 6px; }
    .consultation-submit { align-items: stretch; flex-direction: column; }
}
