/* 그누보드 기본 여백 및 하단 tail 제거 */
#wrapper, #container, .wrapper, .container { padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; }
#container_title { display: none !important; }
#ft, footer, .footer { display: none !important; }

.main_visual {
    position: relative !important; width: 100% !important; min-height: 100vh !important;
    background: #000 !important; overflow-x: hidden !important; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

#background_layer {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    background-image: url('../img/main_top_bg01.jpg');
    transition: 0.8s ease-in-out; z-index: 1; 
    filter: brightness(1); /* 어두운 느낌 제거 */
    opacity: 1;
}

.content_inner { position: relative; z-index: 10; width: 92%; max-width: 1400px; padding: 20px 0; }

/* 타이틀 디자인 - 자연스러운 번짐 */
.main_identity h1 {
    color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; margin-bottom: 40px; text-align: center;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.6); 
}
.main_identity h1 span { color: #ff6b81; }

/* [PC] 가로 정렬 카드 시스템 */
.card_container { display: flex; gap: 20px; height: 55vh; align-items: stretch; }

.card_item {
    flex: 1; position: relative !important; display: flex; overflow: hidden;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px; cursor: pointer; transition: 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

/* 펼쳐졌을 때 배경 투명화 */
.card_item.active { 
    flex: 4; 
    background: transparent !important; 
    border: 1px solid rgba(255, 255, 255, 0.5); 
}

/* 브라켓 */
.viewfinder_box { position: absolute !important; inset: 0 !important; pointer-events: none; opacity: 0; transition: 0.4s; z-index: 5; }
.card_item.active .viewfinder_box { opacity: 1; }
.viewfinder_box .bracket { position: absolute; width: 30px; height: 30px; border: 4px solid #ff6b81; }
.viewfinder_box .tl { top: 25px; left: 25px; border-right: 0; border-bottom: 0; }
.viewfinder_box .tr { top: 25px; right: 25px; border-left: 0; border-bottom: 0; }
.viewfinder_box .bl { bottom: 25px; left: 25px; border-right: 0; border-top: 0; }
.viewfinder_box .br { bottom: 25px; right: 25px; border-left: 0; border-top: 0; }

/* 텍스트 가독성 조절 */
.card_side { width: 80px; padding: 40px 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; flex-shrink: 0; }
.card_side span { color: #ff6b81; font-weight: 900; font-size: 22px; }
.card_side strong { color: #fff; writing-mode: vertical-lr; letter-spacing: 4px; font-size: 18px; }

.active .card_side { width: 150px; align-items: flex-start; padding-left: 50px; }
.active .card_side strong { 
    writing-mode: horizontal-tb; color: #fff; font-size: 28px; font-weight: 800; 
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5); 
}

.card_body { width: 0; opacity: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.active .card_body { width: 100%; opacity: 1; padding-right: 40px; }

/* PC 내용물 확대 및 부드러운 쉐도우 */
.card_body h3 { 
    font-size: 38px; color: #fff; margin-bottom: 20px; font-weight: 800; letter-spacing: -1px; 
    text-shadow: 1px 1px 10px rgba(0,0,0,0.7); 
}
.card_body p { 
    font-size: 20px; color: #fff; margin-bottom: 35px; line-height: 1.6; font-weight: 400; 
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7); 
}

/* 버튼 디자인 - 모든 버튼 호버 시 글자색 반전 적용 */
.btn_wrap { display: flex; flex-wrap: wrap; gap: 12px; }
.btn_wrap a { 
    padding: 14px 30px; 
    background: #ff6b81; 
    color: #fff !important; 
    font-weight: 700; 
    border-radius: 50px; 
    font-size: 16px; 
    text-decoration: none; 
    transition: 0.3s; 
    border: 2px solid #ff6b81;
}

/* 호버 시 배경 흰색 / 글자 분홍색 반전 */
.btn_wrap a:hover, .btn_wrap a.line:hover {
    background: #fff !important;
    color: #ff6b81 !important;
}

/* line 클래스(슈터행사 등) 초기 상태 */
.btn_wrap a.line { background: #ff6b81; color: #fff !important; }

/* [모바일] 반응형 */
@media screen and (max-width: 768px) {
    .main_visual { padding: 40px 0; }
    .card_container { flex-direction: column !important; height: auto !important; gap: 15px !important; }
    
    .card_item { height: 85px !important; width: 100% !important; border-radius: 15px !important; display: block !important; }
    .card_item.active { height: auto !important; min-height: 450px !important; padding-bottom: 30px !important; background: transparent !important; }

    .card_side { 
        width: 100% !important; height: 85px !important; 
        flex-direction: row !important; padding: 0 45px !important; 
        justify-content: flex-start !important; align-items: center !important; gap: 15px !important;
    }
    .card_side strong { writing-mode: horizontal-tb !important; font-size: 20px !important; }

    .card_body { width: 100% !important; height: 0; opacity: 0; visibility: hidden; }
    .active .card_body { height: auto !important; opacity: 1 !important; visibility: visible !important; padding: 15px 45px 30px !important; display: block !important; }
    
    .btn_wrap { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
    .btn_wrap a { text-align: center; padding: 14px 5px !important; font-size: 14px; }
}