/*
Theme Name:wim-theme
*/

:root {
  --main-bg-color: #edebe2;
  --text-color: #2b4e61;
  --accent-color-blue: #74bfdd;
}
a {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.5s;
}
ul{
    padding: 0;
}
img {
  width: 100%;
  height: auto;
}


.archive-Wrap{
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.archive-h1 {
    margin: 0 auto;
    text-align: center;
    font-size: clamp(1.625rem, 1.375rem + 1.25vw, 2.313rem);
    width: 90%;
    font-weight: 500;
    line-height: 1.6em;
    letter-spacing: 0.12em;
}
.h1-p {
    text-align: center;
}
/*=================
カテゴリー選択ボタン
/*=================*/
.category-list {
    width: fit-content;
    margin: 0 auto 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.category-list a{
  display: inline-block;
  color:var(--text-color);
  text-decoration: none;
  border:solid 1px;
  transition: all 0.3s ease;
  border-radius: 30px;
  padding: 3px 15px 0;
  width: fit-content;
  line-height: 1.5;
}
.category-list a:hover {
  background: var(--text-color);
  color: #fff;
  transition: all 0.3s ease;
}
/*=================
一覧ページ
/*=================*/
.posts-ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 0;
}
.posts-li {
  position: relative;
}
.posts-li a {
  display: block;
  position: relative;
  transition: all 0.5s linear;
}
.posts-img-inner{
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}
.wp-post-image {
  display: block;
  transition-duration: .5s;
  height: 100%;
  background: #fff;
  object-fit: contain;
}
.posts-txt-top {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin: 10px 0 0px;
}
.posts-date{
  color: #999;
  min-width: 80px;
} 
.posts-category{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.posts-category p{
  border-radius: 2px 20px;
  padding: 3px 15px 0;
  width: fit-content;
  line-height: 1.5;
  background: var(--accent-color-blue);
  color: #fff;
}
h2.posts-title{
    transition: color 0.5s linear;
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.7;
    text-wrap: wrap;
}
.posts-li a:hover .posts-title{
  color: var(--accent-color-blue);
}
.posts-li a:hover .wp-post-image{
  transform: scale(1.2);
}
@media screen and (min-width: 768px) {
  .posts-ul {
    gap: 60px 2%;
  }
  .posts-li {
    width: 32%;
  } 
}

/*=====ページネーション=====*/
.pagination {
  text-align: center;
}
.pagination{
  margin-top: 80px;
  padding: 20px 0;
  /*border-top: solid 1px;
  border-bottom: solid 1px;*/
}
.nav-links{
  text-align: center;
}
.nav-links span,.page-numbers{
  display: inline-block;
  width: 45px;
  height: 45px;
  line-height: 45px;
  color: var(--text-color);
  border-radius: 40px;
  text-align: center;
  margin-right: 10px;
}
.current{
  border: solid 1px;
}
.next.page-numbers,.prev.page-numbers{
  background: transparent;
  color: var(--text-color)
}
.pagination a:hover{
  background: var(--text-color);
  color: #fff;
}

/*=================
　archive　詳細ページ
/*=================*/
.single-article-inner{
    margin: 0 auto 5%;
    width: 100%;
    border: dotted 2px;
    background: #fff;
    padding: 5%;
    border-radius: 20px;
    max-width: 1024px;
}
.single-title{
  margin: 0 auto;
  line-height: 1.8;
  font-size: clamp(1.375rem, 1.193rem + 0.91vw, 1.875rem);
  text-wrap: wrap;
}

.meta{
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
  justify-content: center;
}
.post-thumbnail {
  margin-bottom: 30px;
}
.single-categry{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.single-categry-a{
  border-radius: 2px 20px;
  padding: 3px 15px 0;
  width: fit-content;
  line-height: 1.5;
  background: var(--accent-color-blue);
  color: #fff;
}
.single-categry-a:hover{
  color: #fff;
  background: var(--text-color);
}
.single-categry .post-thumbnail{
  margin-bottom: 60px;
}
.single-article .meta{
  justify-content: flex-end;
}
.single-article h2{
  color: #fff;
  padding: 20px;
  border-radius: 3px 30px;
  margin: 60px 0 20px;
  background: var(--accent-color-blue);
  line-height: 1.3em;
  text-wrap: wrap;
}
.single-article h3{
  border-bottom: solid 1px var(--accent-color-blue);;
  padding: 10px 0;
  margin: 30px 0 10px;
  line-height: 1.3em;
  text-wrap: wrap;
}
.post-navigation{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-top: solid 1px #eee;
  border-bottom: solid 1px #eee;
  margin-top: 80px;
}
.post-next {
    text-align: right;
}
.post-navigation a{
  padding: 20px 0;
}
.post-navigation a:hover{
  color:  var(--accent-color-blue);
}
.post-top-link{
  text-align: center;
}
/* カテゴリー検索　-　詳細（single.php）  */
.bottm-category-p{
    text-align: center;
    margin: 30px auto 10px;
}

@media screen and (min-width: 768px) {
  .post-navigation a{
    padding: 20px;
  }
}

/*=================
　media 一覧ページ
/*=================*/
.media .posts-img-inner{
aspect-ratio: unset;
}
@media screen and (min-width: 768px) {
  .media .posts-li{
    width: 23.5%;
  }
}