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

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

/* 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
   ========================================================================== */
.p-about {
    position: relative;
}

.p-profile {
    overflow: hidden;
}

.p-profile-card {
    width: 76svw;
    margin: 20svh auto;
    position: relative;
    padding: 10% 14%;
    rotate: -4deg;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    border-radius: 36px;
    border: 12px solid var(--color-Primary);
    background-color: var(--color-bg-main);
}

.p-profile-card::before {
    content: "";
    position: absolute;
    /* 画面に固定 */
    bottom: 0;
    /* 動かした時に端が見えないよう、画面より大きく作る */
    right: -10%;
    width: 26%;
    aspect-ratio: 1/1;
    z-index: 5;
    /* 常に一番手前に配置 */
    pointer-events: none;
    background-image: url('../../images/common/baku-smile-line.svg');
    background-repeat: no-repeat;
}

.p-profile-card__text {
    width: 50%;
}

.p-profile-card__name-container {
    font-size: var(--font-size-Heading-R);
    margin-bottom: 1em;
}

.p-profile-card__label {
    font-family: var(--En-font);
    font-size: var(--font-size-Text-XL);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--color-Primary);
}

.p-profile-card__name {
    position: relative;
    font-family: var(--Jp-font);
    font-size: var(--font-size-Heading-L);
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--color-NUMATA-Green);
}

.p-profile-card__name::before {
    content: "";
    display: inline-block;
    font-size: var(--font-size-Heading-R);
    margin-right: .5em;
    width: 1.5em;
    height: 1em;
    background-image: url(../../images/common/logo-symbol.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.p-profile-card__lead {
    font-family: var(--Jp-font);
    font-size: var(--font-size-Text-M);
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 2;
    width: 18em;
    color: var(--color-Primary);
    margin-bottom: 1.5em;
}

.p-profile-card__copy {
    font-family: var(--Jp-font);
    font-size: var(--font-size-Text-R);
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 2;
    color: var(--color-Primary);
    margin-bottom: 1.5em;
}

.p-profile-card__image {
    width: 50%;
    display: flex;
    justify-content: center;
    /* 水平方向にセンターに配置 */
    align-items: center;
}

.p-profile-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-desk {
    width: 58svw;
    margin: 0 auto;
}

.p-desk__container {
    gap: 8%;
}

.p-desk__qanda-note {
    width: 50%;
    rotate: 14deg;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.2));
}

.p-desk__album {
    width: 100%;
    rotate: -12deg;
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.2));
}

@media screen and (max-width:1080px) {
    .p-about {
        overflow: hidden;
    }

    .p-about__container {
        margin-bottom: 35svh;
    }

    .p-about__image {
        width: 42svw;
        position: absolute;
        bottom: -92%;
        right: -46%;
        translate: -50% -50%;
    }

    .p-profile-card {
        width: 102svw;
        top: 0;
        left: 50%;
        translate: -50% 0;
        padding: 10% 8%;
    }
}

@media screen and (max-width:767px) {

    .p-about .l-inner {
        padding: 0 25px;
    }

    .p-about__image {
        width: 45svw;
        right: -15%;
        bottom: -35%;
    }

    .p-desk {
        width: 100%;
        padding: 0 55px;
    }

    .p-profile-card {
        width: 120svw;
        padding: 10% 13%;
    }

    .p-profile-card__name {
        font-size: var(--font-size-Heading-R);

    }

    .p-profile-card__label {
        font-size: var(--font-size-Text-R);

    }

    .p-profile-card__lead {
        font-size: var(--font-size-Text-R);
    }

    .p-profile-card__copy {
        font-size: var(--font-size-Text-S);
    }

    .p-profile-card__image {
        width: 40%;
        height: 40%;
        aspect-ratio: 1 / 1;
        margin: auto 0;
    }

    .p-profile-card::before {
        right: -2%;
    }
}