
html{
    object-fit: cover;
    color: #fff;
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
    
}

html li{
    list-style: none;
}

html a{
    text-decoration: none;
    color: #fff;
}

.background{
    background-image: url(images/bg1.png);
    background-size: cover;
    object-fit: cover;
}

.title__img img{
    max-width: 30%;
    margin-bottom: 50px;
}

.link__top {
    max-width: 1100px;
    margin: 0 auto;
    text-align: end;
    margin-bottom: 50px;
}

.link__top img{
    max-width: 20%;
}





/* header */

.header{
    background-color: black;
}

.header-top {
    position: fixed;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    background-color: black;
    z-index: 1000; 
}

.header p{
    color: #fff;
    font-size: 32px;
    font-weight: bold;
}

.header__wrapper{
    max-width: 1100px;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.menu{
    margin: 15px 0;
}

.menu ul{
    display: flex;
    margin: 0 auto;
    gap: 60px;
}

.menu li:hover img{
    transform: rotate(0deg);
}

.header__link img{
    width: 150px;
    transform: rotate(-10deg);
    padding-top: 10px;
    transition: .3s;
    z-index: 1;
}

.header__link {
    position: relative;
    display: inline-block;
}

.menu__bg{
    position: absolute;
    top: -220%; /* 上に大きく隠す */
    left: 50%; /* 画面の中央スタート */
    width: 150%; /* でかめにしてズレ防止 */
    height: 100%;
    background: red;
    transform: translate(-50%, 0) rotate(-45deg); /* 右上から左下へ！ */
    transition: transform 0.6s ease, top 0.6s ease;
    z-index: 0;
}

.header__link:hover .menu__bg {
    top: -40px; /* 落とす */
    transform: translate(-50%, 0) rotate(-45deg); /* 角度はそのまま、位置だけ落ちる */
}



.hamburger-menu{
    display: none;
}





/* hero */

.hero{
    background-image: url(images/hero_bg.png);
    background-size: cover;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    bottom:-87px; /* 少しはみ出す */
    left: 0;
    width: 100%; /* 画面いっぱい広げる！ */
    height: auto;
    aspect-ratio: 2000 / 250; /* ←画像の横縦比を書いて自然な比率を保つ */
    background: url(images/line.png) no-repeat center/cover;
    pointer-events: none;
}

.hero__wrapper{
    max-width: 1100px;
    margin: 0 auto;
}

.hero__wrapper img{
max-width: 100%;
margin: 100px 0;
}




/* profile */

.profile{
    padding: 100px 0;
}


.profile__wrapper{
    max-width: 1100px;
    margin: 0 auto;
}


.profile__inner{
    display: flex;
}

.profile__content {
    display: flex;
    justify-content: space-between;
}


.profile__img {
    max-width: 30%;
}

.profile__talk{
    max-width: 70%;
}

.profile__talk-sp{
    display: none;
}


.profile__info{
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    width: 69%;
    font-size: 0.9rem;
    font-weight: bold;
    background-image: url(images/Talk_bg.png);
    background-size: cover;
    padding: 56px 60px 56px 216px;
}

.profile__info span{
    line-height: 32px;
}

.profile__more{
    text-align: end;
    display: block;
}

.profile__more img{
    max-width: 25%;
}




/* works */

.works{
    padding: 20px 0;
    margin: 30px 0;
}

.works__wrapper{
    max-width: 1100px;
    margin: 0 auto;
    
}

.works__list{
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.works__inner{
    transition: 0.8s ease-in-out;
    transform: translateY(30px);
    opacity: 0;
}

.works__inner.on{
    transform: translateY(0);
    opacity: 1.0;
}

.works__item{
    width: 100%;
    background-color: black;
    padding: 20px;
    transition-duration: .4s
}

.works__item:hover{
    transform: scale(1.1);
}

.works .title__img{
    text-align:right
}

.__left{
    border: solid 5px #C90000;
    rotate: 6deg;
}

.__center{
    border: solid 5px #FFF;
    rotate: -4deg;
}

.__right{
    border: solid 5px #C90000;
    rotate: 4deg;
}

.works__thumbnail{
    width: 100%;
    background-color: #333333;
    margin-bottom: 15px
}

.works__thumbnail img{
    max-width: 100%;
}

.works__more{
    text-align: end;
    display: block;
}

.works__more img{
    margin-top: 50px;
    max-width: 25%;
}




/* skill */

.skill{
    padding: 80px 0;
}

.skill__wrapper{
    max-width: 1100px;
    margin: 0 auto;
}

.skill__inner{
    max-width: 900px;
    margin: 0 auto;
}

.skill__inner ul{
    gap: 20px;
    justify-content: space-between;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.skill__inner img{
    max-width: 25%;
}

.skill__inner li{
    padding: 20px;
    background-color: #FFF;
    border: 5px solid #000;
}

.skill__info{
    display: flex;
    color: #000;
    font-weight: bold;
    font-size: 24px;
    justify-content: space-between;
}

.skill__info p{
    padding: 20px 90px 0 0;
}

.skill-bar {
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.skill-bar p{
    margin-top: 15px;
}

.bar {
    margin-top: 40px;
    position: relative;
    width: 100%;
    height: 10px;
    background: #bcbcbc;
    border-radius: 5px;
}

.progress{
    position: relative;
    height: 100%;
    background: #000;
    border-radius: 5px;
    transition: width 1s ease;
}

.__html{
    width: 80%;
}

.__js{
    width: 50%;
}

.__wp{
    width: 40%;
}

.__php{
    width: 40%;
}

.percent {
    position: absolute;
    right: -15px;
    top: -25px; 
    color: #000;
    font-size: 14px;
    font-weight: bold;
}


.acquire{
    opacity: 0.8;
}

.acquire__text{
    color: #000;
    font-weight: bold;
}



/* contact */

.contact{
    padding: 80px 0;
}

.contact__wrapper{
    max-width: 1100px;
    margin: 0 auto;
}

.contact__list{
    text-align: center;
    font-size: 48px;
}

.contact .title__img{
    text-align:right
}



/* footer */

footer{
    background-color: #fff;
    padding: 20px 0;

}

.footer__wrapper{
    max-width: 1100px;
    margin: auto;
    color: black;

}

.footer p{
    display: block;
    text-align: center;
}



/* profile page */

.profile-page{
    background-image: url(/images/profile-page_bg.png);
    background-size: cover;
}

.profile-page section{
    max-width: 1100px;
    margin: 0 auto;
}

.section__title{
    width: 30%;
}

.profile-page__wrapper{
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
}

.profile-page__full{
    width: 40%;
}

.profile-page__inner{
    background-image: url(/images/profile-page_text.png);
    background-size: cover;    
    width: 54%;
}

.profile-page__text{
    width: 67%;
    position: relative;
    top: 21%;
    left:23%;
}

.profile-page__text__img{
    display: none;
}

.profile-page__info{
    display: block;
    margin-bottom: 20px;
}


.profile-career__wrapper{
    margin: 150px 0; 
}

.profile-career__info{
    background-image: url(images/Vector\ 115.png);
}


.profile-career__info {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.career-item {
    position: relative;
    width: fit-content;
    max-width: 80%;
}

.career-item:nth-child(odd) {
    align-self: flex-start;
}

.career-item:nth-child(even) {
    align-self: flex-end;
}
.career-item p {
    background-repeat: no-repeat;
    font-size: 24px;
    display: inline-block;
}

.__1{
    background: url(images/profile-page_career_talk.png);
    background-repeat: no-repeat;
    background-size: 100%;
    padding: 26px 30px 46px 50px;
}

.__2{
    background: url(images/profile-page_career_talk02.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-size: 100%;
    padding: 26px 150px 46px 140px;
}

.__3{
    background: url(images/profile-page_career_talk03.png);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 32px 72px 48px 64px;
}

.__4{
    background: url(images/profile-page_career_talk04.png);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 76px 31px 60px 44px;
}


.__5{
    background: url(images/profile-page_career_talk05.png);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 64px 28px 42px 66px;
}




.hobby__images-list{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 8px;
}

.hobby__images img{
    max-width: 100%;
}

.hobby__text{
    margin: 40px;
    background-color: #000;
    color: #FFF;
    border: 5px solid #FFF;
    font-weight: bold;
    padding: 20px;
}


/* works page */

.works-page{
    background-image: url(images/profile-page_bg.png);
    background-size: cover;
}

.works-page__wrapper{
    margin: 0 auto;
    max-width: 1100px;
}

.works-page__list{
    margin: 100px 0;
}

.works__portfolio{
    border: 10px solid #fff;
    margin-bottom: 100px;
    background-color: #FFF;
    border-radius: 10px;
}

.works__portfolio img{
    max-width: 100%;
}

.works__portfolio p{
    background-color: #FFF;
    color: #000;
}

.works__portfolio span{
    color: #000;
}

.portfolio__inner{
    border: 5px solid #000;
}

.portfolio__link{
    color: #000;
    text-align: end;
    display: block;
    margin: 15px;
}

.portfolio__link a{
    background-color: #808080;
    padding: 10px 20px;
    border-radius: 5px;
}


.portfolio__info{
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-top: 10px;
}

.portfolio__title{
    margin-left: 50px;

}

.portfolio__tag{
    display: flex;
}

.portfolio__tag p{
    margin: 0 25px;
    background-color: #bcbcbc;
    padding: 5px 20px;
    border-radius: 5px;
}


.portfolio__text{
    margin: 20px 0 0 20px;
}



@media screen and (max-width: 959px) {

    .title__img img{
        max-width: 70%;
    }
    
    .header__wrapper{
        max-width: 90%;
    }

    .hero__wrapper img{
        max-width: 100%;
        margin: 100px 0;
        }
        

    /* hero */

    .hero{
        max-width: 100%;
        background-image: url(images/hero_bg_sp.png);
        background-size: 100%;
        height: 500px;
    }

    .hero::after{
        bottom: -20px;
    }




/* profile */

    .profile{
        max-width: 90%;
        margin: 0 auto;
        padding: 50px 0;
    }


    .profile__info{
        background-image: url(images/profile_talk_sp.png);
        background-size: 100%;
        width: 100%;
        padding: 124px 40px 28px 46px;
        top: 100%;
        left: 0;
        transform: none;
    }

    .profile__info span{
        line-height: 0;
        font-size: 3vw;
    }

    .profile__info a{
        mix-blend-mode: difference;
        display: block; 
        
    }

    .profile__content{
        display: block;
    }


    .profile__img {
        max-width: 50%;
    }

    .profile__talk{
        display: none;
    }

    .profile__talk-sp{
    display: block;
    max-width: 100%;
    }

    .profile__more img{
        max-width: 45%;
        margin-top: 50px;
    }


    /* works */


    .works__wrapper{
        max-width: 90%;
    }

    .works__list{
        flex-direction: column;
        width: 85%;
        margin: 0 auto;
    }

    .works__more img{
    max-width: 45%;
}


    /* skill */

    .skill__wrapper{
        max-width: 90%;
    }

    .skill__inner ul{
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(4, 1fr);
    }

    .skill__info p{
        padding: 20px 44px 0 0;
        text-align: start;
    }

    /* contact */

    .contact__wrapper{
        max-width: 90%;
        margin: 0 auto;
    }




    .menu{
        display: none;
    }



    /* profile-page */


    .profile-page section{
        max-width: 90%;
        margin: 0 auto;
    }

    .profile-page__inner{
    display: none;
    }

    .profile-page__full{
        width: 80%;
    }

    .profile-page__text__img{
        display: block;
        max-width: 100%;
    }

    .profile-page__wrapper{
        flex-direction: column-reverse;
        font-size: 10px;
    }



    .profile-career__info{
        background-image: url(images/Vector\ 121.png);
        background-size: 100%;
    }

    .career-item p{
        font-size: 12px;
        font-weight: bold;
    }

    .profile-career__wrapper {
        margin: 60px 0;
    }

    .__1{
        padding: 8px 18px 22px;
    }

    .__2{
        padding: 6px 54px 15px 50px;
        margin-top: 5%;
    }

    .__3{
        padding: 18px 28px 18px 30px;
        margin-top: 20%;
    }

    .__4{
        padding: 36px 18px 28px 14px;
    }

    .__5{
        padding: 35px 32px 20px 30px;
        margin-top: 22%;
    }

    .profile-page__info{
        display: none;
    }


    /* works page */

    .works-page__wrapper{
        max-width: 90%;
    }

    .works-page .link__top{
        max-width: 90%;
    }

    .link__top img{
        max-width: 35%;
    }

    .portfolio__tag{
        justify-content: center;
    }
    
    .portfolio__tag p{
        margin: 0px 8px;
        padding: 5px 15px;
    }

    .portfolio__info{
        display: block;
        text-align: center;
    }

    .works__portfolio p{
        padding-top: 5px;
        margin-left: 5px;
        text-align: center;
    }




}





.loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #808080;
    z-index: 9999;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s ease;
}

.loader .txt {
    font-size: 45px;
    font-weight: bold;
    color: black;
}







