/* ---変数設定--- */
:root{
    --base-color:#faf5eb;
    --main-color:#a30313;
    --sub-color:#f75f6f;
    --text-color:#1a1919;
}

/* 初期設定 */
*{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color: var(--base-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;   
}
section{
    width: 90%;
    margin: 70px auto;
    padding-top: 70px;

}
ul,ol{
    padding-left: 0;
    list-style-type: none;
}
a{
    text-decoration: none;
}
dd{
    margin-left: 0;
}

h1{
    font-size: 250%;
    border-left: 2px solid var(--text-color);;
    border-bottom: 2px solid var(--text-color);
    margin-bottom: 50px;
    padding-left: 15px;
    font-family: 'Roboto Slab', serif;
    width: 250px;
    height: 50px;
    transform-origin: top right;
    transform: rotate(-90deg) translateY(-200px);
}
h1 i{
    padding-right: 10px;
    font-size: 90%;
}
h2{
    font-size: 130%;
    border-bottom: 2px dotted var(--text-color);
}
/* -------header------- */
header{
    width: 85%;
    height: 80vh;
    background-image: url(../image/flowerGFVL8905_TP_V.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 0;
    border-radius: 0 0 50px 0;
}
header i{
    font-size: 300%;
    color: var(--text-color);
    width: 50px;
    height: 50px;
    text-align: center;
    border-radius: 20px 5px;
    position: fixed;
    z-index: 100;
    top: 50px;  
    left: 50px;
    background-color: var(--base-color);  

}
.nav-wrap nav ul{
    display: flex;
    justify-content: space-around;
    transform: rotate(-90deg);
    transform-origin: top right;
    width: 65vh;
    position: fixed;
    z-index: 100;
    right: 50px;  
}
.nav-wrap nav ul li a{
    color: var(--text-color);
    font-size: 130%;
    font-weight: 600;
    padding: 0 10px;
}
.nav-wrap nav ul li a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
header p{
    font-size: 400%;
    color: var(--sub-color);
    font-family: 'Roboto Slab', serif;
    text-shadow: 3px 3px 5px  #000000;
    padding-top: 40vh;
    padding-left: 10%;
    margin-top: 0;
}
header p + p{
    margin-top: 0;
    padding-top: 0;
    font-size: 200%;
}

.header-coment{
    width: 100%;
     height: 100%;
    background-color: #ffffff30;
}


/* -----about----- */
.about-wrap{
    display: flex;
    justify-content: center;
    width: 100%;
}
#about img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;

}
.about-content{
    width: 40%;
    padding-left: 20px;
}
.about-content h2{
    border-bottom: none;
    font-size: 250%;
    color: var(--main-color);
    font-family: 'Pacifico', cursive;
}

/* -----skill----- */
.skill-star{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    width: 55%;
    margin: 0 auto;
}
.skill-star li{
    display: flex;
    width: 100px;
    height: 100px;
    color: var(--base-color);
    background-color: var(--main-color);
    background-image: linear-gradient(45deg,var(--sub-color),var(--main-color));
    box-shadow: 5px 5px 10px #00000080;
    justify-content: center;
    align-items: center;
    border-radius: 50% 20% / 10% 40%;
    text-align: center;
    margin: auto;
}
.skill-name{
    width: 50%;
    border-right: 1px solid var(--text-color);
    border-bottom: 1px solid var(--text-color);
    border-radius: 50% 20% / 10% 40%;
    margin: 100px auto 0;
    padding:10px 15px ;
}
.skill-name h2{
    text-align: center;
    border-bottom-style: solid;
}
.skill-name li{
    padding-left: 15px;
}

/* -----画僧の動き------ */

/* 下から */

.fadeUp{
    animation-name:fadeUpAnime;
    animation-duration:1.5s;
    animation-fill-mode:forwards;
    opacity:0;
    }
    
    @keyframes fadeUpAnime{
      from {
        opacity: 0;
      transform: translateY(150px);
      }
    
      to {
        opacity: 1;
      transform: translateY(0);
      }
    }
    
.fadeUpTrigger{
  opacity: 0;
}


/* -----works----- */
#works h2{
    width: 80%;
    margin: 30px 0 30px auto;
    padding-bottom: 5px;
    text-align: right;
}
#works h2 span{
    background-color: var(--sub-color);
    padding: 3px 10px 0.5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    font-size: 90%;
}
.works-contain{

    margin: 0 auto;
    width: 60%;
}
.works-contain div{
    display: block;
    width: 100%;
    height: 300px;
    background-color: var(--sub-color);

}
.works-contain img{
    width: 100%;
    background-size: cover ;
    border: 1px solid var(--text-color);
    margin-top: 100px;
}
#works table{
    border-collapse: separate;
    border-spacing: 10px;
}
#works th{
    border-bottom: 1px dotted var(--text-color);
    border-left: 1px solid var(--text-color);
    width: 20%;
    margin-top: 5px;
}
#works td{
    border-bottom: 1px dotted var(--text-color);
    border-left: 1px solid var(--text-color);
    padding-left: 10px;
}
#works a{
    display: block;
    text-align: end;
    margin-top: 20px;
    margin-right: 100px;
    margin-bottom: 70px;
    color: var(--text-color);
    text-decoration: underline;
}

/* -----contact------ */
label{
    display: block;
    width: 50%;
    margin: 15px auto;
}
input{
    width: 100%;
    height: 3em;

}
textarea{
    width: 100%;
    height: 10em;
}
#contact button{
    display: block;
    width: 100px;
    margin: 0 auto;
    color: var(--base-color);
    background-color: var(--main-color);
}


#contact{
    position: relative;
    height: 600px;
}
#contact form{
    position: absolute;
    width: 100%;
    height: 500px;
    z-index: 100;
}
.anime i{
    position: absolute;
    top: 100px;
    right: 10vw;
    z-index: 10;
    font-size: 3000%;
    color: #f75f6f40;
    transform: rotateZ(-22deg);
}
.anime i::before{
    display: inline-block;
    animation-duration: 40s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-name: fa-spin;
}


/* ------footer----- */
footer{
    width: 100%;
    height: 100px;
    display: flex;
    padding: auto;
    justify-content: center;
    align-items: center;
    color: var(--base-color);
    background-color: var(--text-color);
}


/* -----右下リンクボタン----- */

#mail{
    width: 80px;
    height: 50px;
    background-color: var(--sub-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px 0 0 20px;

    position: fixed;
    right: 0;
    bottom:110px;
    z-index: 1000;
}
#mail i,#page-top i{
    display: block;
    text-align: center;
    font-size: 2em;
    color: var(--text-color);
}
#mail p,#page-top p{
    margin: 0 auto;
    text-align: center;
    color: var(--text-color);
    font-size: 80%;
}
#page-top:hover,#mail:hover{
    background-color: var(--main-color);
}
#page-top{
    width: 60px;
    height: 60px;
    background-color: var(--sub-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;  

    
    position: fixed;
    right: 20px;
    bottom:10px;
    z-index: 1000; 
    /*はじめは非表示*/
    opacity: 0;
    transform: translateY(100px);
}

/*　上に上がる動き　*/

 #page-top.UpMove{
    animation: UpAnime 0.5s forwards;
  }
  @keyframes UpAnime{
    from {
      opacity: 0;
    transform: translateY(100px);
    }
    to {
      opacity: 1;
    transform: translateY(0);
    }
  }
  
  /*　下に下がる動き　*/
  
  #page-top.DownMove{
    animation: DownAnime 0.5s forwards;
  }
  @keyframes DownAnime{
    from {
      opacity: 1;
    transform: translateY(0);
    }
    to {
      opacity: 1;
    transform: translateY(100px);
    }
  } 













@media (max-width:600px){
    header{
        background-position: center;
    }
    h1{
        transform: rotate(0) translateY(0);
    }
    header i{
        left: 20px;
    }
    .nav-wrap nav ul{
        display: block;
    }

    
    /* -----about----- */
    .about-wrap{
        flex-direction: column;
        align-items: center;
    }
    #about img{
        width: 80%;
    }
    .about-content{
        width: 85%;
    }
    
    /* -----skill----- */
    .skill-star{
        grid-template-columns: 1fr 1fr;
        width: 90%;
    }
    .skill-star li{
        width: 130px;
        height: 130px;
    }
    .skill-name{
        width: 100%;
    }
    
    /* -----works----- */
    #works h2{
        margin: 50px auto 20px auto;
    }
    #works h2 span{
        display: block;
        width: 100px;
        text-align: center;
    }
    .works-contain{
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #works table{
        width: 95%;
        margin-top: 60px;
    }
    #works th{
        width: 28%;
    }
    
    /* -----contact------ */
    label{
        width: 80%;
    }

    .anime i{
        position: absolute;
        top: 200px;
        right: 40vw;
        z-index: 10;
        font-size: 2000%;
        color: #f75f6f40;
        transform: rotateZ(-22deg);
    }




    /*========= ナビゲーションのためのCSS ===============*/
  
  #g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
  top:-120%;
    left:0;
  width:100%;
    height: 100vh;/*ナビの高さ*/
  background:#f75f6f99;
    /*動き*/
  transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    top: 0;
}

/*ナビゲーションの縦スクロール*/
 #g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width: 100%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
} 

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

/*リストのレイアウト設定*/

#g-nav li{
  list-style: none;
    text-align: center; 
}

#g-nav li a{
  color: var(--text-color);
  text-decoration: none;
  padding:30px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
  width: 60vw;
}

/*========= ボタンのためのCSS ===============*/
.openbtn1{
  position:fixed;
    z-index: 9999;/*ボタンを最前面に*/
  top:5px;
  right: 10px;
  cursor: pointer;
    width: 50px;
    height:50px;
}
  
/*×に変化*/  
.openbtn1 span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
  background-color: #333333;
    width: 45%;
  }

.openbtn1 span:nth-of-type(1) {
  top:15px; 
}

.openbtn1 span:nth-of-type(2) {
  top:23px;
}

.openbtn1 span:nth-of-type(3) {
  top:31px;
}

.openbtn1.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn1.active span:nth-of-type(2) {
  opacity: 0;
}

.openbtn1.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

    
}