/* mv ---------------------------------*/

.next-mv {
    position: relative;
}

.next-mv img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.mv-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mv-inner img {
    width: 30%;
    height: 100%;
}

.mv-jinasano {
    margin-left: 3%;
}

.mv-portfolio {
    margin-right: 10%;
}

/* mvスクロールガイド -------------------*/

/*スクロールダウン全体の場所*/
.scrolldown1 {
    /*描画位置※位置は適宜調整してください*/
    position: absolute;
    left: 50%;
    bottom: 10px;
    /*全体の高さ*/
    height: 50px;
}

/*Scrollテキストの描写*/
.scrolldown1 span {
    /*描画位置*/
    position: absolute;
    left: -25px;
    top: -25px;
    /*テキストの形状*/
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0.2em;
}

/* 線の描写 */
.scrolldown1::after {
    content: "";
    /*描画位置*/
    position: absolute;
    top: 0;
    /*線の形状*/
    width: 1px;
    height: 30px;
    background: #ffffff;
    /*線の動き1.4秒かけて動く。永遠にループ*/
    animation: pathmove 1.4s ease-in-out infinite;
    opacity: 0;
}

/*高さ・位置・透過が変化して線が上から下に動く*/
@keyframes pathmove {
    0% {
        height: 0;
        top: 0;
        opacity: 0;
    }

    30% {
        height: 30px;
        opacity: 1;
    }

    100% {
        height: 0;
        top: 50px;
        opacity: 0;
    }
}

/* タイピングアニメーション ------------------------*/

.TextTyping-1,
.TextTyping-2 {
    color: #ffffff;
    max-width: 600px;
    /* 最大幅を指定 */
    font-size: clamp(14px, 7vw, 400px);
    /* 最小14px, 最大24pxで可変 */
}

.TextTyping-1 span {
    display: none;
}

.TextTyping-2 span {
    display: none;
}

@keyframes typinganime {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* work-grid-animetion -----------------------------*/

/* メインビジュアル全体 */
.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 3x3 の統一グリッド */
    grid-template-rows: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
    height: 100vh;
}

.grid-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 縦横比を維持しつつ枠内に収める */
    position: absolute;
    top: 0;
    left: 0;
}

/* フェードイン・フェードアウト */
.fade-in {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.fade-out {
    opacity: 1;
    animation: fadeOut 2s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ABOUT ------------------------------*/

.home-about-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 15%;
}

.home-about-name {
    margin-bottom: 1rem;
}

.home-about-rubi {
    font-size: 0.8rem;
}

.home-about-inner-name {
    font-size: 1.2rem;
}

.home-about-inner img {
    display: block;
    width: 60%;
    margin-left: auto;
}

.home-about-sentence {
    margin-right: 1rem;
}

.home-about-sentence p {
    margin-bottom: 1rem;
}

.home-about-icon {
    display: flex;
    justify-content: space-around;
    margin-right: auto;
    margin-left: auto;
    width: 100px;
    margin-top: 2rem;
}

.home-about-icon img {
    display: block;
    max-width: 25px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

/* NEWS -------------------------------------*/

#news {
    display: block;
    max-width: 500px;
    width: 30%;
    margin: 0 auto;
    margin-bottom: 9.375rem;
}

.news {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.news td {
    padding-bottom: 2rem;
    padding-top: 2rem;
    padding-left: 1rem;
    font-size: 1rem;
    text-align: right;
    color: #686868;
}

.news th {
    font-size: 1rem;
    font-weight: normal;
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: left;
}

.news-inner {
    border-bottom: 1px solid #686868;
}