.main * {
    color: #444;
}

.main {
    margin-top: 213px;
} 
/* 영상 팝업 */
#videoModal {
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: none;
}
#videoModal .modal-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
}
#videoModal .modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 5% auto;
    background: transparent;
}

#videoModal .close {
    position: absolute;
    top: -30px; 
    right: -20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 비율 */
    height: 0;
}
.video-wrapper .popup-thumb {
    position: relative;
}
.video-wrapper .popup-thumb::before{
    content: '';
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%,-50%);
    width: 88px; 
    height: 62px;
    background: url(../img/main/yout_bt2.png) no-repeat center center / contain;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}
@media (max-width:768px) {
    #videoModal .close {
        right: 0px;
    }
}



.main p {
    font-size: 15px;
    letter-spacing: -1px;
}



.main p .more {
    display: inline-block;
    margin-top: 10px;
}
.main .box-wrap {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    border: 1px solid var(--border);
    border-bottom: 0;
}
.main .box-wrap .box {
    padding: 10px;   
    text-align: center;
}
.main .box-wrap .box:has(.txt) {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
}
.main .box-wrap .box a {
    display: block;
}
.main .box-wrap .box .img {
    filter: grayscale(1);
    transition: all 0.3s;
    display: flex;
}

.main .box-wrap .box:hover .img{
    filter: grayscale(0);
}
.main .box-wrap .box .img + p{
    font-weight: 700;
    margin-top: 13px;
}
.main .box-wrap .box .txt {
    margin: 0 auto;
}
.main .box-wrap .box .txt p {
    line-height: 1.6;
}
.main .box-wrap .box .txt .quote {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    display: inline-block;
    margin-top: 15px;
}
.main .box-wrap .box .txt .quote:last-child {
    margin-block: 15px 0;
}
.main .box-wrap .box .txt h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.65px;
    margin-bottom: 23px;
}

@media screen and (max-width:1200px){
    .main .box-wrap .box .img.height {
        height: calc(100% - 55px);
    }
}

@media screen and (max-width:992px){
    .main {
        margin-top: 0;
    } 
    .main .box-wrap {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        border: 1px solid var(--border);
        border-bottom: 0;
    }
    .main p {
        font-size: clamp(17px,3vw,20px);
        line-height: 1.5;
    }
    .main p .more {
        font-size: clamp(19px,3.6vw,24px);
    }
    .main .box-wrap .box .txt h3 {
        font-size: clamp(22px,4.2vw,30px);
        margin-bottom: 1.3em;
    }
    .main .box-wrap .box .txt p {
        font-size: clamp(18px,3vw,22px);
    }
    .main .box-wrap .box .txt .quote {
        font-size: clamp(22px,4.2vw,30px);
    }
    .main .box-wrap .box .txt .quote:last-child {
        margin-top: 5%;
    }
    .main .box-wrap .box .img.height {
        /* height: calc(100% - 45px); */
        height: calc(100% - 3vw - 18px);
        /* min-height: calc(100% - 31px); */
    }
    .main .box-wrap .box .img + p{
        margin-top: 10px;
    }
    .main .box-wrap .box .img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
@media screen and (max-width:768px){
    .main .box-wrap .box .img.height {
        height: calc(100% - 37px);
    }
    .main .box-wrap .box .img.height2 {
        height: calc(100% - 9vw - 10px);
    }
    .m3 .box-wrap .box1 .img + p {
        letter-spacing: -1px;
     }
}
@media screen and (max-width:526px){
    .m3 .box-wrap .box1 .img.height {
        height: calc(100% - 60px);
    }
}
@media screen and (max-width:450px){
    .main p {
        letter-spacing: -1px;
    }
}

/* grid-template-areas 순서 설정 공통 */
.box-wrap .box1 {
    grid-area: box1;
}
.box-wrap .box2 {
    grid-area: box2;
}
.box-wrap .box3 {
    grid-area: box3;
}
.box-wrap .box4 {
    grid-area: box4;
}
.box-wrap .box5 {
    grid-area: box5;
}
.box-wrap .box6 {
    grid-area: box6;
}
.box-wrap .box7 {
    grid-area: box7;
}
.box-wrap .box8 {
    grid-area: box8;
}
.box-wrap .box9 {
    grid-area: box9;
}

/* m1 */
.m1 .box-wrap {
    grid-template-areas:
    " box1 box1 box1 box1 box3 ";
}
.m1 .box1 {
    grid-area: box1;
}
.m1 .box2 {
    display: none;
}
.m1 .box3 {
    grid-area: box3;
    border-left: 1px solid var(--border);
}
.m1 .box3 .txt {
    max-width: 200px;
}
@media screen and (max-width:992px){
    
    .m1 .box-wrap {
        grid-template-areas:
        " box1 box1"
        " box2 box2"
        " box3 box3";
    }
    .m1 .box-wrap .box2 {
        display: grid;
        grid-template-columns: repeat(4,1fr);
        padding-inline: 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .m1 .box-wrap .box2 a {
        padding-block: clamp(15px,8%,35px);
        border-left: 1px solid var(--border);
        display: flex;
        flex-flow: column wrap;
        justify-content: space-between;
    }
    .m1 .box-wrap .box2 a:first-child {
        border-left: 0;
    }
    .m1 .box-wrap .box2 a img {
        width: min(50px,6vw);
    }
    .m1 .box-wrap .box2 a p {
        font-size: clamp(19px,2.8vw,22px);
        margin-top: min(15px,10%);
        font-weight: 600;
    }
    .m1 .box3 {
        border-left: 0;
    }
    .m1 .box-wrap .box3 {
        border-top: 1px solid var(--border);
    }
    .m1 .box-wrap .box3 .txt {
        max-width: min(560px,90%);
        margin-block: clamp(40px,13%,50px) clamp(30px,10%,40px);
        
    }
}


/* m2 */
.m2 .box-wrap {
    grid-template-areas:
    /* " box1 box1 box2 box3 box4 " */
    " box1 box1 box5 box6 box6 "
    " box1 box1 box5 box6 box6 "
}
.m2 .box1 .txt {
    max-width: 420px;
}
.m2 .box:not(.box1) {
    border-left: 1px solid var(--border);
}
.m2 .box2, 
.m2 .box3,
.m2 .box4 {
    border-bottom: 1px solid var(--border);
}
.m2 .box5 img {
    width: 100%;
}
@media screen and (max-width:992px){
    .m2 .box-wrap {
        grid-template-areas:
        " box5 box5 "
        " box1 box1 "
        " box6 box6 "
    }
    .m2 .box5,
    .m2 .box1 {
        border-bottom: 1px solid var(--border);
    }
    .m2 .box2,
    .m2 .box3,
    .m2 .box4,
    .m2 .box6 {
        border-left: 0 !important;
    }
    .m2 .box-wrap .box1 .txt {
        max-width: 580px;
        margin-block: clamp(40px,13%,50px) clamp(30px,10%,40px);
    }
}


/* m3 */
/* 
.m3 .box-wrap {
    grid-template-areas:
		" box1 box4 box6 box6 box7"
        " box1 box5 box6 box6 box8"
        " box2 box5 box6 box6 box9"
        " box3 box5 box6 box6 box9";
} 
        */
.m3 .box-wrap {
    grid-template-areas:
		" box1 box4 box6 box6 box7"
        " box1 box5 box6 box6 box7"
        " box2 box5 box6 box6 box7"
        " box3 box5 box6 box6 box7";
}
.m3 .box {
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
    cursor: pointer;
}
.m3 .box1,
.m3 .box2,
.m3 .box3 {
    border-left: 0 !important;
}
.m3 .box-wrap .box .img::before { 
    content: '';
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%,-50%);
    width: 45px; 
    height: 45px;
    background: url(../img/main/yout_bt.png) no-repeat center center / contain;
}

@media screen and (max-width:992px){
    .m3 .box-wrap {
        grid-template-areas:
            " box1 box2 "
            " box1 box3 "
            " box4 box4 "
            " box5 box5 "
            " box6 box6 "
            " box7 box7 "
    }
    .m3 .box-wrap .box7 {
        padding-block: clamp(40px,15%,70px);
    }
    .m3 .box4,
    .m3 .box5,
    .m3 .box6,
    .m3 .box7 {
        border-left: 0;
    }
    .m3 .box2, 
    .m3 .box3 {
        border-left: 1px solid var(--border) !important;
    }

    .m3 .box6 .img.img.height {
        height: auto;
    }
}

/* m4 */
.m4 {
    padding-block: 74px 65px;
    text-align: center;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.m4 h3 {
    font-size: 28px;
    /* color: #333; */
    margin-bottom: 25px;
    font-weight: 600;
}
.m4 h3 span {
    color: #908570;
}
.m4 p {
    max-width: 730px;
    margin: 0 auto;
    line-height: 1.6;
}
.m4 p:last-child {
    margin-top: 3px;
}
@media screen and (max-width:992px){
    .m4 {
        padding: clamp(40px,8vw, 70px) 10px;
    }
    .m4 h3 {
        font-size: clamp(24px,4.6vw,36px);
    }
    .m4 p {
        max-width: 580px;
    }
    .m4 p:last-child {
        max-width: 100%;
    }
}


/* m5 */
.m5 .box-wrap {
    grid-template-rows: repeat(4,139px);
    grid-template-areas:
		" box1 box2 box5 box6 box6"
        " box1 box2 box5 box6 box6"
        " box3 box4 box5 box6 box6"
        " box3 box4 box5 box6 box6";
}
.m5 .box {
    border-left: 1px solid var(--border);
}
.m5 .box1,
.m5 .box2 {
    border-bottom: 1px solid var(--border);
}
.m5 .box1,
.m5 .box3 {
    border-left: 0;
}
.m5 .box3 img {
    filter: grayscale(1) contrast(.9);
}
.m5 .box3 .img + p {
    letter-spacing: -1px;
}
.m5 .box3 img:hover {
    filter: grayscale(0) contrast(1);
}
@media screen and (max-width:992px){
    .m5 .box-wrap {
        grid-template-rows: 1fr;
        grid-template-areas:
            " box1 box2 "
            " box3 box4 "
            " box5 box5 "
            " box6 box6 "
    }
    .m5 .box3,
    .m5 .box4,
    .m5 .box5 {
        border-bottom: 1px solid var(--border);
    }
    .m5 .box5,
    .m5 .box6 {
        border-left: 0;
    }

    .m5 .box-wrap .box5 {
        padding-block: clamp(40px,15%,70px) clamp(25px,12%,40px);
    }
    .m5 .box-wrap .box5 .txt {
        max-width: 510px;
    }
    .m5 .box-wrap .box .txt .quote {
        font-size: clamp(17px,3vw,20px);
    }
}
@media (max-width:500px) {
    .m5 .box-wrap .box3 .img.height2,
    .m5 .box-wrap .box4 .img.height2 {
        height: calc(100% - 60px);
    }
    .m5 .box3 .img + p {
        letter-spacing: -1.5px;
    }
}
@media (max-width:420px) {
    .m5 .box3 .img + p br {
        display: none;
    }
}



/* m6 */
.m6 .box-wrap {
    grid-template-areas:
		" box1 box2 box3 box4 box5";
}
.m6 .box-wrap .box {
    padding-block: 51px;
}
.m6 .box .img {
    width: 130px;
    height: 130px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #eaeae0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    filter: none !important;
}
.m6 .box .img img {
    width: auto;
    max-width: 50%;
}
.m6 .box:not(:first-child) {
    border-left: 1px solid var(--border);
}
.m6 .box:hover .img {
    background: #fff;
    box-shadow: 0 0 15px 0 rgba(0,0,0,0.06);
}
.m6 .box-wrap .box .img img {
    width: auto;
    max-height: 40%;
}
.m6 .box-wrap .box .img + p {
    font-size: 18px;
    color: #666;
}
.m6 .box-wrap .box:hover .img + p {
    color: #222;
}
@media screen and (max-width:992px){
    .m6 .box-wrap {
        grid-template-areas:
            " box1 box1 "
            " box2 box3 "
            " box4 box5 ";
    }
    .m6 .box-wrap .box {
        padding-block: clamp(20px, 18%, 70px);
    }
    .m6 .box-wrap .box .txt h3 {
        margin-bottom: 14%;
    }
    .m6 .box-wrap .box1,
    .m6 .box-wrap .box2,
    .m6 .box-wrap .box3 {
        border-bottom: 1px solid var(--border);
    }
    .m6 .box-wrap .box2,
    .m6 .box-wrap .box4 {
        border-left: 0;
    }
    .m6 .box .img {
        width: min(165px,30vw);
        height: min(165px,30vw);
        background: #eaeae0;
    }
    .m6 .box-wrap .box .img img {
        max-height: 50%;
    }
    .m6 .box-wrap .box .img + p {
        font-size: clamp(20px,4.2vw,30px);
    }
}


/* m7 */
.m7 {
    border: 1px solid var(--border);
    border-bottom:0;
    display: grid;
    align-items: center;
    grid-template-columns: 4fr 1fr;
}
.m7 .txt-box {
    height: 100%;
}
.m7 .txt {
    height: 100%;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    padding-inline: 85px;
    background: url(../img/main/main_img23_1.png) center right no-repeat;
    transition: background 0.3s;
    display: none;
}
.m7 .txt2 {
    background: url(../img/main/main_img23_2.png) center right no-repeat;
}
.m7 .txt3 {
    background: url(../img/main/main_img23_3.png) center right no-repeat;
}

@media (min-width:993px) {
    .m7 .txt1.on {
        animation: imgHover1 1s ease-in;
    }
    .m7 .txt2.on {
        animation: imgHover2 1s ease-in;
    }
    .m7 .txt3.on {
        animation: imgHover3 1s ease-in;
    }
    .m7 .txt1:hover {
        background-image: url(../img/main/main_img23_1_on.png);
    }
    .m7 .txt2:hover {
        background-image: url(../img/main/main_img23_2_on.png);
    }
    .m7 .txt3:hover {
        background-image: url(../img/main/main_img23_3_on.png);
    }

    @keyframes imgHover1 {
        0% {
            background-image: url(../img/main/main_img23_1_on.png);
        }
        100% {
            background-image: url(../img/main/main_img23_1.png);
        }
    }
    @keyframes imgHover2 {
        0% {
            background-image: url(../img/main/main_img23_2_on.png);
        }
        100% {
            background-image: url(../img/main/main_img23_2.png);
        }
    }
    @keyframes imgHover3 {
        0% {
            background-image: url(../img/main/main_img23_3_on.png);
        }
        100% {
            background-image: url(../img/main/main_img23_3.png);
        }
    }
}
.m7 .txt.on {
    display: flex;
}
.m7 .txt-box h5 {
    font-size: 16px;
    font-family: 'Cormorant';
    font-weight: 400;
    margin-bottom: 15px;
}
.m7 .txt-box h4 {
    font-size: 16px;
    font-weight: 400;
    margin-block: 30px;
    max-width: 600px;
    line-height: 1.6;
}
.m7 .txt-box h2 {
    font-size: 32px;
    font-weight: 700;
}
.m7 .menu-box {
    padding: 60px 15px 40px;
    border-left: 1px solid var(--border);
    text-align: center;
}
.m7 .menu-box h3 {
    font-size: 18px;
    margin-bottom: 35px;
    font-weight: 700;
}
.m7 .menu-box li {
    padding-block: 32px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    color: #666;
    cursor: pointer;
}
.m7 .menu-box li:hover {
    color: #222;
}
.m7 .menu-box li:last-child {
    border-bottom: 0;
}
@media screen and (max-width:992px){
    .m7 {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            " box1 box1 "
            " box2 box2 ";
    }
    .m7 .menu-box {
        grid-area: box1;
        border-left: 0;
        padding: 0;
    }
    .m7 .menu-box h3 {
        font-size: clamp(22px,4.2vw,30px);
        padding-block: clamp(20px, 10%, 40px);
        margin-bottom: 0;
    }
    .m7 .menu-box ul {
        display: grid;
        grid-template-columns: repeat(3,1fr);
        padding-block: 10px;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .m7 .menu-box li {
        font-size: clamp(19px,3.2vw,24px);
        letter-spacing: -1px;
        border-bottom: 0;
        padding: 15px 5px;
        border-left: 1px solid var(--border);
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .m7 .menu-box li:first-child {
        border-left: 0;
    }
    .m7 .menu-box li  span {
        display: inline-block !important;
    }
    .m7 .txt-box {
        grid-area: box2;
    }
    .m7 .txt  {
        padding: clamp(30px, 15%, 60px) 10px;
        /* padding-left: clamp(20px, 10%, 50px);
        background-size: auto 100%;
        background-position-x: calc(100%  + 120px); */
        background-image: none;
        text-align: center;
        align-items: center;
    }
    .m7 .txt-box h4 {
        font-size: clamp(17px,3vw,22px);
        max-width: 410px;
        line-height: 1.6;
    }
    .m7 .txt-box h5 {
        font-size: clamp(17px,3vw,20px);
    }
    .m7 .txt-box h2 {
        /* font-size: clamp(24px,6vw,36px); */
        /* font-size: clamp(32px, 4.6vw, 36px); */
        font-size: clamp(22px, 4.2vw, 30px);
    }
}


/* m8 */
.m8 .box-wrap {
    grid-template-areas:
		" box1 box1 box4 box5 box5"
        " box2 box3 box4 box6 box6";
}
.m8 .box {
    border-left: 1px solid var(--border);
}
.m8 .box4 .txt {
    max-width: 190px;
}
.m8 .box1,
.m8 .box5 {
    border-bottom: 1px solid var(--border);
}
.m8 .box1,
.m8 .box2 {
    border-left: 0;
}
@media screen and (max-width:992px){
    .m8 .box-wrap {
        grid-template-areas:
            " box1 box1 "
            " box2 box3 "
            " box4 box4 "
            " box5 box5 "
            " box6 box6 ";
    }
    .m8 .box4 .txt {
        padding-block: clamp(30px, 15%, 60px);
        max-width: 565px;
    }
    .m8 .box2,
    .m8 .box3,
    .m8 .box4 {
        border-bottom: 1px solid var(--border);
    }
    .m8 .box4,
    .m8 .box5,
    .m8 .box6 {
        border-left: 0;
    }
}


/* m9 */
.m9 {
    border: 1px solid var(--border);
    border-bottom: 0;
    padding: 55px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.m9 .left {
    width: 50%;
}
.m9 .left .logo {
    margin-bottom: 35px;
    max-width: 155px;
}
.m9 .left .info li {
    display: flex;
    flex-flow: row wrap;
    font-size: 17px;
    font-weight: 600;
}
.m9 .left .info > ul > li {
    margin-bottom: 25px;
}
.m9 .left .info > ul > li > span {
    width: 110px;
}
.m9 .left .info > ul > li:last-child {
    align-items: center;
    margin-bottom: 0;
}
.m9 .left .info ul ul {
    width: calc(100% - 110px);
    display: flex;
    flex-flow: row wrap;
    gap: 10px 25px;
}
.m9 .left .info ul ul li {
    width: fit-content;
}
.m9 .left .info ul ul li:last-child {
    width: 100%;
}
.m9 .left .info ul ul li small {
    color: #666;
    font-weight: 400;
}
.m9 .left .info ul ul span {
    width: 80px;
}
.m9 .left .info a {
    color: #333;
    font-size: 28px;
}
.m9 .right {
    width: min(500px,45%);
    height: 100%;
}
.m9 .map .map-area {
    width: 100%;
    height: 100%;
}
.m9 .root_daum_roughmap .cont .section.lst {
    display: none;
}
@media screen and (max-width:1200px){
    .m9 .left .info ul ul li {
        width: 100%;
    }
    .m9 .left .info ul ul li:nth-of-type(1) {
        order:1;
    }
    .m9 .left .info ul ul li:nth-of-type(2) {
        order:3;
    }
    .m9 .left .info ul ul li:nth-of-type(3) {
        order:2;
    }
    .m9 .left .info ul ul li:nth-of-type(4) {
        order:4;
    }
    .m9 .left .info ul ul li:nth-of-type(5) {
        order:5;
    }
}
@media screen and (max-width:992px){
    .m9 {
        padding: clamp(30px,10%,40px) clamp(20px,6%,40px);
        flex-flow: column wrap;
    }
    .m9 .logo {
        margin-block: clamp(30px,10%,35px) clamp(40px,13%,50px) ;
        text-align: center;
        order:1;
    }
    .m9 .left {
        width: 100%;
        order:3;
    }
    .m9 .left .info li {
        font-weight: 400;
    }
    .m9 .left .info > ul > li {
        margin-bottom: 20px;
    }
    .m9 .left .info > ul > li > span {
        width: min(110px,22%);
        font-weight: 700;
    }
    .m9 .left .info ul ul {
        width: 78%;
        gap: 10px 0;
    }
    .m9 .left .info ul ul span {
        width: min(100px,17vw);
    }
    .m9 .left .info li,
    .m9 .left .info ul ul li small {
        font-size: clamp(17px,3vw,20px);
    }
    .m9 .left .info a {
        font-size: clamp(32px,6vw,42px);
        font-weight: 700;
    }
    .m9 .right.map {
        margin-bottom: clamp(30px,10%,40px);
        order:2;
        width: 100%;
        height: clamp(250px,80vw,300px);
    }
    .m9 .map .map-area { 
        height: 100%;
    }
}
@media screen and (max-width:500px){
    .m9 .left .info ul ul {
        gap: 5px 0;
    }
}