@charset "UTF-8";

/* =========================================================== 一覧・投稿（archive,single) ========================================== */
.blog-body a,
.single-body a {
  text-decoration: none;
}
.blog-body__container {
  display: flex;
  flex-direction: column;
}
.blog-body__content {
  display: contents;
}
.blog-body__main {
  order: 1;
}
.blog-body__side {
  margin-top: 50px;
  order: 3;
}
.blog-body__pagination {
  order: 2;
  margin-top: 32px;
}
.blog-body__btn {
  text-align: center;
  margin-top: 70px;
}
.blog-body__tagTitle {
  font-size: 1.125rem;
  font-weight: normal;
  color: #4472c4;
  text-align: center;
}
.blog-body__no-item {
  font-size: 1rem;
}
/*------- ここから 記事の中身 --------- */
.blog-item {
  border-top: 2px dotted #A1B8E1;
  padding-top: 1rem;
  padding-bottom: 12px;
  list-style: none;
}
.blog-item:last-child {
  border-bottom: 2px dotted #A1B8E1;
}
.blog-item__title {
  font-size: 1rem;
  font-weight: normal;
}
.blog-item__title a {
  color: #4472c4;
}
.blog-item__meta,
.single-item__meta {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  font-size: .75rem;
}
.blog-item__meta {
  margin-top: 2px;
}
.blog-item__date,
.single-item__date {
  color: #3c3c3c;
}
.blog-item__tag,
.single-item__tag {
  font-weight: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 4px;
}
.blog-item__tag a,
.single-item__tag a {
  color: #fff;
  background: #698fd0;
  border: 1px solid #4472c4;
  padding: 2px 16px 0;
  border-radius: 100vmax;
  display: flex;
  align-items: center;
  height: 22px;
}
@media (any-hover: hover) {
  .blog-item__title a:hover,
  .blog-item__tag a:hover,
  .single-item__tag a:hover {
    opacity: .7;
  }
}
@media screen and (min-width: 768px) {
  .blog-body__content {
    display: flex;
    gap: 48px; 
  }
  .blog-body__main {
    width: 80%;
    order: initial;
    margin-top: 0;
  }
  .blog-body__side {
    width: 20%;
    order: initial;
    margin-top: 0;
  }
  .blog-body__pagination {
    margin-top: 100px;
    order: initial;
  }
  .blog-body__btn {
    margin-top: 112px;
  }
  .blog-body__items--tag {
    margin-top: 16px;
  }
  .blog-body__tagTitle {
    font-size: 1.875rem;
  }
  .blog-item {
    padding-top: 18px;
    padding-bottom: 14px;
  }
  .blog-item__title {
    font-size: 1.3125rem;
  }
  .blog-item__meta {
    margin-top: -3px;
    font-size: .875rem;
  }
  .blog-item__meta,
  .single-item__meta {
     align-items: center;
  }
}

/* 一覧へのリンクボタン（home-link) */
.home-link {
  display: inline-block;
  font-size: .875rem;
  font-weight: normal;
  line-height: 1.5em;
  padding-top: 6px;
  padding-bottom: 6px;
  border-top: 1px solid #3c3c3c;
  border-bottom: 1px solid #3c3c3c;
  width: 100%;
  text-align: center;
  color: #3c3c3c;
}
@media screen and (min-width: 768px) {
  .home-link {
    font-size: 1rem;
    width: 350px;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid #3c3c3c;
    border-left: 1px solid #3c3c3c;
    padding: 0;
  }
}
@media (any-hover: hover) {
  .home-link:hover {
    color: #4472c4;
  }
}

/* ---------- side-bar ----------------- */
.side-bar__head {
  font-size: .875rem;
  font-weight: normal;
}
.side-tags {
  font-size: .75rem;
  font-weight: normal;
  margin-top: 4px;
}
.side-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 4px;
}
.side-tag a {
  color: #fff;
  background: #698fd0;
  border: 1px solid #4472c4;
  padding: 2px 16px 0;
  border-radius: 100vmax;
  display: flex;
  align-items: center;
  height: 22px;
}
@media (any-hover: hover) {
  .side-tag a:hover {
    opacity: .7;
  }
}
@media screen and (min-width: 768px) {
  .side-bar__head {
    font-size: 1.125rem;
  }
  .side-tags {
    font-size: .875rem;
  }
  .side-tag {
    gap: 6px;
  }
}

/* =========================================================== single（投稿） ======================================================== */
.single-item__title {
  font-size: 1.125rem;
  font-weight: normal;
  color: #4472c4;
}
.single-item__meta {
  flex-direction: row-reverse;
  justify-content: space-between;
  border-top: 2px dotted #A1B8E1;
  padding-top: 15px;
  margin-top: 4px;
}
.single-item__text {
  font-size: .875rem;
  margin-top: 14px;
  text-align: justify;
}
.single-item__text a {
  text-decoration: underline;
}
.single__link {
  margin-top: 48px;
}
@media screen and (min-width: 768px) {
  .single-item__title {
    font-size: 1.875rem;
  }
  .single-item__meta {
    margin-top: 17px;
    font-size: .875rem;
    padding-top: 17px;
  }
  /* .single-item__meta {
    font-size: .875rem;
    margin-top: 0;
  } */
  .single-item__text {
    font-size: 1.125rem;
    margin-top: 36px;
  }
  .single__link {
    text-align: center;
  }
}

/* =========================================================== ページネーション(home.php, tag.php) ========================================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 18px;
}
.pagination a,
.pagination span {
  text-decoration: none;
  font-size: 1.125rem;
  line-height: 1;
  padding: 5px 10px;
  color: #4472c4;
  border: 1px solid #4472c4;
}
.pagination a:hover {
  opacity: .6;
}
.pagination .current {
  background-color: #cccccc;
  color: #fff;
  border: 1px solid #cccccc;
}
.pagination .prev,
.pagination .next {
  background-color: #4472c4;
  color: #fff;
  padding: 5px 17px;
}
.pagination .prev.disabled,
.pagination .next.disabled {
  color: #fff;
  background-color: #cccccc;
  border: 1px solid #cccccc;
}


/* =========================================================== 個別記事ナビゲーション(single.php) ======================================================== */
.post-navigation {
  margin-top: 24px;
}
.post-navigation .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  font-size: .75rem;
  font-weight: normal;
  color: #4472c4;
}
@media (any-hover: hover) {
  .post-navigation .nav-links a:hover {
    opacity: .7;
  }
}
@media screen and (min-width:768px) {
  .post-navigation {
    margin-top: 64px;
  }
  .post-navigation .nav-links {
    font-size: 1rem;
  }
}
