@charset "UTF-8";
/*
Template Name: blog
Theme Name: Gifted Style
Author: Hashikure@Polyphony

ブログページ用のCSS
*/

/* ヘッダー */
.header-container .wrap {
  max-width: 1200px;
}

/* メインラッパー */
.content {
  margin-top: 0;
  & .wrap {
    max-width: 960px;
  }
}
.content-in {
  justify-content: center;
}
.main {
  border: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
}

/* コンテンツヘッダー */
.article-header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  & h1 {
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-style: normal;
    font-weight: 700;
    transform:rotate(0.03deg);
  }
}

#list, .list-wrap {
  margin-bottom: 0;
  min-height: calc(100vh - 464px);
}

/* ページタイトル */
.blog-title,
.archive-title {
  align-items: center;
  display: flex;
  &::before {
    content: "";
    display: inline-block;
    flex: 1 1 auto;
    line-height: 1;
    background-image: url(../imgs/icon00.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 87px;
    height: 87px;
    margin-right: 16px;
  }
}
.title-text {
  flex: 0 1 auto;
}

/* 記事リスト */
.list {
  border-image: conic-gradient(#f7f7f7 0 0) fill 0 / 0 / 0 100vw;
  padding-block: 67px;
  row-gap: 72px;
}

.a-wrap {
  display: flex;
  align-items: center;
  padding: 0;
}

.entry-card-thumb {
  flex: 0 0 190px;
  float: none;
  margin: 0 30px 0 0;
  max-width: 190px;
}

.blogcard-thumbnail img, .card-thumb img {
  aspect-ratio: 1/1;
  display: block;
}

.entry-card-content {
  display: grid;
  margin-left: 0;
  padding-bottom: 0;
  width: 740px;
}

.entry-card-title {
  font-size: 1.25rem;
  order: 1;
}

.entry-card-snippet {
  font-size: 1rem;
  line-height: 1.5;
  order: 2;
}

.entry-card-meta {
  order: 0;
  position: relative;
  text-align: left;
}

.e-card-info {
  justify-content: flex-start;
  margin-bottom: 12px;
  & > * {
    font-size: 1rem;
  }
}

.entry-date {
  margin: 0;
}

.cat-label {
  border: none;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  padding: 5px 10px;
  left: inherit;
  right: 0;
  top: 0;
  z-index: 1;
}

.entry-card .admin-pv {
  order: 3;
  margin: 0;
}

/* 次・前のページへボタン */
.key-btn {
  background-color: #fff;
  border: 4px solid #30acc6;
  border-radius: 32px;
  color: #30acc6;
  font-weight: bold;
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
  &:hover {
    background-color: #30acc6;
    color: #fff;
  }
}

/* ページネーション */
.pagination {
  margin-bottom: 80px;
  & .current {
    background-color: #d0ecf1;
    border: 4px solid #30acc6;
  }
}
.page-numbers {
  background-color: #fff;
  border: 4px solid #999;
  border-radius: 50%;
  color: #666;
  font-weight: bold;
  height: 48px;
  line-height: 1;
  padding: 12px 16px;
  width: auto;
  &.dots {
    padding-inline: 12px;
  }
}
a.page-numbers {
  transition: background-color .3s ease-in-out, border .3s ease-in-out, color .3s ease-in-out;
  &:hover {
    background-color: #30acc6;
    border: 4px solid #30acc6;
    color: #fff;
  }
}
.pagination-next {
  margin-top: 48px;
}

/* 検索フォーム */
#search-form {
  border-image: conic-gradient(#fcfcfc 0 0) fill 0 / 0 / 0 100vw;
  display: block;
  & .search-box {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 2em 0;
  }
}

/* 投稿が見つからなかった場合 */
.posts-not-found {
  border-image: conic-gradient(#fcfcfc 0 0) fill 0 / 0 / 0 100vw;
  min-height: calc(100vh - 467px);
  padding-bottom: 130px;
  text-align: center;
  & img {
    margin-bottom: 2rem;
  }
  & p:not(:last-child) {
    margin-bottom: 1rem;
  }
}

/* -----
レスポンシブ対応
-----*/
@media (width < 1130px) {
  .main {
    width: calc(100% - 176px);
  }
}

@media (width < 1024px) {
  #list, .list-wrap {
    min-height: initial;
  }
  .entry-card-content {
    width: calc(100% - 220px);
  }
}

@media (width <= 834px) {
  .article-header {
    height: 154px;
  }
  main.main, div.sidebar {
    margin: 0;
    padding: 0 24px;
  }
}

/* @media (width <= 520px) { */
@media (width <= 600px) {
  .archive-title, .blog-title {
    display: flex;
    align-items: center;
    &::before {
      flex: 1 1 auto;
    }
  }
  .title-text {
    flex: 0 1 auto;
  }
  .list {
    padding-block: 72px;
    row-gap: 48px;
  }
  .a-wrap {
    align-items: start;
    flex-direction: column;
    gap: 24px;
  }
  .entry-card-thumb {
    flex: auto;
    margin: 0;
    max-width: initial;
    width: 100%;
  }
  .blogcard-thumbnail img, .card-thumb img {
    aspect-ratio: 16/9;
  }
  .entry-card-content {
    width: 100%;
  }
  .e-card-info {
    margin-bottom: 4px;
  }
  .entry-card-title {
    margin-bottom: 16px;
  }
  .cat-label {
    right: 8px;
    top: 8px;
  }
  .pagination-next {
    margin-top: 40px;
  }
  .pagination {
    margin-bottom: 76px;
  }
  .cf::after {
    content: none;
    display: none;
  }
}

@media (width <= 480px) {
  .ect-entry-card, .rect-entry-card, .rect-entry-card, .ect-big-card-first{
    & .a-wrap:not(.ec-big-card-first) .card-thumb {
      margin-bottom: 0;
    }
  }
  .archive-title, .blog-title {
    &::before {
      width: 48px;
      height: 48px;
    }
  }
}