@charset "utf-8";
/*회사소개기본 CSS 리셋*/
* {
	margin: 0;	/*기본 상하좌우 여백값 0으로 설정*/
	padding: 0;	/*기본 상하좌우 패딩값 0으로 설정*/
	box-sizing: border-box;	/* 패딩과 테두리를 포함하여 요소의 너비를 유지 */
}
li {
	list-style: none;	/* 목록 항목의 불릿을 숨김 */
}
a {
	text-decoration: none;	/* 링크의 밑줄을 제거 */
	color: inherit;	/* 링크의 글자 색상을 부모 요소로부터 상속받음 */
}
img {
	vertical-align: top;
	max-width: 100%;
	/* 이미지를 부모 요소의 너비에 맞춤 (이미지가 깨지지 않도록) */
}

html {scroll-behavior: smooth;}
body {
  background: #fff;
  color: #333;
  font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
  line-height: 1.5;
}
/* =========================
   공통 레이아웃
========================= */
header,
.slide,
.bodywrap,
.wrap {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}
.copy {
	width: 100%;
	max-width: 100%;
	background-color: #464545;
	margin: 0 auto;
	clear: both;
	height: auto;
	box-sizing: border-box;
}
/* =========================
   HEADER / LOGO / NAV
   모바일 기본
========================= */
header {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  width:100%;
  max-width: 1340px;
  margin: 0 auto;
  min-height: 140px;
  justify-content: center;
}
.logo {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  margin: 0;
}
.logo a {
  display: inline-block;
  
}
.logo img {
  width: auto;
  height: 60px;
}
nav {
  width: 100%;
  position: static;
  z-index: 100;
}

nav > ul {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

nav > ul > li {
  flex: 1;
  min-width: 0;
  position: relative;
}

nav > ul > li > a {
  background: #fff;
  color: #212121;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 10px 4px;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

nav > ul > li:hover > a,
nav > ul > li:focus-within > a {
  background: #212121;
  color: #fff;
  border-color: #212121;
}

/* 모바일에서는 서브메뉴가 아래로 자연스럽게 열리도록 */
.sub {
  display: none;
  background: #212121;
  border-radius: 8px;
  margin-top: 6px;
  overflow: hidden;
}

.sub li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sub a {
  display: block;
  padding: 10px 8px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  background: #212121;
  transition: background 0.3s;
}

.sub a:hover {
  background: #6e6e70;
}

/* =========================
   SLIDE
========================= */
.slide {
   width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.slide ul {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide ul li {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: none;
}

.slide ul li a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.slide ul li.s1 {
  background: url(../images/s1.webp) no-repeat center / cover;
  display: block;
}

.slide ul li.s2 {
  background: url(../images/s2.webp) no-repeat center / cover;
}

.slide ul li.s3 {
  background: url(../images/s3.webp) no-repeat center / cover;
}

.slide li h2 {
  color: #0c51b1;
  font-size: clamp(18px, 3vw, 36px);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.75);
  padding: 14px 24px;
  border-radius: 10px;
  white-space: nowrap;
  text-align: center;
}

.slide li h2 span {
  color: #080808;
}

/* =========================
   SECTION TITLE
========================= */
.bodywrap {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 30px 20px 0;
  }

.service{
  width: 100%;
  text-align: center;
  margin-bottom: 28px;
}

.service span{
  color: #4b4b4b;
}

.service h1{
  color: #29456d;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}

.service h3{
  color: #0c51b1;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 600;
  margin-top: 0.01%;
}

/* =========================
   CONTENTS 공통
========================= */
/* 1. 기본 스타일 (화면이 클 때: 가로로 나란히) */
.contents {
  width: 100%;
  display: flex;
  flex-direction: row; 
  justify-content: center; /* 자식 요소들을 가로 중앙으로 */
  align-items: center;     /* 자식 요소들을 세로 중앙으로 */
  height: 500px;           /* 부모 높이가 있어야 세로 정렬 확인 가능 */
  gap: 10px;
  background-color: #f0f0f0; /* (확인용 배경색) */
}

.imagebox1 {
  background: #e1e1e2;
  height: 200px;
  width: 300px;
  
  /* 내부 h1을 중앙 정렬하기 위한 설정 */
  display: flex;           /* 중요: flex로 설정해야 정렬 가능 */
  justify-content: center; /* 내부 글자 가로 중앙 */
  align-items: center;     /* 내부 글자 세로 중앙 */
  
  /* margin: 0 auto; 는 부모가 flex일 때 굳이 없어도 되지만 둬도 무방합니다. */
}

.imagebox1 h1 {
  margin: 0;               /* 기본 마진 제거 */
  text-align: center;
}

/* =========================
   FOOTER
========================= */

.wrap {
  margin-top: 50px;
  height: auto;
}



.copy {
  text-align: center;
  padding: 24px 20px;
  min-height: 130px;
  font-size: 15px;
  color: #fff;
  background: #464545;
  line-height: 1.8;
}
/* 메인과 동일한 크기를 강제하기 위해 !important 사용 */
.logo img {
  height: 60px !important; /* 모바일 기준 높이 */
  width: auto !important;
  max-height: none !important; /* 제약 해제 */
  display: inline-block;
  vertical-align: middle;
}

/* =========================
   TABLET
========================= */
@media (max-width: 768px) {
  header{
    height: auto;
    min-height: auto;
    padding: 15px;
  }
  .slide{
    height: 250px;
      }
  .logo img{
    height: 50px;
  }      
  .contents {
	  display: flex;
	  flex-direction: column;
	  height: auto; /* 세로 방향으로 정렬 변경 */
	  
    align-items: center; /* 왼쪽 정렬 */
    gap: 30px; /* 위아래 간격 확보 */
  }
  .copy{
	  display:block;
	  position: relative;
	  visibility: visible;
	  margin-top: 20px;
  }
  
}
@media (min-width: 768px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
  }

  .logo {
    width: auto;
    text-align: left;
    flex-shrink: 0;
  }

  .logo img {
    height: 68px;
  }

  nav {
    width: min(700px, calc(100% - 220px));
  }

  nav > ul {
    gap: 10px;
  }

  nav > ul > li > a {
    min-height: 52px;
    padding: 14px 8px;
    font-size: clamp(13px, 1.7vw, 16px);
    border-radius: 10px;
  }

  /* 태블릿 이상부터 드롭다운처럼 표시 */
  .sub {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 150px;
    margin-top: 0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  }

  .sub a {
    padding: 11px 10px;
    font-size: 14px;
  }

  
}
 

/* =========================
   PC
========================= */
@media (min-width: 1024px) {
  header {
    padding: 22px 20px;
  }

  .logo img {
    max-height: 74px;
  }

  nav {
    width: 720px;
  }

  nav > ul {
    gap: 12px;
  }

  nav > ul > li > a {
    min-height: 56px;
    padding: 16px 10px;
    font-size: clamp(14px, 1.2vw, 18px);
  }

  .contents > article {
    width: calc((100% - 72px) / 4);
  }

}
/* =========================
   작은 모바일 보정
========================= */
@media (max-width: 480px) {
  header {
    padding: 14px 12px;
    gap: 12px;
  }

  .logo img {
    max-height: 52px;
  }

  nav > ul {
    gap: 4px;
  }

  nav > ul > li > a {
    font-size: 10px;
    padding: 9px 2px;
    min-height: 42px;
  }

  .sub a {
    font-size: 12px;
    padding: 9px 6px;
  }

  .slide {
    height: 240px;
  }

  .slide li h2 {
    font-size: 16px;
    padding: 10px 14px;
    width: 84%;
    white-space: normal;
    line-height: 1.4;
  }

  .service h1 {
    font-size: 24px;
  }

  .service h3 {
    font-size: 14px;
  }

  .imgBox img,
  .clickable-img {
    height: 220px;
  }

  .copy {
    font-size: 13px;
    line-height: 1.7;
  }

  
  .contents {
    flex-direction: column;
	  align-items: center;
	  justify-content: center;
	  gap: 40px;
	  height: auto;
	  padding: 50px 0;
  }
  
  
  }
.copy{
	width: 100%;
	position: relative;
	display: block;
	margin-top: 50px;
	padding: 30px 20px;
	background-color: #464545;
	min-height: 100px;
	text-align: center;
	padding: 20px 0;
	margin-top: 20px;
}

