/* (1) Sticky Footer & Layout Flex 설정 template1.css*/

html, body {
  margin: 0;
  padding: 0;
  height: 100%; /* 브라우저 창 높이를 100%로 */
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  line-height: 1.65;
  color: var(--txt);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
  display: block;
}
.footer-scope {
  flex-shrink: 0;
}

/* (2) 테마 변수 선언 */
:root {
  --pri:          #ff6b35;
  --pri-dark:     #c64f1f;
  --bg:           #f9fafb;
  --txt:          #333;
  --card-bg:      #ffffff;
  --card-shadow:  0 6px 16px rgba(0,0,0,.08);
  --radius:       14px;
  --speed:        0.25s;
}

/* (3) Reset + 공통 스타일 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--speed);
}

/* (4) 세부페이지 히어로섹션 (기존 단일 히어로) */
.hero-section {
  width: 100%;
  min-height: clamp(100px, 40vh, 500px);
  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-bottom: 30px;
  padding: clamp(1rem, 5vw, 2rem) 1rem;
}
.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;
  }
}
/* (기본) 3분할 히어로 */
.ind-hero {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr; /* 왼쪽 2/3, 오른쪽 1/3 */
  gap: 20px;

  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  height: auto; /* auto로 변경 → 이미지 높이에 맞춰짐 */
}
.hero-left,
.hero-right-top,
.hero-right-bottom {
  position: relative;
  overflow: hidden;
}
.hero-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.hero-left img,
.hero-right-top img,
.hero-right-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.hero-left:hover img,
.hero-right-top:hover img,
.hero-right-bottom:hover img {
  filter: grayscale(100%);
  transform: scale(1.05);
}
/* 오버레이 + 슬라이드(기존) */
.hero-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  width: 80%;
}
.slide-wrapper {
  position: relative;
  overflow: hidden;
  height: 2.5rem;
  margin-bottom: 1rem;
}
.slide-wrapper h1 {
  position: absolute;
  width: 100%;
  line-height: 2.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  transition: transform 0.5s ease;
}
.text1 {
  transform: translateX(0);
}
.text2 {
  transform: translateX(100%);
}
.hero-left:hover .text1,
.hero-right-top:hover .text1,
.hero-right-bottom:hover .text1 {
  transform: translateX(-100%);
}
.hero-left:hover .text2,
.hero-right-top:hover .text2,
.hero-right-bottom:hover .text2 {
  transform: translateX(0);
}
.hero-overlay h2 {
  font-size: 1.2rem;
  margin: 0;
}
/* (선택) 반투명 마스크 */
.ind-hero .hero-mask {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0, 0.3);
  z-index: 1;
  display: none; /* 필요 시 block */
}

/* ============================= */
/* 반응형: 폭이 992px 이하일 때 세로 스택 */
/* ============================= */
@media (max-width: 992px) {
  .ind-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    height: auto;
  }
  .hero-right {
    display: block;
    grid-template-rows: none;
    gap: 0;
  }
  .hero-left,
  .hero-right-top,
  .hero-right-bottom {
    height: auto;
    margin-bottom: 20px;
  }
}

/* ============================= */
/*  비즈니스 섹션 (수정 버전)    */
/* ============================= */
.business-section {
  background: #f9fafb;
  padding: 2rem 1rem;
}
.business-section .section-title {
  max-width: 1200px; 
  width: 100%;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  text-align: left;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: block;
}
.business-section .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #008080;
  margin-top: 0.5rem;
}
.biz-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.biz-card {
  position: relative; 
  overflow: hidden;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  margin: 0;
}
.biz-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.biz-card:hover img {
  filter: grayscale(100%);
  transform: scale(1.05);
}
.biz-card .biz-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  z-index: 2;
  color: #fff;
}
.slide-wrapper {
  position: relative;
  overflow: hidden;
  height: 3.2rem; 
  margin-bottom: 1rem;
}
.slide-wrapper h1,
.slide-wrapper h2 {
  position: absolute;
  width: 100%;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  transition: transform 0.5s ease;
}
.text1 {
  transform: translateY(0);
}
.text2 {
  transform: translateY(100%);
}
.biz-card:hover .text1 {
  transform: translateY(-100%);
}
.biz-card:hover .text2 {
  transform: translateY(0);
}
.slide-wrapper h1 {
  font-size: 3rem; 
  top: 0;
}
.slide-wrapper h2 {
  font-size: 3rem;
  bottom: 0;
  line-height: 1.3;
}
.biz-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* (7) Custom Section */
.custom-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  max-width: 1080px;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) 2rem;
}

@media (max-width: 992px) {
  /* 폰트 확대 */
  html {
    font-size: 180%;
  }
  .biz-cards {
    grid-template-columns: 1fr;
  }
  .page-container {
    flex-direction: column;
    padding: 1rem;
    border-radius: 0;
  }
  .page-content {
    width: 100%;
    border-radius: 0;
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* (8) Contact Section */
.contact-section {
  padding: clamp(3rem, 6vw, 4rem) 1rem;
  color: #fff;
  background: linear-gradient(135deg, #58b 0%, #58e 100%);
}
.contact-wrap {
  background: #fff;
  color: var(--txt);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: clamp(1.5rem, 4vw, 2.2rem) clamp(2rem, 5vw, 3.5rem);
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.contact-wrap h3 {
  color: var(--pri);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
}
.contact-wrap .phone {
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.contact-wrap .time {
  font-size: clamp(0.9rem, 2vw, 0.93rem);
  color: #666;
}
@media(max-width: 480px) {
  .ind-btn {
    width: 100%;
  }
}

/* (헤더/푸터 고정 스타일) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

.header-scope * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.header-scope {
  background: #fff;
  color: #eee;
  font-family: 'Montserrat', "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: #fff;
  font-family: 'Helvetica Neue', Arial, sans-serif; 
}
.header-scope .site-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #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: #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: #008080;
  transition: width 0.25s ease;
}
.header-scope .site-header nav a:hover {
  color: #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: #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: #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: #008080;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
}
.header-scope .menu-toggle:hover {
  color: #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: #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: #fff;
  }
  .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 #eee;
    padding: 1rem;
    font-size: 1rem;
    color: #333;
  }
  .header-scope .site-header nav li a:hover {
    background: #f5f5f5;
    color: #008080;
  }
}

/* (10) 푸터 범위 (footer-scope) */
.footer-scope * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.footer-scope {
  font-family: 'Montserrat', "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #000;
}
.footer-scope .site-footer {
  background-color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: .9rem;
}
.footer-scope .site-footer a {
  color: #32e0c4;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-scope .site-footer a:hover {
  color: #1ca18b;
}

/* (11) Page Layout */
.page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  /* 사이드바 삭제 → display:block으로 */
  display: block;
}
.page-content {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 1.2rem;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.page-content img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.page-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #444;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}
@media (max-width: 992px) {
  .page-container {
    flex-direction: column;
  }
  .page-content {
    width: 100%;
  }
}

/* ==========================================
   (NEW) 하위 메뉴(subMenus) 상단 표시 스타일
   ========================================== */
.sub-menu-bar {
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

/* 래퍼(컨테이너) */
.sub-menu-bar .sub-menu-inner {
  max-width: 1200px; /* 최대폭 1200px */
  margin: 0 auto;    /* 가로 가운데 정렬 */
}

/* 메뉴 목록 */
.sub-menu-bar ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;

  /* 수평 가운데 정렬 */
  justify-content: center;
}

/* li & a 스타일 */
.sub-menu-bar li {
  display: inline-block;
}
.sub-menu-bar a {
  color: #444;
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.sub-menu-bar a:hover {
  background: #f0f0f0;
}
