@charset "utf-8";

/* =========================
   홈페이지 메인 기본 리셋
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  vertical-align: top;
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #333;
  font-family: "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
  line-height: 1.5;
}

/* =========================
   공통 레이아웃
========================= */
header,
.slide,
.bodywrap,
.bodywrap2,
.copy {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}

/* =========================
   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; /* 기본은 숨김 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide ul li:first-child {
  display: block;
  z-index: 1; 
}

.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,
.bodywrap2 {
  position: relative;
  padding: 30px 15px 0;
  height: auto;
}

.service,
.gallery {
  width: 100%;
  text-align: center;
  margin-bottom: 28px;
}

.service span,
.gallery span {
  color: #4b4b4b;
}

.service h2,
.gallery h2 {
  color: #29456d;
  font-size: clamp(24px, 5vw, 36px);
  line-height: 1.2;
}

.service h3,
.gallery h3 {
  color: #0c51b1;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 600;
  margin-top: 0.01%;
}

/* =========================
   CONTENTS 공통
========================= */
.contents {
  width: 100%;
  
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: stretch;
  text-align: center;
}

.contents > * {
  width: 100%;
}

.ser1,
.ser2,
.ser3,
.ser4,
.gall1,
.gall2,
.gall3,
.gall4 {
  padding: 0;
}


.ser1 a,
.ser2 a,
.ser3 a,
.ser4 a,
.gall1 a,
.gall2 a,
.gall3 a,
.gall4 a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
}

.gall1 a,
.gall2 a,
.gall3 a,
.gall4 a {
cursor: zoom-in;
}

.ser1 h3,
.ser2 h3,
.ser3 h3,
.ser4 h3 {
  color: #29456d;
  font-size: 20px;
  margin-bottom: 8px;
}

.ser1,
.ser2,
.ser3,
.ser4 {
  font-size: 15px;
  color: #555;
}

.imgBox {
  width: 100%;
  border-radius: 20px;
}

.ser1 .imgBox,
.ser2 .imgBox,
.ser3 .imgBox,
.ser4 .imgBox {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.ser1 .imgBox img,
.ser2 .imgBox img,
.ser3 .imgBox img,
.ser4 .imgBox img {
  width: 100%;
  height: 230px;
  object-fit: cover;
display: block;
}

.imgBox img,
.clickable-img {
  width: 100%;
  height: auto;           /* 고정 높이를 해제하여 비율에 맞게 조절되게 함 */
  aspect-ratio: 4 / 3;    /* 가로 4, 세로 3의 비율로 고정 (원하는 대로 16 / 9 등으로 변경 가능) */
  object-fit: contain;      /* 박스에 꽉 채우기 (이미지 끝이 아주 살짝 잘릴 수 있음) */
  /* 만약 절대 잘리면 안 된다면 object-fit: contain;으로 변경하세요 */
  border-radius: 20px;
  display: block;
 
}

/* =========================
   FOOTER
========================= */
.btlogo {
  width: 100%;
  height: 30px;
  background-color: #fff;
}

.copy {
  margin-top: 50px;
  text-align: center;
  padding: 24px 20px;
  min-height: 130px;
  font-size: 15px;
  color: #fff;
  background: #464545;
  line-height: 1.8;
}
.logo img {
  height: 60px !important; /* 모바일 기준 높이 */
  width: auto !important;
  max-height: none !important; /* 제약 해제 */
  display: inline-block;
  vertical-align: middle;
}
/* =========================
   MODAL
========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.modal-content {
  display: block;
  width: min(90%, 800px);
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  box-shadow: none;
  animation: zoom 0.3s ease-out;
}

@keyframes zoom {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 28px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
}
/* =========================
   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; /* 세로 방향으로 정렬 변경 */
	  padding-bottom: 30px;
    align-items: center; /* 왼쪽 정렬 */
    gap: 30px; /* 위아래 간격 확보 */
  }
  .copy{
	  display:block;
	  position: relative;
	  visibility: visible;
	  margin-top: 20px;
  }
  .biglogo, .ser1, .ser2 {
    width: 100%; /* 가로를 꽉 채우게 변경 */
    text-align: center;
  }
  
  
 
  .ser1 h3, .ser2 h3, .ser3 h3, .ser4 h3{
    display: block;
 	  font-size: 1.0rem;
    text-align: center;
  }
}
/* =========================
   TABLET
========================= */
@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;
  }

  .contents > * {
    width: calc((100% - 24px) / 2);
  }

    .slide li h2 {
    padding: 16px 28px;
  }
}

/* =========================
   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 > * {
    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,
  .gallery h1 {
    font-size: 24px;
  }

  .service h3,
  .gallery h3 {
    font-size: 14px;
  }

  .imgBox img,
  .clickable-img {
    height: 220px;
    
  }

  .copy {
    font-size: 13px;
    line-height: 1.7;
  }

  .close-btn {
    top: 10px;
    right: 16px;
    font-size: 32px;
  }
}


/* =========================
   2026 IMPROVEMENTS
========================= */
:root {
  --primary: #0c51b1;
  --primary-dark: #29456d;
  --text: #222;
  --muted: #666;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --border: #dde4ee;
  --shadow: 0 14px 34px rgba(24, 46, 84, 0.10);
}

body.modal-open {
  overflow: hidden;
}



.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.card p {
  margin-bottom: 12px;
}

.service h2,
.gallery h2 {
  color: #29456d;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}

.slide li h2 {
  width: min(92%, 820px);
  white-space: normal;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

nav > ul > li.is-open > a {
  background: #212121;
  color: #fff;
  border-color: #212121;
}

.clickable-img {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clickable-img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

.close-btn:hover {
  opacity: 0.85;
}

@media (max-width: 767px) {
  .hero-intro {
    margin-top: 16px;
    border-radius: 18px;
    padding: 22px 16px;
  }

  .hero-actions {
    width: 100%;
  }

  .cta {
    width: 100%;
  }

  .slide li h2 {
    padding: 12px 16px;
    font-size: 18px;
  }

  .copy {
    font-size: 13px;
    line-height: 1.7;
  }
}
