@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
*/
/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* ========================================================
共通
=========================================================*/
.footer-bottom {
  margin-top: 0;
}

/* ========================================================
トップページ
=========================================================*/
.top-contents {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.top-section-title {
  font-size: 26px;
  line-height: 1.3;
  margin: 16px 0;
}
.top-section-title span.fa {
  margin-right: 18px;
}

.top-section-button-wrap {
  text-align: center;
}

.top-section-button {
  display: inline-block;
  font-size: 16px;
  padding: 0.5em 1em;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 100vh;
  transition: background-color 0.3s ease;
  min-width: 150px;
  text-align: center;
}
.top-section-button:hover {
  background-color: #0056b3;
  color: #fff;
}

/* ========================================================
一覧ページ共通
=========================================================*/
.entry-card.info {
  color: #333;
  background-color: inherit;
  padding: 0;
  border-radius: 0;
}

/* カテゴリーラベル
----------------------------------------------------- */
.category-list {
  position: absolute;
  top: 0.24em;
  left: 0.24em;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 3px;
  z-index: 1;
}

.category-item {
  background-color: rgba(51, 51, 51, 0.7);
  color: var(--cocoon-white-color);
  padding: 1px 5px;
  font-size: 10px;
  border: 1px solid #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========================================================
カスタムタクソノミー 一覧ページ
=========================================================*/
.child-terms-title {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

.child-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  list-style: none;
  padding-left: 0;
  line-height: 1.3;
  margin-bottom: 30px;
}

.child-term-link {
  font-size: 14px;
  color: inherit;
  text-decoration: none;
}

/* ========================================================
記事詳細ページ
=========================================================*/
.article.info {
  color: #333;
  background-color: inherit;
  padding: 0;
  border-radius: 0;
}

/* アイキャッチ
----------------------------------------------------- */
.eye-catch {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid #ddd;
  width: 100%;
}
.eye-catch img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eye-catch .category-item {
  top: 0.4em;
  left: 0.4em;
  background-color: rgba(51, 51, 51, 0.7);
  font-size: 14px;
  padding: 2px 8px;
  border: 1px solid #eee;
}

/* 関連記事
----------------------------------------------------- */
.related-posts {
  margin-bottom: 1.8em;
}

.related-posts__heading {
  font-size: 24px;
  margin: 22px 0;
}
@media screen and (max-width: 480px) {
  .related-posts__heading {
    margin: 1.2em 0 1em;
  }
}

.related-posts__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 1.5%;
  list-style: none;
  padding-left: 0;
}
@media screen and (max-width: 834px) {
  .related-posts__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 3%;
  }
}
@media screen and (max-width: 480px) {
  .related-posts__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.related-posts-item__link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.related-posts-item__link:hover {
  color: inherit;
}

.related-posts-item__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: 1px solid #ddd;
}
.related-posts-item__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}
.related-posts-item__link:hover .related-posts-item__image img {
  transform: scale(1.05);
}

.related-posts-item__date {
  font-size: 0.7em;
  line-height: 1.3;
  margin-bottom: 0.2em;
  transition: opacity 0.2s ease-out;
}
.related-posts-item__link:hover .related-posts-item__date {
  opacity: 0.7;
}

.related-posts-item__date-text {
  margin-left: 3px;
}

.related-posts-item__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  transition: opacity 0.2s ease-out;
}
.related-posts-item__link:hover .related-posts-item__title {
  opacity: 0.7;
}