/* ==========================================================================
   bg
   ========================================================================== */

body {
    background-color: var(--color-bg-main);
}

/* 2. 動くノイズの層（オーバーレイ）を作る */
body::before {
    content: "";
    position: fixed;
    /* 画面に固定 */
    top: -100px;
    /* 動かした時に端が見えないよう、画面より大きく作る */
    left: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    z-index: 0;
    /* 常に一番手前に配置 */
    pointer-events: none;
    /* 重要：下のボタンやリンクをクリックできるようにする */

    /* 用意した1枚のノイズ画像を敷き詰める */
    background-image: url('../../images/common/noise.webp');
    background-repeat: repeat;

    /* 濃さの調整（0.03〜0.08くらいが最もプロっぽく見えます） */
    opacity: 0.16;

    /* アニメーションの指定 */
    animation: noise-jump 2s steps(2) infinite;
}

/* 3. ノイズをガクガク動かすアニメーション */
@keyframes noise-jump {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, -10px);
    }
}

/* ==========================================================================
   Projects / news
   ========================================================================== */
.p-news {
    width: 58svw;
    margin: var(--section-margin) auto;
}

@media screen and (max-width: 1080px) {
    .p-news {
        width: 80%;
        margin: var(--section-margin) auto;
    }
}

@media screen and (max-width:767px) {
    .p-news {
        width: 100%;
        padding: 0 44px;
        margin: var(--section-margin) auto;
        margin-top: 8svh;
    }

}

.p-news__list {
    flex-basis: 60%;
}

.p-news__item {
    position: relative;
    border-top: 2px solid var(--color-border);
}

.p-news__list .p-news__item:last-of-type {
    border-bottom: 2px solid var(--color-border);
}

.p-news__link {
    display: flex;
    padding: 4em 1.5em;
}

.p-news__new {
    font-size: var(--font-size-Text-S);
    position: absolute;
    top: -2.2em;
    left: -3.7em;
    width: 6.5em;
    height: 6.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--En-font);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
    background-color: var(--color-bg-tertiary);
    color: var(--color-Primary);
}

.p-news__date {
    display: block;
    font-family: var(--En-font);
    font-size: var(--font-size-Text-R);
    font-weight: 500;
    letter-spacing: .15em;
    line-height: 1.75;
    white-space: nowrap;
    color: var(--color-Primary);
    margin-right: 2em;
    transition: all .4s ease;
}

.p-news__title {
    display: block;
    font-size: var(--font-size-Text-R);
    font-weight: 500;
    letter-spacing: .15em;
    line-height: 1.65;
    white-space: nowrap;
    color: var(--color-Primary);
    text-wrap: wrap;
    transition: all .4s ease;
}

.p-news__item:hover .p-news__title,
.p-news__item:active .p-news__title,
.p-news__item:hover .p-news__date,
.p-news__item:hover .p-news__date {
    opacity: .5;
}

@media screen and (max-width:767px) {
    .p-news__link {
        display: flex;
        padding: 2em .5em;
    }
}