#project {
    background-color: var(--ColorII);
}
#project h2 {
    font-family: var(--FontI);
    font-size: 70px;
    border-bottom: #fff solid 2px;
}
#project h3 {
    font-family: var(--FontII);
    font-size: 40px;
    color: #fff;
    border-bottom: #fff solid 2px;
}
#project .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#project .wrapper {
    margin: 50px;
    border-radius: 30px;
    max-width: 1700px;
    filter: drop-shadow(4px 4px 6px rgba(255, 255, 255, 0.5));
}
#project .wrapper:nth-of-type(1) {
    background-color: rgba(255, 107, 107, 0.6);
}
#project .wrapper:nth-of-type(2) {
    background-color: rgba(255, 213, 59, 0.6);
}
#project .wrapper:nth-of-type(3) {
    background-color: rgba(107, 203, 119, 0.6);
}
#project .wrapper:nth-of-type(4) {
    background-color: rgba(77, 150, 255, 0.6);
}
#project dt {
    display: flex;
    flex-direction: column;
}
#project .con {
    display: flex;
    justify-content: space-between;
    text-align: left;
    margin: 0 10px;
}
#project .mainvisual {
    position: relative;
    flex-shrink: 0;
    width: 420px;
    height: 300px;
    border-radius: 10px;
}
#project li {
    position: absolute;
    right: 0;
    opacity: 0;
    animation: fade 9s infinite;
}
#project li:nth-child(1) {
    animation-delay: 0s;
}
#project li:nth-child(2) {
    animation-delay: 3s;
}
#project li:nth-child(3) {
    animation-delay: 6s;
}
@keyframes fade {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}
#project img {
    max-width: 400px;
    margin: 20px 20px 0 0;
    border-radius: 20px;
    object-fit: cover;
}
#project dt .dt-text {
    cursor: pointer;
}
#project span {
    color: #fff;
    font-size: 25px;
}
#project dd {
    max-height: 0;
    padding: 20px 20px 0 20px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: max-height 0.6s ease;
    text-align: left;
}
#project .emphasis {
    border-bottom: #fff solid 2px;
}
@media screen and (max-width: 1024px) {
    #project .con {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #project .dt-text {
        margin-top: 20px;
    }
}
@media screen and (max-width: 767px) {
    #project img {
        margin: 20px 0 0 0;
        max-width: 300px;
    }
    #project .mainvisual {
        width: 300px;
        height: 220px;
    }
    #project h2 {
        font-size: 60px;
    }
    #project .wrapper {
        margin: 30px 5%;
    }
    #project h3 {
        font-size: 30px;
        padding-bottom: 5px;
        margin-bottom: 10px;
    }
    #project span {
        font-size: 20px;
    }
}