/* ブログ */

/* 一覧ページ */

.look__wrapper {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 40px;
  padding-left: 4%;
  padding-right: 4%
}

.side-bar {
  margin-top: 80px;
}

.entry {
  flex: 0 1 calc((100% - 20px * 1) / 2);
}

.entry--frontpage {
  flex: 0 1 100%;
}

.picup__wrapper {
  padding-left: 4%;
  padding-right: 4%
}

.picup {
  position: relative;
  z-index: auto;
  margin: 100px auto;
  padding: 3vw;
  width: 100%;
  height: auto;
}

.picup::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background-color: #eee;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.picup::after {
  content: 'picup';
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--en-font);
  font-weight: 500;
  font-size: 2.8rem;
  text-align: center;
  color: #fff;
  background-color: var(--black);
  border-radius: 100px;
  width: fit-content;
  text-transform: uppercase;
  margin: 0 auto;
  padding: 0.2em 1em;
  transform: translateY(-50%);
}

.entry>a {
  display: block;
  color: var(--black);
  text-decoration: none;
}

.entry__thmub {}

.entry__figure {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.entry__figure:not(:has(img)) {
  display: none;
}

.entry__thmub {
  flex: 0 1 50%;
}

.entry__meta {
  flex: 0 1 50%;
}

.entry__time {
  position: absolute;
  background-color: var(--yellow);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  font-family: var(--en-font);
  font-weight: 500;
  line-height: 1;
}

.entry__year,
.entry__month,
.entry__day {
  display: block;
}

.entry__year {
  order: 3;
  font-size: min(3vw, 1.3rem)
}

.entry__month {
  order: 1;
  font-size: min(5vw, 2.1rem);
}

.entry__day {
  order: 2;
  font-size: min(9vw, 3.5rem);
  padding-top: min(2vw, 6px);
  padding-bottom: min(2vw, 6px);
  margin-top: min(2vw, 6px);
  margin-bottom: min(2vw, 6px);
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}

.entry__thmub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.2s steps(2);
}

.entry>a:hover .entry__figure>img {
  scale: 1.1;
}

.entry__meta {}

.entry__summary {
  margin-top: 15px;
  font-size: 1.4rem;
  line-height: 1.6;
  font-weight: bold;
}

.post-categories {
  margin-top: 15px;
}

.post-categories>li {
  display: inline-block;
  padding: 0.4em 1em;
  border-radius: 20px;
  background-color: var(--yellow);
  color: var(--black);
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
  text-align: center;
}

@media screen and (min-width: 600px) {
  .picup {
    position: relative;
    z-index: auto;
    margin: 100px auto 80px;
    padding: 3vw;
    width: calc(100% - 6vw);
    height: auto;
  }

  .look__wrapper {
    column-gap: 40px;
    row-gap: 40px;
    padding-left: 4%;
    padding-right: 4%
  }

  .entry {
    flex: 0 1 calc((100% - 40px * 1) / 2);
  }

  .entry--frontpage {
    flex: 0 1 calc((100% - 40px * 2) / 3);
  }

  .entry__figure {
    aspect-ratio: 16/9;
    border-radius: 16px;
  }

  .entry__time {
    width: 20%;
  }

  .picup .entry__summary {
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 1025px) {
  .blog {
    display: grid;
    max-width: 1366px;
    margin: 100px auto;
    grid-template-columns: auto 390px;
    grid-template-rows: auto auto;
  }

  .picup__wrapper {
    grid-column: 1 / 3;
    grid-row: 1;
    padding-left: 4vw;
    padding-right: 4vw;
  }


  .picup {
    width: 100%;
    margin: 0;
  }

  .blog__main {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .side-bar {
    margin-top: 0;
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .entry.picup {
    width: 100%;
    padding: 3vw 3vw 3vw 0;
    margin-bottom: 120px;
    position: relative;
  }

  .entry.picup::before {
    content: '';
    display: block;
    width: 55%;
    height: 100%;
    border-radius: 18px;
    background-color: #eee;
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    z-index: -1;
  }

  .entry.picup>a {
    display: flex;
    column-gap: 50px;
    align-items: center;
  }

  .entry.picup .entry__thmub {
    flex: 0 1 55%;
  }

  .entry.picup .entry__meta {
    flex: 0 1 45%;
  }

  .entry.picup .entry__summary {
    font-size: 2.4rem;
  }

}



/* ページネーション */
.wp-pagenavi,
.page-nation {
  position: relative;
  margin: 100px auto;
  max-width: 500px;
  height: 60px;
  background: var(--blue);
  padding: 0px 70px;
  border-radius: 100px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.125);
  display: flex;
  text-align: center;
}



.page-nation ul {
  display: flex;
  text-align: center;
}

.wp-pagenavi>span,
.wp-pagenavi>.page,
.page-nation ul li {
  width: 50px;
  font-size: 18px;
  height: 60px;
  line-height: 60px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.wp-pagenavi>.page:hover,
.wp-pagenavi>.current,
.wp-pagenavi>.current:hover,
.page-nation ul li:hover,
.page-nation ul li.active {
  background: var(--yellow);
  color: var(--black);
  text-decoration: none;
}

.previouspostslink,
.nextpostslink,
.page-nation .prev,
.page-nation .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  background: #fff;
  text-align: center;
  line-height: 25px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--blue);
  text-decoration: none;
}

.previouspostslink,
.page-nation .prev {
  left: 30px;
}

.nextpostslink,
.wrapper .next {
  right: 30px;
}

/* ウィジェット */
.widget__wrapper {
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  width: 98%;
  margin: 0 auto;
  border-radius: 24px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 20px;
  margin-bottom: 6px;
}

.widget {}

.widget+.widget {
  margin-top: min(23vw, 80px);
}

.widget__title {
  font-family: var(--en-font);
  font-weight: 500;
  font-size: 2.8rem;
  text-align: center;
  color: #fff;
  background-color: var(--black);
  border-radius: 100px;
  width: fit-content;
  text-transform: uppercase;
  margin: 0 auto;
  padding: 0.2em 1em;
  transform: translateY(-50%);
}

.widget__list {
  counter-reset: rank;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.widget__item>a {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  ;
}

.widget__thumb {
  flex: 0 0 120px;
  max-width: 120px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
}

ol.widget__list .widget__thumb::before {
  counter-increment: rank;
  content: counter(rank);
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 26px;
  height: 26px;
  text-align: center;
  line-height: 26px;
  background-color: var(--blue);
  font-family: var(--en-font);
  font-size: 1.4rem;
  color: #fff;
  z-index: 1;
}

ol.widget__list .widget__item:first-child .widget__thumb::before {
  background-color: var(--red);
}

ol.widget__list .widget__item:nth-child(2) .widget__thumb::before {
  background-color: var(--yellow);
  color: var(--black);
}

.widget__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 2;
  transition: 0.2s steps(2);
}

.widget__item>a:hover .widget__thumb>img {
  transform: scale(1.3);
}

.widget__meta {
  flex: 1 1 auto;
  margin-left: 23px;
  display: flex;
  flex-direction: column;
}

.widget__summary {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--black);
  line-height: 1.5;
}

.wedget__time {
  margin-top: 20px;
  display: block;
  font-family: var(--en-font);
  font-size: 1.3rem;
  color: var(--blue);
  font-weight: 500;
  justify-self: flex-end;
}

/* カテゴリウィジェット */
.cat-item,
.widget__category-item {
  padding: 0.8em 0;
  border-bottom: 1px solid var(--black);
  color: var(--black);
  font-size: 1.4rem;
  font-weight: bold;
  position: relative;
}

.cat-item.has_sub::after,
.widget__category-item.has_sub::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  position: absolute;
  right: 3vw;
  top: 0.8em;
  translate: 0 50%;
  rotate: -45deg;
  transition: .3s;
}

.cat-item.has_sub.active::after,
.widget__category-item.has_sub.active::after {
  rotate: 45deg;
}

.cat-item:last-child,
.widget__category-item:last-child {
  border: none;
}

.cat-item>a,
.widget__category-item>a {
  display: block;
  color: var(--black);
  text-decoration: none;
  transition: 0.2s;
}

.cat-item>a:hover,
.widget__category-item>a:hover {
  color: var(--blue);
}

.cat-item>.widget__category-list,
.widget__category-item>.widget__category-list {
  padding-left: 3vw;
  margin-left: 3vw;
  margin-top: 0.8em;
  border-left: 1px solid var(--black);
}

/* ウィジェットタグ一覧 */

.wp-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.wp-tag-cloud>li {
  display: inline-block;
}

.wp-tag-cloud>li a {
  display: block;
  padding: 0.4em 1em;
  text-decoration: none;
  border-radius: 30px;
  background-color: var(--blue);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  transition: 0.2s steps(2);
}

.wp-tag-cloud>li a:hover {
  background-color: var(--yellow);
  color: var(--black);
}


/* 個別ページ */
.entry__time.--mini {
  position: absolute;
  background-color: var(--yellow);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  width: 20%;
  height: 50%;
  font-family: var(--en-font);
  font-weight: 500;
  line-height: 1;
}

.entry__meta.--single {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--black);
}

.entry__summary.--single {
  font-size: min(6vw, 2.4rem);
}

.entry__time--single {
  color: var(--blue);
  font-family: var(--en-font);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 30px auto;
}

.entry__body {
  margin-top: 80px;
  line-height: 2;
  font-size: 1.5rem;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--black);
}

.entry__figure.--single {
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}


.entry__body>p {
  margin-top: 4em;
}

.post-categories.--single {
  margin-top: 30px;
}

.blog-single .blog__main {
  width: 98%;
  margin: 0 auto;
}

.blog-single .side-bar {
  margin-top: 120px;
}

@media screen and (min-width: 1025px) {
  .blog-single {
    display: grid;
    max-width: 1366px;
    margin: 100px auto;
    column-gap: min(3vw, 80px);
    grid-template-columns: auto 390px;
    grid-template-rows: auto auto;
  }

  .entry__body {
    margin-top: 80px;
    padding-bottom: 120px;
    border-bottom: 1px solid var(--black);
    line-height: 2;
    font-size: 1.8rem;
  }

  .blog-single .side-bar {
    margin-top: 0px;
  }
}

/* 関連記事 */
.relevance {
  margin-top: 80px;
}

.widget__list.--relevance {
  display: flex;
}

.widget__item.--relevance {
  padding: 16px;
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  flex: 0 1 50%;
}

@media screen and (min-width: 600px) {
  .widget__list.--relevance {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
  }

  .widget__item.--relevance {
    flex: 0 1 calc((100% - 20px * 1) / 2);
  }
}