* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "M PLUS Rounded 1c";
}

/*↓ここから↓*/
/*以降のfont-sizeをrem表記に変更*/
html{
    font-size: 100%;/* 16px */
}

img{
    max-width: 70%;
    height: auto;
}
/*↑ここまで↑*/


span {
    color: lightsteelblue;
}

.hero {
    /*height: 100vh;*/
    padding-bottom: 300px;
    width: 100%;
    background-color: #000000;
}

nav {
    /*max-width: 1500px;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 8% 0 8%;
}

.logo {
    color: white;
    font-size: 1.8rem;/*htmlのフォントサイズ16pxの1.8倍という意味*/
    letter-spacing: 1px;
    cursor: pointer;
}

nav ul li{
    display: inline-block;
    padding: 10px 25px;
}

nav ul li a{
    color: lightslategray;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.6s;
}

nav ul li a:hover{
    color: white;
}

.btn{
    background-color: lightslategray;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.5s;
}

.btn:hover{
    transform: scale(1.2);
    border-radius:20px;
}

.content{
    padding-top: 230px;
}

.content .body{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-right: 20%;
    padding-left: 20%;
    /*
    padding-right: 50px;
    padding-left: 270px;
    */
}

#a{
    display: none;
}

#b {
    /*
    width: 1080px;
    height: 720px;
    margin-top: 0px;
    */
    padding-left: 10%;
    width: 1000px;
    margin-top: 0px;
}

h1 {
    color: white;
    margin: 20px 0 20px;
    font-size: 4.68rem;
    /*font-size: 75px;*/
}

.title{
    text-align: center;
    width: 100%;
    padding: 20px;
}

img{
    max-width: 40%;
    height: auto;
}

.title h2 {
    color: white;
    /*font-size: 40px;*/
    font-size: 2.0rem;
    /*font-size: 75px;*/
    margin: 30px auto;
}

h3 {
    color: white;
    font-size: 1.56rem;
    /*font-size: 25px; */
    margin-bottom: 50px;
    text-align: center;
}

h4 {
    max-width: 1000px;
    color: white;
    letter-spacing: 2px;
    font-size: 1.25rem;
    /*font-size: 20px;*/
    text-align: left;
    margin: 0px auto;
}

.newslatter form{
    width: 380px;
    position: relative;
}

.newslatter form input:first-child{
    width: 100%;
    padding: 15px 130px 15px 15px;
    outline: none;
    border: 2px solid lightblue;
    border-radius: 30px;
}

.newslatter form input:last-child{
    position: absolute;
    border: none;
    top: 5px;
    right: 6px;
    padding: 10px 30px;
    background-color: lightslategray;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    box-shadow: 1px 1px 10px black;
}

.about {
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
    /*
    padding-right: 20%;
    padding-left: 20%;
    padding: 100px 0;
    */

    background-color: black;
}

.about img {
    width: 430px;
    max-width: 100%;
    height: auto;
}

.about-text{
    width: 550px;

}

.main {
    width: 1130px;
    max-width: 100%;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: space-around;
}

.about-text h2 {
    color: white;
    font-size: 4.68rem;
    /*font-size: 75px;*/
    margin-bottom: 20px;
}

.about-text h5 {
    color: white;
    letter-spacing: 1px;
    font-size: 1.37rem;
    /*font-size: 22px;*/
    margin-bottom: 25px;
}

.about-text p {
    color: white;
    letter-spacing: 1px;
    line-height: 30px;
    margin-bottom: 45px;
    font-size: 0.93rem;
    /*font-size: 15px;*/
}

button {
    background-color: lightslategray;
    padding: 13px 30px;
    color: white;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.6s;

}

button:hover{
    background-color: transparent;
    border: 2px solid lightblue;
    cursor: pointer;
}

.portfolio {
    background-color: #191919;
    width: 100%;
    padding: 100px 0;
}



.box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.card {
    height: 440px;
    width: 365px;
    background-color: black;
    padding: 20px 35px;
    margin: 20px;
    border-radius:  20px;
    overflow: hidden;
    text-align: center;
}

.card img {
    width: 100px;
    margin: 25px 0;
}

h5 {
    color: white;
    font-size: 1.43rem;
    /*font-size: 23px;*/
    margin-bottom: 30px;
}

.pragraph p {
    color: white;
    font-size: 1rem;
    /*font-size: 16px;*/
    line-height: 25px;
    margin-bottom: 30px;
}

.card .button{
    background-color: lightslategray;
    padding: 13px 30px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.6s;
}

.card .button:hover{
    background-color: transparent;
    border: 2px solid lightblue;
    cursor: pointer;
}

.contact {
    width: 100%;
    height: 290px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
}

.contact p {
    color: white;
    font-size: 1.87rem;
    /*font-size: 30px;*/
    font-weight: bold;
    margin-bottom: 25px;
}

.contact .contact-button{
    background-color: lightslategray;
    padding: 13px 30px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.6s;
}

.contact .contact-button:hover{
    background-color: transparent;
    border: 2px solid lightblue;
    cursor: pointer;
}

footer {
    width: 100%;
    height: 400px;
    background-color: #191919;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer p:nth-child(1){
    font-size: 1.87rem;
    /*font-size: 30px;*/
    color: white;
    margin-bottom: 20px;
    font-weight: bold;
}

footer p:nth-child(2) {
    color:white;
    font-size: 1.06rem;
    /*font-size:17px;*/
    width: 500px;
    text-align: center;
}

.social {
    display: flex;
}

.social a{
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: lightslategray;
    font-size: 1.25rem;
    /*font-size: 20px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin: 22px 10px;
    color: white;
    transition: all 0.5s;

}

.social a:hover{
    transform: scale(1.3);
}

footer img {
    width: 26px;
    margin: 25px 0;
}

.end {
    color: white;
    margin-top: 100px;
    font-size: 1rem;
    /*font-size: 16px;*/
}

/*sp*/
@media screen and (max-width: 1100px) { 
    html{
        font-size: 70%;
    }
    body{
        background-color: rgb(0, 0, 0);
    }
    nav {
        flex-direction: column;
        height: auto;
        line-height: 40px;
        margin-top: 20px;
        padding: 10px;
    }

    .content .body {
        margin-top: -100px;
        display: block;
        justify-content: center;
        align-items: center; 
    }

    #a{
        display: flex;
        max-width: 100%;
        /*margin: 0 auto;*/
        width: 1000px;
        justify-content: center;
        align-items: center; 
        padding-bottom: 100px;
    }

    #b {
        display:none;
    }

    h1 {
        font-size: 3.68rem;
        /*font-size: 75px;*/
    }
    
    h3 {
        color: white;
        font-size: 1.2rem;
        /*font-size: 25px; */
        margin-bottom: 50px;
    }
    
    h4 {
        color: white;
        letter-spacing: 2px;
        font-size: 1.0rem;
        /*font-size: 20px;*/
    }

    .about img {
       display:none;
    }

    .about-text{
        width: 700px;
    }
    
    .main {
        margin-top: -300px;
        padding-right: 20%;
        padding-left: 20%;
    }
    
    .about-text h2 {
        font-size: 4rem;
    }
    
    .about-text h5 {
        font-size: 0.8rem;
    }
    
    .about-text p {
        font-size: 0.8rem;
    }

    .portfolio {
        align-items: center;
        justify-content: center;
        padding-right: 10%;
        padding-left: 10%;

    }

    .box {
        display: block;
        margin: auto;

    }

    .card{
        height: 350px;
        width: 305px;
        display: block;
        margin: auto;
        margin-bottom: 10px;
    }
    
    .card img {
        width: 80px;
        margin: 15px 0;
    }
    .contact p {
        font-size: 1.4rem;
        padding-left: 10%;
        padding-right: 10%;
    }
}