﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f6f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #334155;
}

.gate-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}


.gate-left {
    position: relative;
    height: 100vh;
    flex: 2;
	min-width: 0;                   /* flex 자식 요소의 넘침 및 겹침 방지 */     
    background-color: #0f172a;
    overflow: hidden;
}


.gate-left .main-picture,
.gate-left .visual-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;       
    object-position: center;  
}

.gate-left img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.gate-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.section-title {
    display: block;
    margin: 10px 0 30px 0;            
    font-size: 1.25rem;           
    font-weight: 700;
    color: #ffffff;                 
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); 
    line-height: 1.2;
}

.left-overlay {
    position: absolute;
    bottom: 60px;
    left: 60px;
    right: 60px;
    color: #ffffff;
    z-index: 2;
}

.left-overlay h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.left-overlay p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* 버튼, 링크, 메뉴, 제목 등에 일괄 적용 */
.menu-btn, .menu-btn span, a, button, h1, h2, h3, p, span {
    word-break: keep-all !important;
    word-wrap: break-word !important;
}
.gate-right {
    flex: 1;            
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.right-section-top,
.right-section-mid,
.right-section-bot {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;            
    background-size: cover;     
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
	background-color:#ED6B2C;
}

/* 4 : 4 : 1 */
.right-section-top {
    flex: 3;
}

.right-section-mid {
    flex: 4;
}

.right-section-bot {
    flex: 1;
}

.section-overlay {
    width: 100%;
    height: 100%;
    padding: 0 40px;             
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;      
    border-radius: 0;
}


.bot-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* 버튼 본체 : 완전 투명 */
.menu-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background-color: #ffffff !important; /* 버튼 배경을 흰색으로 변경 */
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden; /* 이미지가 버튼 밖으로 나가지 않게 */
	min-width: 120px;
    transition: all 0.2s ease-out; 
}

/* ⭐️ 안쪽에 들어간 이미지 스타일 */
.menu-btn .btn-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0); 
    max-width: 90%;
    max-height: 90%;
    object-fit: fill;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
    
    will-change: opacity; 
    transition: opacity 0.2s ease-out; 
}

/* 마우스 호버 */
.menu-btn:hover .btn-bg-img {
    opacity: 1;
	transition: opacity 0.2s ease-out; 
}

/* ⭐️ 버튼 글자는 맨 위로 (선명하게 100%) */
.menu-btn span {
    position: relative;
    z-index: 2;
    color: #000000;
    font-weight: bold;
    font-size: 1.3rem;
}

/* 마우스 올렸을 때 */
.menu-btn:hover {
    border-color: #C91b1b !important; /* ⭐️ 선명한 버건디 색상 테두리 */
    border-width: 2px;
	transition: opacity 0.2s ease-out; 
}
/* ⭐️ 버튼 어디에든 마우스를 올리면 글자가 흰색으로 변경 */
.menu-btn:hover span {
    color: #ffffff;
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.menu-grid > * {
    flex: 1 1 calc(33.333% - 12px); /* 기본은 3열 크기 */
    min-width: calc(33.333% - 12px);
	/* 최소 높이 설정 (원하는 높이 px로 지정) */
    min-height: 160px;
}

.menu-grid2 {
    display: flex;
    flex-direction: column;
    gap: 8px;       
    width: 100%;
	min-height: 100px;
}


.menu-grid2 .menu-btn {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%;
    min-height: 65px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

.menu-grid2 .menu-btn:hover {
    background: #c91b1b !important; /* 또는 짙은 네이비 #1e293b */
    border-color: #c91b1b;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(201, 27, 27, 0.25);
}

.menu-grid2 .menu-btn::after {
    content: "\2192";
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.menu-grid2 .menu-btn:hover::after {
    opacity: 1;
    transform: translateX(3px);
}

.right-section-bot {
    position: relative;
    flex: 1;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.right-section-bot .bot-layout {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ED6B2C; 
}


.bot-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 0 20px;
    letter-spacing: -0.5px;
}


.bot-divider {
    width: 1px;
    height: 40%;
    align-self: center;
    background-color: rgba(255, 255, 255, 0.2);
}


.bot-link:hover {
    background-color: rgba(37, 99, 235, 0.85);
    color: #ffffff;
}

.bot-link .arrow {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.bot-link:hover .arrow {
    transform: translateX(4px);
}

.footer-text {
    font-size: 0.875rem;
    color: #64748b;
}

.admin-link {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-link:hover {
    color: #1e293b;
    text-decoration: underline;
}


/* 테블릿 1024px */

@media (max-width: 1200px) {
	.menu-grid > * {
        flex: 1 1 calc(50% - 12px);
        min-width: calc(50% - 12px);
    }
	
	.bot-link {font-size: 1.0rem;}
	/* ⭐️ 버튼 글자는 맨 위로 (선명하게 100%) */
	.menu-btn span {
		font-size: 1.1rem;
	}
/*    .gate-container {
        flex-direction: column;
        min-height: 100vh;
    }

    .gate-left {
        flex: none;
        height: 360px;
    }

    .left-overlay {
        bottom: 30px;
        left: 30px;
        right: 30px;
    }

    .left-overlay h1 {
        font-size: 2rem;
    }

    .gate-right {
        flex: 1;
    }
}*/
}
/* 모바일 768px*/
@media (max-width: 768px) {
	
   /* body {
        background-color: #ffffff;
    }

    .gate-container {
        box-shadow: none;
    }

    .left-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .left-overlay h1 {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .left-overlay p {
        font-size: 0.95rem;
    }


    .right-section-top,
    .right-section-mid {
        padding: 20px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .menu-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
		word-break: keep-all;
    }

    .right-section-bot {
        flex-direction: column;
        align-items: flex-start;

    }
}
/* ==========================================================================
   모바일 전용 레이아웃 (세로 스크롤 완전 허용 & 이미지 비율 자동 조절)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. 브라우저 및 바디의 높이 제한을 풀고 세로 스크롤 활성화 */
    html, body {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;        /* 가로 튕김/가로 스크롤 방지 */
        overflow-y: auto !important;          /* ⭐️ 세로 스크롤 강제 허용 */
        position: static !important;          /* position: fixed 잔여물 제거 */
        touch-action: auto !important;        /* 터치 스크롤 허용 */
        -webkit-overflow-scrolling: touch;    /* iOS 부드러운 스크롤 */
        background-color: #ffffff;
    }

    /* 2. 전체 컨테이너를 상/하 수직 구조로 변경 */
    .gate-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        box-shadow: none !important;
    }

    /* 3. ⭐️ 메인 이미지 영역: 고정 높이를 없애고 비율에 맞춰 자동 계산 */
    .gate-left {
        width: 100% !important;
        height: auto !important;              /* 높이 고정 완전 해제 */
        min-height: unset !important;
        max-height: none !important;
        flex: none !important;
        position: relative !important;
        display: block !important;
    }

    /* 4. ⭐️ 실제 이미지 태그: 가로 100%에 맞춰 세로 높이 자동 유지 */
    .gate-left img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;              /* 원본 비율 유지 (찌그러짐 방지) */
        min-height: unset !important;
        display: block !important;
        object-fit: contain !important;
    }

    /* 5. 우측(하단으로 내려온) 메뉴 영역: 메뉴가 많아도 끝까지 내려가도록 여백 확보 */
    .gate-right,
    .right-section-top,
    .right-section-mid,
    .right-section-bot {
        width: 100% !important;
        height: auto !important;              /* 높이 자동 확장 */
        min-height: unset !important;
        flex: none !important;
        box-sizing: border-box !important;
    }
	.section-title {padding:10px;}
	.section-overlay {padding-bottom:20px;}
	.menu-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
		word-break: keep-all;
    }

	/* 하단 3구획 컨테이너: 주황색으로 가로/전체 영역 꽉 채우기 */
	.right-section-bot {
		width: 100% !important;
		height: auto !important;
		background-color: #ED6B2C !important; /* 이미지와 동일한 주황색 */
		
		/* 좌우 2칸 나열 레이아웃 유지 */
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-around !important;
		align-items: center !important;
		
		/* ⭐️ 위아래 폭 시원하게 확장 (상하 25px, 좌우 0) */
		padding: 25px 0 !important; 
		margin: 0 !important;
		box-sizing: border-box !important;
	}

	/* 내부 버튼/링크: 흰색 글씨로 중앙 정렬 및 터치 영역 확보 */
	.right-section-bot a,
	.right-section-bot .bot-link,
	.right-section-bot .menu-btn {
		flex: 1 !important;
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		
		color: #ffffff !important;
		font-weight: bold !important;
		font-size: 1.05rem !important;
		text-decoration: none !important;
		
		/* 글자 줄바꿈 방지 */
		white-space: nowrap !important;
		word-break: keep-all !important;
		
		/* 위아래 터치 영역 패딩 */
		padding: 0 5px !important;
		background: transparent !important; /* 링크 개별 배경은 투명하게 */
	}

	/* 두 버튼 사이에 세로 구분선이 필요할 경우 (선택사항) */
	.right-section-bot a:first-child {
		border-right: 1px solid rgba(255, 255, 255, 0.4);
	}
}