@import url(http://fonts.googleapis.com/earlyaccess/jejumyeongjo.css);
/*************** 스마트폰 세로 ***************/
@media all and (min-width: 1px) and (max-width: 599px) {
}

/*************** 스마트폰 가로 ***************/
@media all and (min-width: 600px) and (max-width: 959px) {
}

/*************** 태블릿 가로 ~ 모니터 ***************/
@media all and (min-width: 960px) {
    .main__banner{
        position: relative;
        background-image: url("/static/visitor/img/senior care (2).jpg");
        background-repeat: no-repeat;
        background-position: center 34%;
        height: 400px;
        background-size: cover;
    }
    .main__banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(223, 223, 223, 0.5); /* 색상과 투명도 설정 */
        z-index: 1;
    }
    .main__banner__text{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        z-index: 2; /* 컨텐츠가 투명한 색 위에 표시되도록 함 */
        width:100%;
        min-width: 920px;
        max-width: 1280px;
        flex-direction: column;
        justify-content: center;
        height: 0;
        opacity: 0;
        transition: opacity 1s;
        height: 360px;
    }
            
    .main__banner__text:nth-of-type(1) {
        animation: showmain__banner 16s infinite;
        /* opacity: 0; */
    }
    .main__banner__text:nth-of-type(2) {
        animation: showmain__banner 16s infinite 8s;
    }
    @keyframes showmain__banner {
        0% { opacity: 0; }
        12.5% { opacity: 1; }
        37.5% { opacity: 1; }
        50% { opacity: 0; }
        100% { opacity: 0; }
    }

    .main__banner__text:nth-of-type(1) p{
        font-weight: bolder;
        line-height: 140%;
        font-size:30px;
        color:brown;
    }
    .main__banner__text:nth-of-type(1) p:first-of-type{
        font-size:45px;
        margin-bottom:10px;
    }
    .main__banner__text:nth-of-type(2) div:nth-of-type(1) p{
        font-weight: bolder;
        line-height: 140%;
        font-size:45px;
    }
    .main__banner__text:nth-of-type(2) div:nth-of-type(2) {
        margin-top: 20px;
        display: flex;
        flex-direction: row;
        gap:100px;
    }
    .main__banner__text:nth-of-type(2) div:nth-of-type(2) p {
        background-color: rgba(255, 255, 255, 0.2);
        padding: 5px 10px;
        line-height:140%;
        font-size:20px;
    }
    .main__banner__text:nth-of-type(2) div:nth-of-type(2) p span {
        font-weight: bold;
        line-height: 140%;
        font-size:30px;
        color:brown;
    }    
    
    .main__contents{
        padding: 30px 10px 30px 10px;
        display: grid;
        grid-template-areas: 
        'section1   section2    section3'
        'section1   section4    section4'
        'section1   section5    section6';
        gap: 20px 20px;
    }
    .main__contents > div:not(:first-child){
        border:1px solid rgba(0, 0, 0, 0.1);
        border-radius:10px;
        padding: 15px 10px;
        box-shadow: 5px 5px 5px 0 rgba(0, 0, 0, 0.2);
    }
    .main__contents__section2, .main__contents__section3, .main__contents__section4{
        background-color: white;
    }
    .main__contents__section1{
        grid-area: section1;
    }
    .main__contents__section2{
        grid-area: section2;
    }
    .main__contents__section3{
        grid-area: section3;
    }
    .main__contents__section4{
        grid-area: section4;
    }
    .main__contents__section5{
        background-color: burlywood;
        grid-area: section5;
    }
    .main__contents__section6{
        padding:0;
        grid-area: section6;
    }
    .main__contents__section1__title, .main__contents__section2__title, .main__contents__section3__title, .main__contents__section4__title, .main__contents__section5__title{
        text-align: center;
        font-size: 28px;
        font-weight: bold;
        padding-bottom: 10px;
        line-height: 130%;
    }
    .main__contents__section1__title{
        font-size: 2rem;
    }
    .main__contents__section2__title, .main__contents__section3__title, .main__contents__section4__title{
        color:red;
    }
    .main__contents__section5__title{
        color:white;
    }
    .main__contents__section1__desc1, .main__contents__section1__desc2, .main__contents__section1__desc3{
        font-size: 18px;
        line-height: 150%;
        font-weight: 500;
    }
    .main__contents__section1__desc1, .main__contents__section1__desc2, .main__contents__section1__desc3{
        padding:10px 0;
    }
    .main__contents__section1__desc2{
        font-family: 'Jeju Myeongjo', serif;
        font-weight: bold;
    }
    .main__contents__section1__desc3{
        text-align: center;
    }
    .main__contents__section2__desc, .main__contents__section3__desc, .main__contents__section4__desc, .main__contents__section5__desc{
        font-size: 18px;
        line-height: 150%;
        font-weight: 500;
    }
    .main__contents__section1 a {
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 50px;
        width: 260px;
        margin:20px auto 0;
        background-color: white;
    }
    .main__contents__section1 a img{
        height: 30px;
        margin-right: 15px;
    }
    .main__contents__section1 a span{
        font-size: 30px;
    }
    .main__contents__section5 a {
        display: flex;
        justify-content: center;
        /* border-radius: 5px;
        align-items: center;
        height: 50px;
        width: 260px;
        margin:20px auto 0;
        background-color: white; */
    }
    .main__contents__section5 a img{
        height: 30px;
        margin-right: 15px;
    }
    .main__contents__section5 a span{
        font-size: 30px;
    }
    .main__contents__section6__youtube{
        width: 100%;
        height: 100%; 
        /* padding-bottom: 56.25%;  */
        position: relative;
    }
    .main__contents__section6__youtube iframe {
        position: absolute;
        top: 0; 
        left: 0;
        width: 100%; 
        height: 100%; 
        border-radius: 10px;
    } 
    

}
