
/*
[모바일]
포트폴리오 - 그리드 크기
컴퍼니 말고 다른 영역 터치 시, 서브메뉴 닫기*/

/*
[디폴트]
스크롤 - 섹션 이동
*/
@media (min-device-width: 1001px) {
    html,body{
        min-width: 1000px;
    }
    .slider{
        min-width: 1000px;
    }
    footer {
    min-width: 1000px;
    }
    section{
        min-width: 1000px;
    }
}
/* 세로모드 */
@media screen and (orientation: portrait) and (min-device-width: 900px) and (max-device-width:1000px){
        
    html,body{
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }    
    header nav {
        margin: 20px 0 5px 0;
    }

    header nav ul {
        gap: 0.5vw;
    }

    .navbar .menu a:not(.title) {
        width: 110px;
    }
    .navbar .language{
        padding: 0 50px 0 0;
    }
    .menu-item .submenu {
        width: 110px;
    }
    #aboutUs section{ width: 100% ;margin: 0; justify-content: center; }
    #aboutUs section ul{width: 90%; margin: 30px auto;}

    .view {
        display: flex;
        position: relative;
        justify-content: space-between;
        align-items: center;
        margin: 30px 0;
        padding: 0 15% 0 5%;
        flex-wrap: nowrap;
        width: 100%;
        min-width: unset;
        text-align: center;
        box-sizing: border-box;
        gap: 10%;
    }

    .view li {
        list-style: none;
        margin: 0 auto;
        padding: 2px;
        font-family: 'SCDream6', serif;
        font-size: 0.7em;
    }

    .symbol {
        background-color: rgba(154, 195, 199, 0.5);
        border-radius: 60px;
        text-align: center;
        justify-content: center;
        align-content: center;
        width: 37%;
        min-width: 35%;
        height: 40px;
    }

    .meaning {
        background-color: rgba(154, 195, 199, 0.15);
        border-radius: 10px;
        text-align: center;
        align-content: center;
        justify-content: center;
        width: 100%;
        min-width: 65%;
        height: 40px;
    }


    .symbol::after {
        content: '';
        display: none;
        position: relative;
        top: -15px;
        left: 230px;
        height: 4px;
        width: 10px;
        background-image: linear-gradient(90deg, rgba(154, 195, 199, 0.5) 50%, rgba(154, 195, 199, 0.15));
    }


    #profile {
        max-width: unset;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #profile section{margin:0 0 10% 0; padding: 0; justify-content: center;}

    .memberList {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        width: 80%;
        min-width: unset;
        max-width: unset;
        margin: 0 auto;
        padding: 0 auto;
        gap: 20px;
    }

    .memberImg {
        border-radius: 15px 15px 0 0;
        margin: 0;
        padding: 0;
    }

    .memberName {
        font-family: 'SCDream6', 'sans-serif';
        font-size: 1em;
        justify-content: center;
        text-align: center;
        align-items: center;
        height: 25px;
        margin: 0;
        padding: auto;
    }

    .member {
        justify-content: center;
        text-align: center;
        align-items: center;
        margin: 0 auto;
        padding: auto;
        width: 80%;
    }
    .member ul{padding: 0;}

    .career {
        font-size: 14px;
        height: fit-content;
        border-radius: 0 0 15px 15px;
        background-color: rgba(154, 195, 199, 0.3);
        white-space: pre-line;
        margin: 0;
        padding: 0;
    }
    
    #history section{
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    .timeline-wrapper {
        justify-content: center;
        position: relative;
        width: 90%;
        min-width: 60%;
        padding: 50px 0;
    }
    .timeline-item {
        flex: 0 0 calc(33.333% - 20px);
        padding: 30px 0 0 0;
        min-width: unset;
        position: relative;
        margin-top: 30px;
    }
    #portfolio{
        width: 90%;
        margin: auto;
    }
    #portfolio section{ margin: 0 auto; justify-items: center;}
      .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        padding: auto;
        gap: 5px;
        width: 90%;
        justify-content: center;
    }

    .portfolio-filters button {
        margin: 5px;
        padding: 10px 15px;
        height: auto;
        font-size: 0.5em;
    }

    .portfolio-gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(200px, 1fr));
        place-content: center;
        gap: 5px;
        margin: 2% 10%;
        width: 70%;
    }

    .portfolio-item {
        position: relative;
        display: flex;
        height: 100%;
        width: 200px;
        justify-content: center;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .portfolio-item img {
        height: 100%;
        width: 200px;
        object-fit: contain;
        display: block;
        background-color: #4A3627;
        margin: 0;
        transition: filter 0.3s ease;
        flex-shrink: 0;
        border-radius: 20px;
    }
    
    #businessarea section, #organization section {
        display: flex;
        margin: 20px auto;
        padding: auto;
        width: 85%;
        min-width: unset;
        flex-wrap: wrap;
    }

    .container img.contentImg {
        width: 100%;
        min-width: unset;
    }

}

@media screen and (min-device-width: 769px) and (max-device-width: 899px) {
    
    html,body{
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }    
    header nav {
        margin: 20px 0 5px 0;
    }

    header nav ul {
        gap: 0.5vw;
    }

    .navbar .menu a:not(.title) {
        width: 110px;
    }
    .navbar .language{
        padding: 0 50px 0 0;
    }
    .menu-item .submenu {
        width: 110px;
    }
    #aboutUs section{ width: 100% ;margin: 0; justify-content: center; }
    #aboutUs section ul{width: 90%; }

    .view {
        display: flex;
        position: relative;
        justify-content: space-between;
        align-items: center;
        margin: 30px 0;
        padding: 0 15% 0 5%;
        flex-wrap: nowrap;
        width: 100%;
        min-width: unset;
        text-align: center;
        box-sizing: border-box;
        gap: 10%;
    }

    .view li {
        /* display: flex; */
        list-style: none;
        margin: 0 auto;
        padding: 2px;
        /* width: 70%; */
        font-family: 'SCDream6', serif;
        font-size: 0.7em;
    }

    .symbol {
        background-color: rgba(154, 195, 199, 0.5);
        border-radius: 60px;
        text-align: center;
        justify-content: center;
        align-content: center;
        width: 37%;
        min-width: 35%;
        height: 40px;
    }

    .meaning {
        background-color: rgba(154, 195, 199, 0.15);
        border-radius: 10px;
        text-align: center;
        align-content: center;
        justify-content: center;
        width: 100%;
        min-width: 65%;
        height: 40px;
    }


    .symbol::after {
        content: '';
        display: none;
        position: relative;
        top: -15px;
        left: 230px;
        height: 4px;
        width: 10px;
        background-image: linear-gradient(90deg, rgba(154, 195, 199, 0.5) 50%, rgba(154, 195, 199, 0.15));
    }


    #profile {
        max-width: unset;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #profile section{margin:0 0 10% 0; padding: 0; justify-content: center;}

    .memberList {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        width: 80%;
        min-width: unset;
        max-width: unset;
        margin: 0;
        padding: 0 auto;
        gap: 20px;
    }

    .memberImg {
        border-radius: 15px 15px 0 0;
        margin: 0;
        padding: 0;
    }

    .memberName {
        font-family: 'SCDream6', 'sans-serif';
        font-size: 1em;
        justify-content: center;
        text-align: center;
        align-items: center;
        height: 25px;
        margin: 0;
        padding: auto;
    }

    .member {
        justify-content: center;
        text-align: center;
        align-items: center;
        margin: 0 auto;
        padding: auto;
        width: 80%;
    }
    .member ul{padding: 0;}

    .career {
        font-size: 14px;
        height: fit-content;
        border-radius: 0 0 15px 15px;
        background-color: rgba(154, 195, 199, 0.3);
        white-space: pre-line;
        margin: 0;
        padding: 0;
    }
    
    #history section{
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    .timeline-wrapper {
        justify-content: center;
        position: relative;
        width: 70%;
        min-width: 60%;
        margin: 50px 5%;
    }
    #portfolio{
        width: 90%;
    }
      .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        padding: auto;
        gap: 5px;
        width: 90%;
        justify-content: center;
    }

    .portfolio-filters button {
        margin: 5px;
        padding: 10px 15px;
        height: auto;
        font-size: 0.5em;
    }

    .portfolio-gallery {
        display: grid;
        grid-template-columns: repeat(3, minmax(200px, 1fr));
        place-content: center;
        gap: 5px;
        margin: 2% 10%;
        width: 70%;
    }

    .portfolio-item {
        position: relative;
        display: flex;
        height: 100%;
        width: 200px;
        justify-content: center;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 10px;
        /* background-color: #F4C04D; */
    }

    .portfolio-item img {
        height: 100%;
        width: 200px;
        object-fit: contain;
        display: block;
        background-color: #4A3627;
        margin: 0;
        transition: filter 0.3s ease;
        flex-shrink: 0;
        border-radius: 20px;
    }
    
    #businessarea section, #organization section {
        display: flex;
        margin: 20px auto;
        padding: auto;
        width: 85%;
        min-width: unset;
        /* border-width: 0; */
        /* flex-grow: 1; */
        flex-wrap: wrap;
    }

    .container img.contentImg {
        width: 100%;
        min-width: unset;
    }
}

@media screen and (max-device-width:768px) {

    html,
    body {
        top: 0;
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        overflow-x: hidden;
        touch-action: pan-y;
    }
    body{
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
    }

    header {
        position: fixed;
        height: 80px;
        width: 100%;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .hamburger {
        display: block;
        justify-content: center;
        align-items: center;
        margin: auto;
        padding: auto;
    }

    .hamburger .title {
        position: absolute;
        left: 20px;
        /* 좌측 간격 */
        top: 50%;
        /* 세로 중앙 */
        transform: translateY(-50%);
        display: flex;
        align-items: center;
    }

    .text-group {
        margin-top: 8px;
        font-size: 1.2em;
    }

    a,
    span {
        text-decoration-line: none;
    }

    header .logo {
        height: 5vh;
    }

    #checkbox {
        display: none;
    }

    #checkbox+label {
        position: absolute;
        left: 83%;
        margin-top: 7%;
        /* top: 300%; */
        /* transform: translateY(-50%); */
        width: 10.5vw;
        height: 7vw;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1000;
        /* border: 2px solid#4A3627; */
    }

    #submenu {
        position: fixed;
        width: 70vw;
        height: 100%;
        background: #f5ebdc;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
        left: 200%;
        transition: all 300ms;
        z-index: 1;
        top: 0px;
        /* gap: 100px; */
        padding: 80px 20px 0 20px;
        box-sizing: border-box;
        align-items: normal;
        touch-action: none;
    }
    #submenu ul{padding: 0;}

    .language li {
        width: fit-content;
        height: 20px;
        /* justify-content: center; */
        align-items: center;
        /* flex-wrap: wrap; */
        margin-bottom: 10px;
    }

    .submenu-content {
        height: 300px;
        margin-bottom: 100px;
    }

    .submenu-content li {
        display: flex;
        height: 40px;
        width: fit-content;
        /* justify-content: center; */
        margin: 10px 0;
        align-items: center;
    }

    .language a {
        font-size: 1.2em;
        font-weight: bolder;

    }

    .submenu-content a {
        font-size: 1.4em;
        font-weight: bolder;
        color: #4A3627;
    }

    .submenu-content a:hover,
    .submenu-content a:active {
        color: #F4C04D;
    }

    #submenu-text {
        align-items: center;
        text-align: center;
        justify-content: center;
        font-family: 'SCDream4', 'sans-serif';
    }

    #checkbox:checked+label+#submenu {
        left: 35vw;
    }

    #checkbox+label>span {
        position: absolute;
        width: 100%;
        height: 0.8vw;
        background: #4A3627;
        border-radius: 5px;
        transition: all 0.2s;
    }

    #checkbox+label>span:nth-child(1) {
        top: 0;
    }

    #checkbox+label>span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    #checkbox+label>span:nth-child(3) {
        bottom: 0;
    }


    #checkbox:checked+label>span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    #checkbox:checked+label>span:nth-child(2) {
        opacity: 0;
    }

    #checkbox:checked+label>span:nth-child(3) {
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .slide-text {
        position: relative;
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
        font-family: 'SCDream6', 'sans-serif';
        font-weight: bolder;
        font-size: 1.5em;
        left: 30%;
        width: 39%;
        /* flex-shrink: 0; */
        height: 30px;
        text-wrap: nowrap;
        /* margin-bottom: 200px; */
    }

    .slider {
        --slider-height: 150px;
        --slider-gap: 12px;
        top: 80px;

        height: 300px;
        width: 80%;
        margin: 100px auto;
        overflow: hidden;
        position: relative;
    }

    section {
        display: flex;
        margin: 20px auto;
        padding: auto;
        width: 100%;
        min-width: unset;
        /* border-width: 0; */
        /* flex-grow: 1; */
        flex-wrap: wrap;
    }

    .container img.contentImg {
        width: 100%;
        min-width: unset;
    }

    #profile {
        max-width: unset;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #profile section{margin:0; padding: 0; justify-content: center;}

    .memberList {
        display: flex;
        width: 90%;
        min-width: unset;
        max-width: unset;
        margin: 0;
        padding: 0;
        gap: 20px;
    }

    .memberImg {
        border-radius: 15px 15px 0 0;
        margin: 0;
        padding: 0;
    }

    .memberName {
        font-family: 'SCDream6', 'sans-serif';
        font-size: 1em;
        justify-content: center;
        text-align: center;
        align-items: center;
        height: 25px;
        margin: 0;
        padding: auto;
    }

    .member {
        justify-content: center;
        text-align: center;
        align-items: center;
        margin: 0;
        padding: auto;
        width: 80%;
    }
    .member ul{padding: 0;}

    .career {
        font-size: 14px;
        height: fit-content;
        border-radius: 0 0 15px 15px;
        background-color: rgba(154, 195, 199, 0.3);
        white-space: pre-line;
        margin: 0;
        padding: 0;
    }


    #history{
        padding: 10px 0;
    }
    .timeline-prev,
    .timeline-next {
        padding: 10px 15px;
        font-size: 10px;
        z-index: 10;
    }
    .timeline-wrapper{
        width: 80%;
        min-width: none;
        margin: 10px auto;
    }


    .timeline-item{
        padding: 0;
        flex: unset;
        min-width: 100%;
    }

    .timeline-item ul {
        font-size: 0.5em;
        flex-wrap: wrap;
    }

    .timeline-item .year {
        font-size: 0.5em;
    }

    #portfolio{
        margin: 40px auto;
    }

    .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: auto;
    }

    .portfolio-filters button {
        margin: 5px;
        padding: 10px 15px;
        height: auto;
        font-size: 0.5em;
    }

    .portfolio-gallery {
        display: grid;
        grid-template-columns: repeat(2, minmax(150px, 1fr));
        margin: 10 0;
        gap: 10px;
        width: 100%;
    }

    .portfolio-item {
        position: relative;
        display: flex;
        height: 100%;
        width: 150px;
        justify-content: center;
        border-radius: 20px;
        overflow: hidden;
        /* background-color: #F4C04D; */
    }

    .portfolio-item img {
        height: 100%;
        width: 150px;
        object-fit: contain;
        display: block;
        background-color: #4A3627;
        margin: 0;
        transition: filter 0.3s ease;
        flex-shrink: 0;
        border-radius: 20px;
    }

    /* #aboutUs section{ width: 100% ;margin: 0;}
    #aboutUs section ul{padding: 5px;} */
    #aboutUs section{ width: 100% ;margin: 0; justify-content: center; }
    #aboutUs section ul{width: 90%; align-items: stretch;}

    .view {
        display: flex;
        position: relative;
        justify-content: center;
        align-items: center;
        margin: 30px 0;
        flex-wrap: nowrap;
        width: 100%;
        min-width: unset;
        padding: 0 5% 0 0;
        text-align: center;
        box-sizing: border-box;
        gap: 5%;
    }

    .view li {
        /* display: flex; */
        list-style: none;
        margin: 0;
        padding: 2px;
        /* width: 100%; */
        font-family: 'SCDream6', serif;
        font-size: 0.7em;
    }

    .symbol {
        background-color: rgba(154, 195, 199, 0.5);
        border-radius: 60px;
        text-align: center;
        justify-content: center;
        align-content: center;
        width: 37%;
        min-width: 35%;
        height: 40px;
    }

    .meaning {
        background-color: rgba(154, 195, 199, 0.15);
        border-radius: 10px;
        text-align: center;
        align-content: center;
        justify-content: center;
        width: 110%;
        min-width: 65%;
        height: 40px;
    }


    .symbol::after {
        content: '';
        display: none;
        position: relative;
        top: -15px;
        left: 230px;
        height: 4px;
        width: 10px;
        background-image: linear-gradient(90deg, rgba(154, 195, 199, 0.5) 50%, rgba(154, 195, 199, 0.15));
    }
    body,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    ul,
    li,
    span {
        font-family: 'SCDream4', sans-serif;
    }
    
    body,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    ul,
    li:not(.career),
    span:not(.text-group span, .label, .value) {
        font-weight: lighter;
    }
    
    
    .text-group span{font-weight: bold;}

    .timeline-item ul li,
    .career,
    .label,
    .value { font-weight: bolder; }
    .label, .value{ font-size: 0.7em; }
    
    .slide-text, .category{ 
        font-size: 1.4em; 
        font-family: 'SCDream4', sans-serif; 
        font-weight: 600;
    }

    .navbar { display: none; }

footer .category {
    margin: 10px;
    padding: 0;
}
footer .contact{
    padding: 0;
    justify-content: center;
    align-items: center;
}
footer li{
    margin: 7px 0;
}
footer .contact span {
    font-size: 15px;
    padding: 0;
}

footer .contact .label {
    display: inline-block;
    width: 100px;
}

footer .contact .value {
    display: inline-block;
}

}

@media screen and (min-device-width: 550px) and (max-device-width: 768px) {
        #checkbox+label {
        margin-top:2%;
        z-index: 1000;
    }
}
