/* ========================================

  style CSS

======================================== */
.pagination{
  margin-top: 30px;
}
.page-numbers{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}
.page-numbers li span,
.page-numbers li a{
  font-family: 'Open Sans Condensed', sans-serif;
  font-weight: 700;
  background: #fff;
  border: solid 1px rgba(35,25,20,.1);
  line-height: 1;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  box-shadow:2px 2px 0px 0px rgba(0,0,0,.1);
}
.page-numbers li+li{
  margin-left: 5px;
}

#contents .contentsWapper{
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 30px;
}
#contentsBody{
  width: 70%;
}
#side{
  width: 28%;
}

#contents h3.catTtl{
  font-size: 22px;
  margin-bottom: 20px;
}

/*INDEX*/
#contents .newsList {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
#contents .newsList a{
  display: block;
  color: #231815;
}
#contents .newsList a:hover{
  color: #6c554f;
}
#contents .newsList a:hover .photo{
  opacity: .8;
}
#contents .newsList .box{
  width: 49%;
  background: #fff;
  margin-bottom: 2%;
  box-shadow:2px 2px 0px 0px rgba(0,0,0,.1);
}
#contents .newsList .photo{
  padding-top: 60%;
  background-size: cover;
  background-position: center center;
  transition-duration: .2s;
  transition-property: opacity;
}
#contents .newsList .txt{
  padding: 20px;
}
#contents .newsList .txt .day{
  font-size: 13px;
  margin-bottom: 6px;
  color: #6c554f;
}
#contents .newsList .txt p{
  font-size: 14px;
  line-height: 1.5;
}


/*detail*/
#contents #contentsBody .entryBody {
  background: #fff;
  padding: 40px 40px 60px;
}
#contents .section+.section{
  margin-top: 80px;
}
#contents #contentsBody .entry p{
  text-align: left;
  line-height: 1.8;
}
#contents #contentsBody .entry p+p{
  margin-top: 30px;
}
#contents #contentsBody .ttlArea{
  border-bottom: solid 2px #e1decd;
  padding-bottom: 20px;
}
#contents #contentsBody .ttlArea h2,
#contents #contentsBody h2.catTtl{
  font-size: 20px;
  margin-bottom: 10px;
}
#contents #contentsBody .ttlArea .day{
  color: #6c554f;
  font-size: 13px;
}
#contents #contentsBody .entry{
  margin-top: 30px;
}
#contents #contentsBody .wp-block-image + p{
  margin-top: 30px;
}
#contents #contentsBody p + .wp-block-image,
#contents #contentsBody .wp-block-image + .wp-block-image,
#contents #contentsBody .wp-block-gallery{
  margin-top: 50px;
}
#contents #contentsBody .wp-block-separator{
  height: 1px;
  background: #e1decd;
  border: none;
  margin: 40px 0;
}
#contents #contentsBody .entry strong{
  font-weight: bold;
}
#contents #contentsBody .entry figcaption{
  color: #231815;
  font-size: 14px;
  text-align: center;
  opacity: .8;
  margin-top: 1em;
  padding-bottom: 1em;
}

#contents #contentsBody .entry h2,
#contents #contentsBody .entry h3,
#contents #contentsBody .entry h4{
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
  border-bottom: solid 2px #e1decd;
  padding-bottom: 10px;
  margin-top: 50px;
  margin-bottom: 20px;
}
#contents #contentsBody .entry h2{
  font-size: 24px;
}
#contents #contentsBody .entry h3{
  font-size: 18px;
}
#contents #contentsBody .wp-block-embed-vimeo,
#contents #contentsBody .wp-block-embed-youtube{
  position:relative;
  width:100%;
  padding-top:56.25%;
}
#contents #contentsBody .wp-block-embed-vimeo iframe,
#contents #contentsBody .wp-block-embed-youtube iframe{
  position:absolute;
  top:0;
  right:0;
  width:100%;
  height:100%;
}

/*pageNavi*/
#contents #contentsBody .pageNavi{
  margin-top: 10px;
  display: flex;
}
#contents #contentsBody .pageNavi li{
  margin-right: 10px;
}
#contents #contentsBody .pageNavi li a{
  background: #fff;
  padding: 10px;
  text-align: center;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 700;
}
#contents #contentsBody .pageNavi li:last-child{
  margin-right: 0;
}
#contents #contentsBody .pageNavi li.btPrev,
#contents #contentsBody .pageNavi li.btNext{
  width: calc(50% - 50px);
}
#contents #contentsBody .pageNavi li.btHome{
  width: 100px;
}
#contents #contentsBody .pageNavi li a{
  display: block;
}


/*side*/
#side h3{
  font-size: 18px;
  color: #fff;
}
#side .box{
  background-image: url("/wp/wp-content/themes/kamishibai/img/diary/wood.jpg");
  background-size: contain;
  padding: 10px;
}
#side .box+.box{
  margin-top: 20px;
}
#side .sideNavi{
  background: #fff;
  margin-top: 10px;
  padding: 15px 10px;
  box-shadow:1px 1px 1px 1px rgba(0,0,0,.3);
}
#side .sideNavi li{
  font-size: 14px;
  padding:0 5px 10px;
  border-bottom: dotted 1px #e1decd;
}
#side .sideNavi li:last-child{
  border-bottom: none;
  padding:0 5px 0;
}
#side .sideNavi li+li{
  margin-top: 10px;
}


/* PC Styles
======================================== */
@media screen and (min-width: 1081px) {
  
}

/* Tablet Styles
======================================== */
@media screen and (min-width:601px) and (max-width:1080px) {
  
}
@media screen and (max-width:1080px) {
  #contents .contentsWapper{
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 95%;
    margin: 0 auto;
    padding-top: 30px;
  }
}

/* Mobile Styles
======================================== */
@media screen and (max-width: 800px) {
  .pagination{
    width: 80%;
    margin: 20px auto 0;
  }
  
  #contents .contentsWapper{
    flex-direction: column;
  }
  #contentsBody{
    width: 100%;
  }
  #side{
    width: 100%;
    margin-top: 40px;
  }
  
  /*INDEX*/
  #contents .newsList .box{
    width: 49%;
    background: #fff;
    margin-bottom: 2%;
    box-shadow:2px 2px 0px 0px rgba(0,0,0,.1);
  }
  #contents .newsList .photo{
    padding-top: 70%;
  }
  #contents .newsList .txt{
    padding: 15px;
  }
  #contents .newsList .txt .day{
    font-size: 12px;
    margin-bottom: 4px;
  }
  
  /*detail*/
  #contents #contentsBody .entryBody {
    background: #fff;
    padding: 30px 15px 30px;
  }
  #contents .section+.section{
    margin-top: 80px;
  }
  
  /*side*/
  #side .box+.box{
    margin-top: 10px;
  }
}