@charset "UTF-8";

body{
    font-size: 100%;
    font-family: "Arial", "メイリオ", sans-serif;
    margin: 0 auto;
}

h1{
    display: inline-block;
    font-size: 200%;
    border-bottom: 1px solid #000000;
    padding-bottom: 0.1em;
    margin-bottom: 50px;
}
h2{
    font-size: 140%;
}
h3{
    font-size: 120%;
}

.flex{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

/* headerの設定 */
header{
    width: 100%;
}

#header_img{
    width: 100%;
    height: 600px;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: calc(50vw - 50%);
    padding-left: calc(50vw - 50%);
    object-fit: cover;
    object-position: left top;
}

main{
    text-align: center;
}

/* 円形カット */
.image_circle{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

/* contentの設定 */
.content{
    margin: 4% 0;
}
.content > div{
    justify-content: center;
}

/* aboutの設定 */
#about_me{
    display: grid;
    height: 150px;
    justify-content: center;
    grid-template-rows: 50px 100px;
    grid-template-columns: 120px 28rem;
}
#my_icon{
    align-self: center;
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
#my_name{
    font-size: 180%;
    text-align: left;
    align-self: center;
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    margin: 0px;
}
#my_description{
    text-align: left;
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    margin: 0px;
}

/* worksの設定 */
.works_container{
    width: 100%;
    margin-bottom: 50px;
}
.works_container > p{
    margin: 0px 5%;
}
.work_profile{
    display: grid;
    height: 200px;
    justify-content: center;
    grid-template-rows: 100px 100px;
    grid-template-columns: 240px 28rem;
    margin: 20px 0px;
}
.work_img{
    width: 200px;
    height: 200px;
    object-fit: cover;
    align-self: center;
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.work_title{
    text-align: left;
    align-self: center;
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    margin: 10px;
}
.work_description{
    text-align: left;
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    margin: 10px;
}

/* linksの設定 */
.link{
    width: 240px;
    padding: 10px;
}
.link img{
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* articlesの設定 */
.article{
    padding: 20px 10px;
}

/* footerの設定 */
footer > p{
    font-size: 50%;
    text-align: center;
    text-decoration-color: gray;
}

/* smartphone_view */
@media screen and (max-width: 600px){    
    /* header */
    #header{
        max-width: 100%;
    }
    #header_img{
        width: 100%;
        height: 300px;
    }

    #about_me{
        height: 300px;
        display: grid;
        grid-template-rows: 140px 2rem 1fr;
        grid-template-columns: 100%;
        justify-items: center;
        align-items: center;
    }
    #my_icon{
        grid-row: 1 / 1;
        grid-column: 1 / 1;
    }
    #my_name{
        font-size: 180%;
        grid-row: 2 / 2;
        grid-column: 1 / 1;
        margin: 0px;
    }
    #my_description{
        text-align: left;
        grid-row: 3 / 3;
        grid-column: 1 / 1;
        margin: 0px;
        padding: 0px 30px;
    }

    /* works */
    .flex{
        flex-direction: column;
        align-items: center;
    }
    .work_profile{
        height: 400px;
        display: grid;
        grid-template-rows: 240px 6rem 1fr;
        grid-template-columns: 100%;
        justify-items: center;
        align-items: center;
    }
    .work_img{
        grid-row: 1 / 1;
        grid-column: 1 / 1;
    }
    .work_title{
        text-align: center;
        font-size: 120%;
        grid-row: 2 / 2;
        grid-column: 1 / 1;
        margin: 0px;
    }
    .work_description{
        text-align: left;
        grid-row: 3 / 3;
        grid-column: 1 / 1;
        margin: 0px;
        padding: 0px 30px;
    }
}