*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "M PLUS Rounded 1c";
}

html {
    scroll-behavior: smooth;
}


.header {
    background: #191919;
    padding: 1rem 1rem;
    position:flex;
    width: 100%;
    z-index: 1;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 8% 0 8%;
}


.logo{
    color: white;
    font-size: 35px;
    letter-spacing: 1px;    /*文字の間隔*/
    cursor: pointer;    /*カーソルがポインタに*/
}

span{
    color: lightgreen;
}

nav ul li {
    display:inline-block;   /*ブロック要素(たて)⇒インライン要素(よこ)へ*/
    padding: 10px 25px;
}

nav ul li a{
    color: white;
    text-decoration: none;
    font-weight: bold;      /*太さ*/
    transition: all 0.4s;
}

nav ul li a:hover {
    color:lightgreen;   /*カーソル当て、色変化*/
}

.btn{
    background-color: lightgreen;
    /* color: white; */
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s;
}
.btn:hover{
    transform: scale(1.2);
    border-radius: 20px;
}


/*-------------------------------- 
ここからportfilio-start ----------*/


.portfolio-start {
    min-height:700px;

}

.port-img {
    max-width: 100%;

}
.port-h1box{
    padding: 13px 30px;
}

.port-h1 {
    text-align: center;
    background-color: lightgreen;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.5s;
}
.port-h1:hover {
    background-color: transparent;  /*透明に！*/
    background: linear-gradient(to right,#e60000,#f39800,#fff100,#009944,#0068b7,#1d2088,#920783);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent ;
    cursor: pointer;
    border: 2px solid green;
}

.grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:26px;
    margin-top:6%;
    margin-bottom:50px;

}
.grid .item {
    background-color:grey;
    border-radius: 30px;
    
}

.grid .item img{
    /* height: 200px; */
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    display: block;
    border-radius: 30px 30px 0 0;
    transition: all 0.4s;
}
.grid .item img:hover{
    transform: scale(1.3);
}
.img-text {
    /* padding:20px; */
    color:white;
}

.grid p {
    padding:15px ;
}

.grid .button  {
    background-color: lightgreen;
    padding: 13px 30px;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s;
}

.grid .button:hover {
    background-color: transparent;  /*透明に！*/
    color: white;
    cursor: pointer;
    border: 2px solid green;
}

.img-btn {

    margin-top: auto;
}


/*-------------------------------- 
 ここまでportfolio-end------------*/

footer {
    width:100%;
    height: 200px;
    background: grey;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
}


footer p:nth-child(1) {
    font-size: 30px;
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

footer p:nth-child(2) {
    color:white;
    font-size: 15px;
    width: 500px;
    text-align: center;
}

.social {
    display: flex;
}

.social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: lightgreen;
    align-items: center;
    justify-content: center;
    display: flex;
    text-decoration: none;
    margin: 20px 10px;
    transition: all 0.4s;
}

.social a:hover {
    transform: scale(1.3);
}

.footer-end{
    background-color: #191919;
    padding-top:15px;
}

.end {
    text-align:center;
    color: white;
    font-size: 13px;
    padding-bottom:15px;
}


/*------------------------------- 
モバイル版 
--------------------------------*/

@media (max-width: 600px) {
    .body{
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }
    .face{
        font-size:40px;
    }
    .portfolioInfo h3{
        font-size:18px;
    }

    .about{

        margin-top:70px 0;
        color:lightgreen;
    }

    .main {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .box {
        display:flex;
    flex-wrap: wrap;
    }

}