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

/* =================================
  Global Styles & Variables
  ================================= */
:root {
   --main-color: #FF677E; /* Vol. 7 테마 컬러로 변경 */
   --dark-color: #303030; /* vol5 color */
   --text-color: #333;
   --light-gray-bg: #F6F7F9;
   --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; }
body.nav-open { overflow: hidden; }

/* =================================
  Scroll Reveal Animation
  ================================= */
.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; }
.reveal:nth-child(5) { transition-delay: 0.4s; }


/* =================================
  Header & Navigation
  ================================= */
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(--text-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; }
#menu-toggle-btn span { width: 100%; height: 2px; background-color: var(--text-color); border-radius: 2px; transition: all 0.3s ease-in-out; }
#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(--text-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(--text-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; }

/* =================================
  Main Banner
  ================================= */
.main-banner { 
    position: relative; 
    height: 700px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden;
    background: url('../images/content/main/main-banner-bg.jpg') no-repeat center center/cover;
}
.banner-content-area {
    position: relative;
    width: 100%; 
    height: 100%;
    margin: 0 auto;
}
.banner-title-container { 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3; /* [수정됨] 2 -> 1로 변경 */
    width: auto;
}
.main-banner h1 { 
    font-size: 3rem; 
    color: #fff; 
    font-weight: 700; 
    line-height: 1.3; 
}
.main-banner .pre-title { 
    display: block; 
    font-size: 1.2rem; 
    font-weight: 400; 
    margin-bottom: 8px; 
    color: var(--text-color);
    opacity: 0.7;
}
.main-banner .subtitle { 
    display: block; 
    font-size: 1.2rem; 
    font-weight: 300; 
    margin-top: 10px; 
    color: var(--text-color);
    opacity: 0.7;
}

/* === Vol. 7 Banner Memo Links === */
.banner-memo {
    position: absolute;
    z-index: 2; /* [수정됨] 1 -> 2로 변경 (타이틀보다 위에 오도록) */
    transition: transform 0.3s ease;
    display: block;
    width: auto; 
}
.banner-memo:hover {
    transform: scale(1.05) translateY(-5px);
}
.banner-memo img {
    height: auto;
}

/* '들어가는 글' 링크 (노란 메모 + 북마크) */
#memo-intro {
    top: 62%;
    left: 18%; 
}
#memo-intro .memo-bg {
    width: 100%;
}
#memo-intro .memo-deco {
    position: absolute;
    top: -20px;
    left: -15px;
    width: 50px;
    z-index: -1;
}
#memo-intro .memo-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg); 
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
    text-align: center;
    display: none;
}


/* '정보' 링크 1 (찢어진 핑크 메모) */
#memo-info-1 {
    top: 18%;
    right: 20%; 
}

/* '현장' 링크 1 (파란 메모) */
#memo-field-1 {
    top: 45%;
    right: 18%; 
}

/* '정보' 링크 2 (핑크 메모) */
#memo-info-2 {
    top: 15%;
    left: 15%; 
}

/* '현장' 링크 2 (갈색 메모) */
#memo-field-2 {
    top: 65%;
    right: 22%; 
}


/* =================================
  Main Content Layout
  ================================= */
.main-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.gray-bg {
    background-color: var(--light-gray-bg);
}

.intro-section,
.content-grid-section,
.cta-section {
    padding: 120px 0;
}


.section-title { 
    font-size: 1.8rem;
    font-weight: 600; 
    margin-bottom: 40px;
    text-align: center; 
    color: var(--main-color);
}

/* =================================
  Section 1: Intro
  ================================= */
.intro-box-link { display: block; }
.intro-box { 
    background-color: #F0F0F0; 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex; 
    align-items: flex-end;
    justify-content: space-between; 
    padding: 35px 45px; 
    gap: 30px; 
    border: 1px solid #EAEAEA;
    position: relative;
    min-height: 200px;
}
.intro-text { flex: 1; }
.section-title-intro { 
    font-size: 1.3rem;
    font-weight: bold; 
    color: var(--main-color); 
    margin-bottom: 8px; 
}
.intro-text p { 
    font-size: 1.1rem;
    color: #555; 
    line-height: 1.7; 
}
.intro-image { 
    flex-shrink: 0;
    position: absolute;
    bottom: -30px;
    right: 45px;
    width: 25vw;
    max-width: 200px;
    min-width: 200px;
}
.intro-image img { width: 100%; }


/* =================================
  Section 2 & 3 Grids
  ================================= */
.grid-container { display: grid; gap: 30px; }
.info-grid { grid-template-columns: repeat(2, 1fr); }

.field-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto;
    gap: 30px;
}
.card-wide {
    grid-column: 1 / -1;
}

.field-grid .card:nth-child(1),
.field-grid .card:nth-child(2),
.field-grid .card:nth-child(3) {
    grid-column: span 2;
}

.field-grid .card:nth-child(4),
.field-grid .card:nth-child(5) {
    grid-column: span 3;
}


/* =================================
  Card Styles
  ================================= */
.card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid #EAEAEA;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.card a { display: flex; flex-direction: column; height: 100%; }
.card-image { overflow: hidden; position: relative; }
.info-grid .card-image img { width: 100%; height: 400px; object-fit: cover; }


.info-grid .card-content {
    background-color: #333;
    color: #fff;
    padding: 20px 25px;
    text-align: center;
}
.info-grid .card-content h3 { 
    font-size: 1.2rem;
    font-weight: 500;
}

.field-grid .card {
    position: relative;
    height: 450px;
}
.field-grid .card a {
    display: block;
    width: 100%;
    height: 100%;
}
.field-grid .card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.4s ease;
}
.field-grid .card:hover .card-bg-img {
    transform: scale(1.05);
}

.field-grid .card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    border-radius: 0 0 16px 16px;
    z-index: 1;
    color: #fff;
}
.field-grid .card h3 { 
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}
.field-grid .card p { 
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

/* =================================
  Section 4: CTA
  ================================= */
.cta-section { 
    background-color: #fff;
}
.cta-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    align-items: center; 
    gap: 30px; 
}
.cta-text {
    text-align: left;
}
.section-title-cta { 
    font-size: 1.2rem; 
    color: var(--main-color); 
    margin-bottom: 5px; 
    font-weight: 600; 
    text-align: left; 
}
.cta-title { 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--text-color); 
    margin-bottom: 5px; 
    line-height: 1.2;
}
.cta-subtitle { 
    font-size: 1.5rem; 
    color: #555; 
    margin-bottom: 30px; 
}
.cta-illustration {
    justify-self: end;
}
.cta-illustration img { 
    width: 100%;
    max-width: 550px;
}
.btn { 
    display: inline-block; 
    background-color: var(--main-color); 
    color: #fff; 
    padding: 12px 35px; 
    border-radius: 50px; 
    font-size: 1rem; 
    font-weight: 700; 
    transition: background-color 0.3s ease; 
}
.btn:hover { background-color: #e64b63; } 

/* =================================
  Footer
  ================================= */
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 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, border-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; }


/* =================================
  Responsive Styles
  ================================= */
@media (max-width: 1200px) {
    #memo-intro { left: 12%; }
    #memo-info-1 { right: 15%; }
    #memo-field-1 { right: 12%; }
    #memo-info-2 { left: 10%; }
    #memo-field-2 { right: 15%; }
}

@media (max-width: 1200px) { /* 992px에서 1024px로 변경 */
   .header-title { display: none; }
   
   /* 1024px 이하(태블릿/모바일)에서 메모를 숨깁니다. */
   .banner-memo { display: none; } 

   .main-banner { height: 450px; }
   .main-banner h1 { font-size: 2.5rem; }
/* ... (이하 생략) ... */
}

@media (max-width: 768px) {
   .main-banner { height: 400px; }
   .main-banner h1 { font-size: 2rem; }
   .intro-box {
       flex-direction: column;
       text-align: center;
       align-items: center;
       position: relative;
       padding-bottom: 200px; 
   }
   .intro-image {
       position: absolute; 
       bottom: -10%; 
       left: 50%; 
       transform: translateX(-50%); 
       margin-top: 0; 
       width: 50%;
       max-width: 120px;
   }
   .intro-image img { width: 100%; }
   .info-grid, .field-grid { grid-template-columns: 1fr; }
   .card-wide { grid-column: auto; }

   .field-grid .card:nth-child(1),
   .field-grid .card:nth-child(2),
   .field-grid .card:nth-child(3),
   .field-grid .card:nth-child(4),
   .field-grid .card:nth-child(5) {
        grid-column: 1 / -1; 
   }

   .info-grid .card-image img { height: 300px; }
   .field-grid .card { height: 400px; }
   .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; }
}