﻿/* 메인 컨테이너 */
#container { position:relative; z-index:2; width:100%; }
#container *{ scrollbar-arrow-color: #ddd; scrollbar-Track-Color: #ddd; scrollbar-base-color: #aaa; scrollbar-Face-Color: #aaa; scrollbar-3dLight-Color: #aaa; scrollbar-DarkShadow-Color: #aaa; scrollbar-Highlight-Color: #aaa; scrollbar-Shadow-Color: #aaa;}
#container ::-webkit-scrollbar { width: 5px; }
#container ::-webkit-scrollbar-thumb { background-color: #aaa; border-radius:10px; }
#container ::-webkit-scrollbar-track { background-color: #ddd; border-radius:10px; }

.MC_wrap1{position: relative; background: url('/images/template/T0025/main/0025_wrap1_bg.png') no-repeat center top;}
.MC_wrap1::before{position: absolute; content: ''; width: 100%; height: 16.5rem; top: 0; left: 0; background: #ffeee1; z-index: -1;}
.MC_wrap2 { position: relative;}
.MC_wrap2::before{position: absolute; content: ''; width: calc(100% - 6rem); height: 28rem; top: 0; left: 50%; transform: translateX(-50%); background: #ffecec; border-radius: 5rem; box-shadow: 3px 3px 7px rgba(94,70,70,0.15); z-index: -2;} 
.MC_wrap3 {position: relative; padding: 4rem 0 3.5rem;}
.MC_wrap3::before{content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 32.5rem; background: #fff8f0; z-index: -3;}
.MC_wrap3::after{content: ''; position: absolute; bottom: 3rem; right: 0; width: 12.5rem; height: 16.75rem; background: url('/images/template/T0025/main/0025_wrap3_bg.png');}

[class^="MC_box"]:after { content:""; display:block; clear:both; }
.MC_box1 { position:relative; width:60rem; height:26.25rem; padding-top: 2rem; margin: 0 auto;} /* 메인비주얼 */
.MC_box2 { position:relative; width:100%; height:4.05rem; padding: 0 calc((100% - 60rem) / 2); margin-bottom: 2.75rem;} /* 식단 */
.MC_box3 { position:relative; width:100%; height: 16.5rem; padding: 0 calc((100% - 60rem) / 2); margin-bottom: 3.5rem;} /* 게시판 */
.MC_box4 { position: relative; width:calc(100% - 19.5rem); height: 14.4rem; float: left; margin-top: 2rem;} /* 행사일정 */
.MC_box5 { position: relative; width:17.5rem; height: 14.4rem; float: right; margin-top: 2rem;} /* 팝업존 */
.MC_box6 { position:relative; width:100%; height: 8.5rem; margin-top: 1.5rem; float: left;} /* 바로가기1 */
.MC_box7 { position: relative; width: 100%; height: 16.3rem;} /* 갤러리 */

@media (max-width: 1700px) {
    .MC_wrap3::after { display: none; }
}
@media (max-width: 1650px) {
    .MC_wrap2::before { width: 100%; border-radius: 3rem; }

    .MC_box2 {margin-bottom: 2rem;}
}
@media (max-width: 1240px){
    .MC_wrap1 { padding: 0 1rem; background: none; }

    .MC_box1 { height: auto; padding-top: 1rem; width: 100%;}
}
@media (max-width: 1024px){
    #container { padding-top: 3.5rem; }
}
@media (max-width: 960px) {
    .MC_wrap2 .container { padding-top: 1.5rem; padding-bottom: 1.5rem; }
    .MC_wrap2::before { height: 100%; border-radius: 0; }
	.MC_wrap3 { padding: 2.5rem 0 1.5rem; }
    .MC_wrap3::before { height: 100%; }

    .MC_box2 { height: auto; margin: 0 0 1rem 0; } /* 식단 */
    .MC_box3 { height: auto; margin-bottom: 1.5rem; } /* 게시판 */
    .MC_box4 { width: 100%; height: auto; margin-top: 0; } /* 캘린더 */
    .MC_box5 { width: 100%; height: auto; margin-top: 0;} /* 팝업존 */
    .MC_box6 { height: auto; margin-top: 1rem; } /* 바로가기1 */
}
@media (max-width: 860px) {
    .MC_box3 { margin: 1.5rem 0;}
    .MC_box4 { margin-top: 0;}
}
@media (max-width: 768px){
    .MC_wrap1::before { max-height: 30%; }
    .MC_wrap2 .container { padding-top: 1rem; padding-bottom: 1rem; }
	.MC_wrap3 { padding: 1.5rem 0; }

    .MC_box2 { margin: 0; } 
    .MC_box3 { margin-bottom: 1.5rem;}
    .MC_box4 { margin-top: 1rem;}
}
@media (max-width:600px){
    .MC_wrap1::before { max-height: 20%; }

    .MC_box3 { margin: 1rem 0 1.5rem; }
    .MC_box6 { margin-top: 1rem; }
}
@media (max-width:480px){
    .MC_wrap1::before { max-height: 5rem; }
    .MC_wrap2 .container { padding-top: 0.5rem; }

    .MC_box4 { margin-top: 1rem; }
}
@media (max-width: 380px){
    .MC_wrap2 { margin-top: 0; }

    .MC_box1 { padding-top: 0.5rem; }
}
