@charset "utf-8";
/* CSS Document */

*{
	margin:0;
	padding: 0;
}

a{
	text-decoration: none;
}

img{
	border: none;
	vertical-align: bottom;
}

li{
	list-style: none;
}

h1,h2,h3{
font-weight: 400;
}

body{
    font-family:"Montserrat","Klee One", sans-serif, cursive;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 300;
    background-image: url("../img/top_bgimg.jpg"), url("../img/footer_bgimg.jpg");
    background-size: 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: top left, bottom left;
    color: #6D6361;
}

header{
    width: 100%;
    height: 67vw;
}

header h1{
    width: 22%;
    margin: 0 auto;
    padding-top: 25vw;
}

header h1 img{
    width: 100%;
}


main h2{
    width: fit-content;
    padding: 1em 2em;
    text-align: center;
    font-size:max(2.3vw,28px);
    letter-spacing: 0.1em;
    margin: 0 auto;
}

.work h2{
    background-image: url("../img/point_red.jpg");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 35%;
}

.work ul{
    width: 75%;
    margin: 80px auto 0;
    display: flex;
    justify-content: space-between;
}

.work ul li{
    width: 21%;
    height: 15vw;
    font-size:max(1.8vw, 20px);
    border: 1px solid #6D6361;
    letter-spacing: 0.1em;
}

.work ul li a{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6D6361;
    position: relative;
    z-index: 0;
    overflow: hidden;
}
   
.work ul li a::before{
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 100%;
    z-index: -1;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: 0.5s;
}

.work ul li.web a::before{
    background-image: url("../img/dtp.jpg");
}

.work ul li.temp a::before{
    background-image: url("../img/tenp.jpg");
}

.work ul li.sns a::before{
    background-image: url("../img/sns.jpg");
}

.work ul li.oth a::before{
    background-image: url("../img/others.jpg");
}

.work ul li a:hover::before{
    width: 100%;
    right: 0;
}

.about{
    margin-top: 18vw;
    letter-spacing: 0.05em;
}

.about h2{
    background-image: url("../img/point_blue.jpg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 35%;
    padding: 1.3em 1.5em;
}

.about .me{
    display: flex;
    width: 55%;
    margin: 80px auto 0;
    justify-content: space-between;
    align-items: center;
}

.photo{
    border:1px solid #6D6361;
    width: 40%;
}

.photo img{
    width: 100%;
}

.about .me h3{
    font-size:max(1.6vw, 18px);
}

.about .me h3 span{
    padding-left: 1em;
    font-size:max(1.5vw, 16px);
}

.name{
    width: 45%;
    height: fit-content;
}

.name p:first-of-type{
    margin-top: 0.8em;
    font-size:max(1.2vw, 13px);
}

.name p:last-of-type{
    margin-top: 2em;
    line-height: 1.7;
    font-size:max(1.2vw, 13px);
}

.skill{
    display: flex;
    align-items: center;
    width: 45%;
    margin: 80px auto 0;
    letter-spacing: 0.08em;
}

.skill h3{
    width: 40%;
    text-align: center;
    font-size:max(1.4vw, 15px);
}

.skill table{
    font-size:max(1.4vw, 15px);
    line-height: 1.5;
    margin-left: 50px;
}

.skill tr td{
    padding: 0.5em 0.5em;
}

.skill tr td img{
    display: inline-block;
    margin-left: 0.5em;
    width: 20%;
}

.skill tr td img:first-child{
    margin-left: 0em;
}

.contact{
    margin-top: 80px;
}

.contact h2{
    background-image: url("../img/point_yellow.jpg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 35%;
    padding: 1.3em 1.5em;
}

.contact p img{
    width: 3%;
    display: inline-block;
    margin-right: 0.5em;
}

.contact{
    font-size: max(1.8vw, 24px);
    padding-bottom: 200px;
    margin-top: 170px;
}

.contact p{
    text-align: center;
}



@media screen and (max-width:768px) {

header h1{
    width: 40%;
}

main{
    margin-top: 50px;
}

main h2{
    padding: 1em 2em;
    text-align: center;
    font-size:max(1.5vw,16px);
    letter-spacing: 0.1em;
}

.work ul{
    width: 80%;
    margin: 40px auto 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.work ul li{
    width: 45%;
    height: 32vw;
    font-size:max(1.5vw, 16px);
    margin-top: 7vw;
}

.work ul li:first-child,.work ul li:nth-child(2){
    margin-top: 0;
}

.about .me{
    display: block;
    width: 60%;
}

.photo{
    width: 80%;
    margin: 0 auto;
}

.about .me{
    margin-top: 30px;
}
.name{
    width: fit-content;
    margin: 30px auto 0;
}

.about .me h3 span{
    font-size: max(1.2vw, 12px);
    display: inline-block;
    padding-left: 1em;
}

.skill{
    display: block;
    margin-top: 70px;
    width: 70%;
}

.skill h3{
    width: 100%;
    text-align: center;
}

.skill table{
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
}

.name p:first-of-type {
    margin-top: 0.8em;
    font-size: max(1.2vw, 12px);
}

.contact{
    font-size: max(1.5vw, 16px);
    padding-bottom: 140px;
    margin-top: 100px;
}



}
