/* =====サイト全体部分===== */
html{
  scroll-behavior: smooth;
}
body{
    font-family: dnp-shuei-gothic-gin-std, sans-serif;
    color:#8B8B8E;
    }

    
.wrapper{
    width: 95%;
    margin: 0 auto;
    }

/*===== header =====*/

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto ;
}

h1{
    font-size: 40px;
}

h1 span{
    font-size: 18px;
}

.sections{
    display: flex;
}

.nav-li{
    margin-left: 20px;
    font-size: 15px;
}
.nav-li:hover{
    color: black;
}

.hamburger-menu{
    display: none;
}



/*===== アーカイブ部分(archive/detail/service) =====*/

.works2-ul{
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 60px auto 0 auto; 
}

.works2-li{
    width: 30%;
    margin-bottom: 40px;
    margin-right: 5%;
    transform: scale(1);
	  transition: .3s ease-in-out;
}
.works2-li:hover{
  transform: scale(1.1);
}

.works2-li:nth-child(3n) {
    margin-right: 0;
  }

.works2-li .wp-post-image{
    width: 100%;
    height: 30vh;
    border: 1px solid;
    border-radius: 5px;
    object-fit: contain;
    padding:4%;
}

.tag2{
    display: flex;
    margin: 10px 0 5px 0;
}

.post-categories{
    display: flex;
    margin-left: 5px;
}
.day2{
    font-size: 12px;
    height: 25px;
    line-height: 25px;
}
.post-categories li{
    width: 90px;
    height: 20px;
    font-size: 10px;
    letter-spacing: 0.2em;
    color:white;
    background-color: #8B8B8E;
    border-radius: 5px;
    margin-left: 10px;
    line-height: 20px;
    text-align: center;
    
}

.works-name{
  font-size: 20px;
}
.next-div{
    text-align: center;
    margin: 50px 0 100px 0;
}
.view-next span{
  margin-left: 20px;
}
.view-more2{
  text-align: center;
  display: block;
  border: 1px solid;
  width: 200px;
  padding: 10px 0;
  border-radius: 5px;
  margin: 0 auto;
}
.view-more2:hover{
  color: white;
  background-color: #8B8B8E;
}
/* ＝＝＝もっと見る＝＝＝ */

/* ＝＝＝＝＝フッター部分＝＝＝＝＝ */
footer{
    width: 100%;
    margin: 0 auto;
    padding: 5%  2.5%;
    background-color: #E7DB73;
}
.footer-container{
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;

}
footer h1{
    color:white;
    height: 30px;
    font-size: 28px;
    line-height: 30px;
    margin-right: 20px;
}
.sns-icon{
    width: 20px;
    height: 20px;
}

.nav-links{
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-numbers{
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
  font-size: 14px;
  border: #8B8B8E 1px solid;
  border-radius: 50%;
  margin-left: 10px;
}
.page-numbers:hover{
  color: white;
  border: 1px solid #8B8B8E;
  background-color:#8B8B8E;
}


.container404{
  width: 90%;
  height: 80vh;
  margin: 0 auto;
  padding-top:80px;
}
.h2-404{
  padding: 0;
  margin-top: 0;
  background: none;
  margin-bottom: 10px;
}


@media screen and (max-width:850px) {
    .header{
        height: 80px;
        width: 95%;
    }
    
    h1{
        font-size: 30px;
    }
    
    h1 span{
        font-size: 15px;
    }
    
    .sections{
        display: block;
    }


      #hamburger-navigation {
        width: 100%;
        height: 100vh;
        background-color:rgba(0,0,0,0.85);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 20;
        text-align: center;
        visibility: hidden;
      }
    
      #hamburger-navigation.active {
        opacity: 1;
        visibility: visible;
      }
     
      #hamburger-navigation .sections {
        margin-top: 100px;
      }
      #hamburger-navigation .sections li {
        margin-bottom: 60px;
      }
      #hamburger-navigation .sections a {
        color: #fff;
        font-weight: bold;
        font-size: 20px;
      }

      .hamburger-menu {
        display: block;
        width: 40px;
        height: 24px;
        top: 0;
        right: 0;
        z-index: 30;
        cursor: pointer;
        transition: 0.4s;
        position: relative;
     
      }
      .hamburger-menu:hover {
        opacity: 0.5;
      }
 
      .hamburger-menu span {
        width: 40px;
        height: 3px;
        background: #8B8B8E;
        position: absolute;
        right: 0;
        transition: 0.4s ease-in-out;
      }
      .hamburger-menu span:nth-child(1) {
        top: 0px;
      }
      .hamburger-menu span:nth-child(2) {
        top: 12px;
      }
      .hamburger-menu span:nth-child(3) {
        top: 24px;
      }
      
    
      .hamburger-menu.active span:nth-child(1) {
        top: 15px;
        background: #fff;
        transform: rotate(-45deg);
      }

      .hamburger-menu.active span:nth-child(2),
      .hamburger-menu.active span:nth-child(3) {
        top: 15px;
        background: #fff;
        transform: rotate(45deg);
      }
      
  
  

    /* アーカイブ部分 */
      .works2-ul{
        display: block;
         margin: 40px auto 0 auto; 
    }
    
    .works2-li{
        width: 100%;
        height: 50vh;
        transform: scale(1);
        margin-bottom: 60px;
        margin-right: 0;
    }
    .works2-li:hover{
      display: block;
      transform: none;
      opacity: 0.8;
    }

    .works2-li:nth-child(n + 6) {
      display:none;
    }
    
   
    .works2-li .wp-post-image{
        width: 100%;
        height: 45vh;
        padding:3%;
    }
    
    .tag2{
        margin: 10px 0 5px 3%;
    }
    
    .post-categories{
        margin-left: 5px;
    }
   
    .works-name{
      margin-left: 3%;
      font-size: 20px;
    }
    
}



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

.works2-li{
    height: 40vh;
    margin-bottom: 35px;
}

.works2-li .wp-post-image{
    height: 30vh;
}

h1{
  font-size: 26px;
}
.post-categories li{
  margin-left: 5px;  
}

}