@charset "UTF-8";
body{
    font-family: "Poly", serif;
    font-weight: 400;
    font-style: normal;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
    color: #3C2317;
}

img{
    width: 100%;
    height: 100%;
}

main{
    color: #3C2317;
    max-width: 1000px;
    margin: 0 auto;
}

section{
    margin-bottom: 200px;
}

.section_ttl{
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 50px;
}

.sp{
    display: none;
}

.underline li a{
    display: block;
    position: relative;
}

.underline a:hover{
    color: #3C2317;
}

.underline a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #3C2317;
    transition: all .3s;
    transform: scale(0, 1);
    transform-origin: center top;
}

.underline li a:hover::after {
    transform: scale(1, 1);
}

.btn_wave{
    position: relative;
	display:inline-block;
    text-decoration: none;
    color: #3C2317;
    outline: none;
}

.btn_wave:hover::before {
    content: '';
    /*絶対配置で波形の位置を決める*/
    position: absolute;
    left:30%;
    top:0;
    /*波形の形状*/
    border: 1px solid #3C2317;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /*はじめは不透明*/
	opacity:1;
    /*アニメーションの設定*/
    animation:1s circleanime2 forwards;
}

/*波形が広がるアニメーション*/
@keyframes circleanime2{
	0%{
	  transform: scale(0);
	}
	100%{
		transform:scale(2);
		opacity: 0;
	}
}


@media(max-width: 1023px){
    main{
        width: 95%;
    }

    .pc{
        display: none;
    }

    .sp{
        display: block;
    }

    .underline a:hover{
        color: #fff;
    }

    .underline a::after{
        background: #fff;
    }
}

/* header */
#header{
    display: flex;
    position: sticky;
    top: 0;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    background-color: #fff;
    z-index: 20;
}

#header img{
    max-width: 500px;

}

#header_nav{
    display: flex;
    margin-right: 15px;
    z-index: 20;
}

#header_nav li{
    margin-right: 30px;
}

.header_menu{
    display: flex;
}

@media(max-width: 1023px){
    #header img{
        display: none;
    }

    #header_nav{
        flex-direction: column;
        padding: 50px 50px 0 0;
        position: fixed;
        visibility: hidden;
        top: 0;
        text-align: center;
    }

    .header_menu{
        flex-direction: column;
    }

    .open #header_nav{
        right: 0;
        visibility: visible;
    }

    .open #header_nav a{
        color: #fff;
    }

    #header_nav li{
        padding: 15px 0;
    }

    .header_hamburger{
        width: 30px;
        height: 30px;
        cursor: pointer;
        position: fixed;
        top: 22px;
        right: 18px;
        transition: 0.5s;
        z-index: 20;
    }

    .header_hamburger span{
        width: 30px;
        height: 2px;
        background-color: #3C2317;
        border-radius: 4px;
        display: block;
        position: absolute;
        left: 0;
        transition: 0.5s;
    }

    .header_hamburger span:nth-child(1) {
        top: 4px;
    }

    .header_hamburger span:nth-child(2) {
        top: 14px;
    }

    .header_hamburger span:nth-child(3) {
        top: 24px;
    }

    .open .header_hamburger span:nth-child(1) {
        transform: translateY(10px) rotate(-315deg);
        background-color: #fff;
    }

    .open .header_hamburger span:nth-child(2) {
        opacity: 0;
    }

    .open .header_hamburger span:nth-child(3) {
        transform: translateY(-10px) rotate(315deg);
        background-color: #fff;
    }

    #header_mask{
        display: none;
        transition: 0.5s;
    }

    .open #header_mask {
        width: 250px;
        height: 40%;
        background-color: #3C2317;
        cursor: pointer;
        display: block;
        opacity: 0.8;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 10;
    }
}

/* mainvisual */
#mv{
    margin-bottom: 100px;
    height: 80vh;
    align-content: center;
}

.mv_content{
    display: flex;
    justify-content: center;
    align-items: center;
}

.mv_profile{
    width: 300px;
    height: 300px;
    margin: 0 100px;
    border-radius: 50%;
}

.mv_logo{
    width: 500px;
    height: 500px;
}

@media(max-width: 1023px){
    .mv_content{
        flex-direction: column-reverse;
    }

    .mv_profile{
        margin: 0;
    }

    .mv_logo{
        width: auto;
        max-height: 300px;
        padding-top: 100px;
    }
}

@media (max-width: 380px){
    .mv_profile{
        width: 250px;
        height: 250px;
    }

    .mv_logo{
        width: 280px;
        height: auto;
        padding-top: 50px;
    }
}

/* about */
.about_content{
    display: flex;
    justify-content: center;
    position: relative;
}

.about_txt{
    font-size: 1.25rem;
    padding-right: 100px;
}

.about_pic{
    position: relative;
}

.about_pic_1{
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
}

.about_pic_2{
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    top: 170px;
    left: 200px;
}

.about_btn{
    position: absolute;
    right: 0;
    bottom: 0;
    top: 400px;
}

.about_name{
    font-size: 2rem;
    margin-bottom: 50px;
}

.about_back_btn{
    position: absolute;
    right: 0;
    top: 50vh;
}

@media(max-width: 1023px){
    .about_content{
        flex-direction: column-reverse;
        align-items: center;
    }

    .about_txt{
        padding-right: 0;
    }

    .about_pic_1{
        width: 250px;
        height: 250px;
        margin-bottom: 50px;
    }

    .about_pic_2{
        width: 170px;
        height: 170px;
        border-radius: 50%;
        position: absolute;
        top: 130px;
        left: 150px;
    }

    .about_btn{
        top: 650px;
    }

    .about_name{
        text-align: center;
    }

    .about_back_btn{
        top: 100%;
    }
}

@media (max-width: 380px) {
    .about_btn{
        top: 750px;
    }
    
    .about_pic_1{
        width: 200px;
        height: 200px;
        margin-bottom: 50px;
    }

    .about_pic_2{
        width: 150px;
        height: 150px;
        border-radius: 50%;
        position: absolute;
        top: 100px;
        left: 100px;
    }
}

/* skill */
.skill_list{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 3%;
    justify-content: space-between;
    align-items: center;
}

.skill_list li{
    justify-items: center;
}

.skill_list img{
    width: 100%;
    height: auto;
}

@media(max-width: 1023px){
    .skill_list{
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
}

/* works */
#works{
    position: relative;
}

.works_content{
    position: relative;
}

.works_inner{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    
    gap: 2%;
    margin-bottom: 50px;
}

.works_btn{
    position: absolute;
    right: 0;
}

.works_container{
    width: 1000px;
    height: 500px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 5%;
    border: #3C2317 solid 1px;
    
}

.works_post_thumbnail{
    /* width: 30%;
    height: 80%; */
    width: 300px;
    height: 400px;
}

.works_txt{
    width: 400px;
    /* position: relative; */
}

.works_item_ttl{
    font-size: 1.5rem;
}

#works_item{
    padding: 10%;
    margin-bottom: 0;
}

.works_item_img{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.works_item_img img{
    width: 50%;
    height: 50%;
    margin-bottom: 2%;
}

.works_back_btn{
    position: absolute;
    /* right: 0; */
}

@media(max-width: 1023px){
    .works_container{
        width: 80%;
        height: 70%;
        flex-direction: column;
    }

    .works_txt{
        text-align: center;
    }

    .works_btn{
        position: unset;
    }
}

@media (max-width: 425px){
    .works_post_thumbnail {
        padding-top: 50px;
        width: 80%;
        height: auto;
        text-align: center;
    }

    .works_txt{
        width: auto;
        text-wrap: wrap;
    }
}

/* contact */
#contact {
    margin-bottom: 100px;
  }
  
  #contact dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  #contact dt {
    width: 15%;
  }
  
  #contact dd {
    width: 85%;
    margin-bottom: 10px;
  }
  
  #contact dd input,
  #contact dd textarea {
    width: 100%;
    border: solid 1px #c8c8c8;
    padding: 10px;
  }
  
  #contact dd textarea {
    height: 10rem;
  }
  
  #contact .submit-btn {
    text-align: center;
    padding-left: 80px;
  }
  
  #contact .submit-btn input {
    width: 200px;
    background-color: #3C2317;
    color: #fff;
    padding: 15px 0;
    border: solid 1px #3C2317;
  }
  
  #contact .submit-btn input:hover {
    background: #fff;
    color: #3C2317;
    transition: .5s;
  }
  
@media(max-width: 380px){
    #contact dl{
        flex-direction: column;
    }

    #contact dt{
        width: 100%;
    }

    #contact dd{
        width: 100%;
    }

    #contact .submit-btn input{
        width: 150px;
    }
}



/* footer */
#footer{
    font-size: 0.625rem;
    text-align: center;
    padding: 30px;
    background-color: #3C2317;
    color: #fff;
}

.scroll-top {
	/*表示位置*/
	position: fixed;
	right: 20px;
	bottom: 10px;
	z-index: 2;
	/*はじめは非表示*/
	opacity: 0;
	visibility: hidden; 
	transition: opacity .5s, visibility .5s; /*それぞれに0.5秒の変化のアニメーション*/
	/*縦書き*/
	-webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
	/*改行禁止*/
    white-space: nowrap;
	/*矢印の動き*/
	animation: arrowmove 1s ease-in-out infinite;
}

@keyframes arrowmove{
      0%{bottom:20px;}
      50%{bottom:25px;}
     100%{bottom:20px;}
 }

 .scroll-top.scroll-view {
	opacity: 1;
	visibility: visible;
}

/*リンク全体の aタグの形状*/
.scroll-top a {
	text-decoration: none;
	color: #666;
	text-transform: uppercase;
	font-size:0.9rem;
    display: block;
}

.js-scroll a::after{
	content:"";
	position: absolute;
	top:0;
	right:0;
	width:1px;
	height: 50px;
	background:#666;
}

.js-scroll a::before {
    content: "";
    position: absolute;
    top: 30px;
    right: -6px;
    width: 1px;
    height: 20px;
    background: #666;
    transform: skewX(-31deg);
}

/*Edge IE11 hack*/
_:-ms-lang(x), .js-scroll a::before{
	right:-11px;
}

/*ページトップリンクの形状*/

.js-pagetop a::after{
	content:"";
	position: absolute;
	top:0;
	right:0;
	width:1px;
	height: 50px;
	background:#666;
}

.js-pagetop a::before {
    content: "";
    position: absolute;
    top: 0;
    right: -6px;
    width: 1px;
    height: 20px;
    background: #666;
    transform: skewX(31deg);
}

/*Edge IE11 hack*/
_:-ms-lang(x), .js-pagetop a::before{
	right:0;
}