html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

#top {
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 0;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    height: calc(100% - 125px);
    overflow: hidden;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
}

#top-video {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

#cpro-logo {
    margin: 0;
    padding: 0;
    position: absolute;
    bottom: 2vh;
    left: 2vw;
    width: 40%;
    z-index: 2;
}

#cpro-logo img {
    width: 100%;
}

main {
    position: relative;
    margin-left: 15px;
    padding: 5vmin 0 15vmin 0;
    z-index: 2;
    margin-top: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--cpro-color-sub);
}

section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    margin-top: 7vmin;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container {
    width: 80%;
    margin: 0;
    padding: 0;
}

.fadeiner {
    animation: fadeIn 0.5s 0.2s linear forwards;
}

section:has(.about) {
    padding: 12vmin 0;
    margin-top: 15%;
    width: 95%;
    height: 100vh;
    align-items: start;
}

.about-bg {
    position: absolute;
    top: 10%;
    right: -20%;
    width: 60%;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

.about {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #3b3b3b;
    width: 60%;
    margin: 0;
    padding: 0;
}

.about p:nth-child(1) {
    font-size: 3.7vw;
    font-weight: bolder;
    text-decoration: dotted underline;
    text-align: center;
    margin-bottom: 7vmin;
}

.about p:nth-child(2) {
    font-size: 1.5vw;
    font-weight: lighter;
    text-align: center;
}

.more-wrp {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4vmin;
}

.more {
    margin: 0;
    padding: 0;
    padding: 1vmin;
    width: 18vmin;
    border-left: 1px solid #000;
    border-bottom: 1px solid #000;
    transition: 0.5s;
    position: relative;
}

.more a {
    margin: 0;
    padding: 0;
    font-size: 2.3vmin;
    font-weight: lighter;
    white-space: nowrap;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: rgb(0, 0, 0);
}

.more::before {
    content: "";
    display: block;
    width: 1px;
    height: 2vmin;
    position: absolute;
    border-left: #000 solid 1px;
    right: 0;
    bottom: 0;
    transform: translate(-0.4vmin, 0.4vmin) rotateZ(-45deg);
}

.more::after {
    content: "";
    display: block;
    width: 1px;
    height: 2vmin;
    position: absolute;
    border-left: #000 solid 1px;
    right: 0;
    bottom: 0;
    transform: translate(-0.4vmin, 1.8vmin) rotateZ(45deg);
}

.more:hover {
    width: 15vmin;
}

h2 {
    position: relative;
    width: 70%;
    border-bottom: solid #4b4b4b 1px;
    margin: 0;
    padding: 0;
    margin-top: 2vmin;
    margin-bottom: 4vmin;
}

h2 p {
    margin: 0;
    font-size: 6vmin;
    margin-left: 2vmin;
    font-weight: normal;
    color: #4b4b4b;
}


section:has(.news) {
    background: none;
}

.section:has(.news) h2 {
    width: 70%;
}

.news {
    width: 70%;
    position: relative;
}

.news-contents {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.news-item {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 0;
    padding: 0;
    text-decoration: none;
    background-color: #f5f5f5;
}

.news-item:nth-child(2n) {
    background-color: transparent;
}

.news-item-title {
    font-size: 1.8vmin;
    color: #1d1d1d;
    margin: 0;
    padding: 2vmin 2vmin 2vmin 5vmin;
}

.news-date {
    font-size: 1.8vmin;
    color: #5c5c5c;
    text-align: right;
    margin: 2vmin 2vmin 2vmin 2vmin;
}

.works {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.works .more-wrp {
    width: 80%;
    margin-top: 0;
}

.works .more-wrp.works-video-more {
    margin-bottom: 10vmin;
}

h3 {
    width: 70%;
    font-size: 8vmin;
    color: #b6b6b6;
    margin: 0;
    padding: 0;
}

.works-contents {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4%;
}

.work {
    width: 25%;
    height: 20vw;
    margin: 1%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    box-shadow: #6d6d6d 8px 8px 8px;
    overflow: hidden;
}

.thumbnail img:hover {
    transform: scale(1.1);
}

.thumbnail img {
    width: 100%;
    height: auto;
    transition: 0.5s;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.work img {
    cursor: url(/images/viewcontent.png), default;
}

.work-info {
    width: 100%;
}

.work-info p:nth-child(1) {
    max-height: 10vw;
    font-size: 1.5rem;
    color: #2b2b2b;
    margin: 0.8vmin 0 0.5vmin 0;
    font-weight: bolder;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-info p:nth-child(2) {
    font-size: 1.2rem;
    color: #5a5a5a;
    margin: 0 0 0.8vmin 0;
}

@media screen and (max-width:768px) {
    #top {
        top: 50px;
    }
    #cpro-logo {
        bottom: 5vh;
        left: 2vw;
        width: 70%;
    }
    h2 {
        width: 95%;
    }
    h2 p {
        margin: 0;
        font-size: 7vmin;
        margin-left: 2vmin;
        font-weight: normal;
        color: #4b4b4b;
    }
    .more a {
        font-size: 3vmin;
    }
    section:has(.about) {
        height: 45vh;
        padding: 10vmin 0;
    }
    .about {
        width: 100%;
    }
    .about-bg {
        top: 10%;
        right: -30%;
        width: 100%;
    }
    .about p:nth-child(1) {
        font-size: 7vw;
    }
    .about p:nth-child(2) {
        font-size: 3vw;
    }
    .section:has(.news) h2 {
        width: 100%;
    }
    .news {
        width: 95%;
        position: relative;
    }
    .news-date {
        font-size: 3.3vmin;
        margin: 3vmin;
    }
    .news-item-title {
        font-size: 3.3vmin;
        padding: 3vmin 3vmin 3vmin 5vmin;
    }
    .works-contents {
        width: 100%;
    }
    h3 {
        width: 91%;
        font-size: 10vmin;
    }
    .work {
        width: 90%;
        margin: 2vmin 0;
        height: auto;
    }
    .work-info p:nth-child(1) {
        max-height: none;
        font-size: 4vmin;
        margin: 2vmin 0 1vmin 0;
    }

    .work-info p:nth-child(2) {
        font-size: 3vmin;
        margin: 0 0 1vmin 0;
    }
    .thumbnail {
        height: auto;
        width: 100%;
    }
}