/********************************************************
 * (1) 기본 reset & global styles template2.css
 ********************************************************/
html, body {
  margin: 0;
  padding: 0;
  width: 100%;

  overflow-x: hidden;
  font-family: system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body {
  display: flex;
  flex-direction: column;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}

/********************************************************
 * (2) 전체 레이아웃: header + main + footer
 ********************************************************/
main {
  flex: 1;
}

/********************************************************
 * (3) 공통 Section 스타일
 ********************************************************/
section:not(.hero-slider):not(.top-menu-bar):not(.hero-section) {
  /* clamp(1.5rem, 5vw, 3rem) 등으로 반응형 여백 */
  padding: clamp(1.5rem, 5vw, 3rem) 1rem;
  max-width: 1080px; 
  margin: 0 auto; /* 가운데 정렬 용도로 사용 */
}
section:not(.hero-slider) > h2 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

/********************************************************
 * (4) Hero Slider (슬라이더)
 ********************************************************/
section.hero-slider {
margin: 0 !important;
padding: 0 !important;
}

section.hero-slider {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 100%;
  position: relative;
  min-height: 35vh;
  overflow: hidden;
}
.slider-wrapper {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
  user-select: none;
  touch-action: pan-y;
}
.slide {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  height: 35vh;
  background-size: cover;
  background-position: center;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero-slider .slide-content {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 90%;
}
.hero-slider .slide-content h1 {
  overflow-wrap: break-word;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.hero-slider .slide-content h2 {
  overflow-wrap: break-word;
  font-size: clamp(1rem, 4vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: 1.2rem;
}
.hero-slider .slide-content h1,
.hero-slider .slide-content h2 {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.hero-slider .slide-content .slide-btn {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff;
  padding: 0.8rem 1.4rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s;
}
.hero-slider .slide-content .slide-btn:hover {
  background: rgba(255,255,255,0.15);
}
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active {
  background: #fff;
}
section.hero-slider.has-board {
  margin-bottom: 0 !important;
}
/********************************************************
 * 게시판 미리보기 & 고객센터 - 3열 레이아웃
 ********************************************************/
/* 큰 화면: 3열, 중간: 2열, 모바일: 1열 */
.board-list-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0;  /* 상황에 맞춰 조정 */
}
@media (max-width: 992px) { /* 태블릿 이하 */
  .board-list-wrap {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 576px) { /* 모바일 */
  .board-list-wrap {
    grid-template-columns: 1fr;
  }
}

/* ────────── 게시판 카드 (2개) ────────── */
.board-item {
  background: none;  /* 배경 제거 */
  color: #333;
  border: none;      /* 테두리 제거 */
  border-radius: 0;  /* 둥근모서리 제거 */
  box-shadow: none;  /* 그림자 제거 */
  padding: 0;        /* 여백 최소화 */
  transition: transform 0.3s;
}
.board-item:hover {
  transform: translateY(-2px);
}
.board-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
  border-bottom: none;    /* 밑줄 제거 */
  color: #ee5917;         /* 포인트 컬러 */
}
.board-item li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  justify-content: space-between;
}
.board-item li a {
  color: inherit;         /* 부모색 계승 */
  text-decoration: none;
}
.board-item li a:hover {
  text-decoration: underline;
}
.board-item li small {
  color: #999;            /* 보조 텍스트 */
}

/* ────────── 연락처 (고객센터) ────────── */
.contact2 {
  background: none;       /* 그라디언트 제거(원하면 유지) */
  border: none;
  box-shadow: none;
  padding: 0;             /* 여백 자유롭게 */
  display: flex;          /* 가운데 정렬 예시 */
  align-items: center;
  justify-content: center;
}
.contact2-inner {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  text-align: center;
  padding: 0;
}
.contact2-inner h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #ee5917;         /* 같은 포인트 컬러 사용 */
}
.phone2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.time2 {
  font-size: 0.95rem;
  color: #666;
}

/********************************************************
 * (6) 커스텀 섹션 (custom-section2)
 ********************************************************/
.custom-section2 {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  padding: 1.5rem;
  margin-top: 2rem;
}
/* 폰트: 나눔고딕 사용 */
@import url('http://fonts.googleapis.com/earlyaccess/nanumgothic.css');

/* 공통 변수 선언 */
:root {
  /* 포인트 컬러 */
  --pri:        #ffa75e;   /* 기존 #008080 */
  --pri-dark:   #ffa75e;   /* 기존 #006666 (hover 시) */
  
  /* 텍스트, 배경, 경계선 등 */
  --txt:        #333333;   /* 기존 #333 */
  --bg:         #ffffff;   /* 기존 #fff */
  --bg-soft:    #ffa75e;   /* 기존 #f7f7f7 */
  --border:     #ffa75e;   /* 기존 #e0e0e0 */
  --border-light: #ffa75e; /* 기존 #eee */
  
  /* 그 외 필요한 경우에만 사용 */
  --bg-hover:   #ffffff;   /* 기존 #f5f5f5 */
}

.header-scope * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 헤더 스코프 */
.header-scope {
  background: var(--bg);
  color: var(--border-light); /* 기존 #eee */
  font-family: 'NanumGothic', "Helvetica Neue", Arial, sans-serif;
}

/* 사이트 헤더 */
.header-scope .site-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  position: relative;
  background-color: var(--bg);
  font-family: 'NanumGothic', Arial, sans-serif;
}

.header-scope .site-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--txt); /* 기존 #333 */
}

.header-scope .site-header h1 a {
  color: inherit;
  text-decoration: none;
}

/* 메뉴(nav) */
.header-scope .site-header nav {
  position: relative;
}

.header-scope .site-header nav ul {
  display: inline-flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.header-scope .site-header nav li {
  position: relative;
}

.header-scope .site-header nav a {
  color: var(--txt); /* 기존 #333 */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

/* 하단 라인 */
.header-scope .site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--pri); /* 기존 #008080 */
  transition: width 0.25s ease;
}

.header-scope .site-header nav a:hover {
  color: var(--pri); /* 기존 #008080 */
}

.header-scope .site-header nav a:hover::after {
  width: 100%;
}

.header-scope .site-header nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  background: var(--bg); /* 기존 #fff */
  border-radius: 4px;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  z-index: 999;
}

.header-scope .site-header nav li ul li a {
  display: block;
  color: var(--txt); /* 기존 #333 */
  font-weight: 500;
  text-align: left;
  padding: 0.5rem 1rem;
  position: static;
}

.header-scope .site-header nav li:hover > ul {
  display: block;
}

/* 햄버거 버튼 (모바일) */
.header-scope .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pri); /* 기존 #008080 */
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.header-scope .menu-toggle:hover {
  color: var(--pri-dark); /* 기존 #006666 */
}

/* 반응형 */
@media (max-width: 992px) {
  .header-scope .site-header {
    height: 120px;
    padding: 1rem 1.5rem;
  }
  .header-scope .site-header h1 {
    font-size: 1.6rem;
  }
  .header-scope .menu-toggle {
    display: block;
    font-size: 3.2rem;
    margin-left: auto;
  }
  .header-scope .site-header nav {
    position: absolute;
    top: 85px;
    left: 0;
    right: 0;
    text-align: left;
    z-index: 999;
  }
  .header-scope .site-header nav ul {
    display: none;
    flex-direction: column;
    background: var(--bg); /* 기존 #fff */
    border-radius: 4px;
    padding: 0.5rem 0;
    width: 100%;
  }
  .header-scope .site-header nav ul.show {
    display: flex;
  }
  .header-scope .site-header nav li ul {
    display: none;
    position: static;
    transform: none;
    margin-left: 1rem;
    box-shadow: none;
    border: none;
    background: var(--bg);
  }
  .header-scope .site-header nav li.active > ul {
    display: block;
  }
  .header-scope .site-header nav li:hover > ul {
    display: none;
  }
  .header-scope .site-header nav li a {
    display: block;
    text-align: left;
    border-bottom: 1px solid var(--border-light); /* 기존 #eee */
    padding: 1rem;
    font-size: 1rem;
    color: var(--txt); /* 기존 #333 */
  }
  .header-scope .site-header nav li a:hover {
    background: var(--bg-hover); /* 기존 #f5f5f5 */
    color: var(--pri);           /* 기존 #008080 */
  }
}

/********************************************************
 * (11) 푸터 ― 밝은 테마
 ********************************************************/
.footer-scope {
  width: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Nanum Gothic', "Helvetica Neue", Arial, sans-serif;
  border-top: 1px solid var(--border);
}
.footer-scope .site-footer {
  max-width: clamp(320px, 90%, 1200px);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  padding: 0 1rem;
}
.footer-scope .site-footer p {
  margin: 0;
}
.footer-scope .site-footer a {
  color: var(--pri);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-scope .site-footer a:hover {
  color: var(--pri-light);
}

/********************************************************
 * (12) Hero Section (고정 높이 → 유연한 높이)
 ********************************************************/
.hero-section {
  width: 100%;
  min-height: clamp(100px, 40vh, 250px);
  background: #1a73e8
    url('/make_test/uploads/img/hero_default.jpg')
    center center / cover 
    no-repeat; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;

  /* 여백 제거 */
  margin: 0 !important; /* 상/하/좌/우 모두 0 */
  /* 기존 margin-bottom: 30px; → 삭제/오버라이드 */
  /* 필요하면 padding도 0으로, 현재는 미사용. */
}
.hero-section h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-section p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .hero-section p {
    font-size: 0.95rem;
  }
}
/********************************************************
 * (13) Page Layout: container, sidebar, page-content
 ********************************************************/
.page-container {
  max-width: clamp(320px, 95%, 1200px);
  margin: 2rem auto;
  display: flex;
  flex-wrap: wrap;
  background: #ffffff; /* 차분한 흰색 배경 */
  border-radius: 12px;
  padding: 2rem;
  gap: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* 사이드바 */
.sidebar {
  flex: 0 0 240px;
  background: linear-gradient(135deg, #f3f4f6, #ffffff); /* 은은한 그라데이션 */
  border-radius: 8px;
  padding: 1.5rem;
  color: #444; /* 텍스트는 편안한 그레이 톤 */
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sidebar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  color: #ffa75e; /* 세련된 포인트 컬러(차분한 블루톤) */
  border-bottom:2px solid currentColor;
  padding-bottom: 0.5rem;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li {
  margin-bottom: 0.5rem;
}

.sidebar li a {
  display: block;
  text-decoration: none;
  color: #444;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.02);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  font-weight: 500;
}
.sidebar li a:hover {
  background: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
  transform: translateX(4px);
}

/* 메인 콘텐츠 */
.page-content {
  flex: 1;
  background: #ffffff; /* 깔끔한 화이트 */
  border-radius: 8px;
  padding: 1.5rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.page-content h2 {
  font-size: 1.75rem;
  margin-bottom: 1.2rem;
  color: #ffa75e; /* 같은 포인트 컬러 사용 */
  border-bottom: 2px solid #ffa75e;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* 반응형 - 태블릿 이하 */
@media (max-width: 992px) {
  html {
    font-size: 180%;
  }
  .page-container {
    flex-direction: column;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
  }
  .sidebar {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .page-content {
    width: 100%;
    border-radius: 0;
    padding: 1rem;
    font-size: 0.95rem;
    box-shadow: none;
  }
}

/* 빈 미디어 쿼리(기존 코드와 스코프 동일하게 유지) */
@media () {
  html {
    font-size: 120%;
  }
  .hero-section h1 {
    font-size: 1.5rem;
  }
  .hero-section p {
    font-size: 0.95rem;
  }
}


/********************************************************
 * (14) Top Menu Bar ― 최종 고정 높이 50 px
 ********************************************************/
section.top-menu-bar {
  /* hero-section과 밀착시키려면 margin, padding 전부 0 */
  margin: 0 !important;
  padding: 0 !important;

  max-width: none !important;
}
.top-menu-bar {
  width: 100%;
  height: 50px;
  background: #ffa75e;
  display: flex;
  overflow: hidden;
}
.top-menu-bar .menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  height: 100%;
}
.top-menu-bar .menu-inner ul {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-menu-bar .menu-inner li {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-menu-bar .menu-inner li a {
  width: 100%;
  height: 100%;
  line-height: 50px;
  font-size: 0.9rem;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s;
}
.top-menu-bar .menu-inner li a:hover {
  background: rgba(0, 0, 0, 0.15);
}




/* ==============================
   [NEW] Hero Contact Section
   ============================== */
   
section.hero-contact-section {
  /* hero-section과 밀착시키려면 margin, padding 전부 0 */
  margin: 0 !important;
  padding: 0 !important;

  max-width: none !important;
}
.hero-contact-section {
  width: 100%;
  /* 배경이미지를 브라우저 가로폭만큼 꽉 채우기 위해 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
  color: #fff;
  padding: 40px 0;
}


.hero-contact-section::before {
  content: "";
  display: block;
  background: rgba(0, 0, 0, 0.4); /* 어두운 오버레이 */
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

.hero-contact-inner {
  position: relative; /* 오버레이 위로 올리기 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 왼쪽 버튼 랩 */
.hc-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 공통 버튼 스타일 */
.hc-btn {
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  transform: rotate(-4deg); /* 기본 비스듬하게 */
  box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s;
}

.hc-btn:hover {
  transform: rotate(0deg);
}

/* 회사소개 버튼 */
.hc-btn-company {
  background-color: #005baa;
}

/* 찾아오시는길 버튼 */
.hc-btn-location {
  background-color: #333;
}

/* p 안의 text */
.hc-btn p {
  font-size: 20px;
  line-height: 1.4;
}
.hc-btn span {
  font-size: 14px;
}

/* 오른쪽 영역 */
.hc-right {
  flex: 1;
  text-align: right;
}

/* 큰 제목 */
.hc-right h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

/* 서브 텍스트 */
.hc-desc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 전화번호 */
.hc-phone {
  font-size: 30px;
  line-height: 1.2;
}
.hc-phone small {
  font-size: 14px;
  color: #ccc;
}
