@charset 'utf-8';
html,
body {
    height: 100%;
}
#wrap {
    max-width: 1920px;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* header */
#header {
    padding: 0 20px;
    flex: 0 0 auto;
    height: 30px;
}
#header .logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* height: 30px; */
    background: #333;
    z-index: 1111;
}
#header.on .logo {
    height: 30px;
    z-index: 1;
    transition: all 1s;
}
#header .logo span {
    font-size: 40px;
    font-weight: 500;
    font-style: italic;
    color: #fff;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(30px);
    animation: logoAni 1s forwards;
}
#header .logo span:nth-of-type(1) {
    animation-delay: 0s;
}
#header .logo span:nth-of-type(2) {
    animation-delay: 0.1s;
}
#header .logo span:nth-of-type(3) {
    animation-delay: 0.2s;
}
#header .logo span:nth-of-type(4) {
    animation-delay: 0.3s;
}
#header .logo span:nth-of-type(5) {
    animation-delay: 0.4s;
}
#header .logo span:nth-of-type(6) {
    animation-delay: 0.5s;
}
#header .logo span:nth-of-type(7) {
    animation-delay: 0.6s;
}
#header .logo span:nth-of-type(8) {
    animation-delay: 0.8s;
}

#header.on .logo span {
    font-size: 15px;
    transition: all 1s;
}

@keyframes logoAni {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
/* //header */

/* footer */
#footer {
    height: 24px;
    text-align: center;
    background: #333;
    flex: 0 0 auto;
}
#footer .copy {
    font-size: 11px;
    font-weight: 300;
    color: #fff;
    line-height: 24px;
}
/* //footer */

/* main */
#main {
    position: relative;
    display: flex;
    height: calc(100% - 54px);
}
#main section {
    height: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
}

h2.title {
    margin-bottom: 30px;
}
h2.title span {
    position: relative;
    display: inline-block;
    padding-right: 20px;
    font-size: 30px;
    font-weight: 900;
    color: #222;
    font-style: italic;
    z-index: 1;
}
h2.title span::after {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #ffd400;
    opacity: 0.5;
    transform: skew(-20deg);
    z-index: -1;
    content: "";
}

/* profile_sec */
#main .profile_sec {
    width: 300px;
    border-right: 1px solid #333;
    padding: 30px;
}
#main .profile_sec dl:not(:last-of-type) {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #333;
}
#main .profile_sec dt {
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.4;
}
#main .profile_sec dd {
    font-size: 15px;
    line-height: 1.4;
    color: #555;
}
#main .profile_sec .sign_p:not(:last-of-type) {
    margin-bottom: 5px;
}
#main .profile_sec .sign_p {
    display: flex;
    align-items: flex-start;
}
#main .profile_sec .sign_p i {
    display: block;
    margin-right: 4px;
    font-weight: 700;
    flex: 0 0 auto;
}
#main .profile_sec .sign_p span {
    display: block;
    font-size: 14px;
}
#main .profile_sec .skill_box span {
    display: inline-block;
    min-width: 25%;
    margin: 2px 1px;
    padding: 2px 4px;
    border: 1px solid #666;
    font-size: 14px;
    text-align: center;
    text-transform: capitalize;
    color: #666;
    border-radius: 2px;
    box-sizing: border-box;
}
/* //profile_sec */

/* list_sec */
#main .list_sec {
    width: calc(100% - 300px);
    padding: 30px;
    overflow-y: auto;
}
#main .list_sec .list_box + .list_box {
    margin-top: 30px;
}
#main .list_sec .list_box .company {
    display: inline-block;
    padding: 3px 5px 5px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    background: #ddd;
}
#main .list_sec .list {
    display: flex;
    flex-wrap: wrap;
}
#main .list_sec .list li {
    width: calc(25% - 22.5px);
    margin-right: 30px;
    margin-bottom: 30px;
    border: 1px solid #252525;
    box-sizing: border-box;
}
#main .list_sec .list li:nth-of-type(4n) {
    margin-right: 0;
}
#main .list_sec .list li button {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}
#main .list_sec .list li img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#main .list_sec .list li .cover_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
#main .list_sec .list li .project_name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    word-break: keep-all;
    box-sizing: border-box;
}
/* //list_sec */

/* detail_sec */
#main .detail_sec {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: all 0.5s;
    z-index: 100;
}
#main .detail_sec.open {
    transform: translateX(0%);
}
#main .detail_sec .back_row {
    border-bottom: 1px solid #eee;
    flex: 0 0 auto;
}
#main .detail_sec .back_btn {
    display: block;
    width: 48px;
    height: 48px;
}
#main .detail_sec .back_btn i {
    font-size: 24px;
}
#main .detail_sec iframe {
    display: block;
    width: 100%;
    height: 100%;
}
#main .dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    z-index: -1;
    transition: all 0.5s;
}
#main .dim.open {
    opacity: 0.3;
    z-index: 99;
}
/* //detail_sec */
/* //main */

@media screen and (max-width: 1024px) {
    #main .profile_sec {
        padding: 20px;
    }
    #main .list_sec {
        padding: 20px;
    }
    #main .list_sec .list li {
        width: calc(50% - 15px);
        margin-right: 30px;
    }
    #main .list_sec .list li:nth-of-type(2n) {
        margin-right: 0;
    }
    #main .detail_sec {
        width: 80%;
    }
}

@media screen and (max-width: 720px) {
    #main {
        display: block;
        overflow-y: auto;
    }
    #main section {
        height: auto;
    }
    h2.title {
        margin-bottom: 20px;
    }
    h2.title span {
        padding-right: 10px;
        font-size: 26px;
    }
    #main .profile_sec {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #333;
    }
    #main .profile_sec dl:not(:last-of-type) {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    #main .list_sec {
        width: 100%;
        overflow: hidden;
    }
    #main .list_sec .list li {
        width: calc(50% - 10px);
        margin-right: 20px;
        margin-bottom: 20px;
    }
    #main .detail_sec {
        position: fixed;
        width: 95%;
        height: 100%;
    }
    #main .dim {
        position: fixed;
    }
}
