/* ====================
    Worksページ固有スタイル
==================== */

/* ====================
    コンセプトセクション
==================== */
.works-concept.section {
    background-color: var(--background-keycolor);
}

.works-concept__container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 80px;
}

.works-concept__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.works__items {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.works-item {
    width: 310px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.works-item__title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.works-item__description {
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.03em;
}

.works-item__image {
    width: 310px;
    height: 171px;
    background-color: #C7C7CC;
    object-fit: cover;
}

/* アニメーション設定 */
.works-concept__container .section-subtitle {
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    /* 子要素がはみ出さないように設定 */
    display: inline-block;
    /* 擬似要素を正確に配置するために必要 */
    color: transparent;
    /* 文字を非表示に */
    -webkit-text-stroke: 1px #00a69d;
    /* 文字の縁を表示 */
    letter-spacing: 0.1em;
}

.works-concept__container .section-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00a69d 0%, #0062ff 70%, #1d2b53 100%);
    z-index: 1;
    animation: reveal-bg 2s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

.works-concept__container .section-subtitle span {
    position: relative;
    z-index: 2;
    animation: reveal-text 2s cubic-bezier(0.8, 0, 0.2, 1) 0.5s forwards;
    opacity: 0;
}

@keyframes reveal-bg {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
        height: 100%;
        /* 高さを100%に維持 */
    }

    100% {
        width: 100%;
        left: 0;
        height: 3px;
        /* 高さを3pxに */
        top: calc(100% - 3px)
    }
}

@keyframes reveal-text {
    0% {
        opacity: 0;
    }

    100% {
        color: #1d2b53;
        opacity: 1;
        -webkit-text-stroke: 0;
        /* 縁取りを無効にする */
    }
}