/*-------------------------------
	archive-cooking
-------------------------------*/

.post-li {
  display: flex;
  flex-wrap: wrap;
}

.post-li article {
  width: 50%;
  border-bottom: 0 !important;
}

.post-li article:nth-child(odd) {
  padding-right: 1em;
}
.post-li article:nth-child(even) {
  padding-left: 1em;
}

.post-li a {
  display: block;
}
.post-li a {
  text-decoration: none !important;
}
.post-li a:hover img {
  opacity: .6;
}

.post-title {
  padding-top: 1em;
}

.link li{
  position: relative;
  display: inline-block;
  padding-left: 20px;
  width: 100%;
}
.link li::before{
  content: '';
  width: 5px;
  height: 5px;
  border: 0px;
  border-top: solid 2px #000;
  border-right: solid 2px #000;
  transform: rotate(45deg);
  position: absolute;
  top: 45%;
  left: 0;
  margin-top: -4px;
}

.link li a {
  display: block;
}


/*-------------------------------
	single-cooking
-------------------------------*/

.single-cooking .entry-content div {
  margin-top: 1em;
}

.single-cooking .entry-content p {
  line-height: 1.8;
}

.entry-thumb img {
  max-width: 100%;
  height: auto;
}

.entry-meta {
  margin: 1.42857em 0 0;
}

.related-cooking h2 {
  background: #000;
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.related-cooking .post-li article {
  width: 20%;
  padding: 0 0.5rem;
}


/*-------------------------------
	sidebar-cooking
-------------------------------*/

ol.ranking {
  counter-reset:number;
}

ol.ranking li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5em;
  padding: 0.5em 0 0.5em 30px;
}

ol.ranking li:before{
  position: absolute;
  counter-increment: number;
  content: counter(number);
  display:inline-block;
  background: #555;
  color: white;
  font-family: 'Avenir','Arial Black','Arial',sans-serif;
  font-weight:bold;
  font-size: 15px;
  border-radius: 50%;
  left: 0;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
}
/* 上位3位の背景色変更 */
ol.ranking li:nth-child(1):before{
  background: #fdd35c;
}
ol.ranking li:nth-child(2):before{
  background: #a0a0a0;
}
ol.ranking li:nth-child(3):before{
  background: #bf783e;
}
ol.ranking li:nth-child(10):before{
  padding:3px 10px;
}



/*-------------------------------
	single
-------------------------------*/

.post-template-default .front-il .itemimg {
  height: 6.7em;
  display: block;
  background-image: url(../images/no-image.png);
  background-size: cover;
}

.post-template-default .front-il .itemimg a {
  height: 100%;
}

.post-template-default .front-il .itemimg:hover {
  background: none;
}

.morecook-btn {
  text-align: center;
  margin-bottom: 3rem;

}
.morecook-btn a {
  background: #000;
  color: #fff;
  padding: 1.3em 2.142856em;
  border-radius: 3px;
  transition: all 0.3s;
  display: inline-block;
}
.morecook-btn a:hover {
  color: #fff;
  opacity: .8;
  text-decoration: none;
}


/*-------------------------------
	category
-------------------------------*/

.category .archive-item {
  display: flex;
	flex-direction: column;
}

.category .archive-item aside {
  order:1;
  background: #f5f5f5;
  padding: 0 2rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.category .archive-item aside h3 {
  background: none;
  color: #000;
  padding-left: 0;
}

.category .archive-item article {
  padding: 0 0 2.85712em;
}

.category .archive-item .cat-il {
  order: 2;
}

.category .archive-item aside .front-il {
  margin-bottom: 0;
}


/*-------------------------------
	Media Queries
-------------------------------*/

@media screen and (max-width: 480px) {
  .post-li article {
    margin-bottom: 0 !important;
  }

  .post-li article:nth-child(odd) {
    padding-right: .5em;
  }
  .post-li article:nth-child(even) {
    padding-left: .5em;
  }

  .related-cooking .post-li article {
    width: 50%;
    padding-bottom: 1rem;
  }

  /* single */
  .morecook-btn {
    padding: 1.42857em 0 0;
  }
  .morecook-btn a {
    padding: .714286em 2.142856em;
  }

}
