/* ==========================================================================
📁 common_head.css
📌 모두CMS 공통 레이아웃 스타일 - 메뉴 제외
작성 목적: menu_style.css와 중복된 상단 메뉴 스타일 제거
작성 일자: 2025-06
========================================================================== */

/* --------------------------------------------------------------------------
🔧 전체 초기화 및 공통 링크 스타일
--------------------------------------------------------------------------- */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body a,
.site-footer a,
.site-footer .footer-info a,
.site-footer .footer-links a {
  text-decoration: none !important;
  color: inherit !important;
}

/* --------------------------------------------------------------------------
📱 PC/모바일 표시 전환 클래스
--------------------------------------------------------------------------- */
.only-pc { display: block; }
.only-mobile { display: none; }

/* --------------------------------------------------------------------------
🎬 슬라이드 배경 Hero 영역
--------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  height: 450px !important;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
}
.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-background .fade-img {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlides 24s infinite;
}
.hero-background .fade-img:nth-child(1) { animation-delay: 0s; }
.hero-background .fade-img:nth-child(2) { animation-delay: 8s; }
.hero-background .fade-img:nth-child(3) { animation-delay: 16s; }

@keyframes fadeSlides {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-foreground {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 100px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.hero-foreground h1 {
  font-size: 26px;
  margin: 10px 0 5px;
}
.hero-foreground p {
  font-size: 14px;
  margin: 0;
}
.profile-img {
  margin-top: 56px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
}

/* --------------------------------------------------------------------------
🖼️ 소개 박스 (PC 전용)
--------------------------------------------------------------------------- */
.intro-box {
  padding: 30px 0;
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.intro-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 0 20px;
}
.intro-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  flex-shrink: 0;
  padding-top: 20px;
}
.intro-left .profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 0px !important;
  border: 1px solid #ccc;
}
.intro-name {
  margin-top: 20px !important;
  font-weight: 400;
  font-size: 15px;
}
.intro-title {
  font-weight: 300;
  font-size: 14px;
  color: #333333 !important;
  margin-top: 5px;
}
.intro-right {
  flex: 1;
  padding-top: 22px;
  border-left: 1px solid #e5e5e5;
  padding-left: 30px;
}
.intro-heading {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  color: #111;
}
.intro-desc {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
}

/* --------------------------------------------------------------------------
📦 본문 시작 위치 보정 및 section 여백
--------------------------------------------------------------------------- */
.content_wrap {
  padding-top: 0;
}
section {
  scroll-margin-top: 100px;
}
section#home {
  scroll-margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
📱 모바일 반응형 대응
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .only-pc { display: none !important; }
  .only-mobile { display: block !important; }

  section {
    scroll-margin-top: 87px;
  }

  .hero-slider {
    height: 260px;
  }
  .hero-foreground {
    padding-top: 70px;
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .hero-foreground h1 {
    font-size: 20px;
  }
  .hero-foreground p {
    font-size: 13px;
  }

  /* 모바일용 아이콘 버튼 리스트 */
  .hero-icons {
    text-align: center;
    margin-top: 34px;
  }
  .hero-icon-item {
    display: inline-block;
    width: 56px;
    margin: 0px;
    text-align: center;
  }
  .hero-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin: 0 auto;
  }
  .hero-icon-label {
    margin-top: 6px;
    font-size: 12px;
    color: #fff;
    font-weight: 400;
  }
}