/* CSS Document */

*{
  box-sizing: border-box;
}

li{
  list-style: none;
}

html{
  scroll-behavior: smooth;
font-family: 'Noto Serif JP', serif;
}

body{
width: 100%;
height: 100%;
    overflow-x: hidden;
}

.wf-hannari { 
  font-family: "Hannari"; 
}

.wf-tit { 
font-family: 'Roboto', sans-serif;
  /*font-family: 'Pompiere', cursive;*/
}
/*header*/

header{
    display: flex;
    align-items: center;
    justify-content: center;
  height: 100vh;
  background-image: linear-gradient(45deg, rgba(243, 170, 196, 1), rgba(255, 247, 216, 1), rgba(183, 187, 255, 1));
    overflow: hidden;
  background-size: 200% 200%;
    animation: bg_gra 20s ease 0s infinite alternate;
}

header.page{
    position: relative;
    height: 200px;
}

h1{
    position: relative;
    font-size: 24px;
    text-align: center;
    line-height: 1.8;
    color: rgba(243, 170, 196, 1);
    width: 100%;
    max-width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: rgba(255,255,255,0.8);
    border-radius:42% 58% 53% 47% / 56% 49% 51% 44% ;
}

header::before{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    background-color: rgba(228,122,145.5);
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius:  65% 35% 29% 71% / 56% 23% 77% 44%;
    animation: guru 20s linear 0s infinite normal;
}

h1 a{
    text-decoration: none;
    color: #333;
}

/*header::before{
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: url(../img/header_img.jpg) no-repeat;
  background-size: cover;
  z-index: -1;
}*/

.img-anim{
    position: relative;
    display: block;
    width: 350px;
    margin: 20px auto;
    text-align: center;
}

.img-eye{
    position: absolute;
    top: 40%;
    display: block;
    width: 82px;
    height: 50px;
    transform-origin: top;
    overflow-y: hidden;
}

.img-eye img{
    width: 40px;
    height: 30px;
    margin: 10px auto 0;
    overflow: hidden;
    animation: eye_anim 5s ease 0s infinite alternate;
}


.img-eye.right{
    right: 19%;
}

.img-eye.right::before{
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 81px;
    height: 31px;
    background: url(../img/eyelid_r.png);
}

.img-eye.left{
    left: 19%;
}

.img-eye.left::before{
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 81px;
    height: 28px;
    background: url(../img/eyelid_l.png);    
}

.img-eye::before{
    animation: eyelid_anim 5s ease 0s infinite alternate;    
}

.img-hair{
    position: absolute;
    width: 62px;
    bottom: 0;
    z-index: -1;
    animation: hair_anim 10s ease 0s infinite alternate;    
    transform-origin: top;
}

.img-hair.right{
    right: 5%;
}

.img-hair.left{
    left: 5%;
}

    @keyframes eye_anim{
      0%{
        transform: translateY(0);          
        height:30px;
      }
      30%{
        transform: translateY(0);          
        height:30px;
      }
      50%{
        transform: translateY(10px);          
        height: 10px;
      }
      75%{
        transform: translateY(0);          
        height: 30px;
      }
      100%{
        transform: translateY(10px);                    
        height: 10px;
      }
    }
    @keyframes eyelid_anim{
      0%{
        transform: translateY(0);
      }
      30%{
        transform: translateY(0);
      }
      50%{
        transform: translateY(10px);        
      }
      75%{
        transform: translateY(0px);        
      }
      100%{
        transform: translateY(10px);        
      }
    }
    @keyframes hair_anim{
      0%{
        transform: rotate(0);
      }
      50%{
        transform: rotate(20deg);        
      }
      80%{
        transform: rotate(-10deg);        
      }
      100%{
        transform: translateY(0);        
      }
    }
@keyframes bg_gra{
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes guru{
  0% {
    transform: rotate(0deg);
    border-radius:  65% 35% 29% 71% / 56% 23% 77% 44%
  }
  50% {
      border-radius: 23% 77% 63% 37% / 32% 39% 61% 68%;
  }
  100% {
    transform: rotate(360deg);
    border-radius:  65% 35% 29% 71% / 56% 23% 77% 44%;
  }
}


.main_menu{
  display: inline-block;
  /*background: rgba(255,255,255,.8);*/
  margin: auto;
  text-align: center;
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  padding: 2em;
}

.main_menu h1{
  margin: 1em 0;
  font-size: 2em;
}

.main_menu h1 span{
    display: block;
    font-size: .5em;
}

.main_menu ul{
  margin-top: 3em;
}

.main_menu ul li{
  display: inline-block;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  margin:0 1em;
}

.main_menu a{
  color: #666;
  text-decoration: none;
}

/*main*/

main {
  position: relative;
}

main p{
  line-height: 1.8em;
}


main div{
  background:rgba(255,255,255,.8);  
  width: 90%;
  margin: 20px auto;
  padding: 1em 0;
}

main h2{
  display: block;
  text-align: center;
  font-weight: normal;
  color: #666;
  font-size: 2em;
  margin-top: 1em;
}


#menu1 img{
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 20px;
}

#menu1 p{
    text-align: center;
}

#menu1 a{
    position: relative;
    display: block;
    width: 100%;
    max-width: 500px;
    text-align: center;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(45deg, rgba(243, 170, 196, 1),  rgba(183, 187, 255, 1));
    padding: 10px;
    border-radius: 5px;
    margin: 20px auto 0;
    transition: .3s all ease;
    font-size: 18px;
    border: 1px solid #ccc;
}

#menu1 a::after{
    content: "";
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    right: 30px;
    font-size: 24px;
    top: 0;
    bottom: 0;
    margin: auto;  
    transition: .3s all ease;
}

#menu1 a:hover{
    border: 1px solid #ffb4b4;
    background: #fff;
    color: #ffb4b4;
}

#menu1 a:hover::after{
    right: 20px;
    border-color: rgba(243, 170, 196, 1);
}


ul.skill{
    display: flex;
    flex-wrap: wrap;
}

ul.skill li{
    position: relative;    
    border: 1px solid #aaa;
    padding: 10px;
    border-radius: 50px;
    color: #666;
    margin:10px;
    overflow: hidden;
}

ul.skill li::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -1;
}

ul.skill li.ps::after{
    width: 90%;
    background-color: #6495ed;
}

ul.skill li.ai::after{
    width: 90%;
    background-color: #ff7f50;
}

ul.skill li.dw::after{
    width: 80%;
    background-color: #3cb371;
}

ul.skill li.ht::after{
    width: 80%;
    background-color: #ffdb4f;
}

ul.skill li.cs::after{
    width: 70%;
    background-color: #eebbcb;
}

ul.skill li.js::after{
    width: 60%;
    background-color: #2ca9e1;
}

ul.skill li.wp::after{
    width: 60%;
    background-color: #7ebeab;
}


#menu2 ul{
display: -ms-grid;
display: grid;
-ms-grid-columns: auto .5% auto .5% auto .5% auto .5% auto;
grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  grid-column-gap: .5%;
  padding: 2em 0;
  margin: auto;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
#menu2 ul > *:nth-child(1){
-ms-grid-row: 1;
-ms-grid-column: 1;
}
#menu2 ul > *:nth-child(2){
-ms-grid-row: 1;
-ms-grid-column: 3;
}
#menu2 ul > *:nth-child(3){
-ms-grid-row: 1;
-ms-grid-column: 5;
}
#menu2 ul > *:nth-child(4){
-ms-grid-row: 1;
-ms-grid-column: 7;
}
#menu2 ul > *:nth-child(5){
-ms-grid-row: 1;
-ms-grid-column: 9;
}#menu2 ul > *:nth-child(6){
-ms-grid-row: 2;
-ms-grid-column: 1;
}#menu2 ul > *:nth-child(7){
-ms-grid-row: 2;
-ms-grid-column: 3;
}#menu2 ul > *:nth-child(8){
-ms-grid-row: 2;
-ms-grid-column: 5;
}#menu2 ul > *:nth-child(9){
-ms-grid-row: 2;
-ms-grid-column: 7;
}#menu2 ul > *:nth-child(10){
-ms-grid-row: 2;
-ms-grid-column: 9;
}

#menu2 ul:last-child{
  border: none;
}

#menu2 ul li{
    display: block;
    margin: 10px 0;
}

#menu2 ul li img{
  width: 300px;
    height: 300px;
  object-fit: cover;
  object-position: top;
    font-family: " object-fit: cover;";
    font-family: " object-position: top;";
}

#menu2 ul li a{
    display: block;
    position: relative;
    overflow: hidden;
    text-align: center;    
}

#menu2 ul li a::before{
    content: "MORE→";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: rgba(0,0,0,.3);
    width: 200px;
    height: 32px;
    margin: auto;
    padding: 84px 0;
    color: #fff;
    font-family: 'Pompiere', cursive;    
    text-align: center;
    font-size: 32px;
    transition: .5s ease-in all;    
    transform: scale(0);
}

#menu2 ul li a:hover::before{
    transform: scale(1);
}

h3{
    position: relative;
    display: inline-block;
    padding: 0 55px;
    margin: 2em auto 0;
    left: 50%;
    transform: translateX(-50%);
    font-weight:normal;
    text-align: center;
}

h3::before,h3::after{
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: black;
}

h3:before {
  left:0;
}

h3:after {
  right: 0;
}


.caption{
    margin-top: 0px;
  border-bottom: 1px #ccc solid;    
}

.caption p{
    display: inline-block;
    margin: .5em;
}

.caption p::before{
    content: "＊";
    color: #ccc;
    margin-right: .3em;
}

#menu3 {
    text-align: center;
}

#menu3 a{
    display: inline-block;
    width: 30%;
    min-width: 150px;
    background: #333;
    padding: 10px 15px;
    border-radius: 50px;
    color: #aaa;
    margin:10px;   
    color: #fff;
    text-decoration: none;
    transition: .3s all;
}

#menu3 a:hover{
    background: #fff;
    color: #333;
    border: 1px solid #333;
    padding: 9px 15px;
}

footer{
  width: 100%;
  height: 60px;
  text-align: center;
  background: rgba(0,0,0,.5);
    transition: .3s all ease;
}

footer a{
    display: block;
  color: #fff;
  line-height: 60px;
  text-decoration: none;
}

footer:hover{
    opacity: .8;
}


/*work*/
.work-list ul{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.work-list ul li:only-of-type{
    margin: auto;
}

.work-list ul li{
    width: auto;
    max-width: 45%;
    margin:0 0 20px;
    text-align: center;
}

.work-list ul li a{
    text-align: center;
}

.work-list ul li img{
    width: auto;
    max-width: 100%;
    height: auto;
    transition: .5s ease-in all;        
}

.work-list ul li img:hover{
    opacity: .5;
}

footer.page{
    max-width: 200px;
    border-radius: 60px;
    margin:0 auto 20px;
}

@media screen and (max-width: 1024px){
    header {
        height: 70vh;
    }    
    
    .main_menu{
        bottom: auto;
    }
}


@media only screen and (max-width: 640px) {
    body{
        overflow-x: hidden;
    }
    
    header {
        height: 100vh;
    }
    
    .main_menu{
        bottom: 0;
    }
    
    #menu2 ul{
        grid-template-columns:auto;
        grid-row-gap: .5%;
    }
    
    #menu2 ul li img {
        width: 100%;
    }
    
    .work-list ul li{
    max-width: 90%;
        margin: auto;
    }

}

@media only screen and (max-width: 320px) {
    main > div{
        width:100%;
        margin-left: 15px;
    }
}
