
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* 헤더 */ 
header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  top: 0;  
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease; /* 부드러운 변화 */
}

header.shrink {
  padding: 0.4rem 0;  /* 얇아짐 */
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); /* 그림자 강조 */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 0.8;
}
 

/* 메인 섹션 */
.hero {
 
  background: linear-gradient(rgba(30, 60, 114, 0.8), rgba(30, 60, 114, 0.8)),
      url('cover.png');
    background-size: cover;

  color: white;
  padding: 6rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 500px;
  margin: 0 auto;
}

/* 업체 소개 */
.about {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.about h2 {
  color: #1e3c72;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #e3f2fd;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #2a5298;
}

.feature-card h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
}

/* 찾아오는 길 */
.map-section {
  background: #f8f9fa;
  padding: 4rem 1rem;
  width: 70%; 
  height: 500px; 
  margin: auto; 
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
}

.map-container h2 {
  color: #1e3c72;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.map-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 갤러리 */
.gallery {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.gallery h2 {
  color: #1e3c72;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: 10px;
  background: #e3f2fd;
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3c72;
  font-weight: bold;
}

/* 푸터 */
footer {
  background: #1e3c72;
  color: white;
  padding: 3rem 1rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.map {
  width: 70%; 
  margin: auto; 
}

@media (max-width: 768px) {
  .map-content {
      grid-template-columns: 1fr;
  }

  .map-preview {
      height: 300px;
  }

  .footer-container {
      grid-template-columns: 1fr;
  }
}

/* 모바일 반응형 */
@media (max-width: 768px) {

  .header-container {
    flex-direction: row;       /* 가로 배치 */
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

nav ul {
    display: flex;
    flex-direction: row;       /* 메뉴 가로 */
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
}


.hero h1 {
    font-size: 1.5rem;         /* 모바일에서 조금 더 줄임 */
}
  .features {
      grid-template-columns: 1fr;
  }

  .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }  
}


/* 상단 공지 영역 */
.top-notice {
  background: linear-gradient(135deg, #2d4a5e 0%, #3a5f7a 100%);
  color: white;
  text-align: center;

  /* iOS status bar 높이를 고려해서 padding-top 확장 */
  padding: calc(0.8rem + env(safe-area-inset-top)) 1rem 0.8rem;

  font-size: 0.9rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.top-notice.hidden {
transform: translateY(-100%);
opacity: 0;
position: absolute;
pointer-events: none;
}

.top-notice a {
    color: #ffd700;
    text-decoration: none;
    font-weight: bold;
}
header.with-notice { top: 42px; } 

.header-top {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-nav {
  background: rgba(255,255,255,0.05);
  padding: 0.8rem 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    justify-content: center;
}
.map-wrapper {
  width: 100%;
  max-width: 800px;       /* PC에서 너무 커지지 않게 */
  margin: 0 auto;         /* 가운데 정렬 */
  position: relative;
  padding-top: 56.25%;    /* 16:9 비율 → 360/640 = 0.5625 */
}

.root_daum_roughmap {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 광택 효과 */
.contact-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;         /* 처음 왼쪽 바깥에서 시작 */
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 2s linear infinite; /* 계속 흘러가게 */
}

/* 광택 이동 애니메이션 */
@keyframes shine {
  0% { left: -50%; }
  100% { left: 120%; }
}