@charset "uft-8";

/* works-portfolio */
.top__group {
    background-color: var(--green);
    height: 154px;
}

.top__topic {
    max-width: 768px;
    padding: 51px var(--content-padding);
}

.top__title {
    font-family: var(--sub-font);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.top__lead {
    font-size: 1.2rem;
    line-height: 1.2; 
}

.works__wrapper {
    padding: 0 var(--content-padding);
}

.works__group {
    padding-top: 72px;
}

.works__heading {
    font-size: 2.4rem;
    font-weight: 700;
}

.works__date {
    margin-top: 8px;
}

.works__type {
    font-size: 1.3rem;
}

.works__link {
    display: block;
    font-family: var(--sub-font);
    font-size: 1.3rem;
    margin-top: 4px;
}

.works__mockup {
    margin-top: 24px;
}

.works__description {
    margin-top: 32px;
    font-size: 1.5rem;
    line-height: 2;
}

.works__list {
    margin: 80px 0 56px;
}

.works__head {
    font-weight: 700;
}

.works__body {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-top: 20px;
}

.works__item:not(:last-of-type) {
    margin-bottom: 48px;
}

.works__thumbnail {
    margin-top: 32px;
    display: block;
}

.color__list {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.color__item {
    max-width: 50px;
    width: calc((100% - 24px) / 4);
}

.color__item:first-of-type {
    border: 1px solid #D4D4D4;
}

.works__design-conmp {
    margin: 104px 0 56px;
}

.works__design-conmp__sp {
    margin-top: 56px;
}

/* works__heading,other-works__mockup js-fade */
.js-fade {
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: opacity 1s,visibility 1s, transform 1s;
}

.inview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
}

/* works-portfolio pc */
@media screen and (min-width: 768px) {
    .top__group {
        height: 150px;
    }

    .top__topic {
        max-width: 1080px;
        padding: 32px 12.5%;
    }

    .top__title {
        font-size: 5.6rem;
    }

    .top__lead {
        font-size: 1.6rem;
    }

    .works__wrapper {
        padding: 0 12.5%;
    }

    .works__group {
        padding-top: 80px;
        max-width: 1080px;
        margin: 0 auto;
    }

    .works__heading {
        font-size: 4rem;
    }

    .works__date {
        margin-top: 12px;
    }

    .works__type {
        font-size: 1.6rem;
    }

    .works__link {
        font-size: 1.6rem;
        margin-top: 8px;
    }

    .works__mockup {
        margin-top: 56px;
        margin-inline: auto;
        width: 74%;
    }

    .works__description {
        margin-top: 56px;
        font-size: 1.6rem;
        max-width: 800px;
        margin-inline: auto;
    }

    .works__list {
        margin: 104px 0 0;
    }

    .works__item {
        display: flex;
        justify-content: space-between;
    }

    .works__body {
        font-size: 1.6rem;
        line-height: 2;
        margin-top: 0;
        width: 78.8%;
    }

    .works__item:not(:last-of-type) {
        margin-bottom: 72px;
    }

    .works__thumbnail {
        margin-top: 48px;
        display: block;
    }

    .color__list {
        gap: 24px 20px;
    }

    .color__item {
        max-width: 125px;
        width: calc((100% - 20px) / 6);
    }

    .works__design-conmp {
        display: flex;
        justify-content: center;
        gap: 56px;
        max-width: 1080px;
        margin: 120px auto 0;
    }

    .works__design-conmp__sp {
        margin-top: 0;
    }
}/* 768px pc */

@media screen and (min-width: 1440px) {
    .top__topic {
        padding: 32px 0;
        margin: 0 auto;
    }
}

/* other-works */
.other-works {
    padding: 80px var(--content-padding) 120px;
}

.other-works__list {
    margin-top: 56px;
}

.other-works__item-link {
    display: flex;
    flex-direction: column;
}

.other-works__mockup {
    order: -1;
    overflow: hidden;
}

.other-works__mockup img {
    transition: 0.3s all ease;
}

.other-works__mockup img:hover {
    transform: scale(1.1);
}

.other-works__item:not(:last-of-type) {
    margin-bottom: 64px;
}

.other-works__sub-title {
    align-items: baseline;
    margin-top: 6px;
}

.other-works__kinds {
    font-family: var(--sub-font);
    font-size: 1.2rem;
    margin-right: 6px;
}

.other-works__type {
    font-size: 1.2rem;
}

.works__detail {
    font-family: var(--sub-font);
    font-size: 1.2rem;
}

.other-works__sub-title {
    display: flex;
    justify-content: space-between;
}

.other-works__name {
    font-weight: 700;
    margin-top: 6px;
}

/* other-works pc */
@media screen and (min-width: 768px) {
    .other-works {
        padding: 120px 12.5%;
    }

    .other-works__group {
        max-width: 1080px;
        margin: 0 auto;
    }

    .other-works__list {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
         gap: 40px 36px;
    }

    .other-works__item {
        width: calc((100% - 36px) / 3);
        max-width: 336px;
    }

    .other-works__item:not(:last-of-type) {
        margin-bottom: 0;
    }
}/* 768px pc */


