@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

@media screen and (min-width: 1023px){
  #popular_entries-4,
  #item_ranking-6,
  #item_ranking-7,
  #item_ranking-8,
  #block-3 {
    display: none;
  }

  /* 各投稿ページのCSS */
  main .article {
    padding-left: 80px;
    padding-top: 40px;
  }

  header .sns-share {
    position: absolute;
    top: 86px;
    left: 12px;
  }

  header .sns-buttons {
    width: 46px;
  }
  .under-entry-content {
    padding-left: 80px;
  }
  main article .entry-content .sns-share {
    display: none;
  }
  #popular_entries-5 {
    display: none;
  }
  #nav_menu-2 {
    display: none;
  }
  .eye-catch-wrap + table {
    overflow-x: auto;
    display: block;
    width: 100%;
  }
}

@media screen and (min-width: 481px) {
  article table:nth-of-type(1) tbody,
  article table:nth-of-type(1) tbody tr,
  article table:nth-of-type(1) tbody tr th,
  article table:nth-of-type(1) tbody tr td {
    display: block;
  }
}

body {
  overflow-x: hidden;
}

body.category {
  border: none;
}

.carousel-content figure {
  width: 100% !important;
  height: 260px !important;
}

.cat-label {
  position: relative;
  font-weight: bold;
  border: none;
  border-bottom: 3px solid #ffc831;
  margin-bottom: 5px;
  line-height: 1.6;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0);
  color: #333;
  padding: 0;
}

.a-wrap {
  padding: 1.8%;
}

.a-wrap.related-entry-card-wrap {
  padding: 2.4%;
}

.entry-card-wrap,
.related-entry-card-wrap {
  box-shadow: 0 3px 10px #ddd;
  border-radius: 0;
  margin-bottom: 5px;
}

.entry-card-thumb,
.related-entry-card-thumb {
  width: 200px;
  margin: 0;
}

.entry-card-thumb {
  height: 170px;
  margin: 0;
}

.related-entry-card-thumb {
  height: 160px;
  margin: 0;
}

.entry-card-thumb img,
.related-entry-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* アスペクト比を保ちながら親要素を完全に埋める */
}

.entry-card-content {
  margin-left: 220px;
}

.related-entry-card-content {
  margin-left: 220px;
}

.related-entry-card-content {
  padding-bottom: 0;
  padding-top: 1.6em;
} 

.entry-card-snippet,
.related-entry-card-snippet {
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.related-entry-card .cat-label {
  position: absolute;
  top: 0;
  left: 220px;
}

.entry-card-meta {
  position: relative;
  margin-top: 10px;
}

.e-card-info {
  justify-content: flex-start;
} 

.entry-card-content {
  padding-bottom: 5px;
}

.entry-card-info > * {
  color: #9d9d9d;
  font-weight: normal;
  font-size: 0.9em;
}

.a-wrap:hover {
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  color: var(--cocoon-text-color);
}

.a-wrap:hover h2,.a-wrap:hover span.cat-label  {
  color: #f1673f;
  transition: all 0.3s ease-in-out;
}

#list {
  margin-bottom: 1em;
}

.pagination .current {
  background-color: #40322c !important;
  color: #fff !important;
  font-weight: bold;
}

.page-numbers.dots {
  background-color: #fff !important;
}

.page-numbers {
  border-color: #40322c !important;
}

.sidebar h3 {
  text-align: center;
  font-weight: 500;
  color: #fff;
  font-size: 1.1rem;
  padding: 5px;
  letter-spacing: 1px;
}

.sidebar aside:nth-of-type(n+3) h3 {
  background-color: #40322c !important;
}

.sidebar aside:nth-last-of-type(1) h3 {
  background-color: #f1673f !important;
}

.sidebar aside:nth-of-type(2) ul {
  border: 1px solid #f1673f;
  padding: 3% 4%;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sidebar aside:nth-of-type(2) ul li {
  width: 50%;  
  border-bottom: 1px solid #cecece;
}

.sidebar aside:nth-of-type(2) ul li:nth-last-of-type(1),
.sidebar aside:nth-of-type(2) ul li:nth-last-of-type(2) {
  border-bottom: none;
}

.sidebar aside:nth-of-type(2) ul li a {
  padding: 5px;
  font-weight: 500;
}

.sidebar aside:nth-last-of-type(1) ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.sidebar aside:nth-last-of-type(1) li {
    line-height: 1.8;
    padding-right: 18px;
    font-size: 1rem;
}

.sidebar aside:nth-last-of-type(1) li a:hover {
  color: #f1673f;
  transition: all 0.3s ease-in-out;
}

.sidebar aside:nth-last-of-type(1) li a {
  display: inline;
  padding: 3px 0;
  font-weight: 400;
}

.sidebar aside:nth-last-of-type(1) li::before {
    content: '#';
    color: #f1673f;
    list-style: none;
}

.carousel .a-wrap {
  padding: 0;
}

.carousel-entry-card-thumb,
.carousel-content .a-wrap,
.carousel-content .a-wrap:first-child  {
  margin: 0;
}

.carousel-entry-card-title {
  height: 5em;
}


/* 人気記事用CSS */
#content-bottom {
  width: 1224px;
  margin: 0 auto 100px;
}

#content-bottom-in {
  width: 822px;
  padding: 0 10px;
  margin: 0 0 auto 0;
}

#content-bottom #popular_entries-3 .popular-entry-cards {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

#content-bottom #popular_entries-3 .popular-entry-cards a {
  width: 30%;
  border-radius: 10px;
  box-shadow: 0 3px 10px #ddd;
  position: relative;
  padding: 0;
  margin-left: 23px;
  margin-top: 50px;
}

#content-bottom #popular_entries-3 .popular-entry-cards a figure {
  margin: 0 !important;
  height: 230px;
  border-radius: 10px 10px 0 0;
}

#content-bottom #popular_entries-3 .popular-entry-cards a .card-content {
  height: 115px;
  padding: 20px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 2px;
  text-align: left;
  line-height: 1.5;
}

#content-bottom #popular_entries-3 .popular-entry-cards a figure img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* アスペクト比を保ちながら親要素を完全に埋める */
  border-radius: 10px 10px 0 0;
}

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(1),
#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(2) {
  width: 47%;
}

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(3) figure,
#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(4) figure,
#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(5) figure {
  height: 180px;
}

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(3) .card-content,
#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(4) .card-content,
#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(5) .card-content {
  height: 165px;
}

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(1)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank1.png) no-repeat center;
    background-size: contain;
} 

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(2)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank2.png) no-repeat center;
    background-size: contain;
} 

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(3)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank3.png) no-repeat center;
    background-size: contain;
} 

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(4)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank4.png) no-repeat center;
    background-size: contain;
} 

#content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(5)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank5.png) no-repeat center;
    background-size: contain;
} 

/* 順位表示の疑似要素 */
#content-bottom #popular_entries-3 .popular-entry-cards a::after {
    content: '';
    background-size: contain;
    width: 60px;
    height: 60px;
    position: absolute;
    top: -36px;
    left: -23px;
    z-index: 2;
}

#content-bottom #categories-3 ul {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

#content-bottom #categories-3 ul::after {
    content: '';
    display: block;
    clear: both;
    width: 50%;
}

#content-bottom #categories-3 ul li {
  width: 23%;
  box-shadow: 0 3px 10px #ddd;
  border-radius: 0;
  margin-bottom: 20px;
}

#content-bottom #categories-3 ul li a {
  background: #fff;
  padding: 0;
}

#content-bottom #categories-3 ul li a figure {
  height: 120px;
  overflow: hidden;
}

#content-bottom #categories-3 ul li a figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#content-bottom #categories-3 ul li a span {
    height: 80px;
    padding: 0 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* 検索ボックスのCSS調整 */
form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 1em 0 1em !important;
}

input.search-edit {
  width: 82%;
}

button.search-submit {
  height: 100%;
  width: 15%;
  background-color: #ffc831;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  color: #40322c;
}

#sidebar #popular_entries-2 a figure::before{
  content: '';
  display: none;
}

#sidebar #popular_entries-2 a > .popular-entry-car {
  position: relative;
}

#sidebar .widget-entry-cards .a-wrap {
  margin-top: 20px;
  margin-bottom: 20px;
  height: 100px;
}

#sidebar #popular_entries-2 a:nth-of-type(1) > .popular-entry-card::after,
#sidebar .item-ranking-box .ranking-item:nth-of-type(1)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank1.png) no-repeat center;
    background-size: contain;
} 

#sidebar #popular_entries-2 a:nth-of-type(2) > .popular-entry-card::after,
#sidebar .item-ranking-box .ranking-item:nth-of-type(2)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank2.png) no-repeat center;
    background-size: contain;
} 

#sidebar #popular_entries-2 a:nth-of-type(3) > .popular-entry-card::after,
#sidebar .item-ranking-box .ranking-item:nth-of-type(3)::after {
    background: url(http://petan.jp/wp-content/uploads/2024/12/rank3.png) no-repeat center;
    background-size: contain;
} 

#sidebar #popular_entries-2 a > .popular-entry-card::after,
#sidebar .item-ranking-box .ranking-item::after {
    content: '';
    background-size: contain;
    width: 40px;
    height: 40px;
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: 2;
}

#sidebar .item-ranking-box .ranking-item::after {
  left: 3px;
}

#sidebar #popular_entries-2 a div .card-content {
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.5;
}

.widget-entry-card-content {
  margin-left: 110px;
}

#sidebar .popular-entry-cards .a-wrap {
  padding-left: 20px;
}

#sidebar #popular_entries-2 a div figure {
  width: 90px;
  height: 90px;
}

#sidebar #popular_entries-2 a div figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* メニューバーのランキングのCSS調整 */
#sidebar .ranking-item {
  border: none;
  display: flex;
  flex-flow: row-reverse;
  position: relative;
  margin-top: 25px;
  margin-bottom: 25px;
  padding: 0;
}

#sidebar .ranking-item:nth-last-of-type(1) {
  margin-bottom: 40px;
}

#sidebar .ranking-item .ranking-item-img-desc {
  padding: 0;
  margin: 0;
}

#sidebar .ranking-item .ranking-item-img-desc a {
  width: 90px;
  height: 90px;
  display: block;
  padding: 0;
  margin: 0;
}

#sidebar .ranking-item .ranking-item-img-desc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sidebar .ranking-item .ranking-item-img-desc .ranking-item-description {
  position: absolute;
  top: -10px;
  left: 117px;
  margin: 0;
  padding: 0;
  margin-top: 5px;
}

#sidebar .ranking-item .ranking-item-name {
  width: 67%;
  padding: 0 0 0 8px;
}

#sidebar .ranking-item .ranking-item-name .ranking-item-name-text {
  font-weight: bold;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0px;
}

#sidebar .ranking-item .ranking-item-name .ranking-item-name-crown {
  display: none;
}

#sidebar .ranking-item .ranking-item-link-buttons {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

#sidebar .ranking-item .ranking-item-link-buttons a {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* フッターCSS */

.footer {
  padding: 30px 0 20px;
}

.footer-left, .footer-right {
  display: none;
}
.footer-left, .footer-center, .footer-right {
  width: 100%;
  padding: 0;
}

.footer-center .info-list {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-center .info-list {
  padding: 0;
}

.footer-center .info-list .info-list-item {
  width: 19%;
  background: #fff;
  padding: 52px 18px 18px;
  border-radius: 10px;
  box-shadow: 0 3px 10px #ddd;
  font-size: 0.7rem;
  font-weight: 500;
  position: relative;
}

.info-list-item .info-list-item-date {
  display: none;
}

.info-list-item .info-list-item-meta {
  opacity: 1;
} 

.info-list-item .info-list-item-categorys {
  position: absolute;
  top: 18px;
  left: 18px;
}

.info-list-item .info-list-item-categorys .entry-category {
  border: none;
  position: relative;
  font-weight: bold;
  border: none;
  border-bottom: 3px solid #ffc831;
  margin-bottom: 5px;
  line-height: 1.6;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0);
  color: #333;
  padding: 0;
}

.sns-share.ss-col-1 a,
.sns-share.ss-col-6 a {
  border-radius: 50%;
  border: none;
  box-shadow: 0 3px 10px #ddd;
}

.sns-share.ss-col-1 a {
  height: 46px !important;
  width: 46px !important;
}

.sns-share.ss-col-6 a {
  width: 54px !important;
  height: 54px !important;
}

.sns-share.ss-col-6 .sns-buttons {
  width: 70%;
  margin: 20px auto;
  justify-content: space-between;
}

.sns-share.ss-col-1 a .button-caption,
.sns-share.ss-col-6 a .button-caption {
  display: none;
}

.sns-share.ss-col-1 a .social-icon,
.sns-share.ss-col-6 a .social-icon {
  font-size: 20px;
}

.date-tags {
  position: absolute;
  top: 90px;
  right: 0;
  font-size: 1.3rem;
}

.entry-content .eye-catch {
  text-align: center;
  background-color: #eee;
}

.entry-content .eye-catch img {
  width: 80%;
}

.eye-catch .cat-label {
  display: none;
}

.toc {
  width: 100%;
  border: none;
  background: #f7f7f7;
  padding: 20px 30px;
  font-size: 1.05em;
}

.toc-content {
  border-top: 2px solid #f1673f;
}

.toc a {
  color: #666;
}

.toc-title {
  font-weight: 600;
  margin-bottom: 10px;
} 

.toc.tnt-number-detail ol li {
  padding-left: 0;
}

.toc.tnt-number-detail ol li:before {
  font-weight: 600;
}

.article h2 {
  background: #fff;
  border-bottom: 2px solid #f1673f;
  padding: 15px 0;
}

.article h3 {
  border: none;
  font-size: 20px;
  padding: 8px 14px;
  margin-top: 3.5em;
  position: relative;
}

.article h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: #f1673f;
    border-radius: 2px;
    display: inline-block;
    margin-right: 10px;
    width: 4px;
}

.article h4 {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  margin: 10px 0 30px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid #424242;
}

.article h4::before {
    content: '';
    background-color: #f1673f;
    border-radius: 1px;
    display: inline-block;
    margin-right: 10px;
    height: 2px;
    width: 30px;
}

.u-td-gradient {
  background-image: linear-gradient(120deg, #ff6 0%, #fceabb 100%);
  background-repeat: no-repeat;
  background-size: 100% .4em;
  background-position: 0 90%;

  /* リンクと画像が入ってなかったため非表示に */
  /* display: none; */
}

.entry-content ul, .entry-content ol {
  background-color: #f7f7f7;
  padding: 5px;
}

.entry-content ul li , .entry-content ol li {
  padding-left: 3rem;
  margin: 0.9rem 0;
  position: relative;
}

.entry-content ol li {
  padding-left: 1rem;
}

.entry-content ol li span {
  font-weight: 600;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 22px;
    width: .8em;
    height: .3em;
    border-bottom: 3px solid #40322c;
    border-left: 3px solid #f1673f;
    transform: rotate(-45deg);
    margin-right: .5em;
}

.article table {
  border-bottom: 1px solid #ccc;
}

.article table tr th:first-child, 
.article table tr td:first-child {
  border-left: 1px solid #ccc;
}

.article table tr th:last-child,
.article table tr td:last-child {
  border-right: 1px solid #ccc;
}

.article table {
  border-right: 1px solid #ccc;
}

.article table tr th,
.article table tr td {
  padding: 10px 8px;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.6);
  vertical-align: middle;
  word-break: break-word; /* 文字を折り返す */
  white-space: normal; /* 通常の改行ルールを適用 */
}

.eye-catch-wrap + table tbody tr th,
.eye-catch-wrap + table tbody tr td {
  word-break: normal; /* 文字を折り返す */
  white-space: nowrap; /* 改行させず、1行に収める */

}

.article table tr td {
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #eee;
  font-size: 0.9rem;
}

.article table tr:nth-of-type(2n + 1) {
  background: rgba(255, 255, 255, 0.6);
}

.article table tr th {
  background: #f1673f;
  color: #fff;
}

.article table tr td p {
  margin-bottom: 0;
}

.article table th p {
  margin-bottom: 0;
  color: #fff;
}

.article p a {
  color: #f1673f;
  font-weight: 600;
}

.p-article__link {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: rgba(0, 0, 0, 0.2) 0 2px 4px;
  border: solid 1px #ccc;
  padding: 15px;

  /* リンクと画像が入ってなかったため非表示に */
  display: none;
}

.add_link .p-article__link {
  display: flex !important;
  justify-content: space-between;
  margin-bottom: 20px;
}

.add_link .p-article__link__content_1 {
  width: 16%;
}

.add_link .p-article__link__content_2 {
  width: 82%;
}

.under-entry-content .p-article__link {
  display: flex !important;
}

/* 元設定 */
.p-article__link__content_1 {
  width: 20%;
}

.p-article__link__content_2 {
  width: 77%;
}

.p-article__internalLabel {
  background-color: #ffeb3b;
  color: #333333;
  margin-bottom: 0rem !important;
  padding: 8px;
  line-height: 1;
  display: inline-block;
  font-weight: bold;
  font-size: 0.8rem;
}

.p-article__internalTitle {
  font-weight: bold;
}

.l-contents__heading {
    display: flex;
    align-items: center;
    position: relative;
    font-size: 1.2rem;
    padding: 15px 0;
    font-weight: 500;
}

.l-contents__heading::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background-image: linear-gradient(-45deg, rgba(204, 204, 204, 0.5) 25%, transparent 25%, transparent 50%, rgba(204, 204, 204, 0.5) 50%, rgba(204, 204, 204, 0.5) 75%, transparent 75%, transparent);
    background-size: 4px 4px;
}

.u-svg-m {
    height: 24px;
    width: 24px;
}

.l-contents__heading::after {
    content: attr(data-subtitle) "";
    font-weight: bold;
    font-size: 1.2rem;
    color: #f1673f;
    margin-left: 5px;
    white-space: nowrap;
}

.entry-categories a,
.entry-tags a {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 30px;
    line-height: 2.6;
    padding: 0 15px;
    margin-top: 20px;
    margin-right: 10px;
    background-color: none;
    display: inline-block;
}

.article-footer {
  margin-top: 30px;
  background-color: #f7f7f7;
  padding: 0 15px 20px;
}

.article-footer .sns-share-message {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 1rem;
  padding: 15px 0;
  text-align: center;
}

.article-footer .sns-share-message::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background-image: linear-gradient(-45deg, rgba(204, 204, 204, 0.5) 25%, transparent 25%, transparent 50%, rgba(204, 204, 204, 0.5) 50%, rgba(204, 204, 204, 0.5) 75%, transparent 75%, transparent);
    background-size: 4px 4px;
}

.p-article__link__a {
  font-weight: bold;
  border-bottom: 1px solid #333;
  line-height: 1.8;
  padding-bottom: 3px;
}

.entry-content {
  margin-top: 0.5em;
}

.eye-catch-wrap + table td a,
.eye-catch-wrap + table td p a {
  color: #333;
  text-decoration: underline;
  font-weight: bold;
}

.eye-catch {
  max-height: 300px;
  overflow: hidden;
}

.eye-catch img {
  object-fit: cover;
  height: 100%;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/

/* .category {
    font-weight: bold;
    border-bottom: 3px solid #ffc831;
    margin-bottom: 5px;
    line-height: 1.6;
    display: inline-block;
} */

/*1230px以下*/
@media screen and (max-width: 1230px){
  
  #content-bottom {
    width: 68%;
    margin: 0 auto 0 0;
    padding-left: 2%;
  }

  #content-bottom-in {
    width: 100%;
    padding: 0 0px;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(1),
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(2) {
    width: 46%;
  }
}

/*1035px以下*/
@media screen and (max-width: 1035px){
  #content-bottom #popular_entries-3 .popular-entry-cards a {
    width: 29%;
  }
}

/*1023px以下*/
@media screen and (max-width: 1023px){
  .article h1, .article h2, .article h3, .article h4, .article h5, .article h6 {
    line-height: 1.5;
  }
  #popular_entries-5 .popular-entry-cards {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  #popular_entries-5 .popular-entry-cards a {
    width: 48%;
    position: relative;
    padding: 0;
    margin: 0;
  }

  #popular_entries-5 .popular-entry-cards a .popular-entry-card-title {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .date-tags {
    top: 30px;
    right: 7px;
    font-size: 1.4rem;
  }

  .article h2 {
    padding: 10px 0;
    margin-bottom: 1.4em;
    margin-top: 1.4em;
  }
  
  main article header .sns-share {
    display: none;
  }

  .eye-catch-wrap + table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .eye-catch-wrap + table tbody {
    min-width: 822px;
    width: 100%;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a {
    width: 29%;
  }
  #content-bottom {
    width: 100%;
    margin: 0 auto 0;
    padding: 0 3%;
  }
  footer .footer-center {
    padding: 0 3%;
  }

  #popular_entries-4 h2,
  #item_ranking-6 h2,
  #item_ranking-7 h2,
  #item_ranking-8 h2,
  #block-3 h3 {
    text-align: center;
    font-weight: 500;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    padding: 10px;
    letter-spacing: 1px;
    background-color: #40322c !important;
    border: none;
  }

  #popular_entries-4 h2::after,
  #item_ranking-6 h2::after,
  #item_ranking-7 h2::after,
  #item_ranking-8 h2::after {
    border: none;
  }

  #block-3 h3 {
    background-color: #f1673f !important;
  }

  #block-3 ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding: 3% 3% 0;
  }

  #block-3 li {
      line-height: 1.8;
      padding-right: 18px;
      font-size: 1.3rem;
  }

  #block-3 li a:hover {
    color: #f1673f;
    transition: all 0.3s ease-in-out;
  }

  #block-3 li a {
    display: inline;
    padding: 3px 0;
    font-weight: 400;
  }

  #block-3 li::before {
    content: '#';
    color: #f1673f;
    list-style: none;
  }

  #popular_entries-4 a figure::before{
    content: '';
    display: none;
  }

  #popular_entries-4 a > .popular-entry-car {
    position: relative;
  }

  #popular_entries-4 .widget-entry-cards .a-wrap {
    margin-top: 20px;
    margin-bottom: 20px;
    height: 100px;
  }

  #popular_entries-4 a:nth-of-type(1) > .popular-entry-card::after,
  .item-ranking-box .ranking-item:nth-of-type(1)::after {
      background: url(http://petan.jp/wp-content/uploads/2024/12/rank1.png) no-repeat center;
      background-size: contain;
  } 

  #popular_entries-4 a:nth-of-type(2) > .popular-entry-card::after,
  .item-ranking-box .ranking-item:nth-of-type(2)::after {
      background: url(http://petan.jp/wp-content/uploads/2024/12/rank2.png) no-repeat center;
      background-size: contain;
  } 

  #popular_entries-4 a:nth-of-type(3) > .popular-entry-card::after,
  .item-ranking-box .ranking-item:nth-of-type(3)::after {
      background: url(http://petan.jp/wp-content/uploads/2024/12/rank3.png) no-repeat center;
      background-size: contain;
  } 

  #popular_entries-4 a > .popular-entry-card::after,
  .item-ranking-box .ranking-item::after {
      content: '';
      background-size: contain;
      width: 40px;
      height: 40px;
      position: absolute;
      top: -20px;
      left: -15px;
      z-index: 2;
  }

  .item-ranking-box .ranking-item::after {
    left: 3px;
  }

  #popular_entries-4 a div .card-content {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
  }

  .widget-entry-card-content {
    margin-left: 103px;
  }

  .popular-entry-cards .a-wrap {
    padding-left: 20px;
  }

  #popular_entries-4 a div figure {
    width: 90px;
    height: 90px;
  }

  #popular_entries-4 a div figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* メニューバーのランキングのCSS調整 */
  .ranking-item {
    border: none;
    display: flex;
    flex-flow: row-reverse;
    justify-content: space-between;
    position: relative;
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 20px;
    padding: 0;
  }

  .ranking-item:nth-last-of-type(1) {
    margin-bottom: 40px;
  }

  .ranking-item .ranking-item-img-desc {
    padding: 0;
    margin: 0;
  }

  .ranking-item .ranking-item-img-desc a {
    width: 90px;
    height: 90px;
    display: block;
    padding: 0;
    margin: 0;
  }

  .ranking-item .ranking-item-img-desc img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .ranking-item .ranking-item-img-desc .ranking-item-description {
    position: absolute;
    top: -10px;
    left: 117px;
    margin: 0;
    padding: 0;
    margin-top: 5px;
  }

  .ranking-item .ranking-item-name {
    width: 67%;
    padding: 0 0 0 8px;
  }

  .ranking-item .ranking-item-name .ranking-item-name-text {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5;
    margin-top: 0px;
  }

  .ranking-item .ranking-item-name .ranking-item-name-crown {
    display: none;
  }

  .ranking-item .ranking-item-link-buttons {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
  }

  .ranking-item .ranking-item-link-buttons a {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  main .article {
    padding-left: 0px;
    padding-top: 20px;
  }
  main .article #toc {
    display: none;
  }

  .article h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 16px;
  }

  .sns-buttons {
    justify-content: space-between;
    margin-bottom: 0;
  }

  .p-article__link {
    padding: 3% 3% 4%;
  }

  .p-article__link__content_2 .p-article__internalTitle,
  .p-article__link__content_2 .p-article__internalText {
    margin-bottom: 0 !important;
  }

  /* 元々の設定 */
  .p-article__link__content_1 {
  width: 25%;
  }

  .p-article__link__content_2 {
    width: 72%;
  }

  /* モバイルフッター追従調整 */
  .mobile-footer-menu-buttons > li:nth-of-type(1),
  .mobile-footer-menu-buttons > li:nth-of-type(2),
  .mobile-footer-menu-buttons > li:nth-of-type(3),
  .mobile-footer-menu-buttons > li:nth-of-type(4) {
    display: none;
  }

  .mobile-footer-menu-buttons > li .sidebar-menu-caption {
    display: none;
  }

  .mobile-footer-menu-buttons {
    /* position: fixed; */
    width: 50px;
    height: 50px;
    border-radius: 100px;
    bottom: 25px !important;
    right: 15px;
    left: auto;
    background: rgba(241, 103, 63, 0.9);
  }
  .fa-outdent:before {
    color: #fff;
  }

  #slide-in-sidebar .widget {
    margin-bottom: 1em !important;
  }

  #slide-in-sidebar aside:nth-of-type(2),
  #slide-in-sidebar aside:nth-of-type(3),
  #slide-in-sidebar aside:nth-of-type(4),
  #slide-in-sidebar aside:nth-of-type(5),
  #slide-in-sidebar aside:nth-of-type(7),
  #slide-in-sidebar aside:nth-of-type(6) {
    display: none;
  }

  #sidebar-menu-content.menu-content {
    max-width: 86%;
    border-left: 5px solid #f1673f;
  }

  #nav_menu-2 li {
    border-bottom: 1px solid #999;
  }
  #nav_menu-2 li a {
    padding: 12px 0;
  }
  #nav_menu-2 li:nth-last-of-type(1) {
    border-bottom: none;
  }
  .sns-share.ss-col-6 .sns-buttons {
    width: 100%;
  }
  .related-entry-card-content {
    margin-left: 0px;
  }
  .carousel-entry-card-title {
   height: 4em;
  }
  .eye-catch {
    max-height: 200px;
  }
  .p-article__link {
    align-items: flex-end;
  }
  body #container #content table {
    width: 100%;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  div.sidebar {
    padding: 32px 24px;
  }
  main.main {
    padding: 0 4% 32px;
  }

  .entry-card-thumb,
  .related-entry-card-thumb {
    width: 30%;
    height: 28vw;
    margin-right: 3%;
    margin-bottom: 0 !important;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a {
    border-radius: 0px;
    padding: 1.5%;
    margin-left: 3%;
    margin-top: 5%;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a figure {
    height: 16vh;
    border-radius: 0;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(3) figure,
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(4) figure,
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(5) figure {
    height: 12vh;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a figure img {
    border-radius: 0;
  }
  
  #content-bottom #popular_entries-3 .popular-entry-cards a .card-content {
    height: 7vh;
    padding: 8% 5%;
    font-size: 1.1rem;
  }
  
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(3) .card-content,
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(4) .card-content,
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(5) .card-content {
    height: 12vh;
  }

  footer #info-list {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  footer #info-list .info-list-item {
    width: 31%;
  }

  footer #info-list::after {
    content: '';
    display: block;
    clear: both;
    width: 31%;
  }

  #content-bottom #categories-3 ul li {
    width: 30%;
    box-shadow: none;

    margin-bottom: 20px;
  }
  
  #content-bottom #categories-3 ul li a {
    background: rgba(233, 233, 233, 0);
  }
  
  #content-bottom #categories-3 ul li a figure {
    box-shadow: 0 3px 10px #ddd;
    height: 24vw;
    border-radius: 10px;
  }

  #content-bottom #categories-3 ul li a span {
    height: 16vw;
    padding: 0;
    font-size: 1.2rem;
    letter-spacing: 0;
  }
  .carousel-content {
    display: block !important;
  }

  footer #new_entries-4 h3 {
    display: none;
  }

  footer #new_entries-4 .new-entry-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  footer #new_entries-4 .new-entry-cards a {
    width: 48.5%;
    background: #fff;
    border: none;
    box-shadow: rgb(221, 221, 221) 0px 3px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 4% 3%;
    margin-bottom: 4%;
  }

  footer #new_entries-4 .new-entry-cards a .widget-entry-card {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  footer #new_entries-4 .new-entry-cards a .widget-entry-card-content {
    margin: 0;
  }

  footer #new_entries-4 .new-entry-cards a figure {
    display: none;
  }
  .related-entry-card .cat-label {
    left: 110%;
  }
} 

/*480px以下*/
@media screen and (max-width: 480px){
  .add_link .p-article__link__content_1 {
    width: 32%;
  }

  .add_link .p-article__link__content_2 {
    width: 65%;
  }

  .ranking-item {
    margin-left: 0px;
    justify-content: end;
  }

  .a-wrap {
   padding: 2.4%;
  }
  .entry-card-title {
    margin-top: 3px;
    line-height: 1.5;
  }
  .entry-card-meta {
    position: absolute;
    bottom: 0;
    left: 33%;
    font-size: 1.1rem;
  }
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(1),
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(2) {
    width: 47%;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a {
    width: 30%;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a {
    margin-bottom: 5%;
    margin-left: 2%;
    margin-top: 4%;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a .card-content {
    height: auto;
    margin-bottom: 0;
    padding: 4% 3%;
    font-size: 1rem;
    letter-spacing: 1px;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(3) .card-content,
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(4) .card-content,
  #content-bottom #popular_entries-3 .popular-entry-cards a:nth-of-type(5) .card-content {
    height: auto;
  }

  #content-bottom #popular_entries-3 .popular-entry-cards a::after {
    width: 11vw;
    height: 11vw;
    top: -26px;
    left: -14px;
  }
  .carousel-content {
    margin: 0;
  }
  .slick-arrow {
    display: none !important;
  }

  .entry-title {
    padding: 1em 0;
  }
  .entry-content ul li::before {
    left: 9px;
  }
}
   