@charset "utf-8";
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* =================================
  전역 스타일 및 변수
  ================================= */
:root {
   --main-color: #FF8641;
   --dark-color: #303030;
   --text-color: #333;
   --light-gray-bg: #f8f8f8;
   --font-family: 'Pretendard', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-family); 
    color: var(--text-color); 
    line-height: 1.6; 
    background-color: #fff;
    word-break: keep-all;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.section-title { font-size: 2rem; font-weight: 600; margin-bottom: 40px; text-align: center; color: var(--main-color); }
.dark-bg { background-color: var(--dark-color); }
body.nav-open { overflow: hidden; }

p, li, td, th, h1, h2, h3, h4, h5, h6, dd, dt, a {
    word-break: keep-all;
}


/* =================================
  스크롤 리빌 애니메이션
  ================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* =================================
  헤더 & 햄버거 메뉴
  ================================= */
header { padding: 20px 0; position: sticky; top: 0; background-color: #fff; z-index: 998; border-bottom: 1px solid #eee; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; gap: 15px; }
.logo-link .logo { height: 30px; width: auto; }
.header-title { font-size: 1.2rem; font-weight: 700; color: var(--dark-color); }
#menu-toggle-btn { background: none; border: none; cursor: pointer; padding: 0; display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 20px; z-index: 1001; transition: opacity 0.3s, visibility 0.3s; }
#menu-toggle-btn span { width: 100%; height: 2px; background-color: var(--dark-color); border-radius: 2px; transition: all 0.3s ease-in-out; transform-origin: center; }
body.nav-open #menu-toggle-btn {
   opacity: 0;
   visibility: hidden;
}

/* =================================
  탐색 메뉴
  ================================= */
#side-nav { position: fixed; top: 0; right: -100%; width: 300px; height: 100%; background-color: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); padding: 80px 30px 30px; transition: right 0.4s ease-in-out; z-index: 1000; }
body.nav-open #side-nav { right: 0; }
#menu-close-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 2.5rem; color: var(--dark-color); cursor: pointer; }
#nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; z-index: 999; }
body.nav-open #nav-overlay { opacity: 1; visibility: visible; }
#side-nav ul { display: flex; flex-direction: column; gap: 15px; }
#side-nav ul li a, #side-nav ul li button { font-size: 1.2rem; font-weight: 600; color: var(--dark-color); padding: 10px 0; display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; }
.submenu-toggle { position: relative; }
.submenu-toggle::after { content: '›'; position: absolute; right: 0; font-size: 1.5rem; transform: rotate(90deg); transition: transform 0.3s ease; }
.has-submenu.active > .submenu-toggle::after { transform: rotate(-90deg); }
.submenu { padding-left: 20px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; }
.has-submenu.active .submenu { max-height: 500px; }
.submenu li a { font-size: 1rem; font-weight: 300; color: #555; padding: 8px 0; }

/* =================================
  메인 배너
  ================================= */
/* PC 화면에서 배너 세로폭을 줄이고 티켓 크기를 키워 균형을 맞춥니다. */
.main-banner { position: relative; height: clamp(500px, 40vw, 700px); background: url('../images/content/main/main-banner-bg.jpg') no-repeat center center/cover; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 40px 20px; }
.banner-title-container { position: relative; z-index: 2; text-align: center; }
.main-banner h1 { font-size: 2.5rem; color: var(--dark-color); background-color: transparent; padding: 0; font-weight: 800; line-height: 1.3; }
.main-banner .pre-title { display: block; font-size: 2.5rem; font-weight: 500; margin-bottom: 8px; }
.main-banner .subtitle { display: block; font-size: 1.2rem; font-weight: 300; margin-top: 10px; }
/* 티켓 컨테이너의 상하 패딩을 조정하여 균형을 맞춥니다. */
.banner-tickets-static { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; padding: 6% 2%; display: flex; flex-direction: column; justify-content: space-between; }
.ticket-row { display: flex; justify-content: space-around; align-items: center; }
/* PC 화면에서 티켓 크기를 키웁니다. */
.static-ticket { width: 22%; max-width: 240px; aspect-ratio: 2 / 1; background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform 0.3s ease; }
.ticket-row.top-row .static-ticket:nth-child(odd) { transform: rotate(-10deg); }
.ticket-row.top-row .static-ticket:nth-child(even) { transform: rotate(10deg); }
.ticket-row.bottom-row .static-ticket:nth-child(odd) { transform: rotate(10deg); }
.ticket-row.bottom-row .static-ticket:nth-child(even) { transform: rotate(-10deg); }
.static-ticket:hover { transform: scale(1.1) rotate(0deg) !important; }

.ticket-green { background-image: url('../images/content/main/ticket-green.png'); }
.ticket-cyan { background-image: url('../images/content/main/ticket-cyan.png'); }
.ticket-pink { background-image: url('../images/content/main/ticket-pink.png'); }
.ticket-purple { background-image: url('../images/content/main/ticket-purple.png'); }
.ticket-orange { background-image: url('../images/content/main/ticket-orange.png'); }
.ticket-blue { background-image: url('../images/content/main/ticket-blue.png'); }
.ticket-red { background-image: url('../images/content/main/ticket-red.png'); }
.ticket-yellow { background-image: url('../images/content/main/ticket-yellow.png'); }

/* =================================
  공통 섹션 스타일
  ================================= */
.intro-section, .content-grid-section, .cta-section { padding-top: clamp(80px, 12vw, 200px); }
.intro-section { padding-bottom: clamp(40px, 6vw, 100px); }
.content-grid-section, .cta-section { padding-bottom: clamp(80px, 12vw, 200px); }


/* =================================
  섹션 1: 들어가는 글
  ================================= */
.intro-box-link { display: block; transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 20px; }
.intro-box-link:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.intro-box { background-color: var(--light-gray-bg); border-radius: 20px; overflow: hidden; }
.intro-content { display: flex; align-items: center; justify-content: space-around; gap: 40px; flex-wrap: wrap; padding: 40px 40px 0 40px; }
.stats { text-align: left; min-width: 250px; align-self: center; }
.stats .count { font-size: 4rem; font-weight: 800; color: var(--main-color); display: block; min-height: 64px; }
.stats p { font-size: 1.4rem; font-weight: 600; }
.chart { flex-basis: 50%; min-width: 300px; }
.chart img { vertical-align: bottom; }

/* =================================
  섹션 2 & 3 공통 그리드 스타일
  ================================= */
.grid-container { display: grid; gap: 30px; }
.grid-container.three-columns { grid-template-columns: repeat(3, 1fr); }
.grid-container.two-by-two { grid-template-columns: repeat(2, 1fr); }

/* =================================
  섹션 2: 사람과 사람
  ================================= */
.card-style-content-box { background-color: var(--dark-color); border-radius: 10px; overflow: hidden; }
.card-style-content-box .card-image { position: relative; border-radius: 0; }
.card-style-content-box .card-content { padding: 20px; }
.card-style-content-box h3 { color: #fff; }
.card-style-content-box p { color: #ccc; }
.card-style-content-box .card-category { position: absolute; top: 15px; left: 15px; background-color: var(--main-color); color: #fff; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; border-radius: 5px; z-index: 1; }

/* =================================
  섹션 3: 사람과 공간
  ================================= */
.content-grid-section.gray-bg { background-color: var(--light-gray-bg); }
.card-style-gradient-overlay { background: none; box-shadow: none; }
.card-style-gradient-overlay .card-image { position: relative; display: flex; align-items: flex-end; justify-content: center; color: #fff; border-radius: 10px; overflow: hidden; height: clamp(350px, 21vw, 400px); }
.card-style-gradient-overlay .card-image::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 20%, transparent 45%); mix-blend-mode: multiply; }
.card-style-gradient-overlay .card-content { position: absolute; bottom: 0; left: 0; z-index: 2; text-align: center; width: 100%; padding: 20px; }
.card-style-gradient-overlay .card-category { background-color: var(--main-color); color: #fff; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; border-radius: 5px; display: inline-block; margin-bottom: 10px; }
.card-style-gradient-overlay h3 { color: #fff; }
.card-style-gradient-overlay .card-image img { height: 100%; }

/* =================================
  공통 카드 스타일
  ================================= */
.card { transition: box-shadow 0.3s ease; }
.card a { display: block; }
.card:hover .card-image img { transform: scale(1.1); }
.card-image { overflow: hidden; }
.card-image img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.4s ease-out; }
.card-content { padding: 20px; }
.card-content h3 { font-size: 1.2rem; margin-bottom: 5px; }
.card-content p { font-size: 1rem; color: #666; }

/* =================================
  섹션 4: 아이컨택 CTA
  ================================= */
.cta-section { padding-top: clamp(80px, 12vw, 200px); padding-bottom: 0; background-color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; /* 좌우 여백 추가하여 요소들이 너무 떨어지지 않게 함 */ padding: 0 5%; }
.cta-text .section-title, .cta-text .cta-title { text-align: left; }
.cta-text .section-title { font-size: 1.5rem; margin-bottom: 10px; }
.cta-text .cta-title { font-size: 3rem; font-weight: 800; color: var(--dark-color); margin-bottom: 30px; }
.cta-illustration img { width: 100%; vertical-align: bottom; }
.btn { display: inline-block; background-color: var(--main-color); color: #fff; padding: 12px 35px; border-radius: 30px; font-size: 1rem; font-weight: 700; transition: background-color 0.3s ease; }
.btn:hover { background-color: #e66a2a; }

/* =================================
  푸터
  ================================= */
footer { background-color: var(--dark-color); color: #ccc; padding: 60px 0; font-size: 0.9rem; }
.footer-container { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.footer-main { flex: 1; min-width: 300px; }
.footer-logo { width: 250px; max-width: 100%; height: auto; margin-bottom: 20px; }
.footer-info { text-align: left; }
.footer-info p { margin-bottom: 5px; color: #aaa; }
.footer-info span { display: inline-block; width: auto; padding-right: 10px; color: #ccc; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; }
.subscribe-btn { border: 1px solid #ccc; padding: 8px 20px; border-radius: 20px; transition: background-color 0.3s ease, color 0.3s ease; display: inline-block; margin-bottom: 20px; }
.subscribe-btn:hover { background-color: var(--main-color); border-color: var(--main-color); color: #fff; }
.social-links { display: flex; gap: 15px; align-items: center; }
.social-links a { color: #fff; font-size: 1.4rem; transition: opacity 0.3s ease; }
.social-links a:hover { opacity: 0.8; }
.social-links .svg-icon { width: 1.2rem; height: 1.2rem; filter: brightness(0) invert(1); transition: opacity 0.3s ease; }
.social-links a:hover .svg-icon { opacity: 0.8; }

/* =================================
  반응형 스타일
  ================================= */
@media (max-width: 992px) {
   .header-title { display: none; }
   /* 각 행의 4번째 티켓부터 숨겨서 3개씩 보이게 함 */
   .ticket-row .static-ticket:nth-child(n+4) { display: none; }
   .static-ticket { width: 25%; }
   .grid-container.three-columns, .grid-container.two-by-two { grid-template-columns: repeat(2, 1fr); }
   .cta-grid { grid-template-columns: 1fr; text-align: center; }
   .cta-text .section-title, .cta-text .cta-title { text-align: center; }
   .cta-illustration { max-width: 500px; margin: 40px auto 0; }
}
@media (max-width: 768px) {
   .section-title { font-size: 1.8rem; }
   .main-banner h1, .main-banner .pre-title { font-size: 2rem; }
   .main-banner .subtitle { font-size: 1.2rem; }
   .banner-tickets-static .ticket-row { justify-content: center; }
   /* 모바일에서 3개씩 보이도록 너비 조정 */
   .static-ticket { width: 30%; }
   .intro-content { flex-direction: column; padding: 20px 20px 0 20px; }
   .grid-container.three-columns, .grid-container.two-by-two { grid-template-columns: 1fr; }
   .cta-text .cta-title { font-size: 2.5rem; }
   .footer-container { flex-direction: column; align-items: center; text-align: center; }
   .footer-main { order: 1; text-align: center; width: 100%; }
   .footer-logo { margin-left: auto; margin-right: auto; }
   .footer-info { text-align: center; margin: 30px 0; }
   .footer-links { order: 2; align-items: center; }
}

/* =================================
  모바일 텍스트 깨짐 방지 (최종 수정)
  ================================= */
@media (max-width: 768px) {
  p, li, td, th, h1, h2, h3, h4, h5, h6, dd, dt, a {
    word-break: break-all !important;
  }
}