@charset "UTF-8";

/*-- メイン --*/
.post-layout {
  max-width: 1280px;
  margin-top: 20vh;
  margin-bottom: 30vh;
/*  margin-left: 30vw; */
  margin-left: auto;
  margin-right: auto;
  width: 98%;

  color: #606060;
  font-size: 0.9rem;
  h1 {
    font-size: 1.6rem;
    color: #000;
  }

  .post-title {
    flex: 0 0 auto;
    text-align: center;
  }
  
  .post-abstruct {
    padding: 18px 12px; 
  }

  .post-contents {
    display: flex;
    padding: 0 18px 9px 18px;
  
    .content {
      flex: 3;
    }

    .side {
      flex: 1;
      padding: 9px;
      border-left: 1px dotted rgb(0, 84, 56);
    }

    /*-- 右サイドバナー */
    .side-banner {
      margin-bottom: 12px;

      .categories-title {
        font-weight: normal;
        font-size: 1.2rem;
        padding: 0.2em .2em;
        border-bottom: 2px dashed rgb(0, 84, 56);
        background-color: #ffffff;
        color: #333333;
      }
    }

    @media (max-width: 576px) {
      .side-banner {
        display: none;  
      }
    }
 
  }

}


@media screen and (max-width: 576px) {/* スマホ用のブレイクポイントを指定 */
  .post-layout{
    margin-top: 10vh;
    margin-bottom: 30vh;
    margin-left: auto;
    margin-right: auto;

    .post-contents {
      flex-direction: column; /* 縦並びに変更 */
    }
  }
}

/*-- archive & backnumber--*/
.archive-contents {
  border: 1px solid #f0f0f0;
  border-radius: 9px;
  margin-left: auto;
  margin-right: 18px;
  margin-bottom: 18px;
  padding: 1.2rem;
  width: 96%;

  h2 {
      position: relative;
      font-size: 1.4rem;
      padding-left: 2.3rem;
      &:before {
        position: absolute;
/*        font-family: "Font Awesome 5 Free";
        content: "\f0eb";
        background: #ffca2c;
        color: white;
        font-weight: 900;
        font-size: 15px;
        border-radius: 50%;
        left: 0;
        width: 25px;
        height: 25px;
        line-height: 1.6rem;
        text-align: center;
        top: 20%;
        transform: translateY(-20%);
        */
      }
      /*吹き出しのちょこんと出た部分*/
/*      &:after {
        content: '';
        display: block;
        position: absolute;
        left: 20px;
        height: 0;
        width: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid #ffca2c;
        top: 30%;
        transform: translateY(-30%);
      }
*/
    }  
}

.archive-content{
  display: flex;
  padding-top: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed #666;
}
.archive-content-image {

}
.archive-content-excerpt {
  margin-left: 1.2rem;
  h3 {
    font-size: 1.1rem;
  }
  p {
    padding: 6px 0;
    font-size: 0.9rem;
  }
}

.archive-navi {
  margin: 3rem auto;
  font-size: .9rem;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
}
 
.nav-links{
   display:flex;
}

.page-numbers{
  display:inline-block;
  margin-right: 0.4rem;
  padding: 0.2rem 0.6rem;
  color: #666666;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #999;
}
.page-numbers.current{
   padding: 0.2rem 0.6rem;
   background: #999;
   color: #ffffff;
}
.page-numbers.prev,
.page-numbers.next{
  background: transparent;
  box-shadow: none;
  border: 1px solid #999;
  color: #666666; 
}
.page-numbers.dots{
  background: transparent;
  box-shadow: none;
  border: none;
  color: #666666; 
}



/*-- single --*/

.post-article {
  border: 1px solid #f0f0f0;
  border-radius: 9px;
  margin-left: auto;
  margin-right: 18px;
  margin-bottom: 18px;
  padding: 1.2rem;
  width: 96%;

  h3 {
    position: relative;
    font-size: 1.4rem;
    padding-left: 2.3rem;

    &:before {
      position: absolute;
      font-family: "Font Awesome 5 Free";
      content: "\f0eb";
      background: #ffca2c;
      color: white;
      font-weight: 900;
      font-size: 15px;
      border-radius: 50%;
      left: 0;
      width: 25px;
      height: 25px;
      line-height: 1.6rem;
      text-align: center;
      top: 20%;
      transform: translateY(-20%);
    }
    &:after {
    /*吹き出しのちょこんと出た部分*/
      content: '';
      display: block;
      position: absolute;
      left: 20px;
      height: 0;
      width: 0;
      border-top: 8px solid transparent;
      border-bottom: 8px solid transparent;
      border-left: 12px solid #ffca2c;
      top: 30%;
      transform: translateY(-30%);
    }
  }

  figure {
    margin-bottom: 1.2rem;
  }
  .post-contents-date {
    text-align: right;
  }
  .post-contents-categories {
    margin-top: .3rem;
    margin-left: 1.5rem;
    margin-bottom: .2rem;
    font-size: .8rem;
  }
  
  .post-contents-tags {
    margin-top: 18px;
    padding: 6px;
    border: 1px dashed #666666;
    border-radius: 6px;    
  }


.post-navi {
  text-align: center;
  margin: 3rem auto;
  font-size: .9rem;

  .prev,
  .next {
    border: 1px solid #999;
    border-radius: 6px;
    padding: 0.6rem 0.6rem;
  }
  .prev {
    margin-right: 1rem;
  }
  .next {
    margin-left: 1rem;
  }
}
