@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
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* 関連記事カード：男の清潔感ラボ */
.ap-related-card {
  --ap-accent: #1598c6;
  --ap-accent-dark: #087ba7;
  --ap-accent-soft: #eef9fc;
  position: relative;
  margin: 24px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(21, 152, 198, .18);
  border-left: 4px solid var(--ap-accent);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(35, 79, 95, .045);
}

.ap-related-card::before {
  content: var(--card-label);
  position: absolute;
  top: 13px;
  left: 242px;
  right: 105px;
  z-index: 3;
  color: #39778f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  pointer-events: none;
}

.ap-related-card::after {
  content: "詳しく見る →";
  position: absolute;
  right: 18px;
  bottom: 13px;
  z-index: 3;
  color: #39778f;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}

.entry-content .ap-related-card a,
.entry-content .ap-related-card a:hover,
.entry-content .ap-related-card a:visited,
.entry-content .ap-related-card a *,
.entry-content .ap-related-card a:hover * {
  text-decoration: none !important;
}

.entry-content .ap-related-card .blogcard-wrap,
.entry-content .ap-related-card .internal-blogcard-wrap {
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 38px 18px 34px 18px !important;
  color: inherit !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.entry-content .ap-related-card .blogcard,
.entry-content .ap-related-card .internal-blogcard {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: center !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.entry-content .ap-related-card .blogcard::before,
.entry-content .ap-related-card .blogcard::after,
.entry-content .ap-related-card .internal-blogcard::before,
.entry-content .ap-related-card .internal-blogcard::after,
.entry-content .ap-related-card .blogcard-label,
.entry-content .ap-related-card .internal-blogcard-label,
.entry-content .ap-related-card .blogcard-footer,
.entry-content .ap-related-card .internal-blogcard-footer {
  display: none !important;
  content: none !important;
}

.entry-content .ap-related-card .blogcard-thumbnail,
.entry-content .ap-related-card .internal-blogcard-thumbnail {
  float: none !important;
  width: 200px !important;
  max-width: 200px !important;
  height: 113px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--ap-accent-soft);
}

.entry-content .ap-related-card .blogcard-thumb-image,
.entry-content .ap-related-card .internal-blogcard-thumb-image {
  display: block !important;
  width: 200px !important;
  height: 113px !important;
  margin: 0 !important;
  object-fit: cover !important;
  border: 0 !important;
  transition: transform .2s ease;
}

.entry-content .ap-related-card .blogcard-content,
.entry-content .ap-related-card .internal-blogcard-content {
  float: none !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.entry-content .ap-related-card .blogcard-title,
.entry-content .ap-related-card .internal-blogcard-title {
  display: -webkit-box !important;
  overflow: hidden !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #2b3d45 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-content .ap-related-card .blogcard-snippet,
.entry-content .ap-related-card .internal-blogcard-snippet {
  display: -webkit-box !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #66737a !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.entry-content .ap-related-card .blogcard-wrap:hover,
.entry-content .ap-related-card .internal-blogcard-wrap:hover {
  background: #fbfdfe !important;
}

.entry-content .ap-related-card .blogcard-wrap:hover .blogcard-thumb-image,
.entry-content .ap-related-card .internal-blogcard-wrap:hover .internal-blogcard-thumb-image {
  transform: scale(1.015);
}

.entry-content .ap-related-card .blogcard-wrap:hover .blogcard-title,
.entry-content .ap-related-card .internal-blogcard-wrap:hover .internal-blogcard-title {
  color: #1f596e !important;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  .ap-related-card {
    margin: 22px 0;
    border-left-width: 4px;
    border-radius: 13px;
  }

  .ap-related-card::before {
    top: 12px;
    left: 171px;
    right: 78px;
    font-size: 12px;
  }

  .ap-related-card::after {
    right: 14px;
    bottom: 11px;
    font-size: 11.5px;
  }

  .entry-content .ap-related-card .blogcard-wrap,
  .entry-content .ap-related-card .internal-blogcard-wrap {
    padding: 34px 12px 30px 12px !important;
  }

  .entry-content .ap-related-card .blogcard,
  .entry-content .ap-related-card .internal-blogcard {
    grid-template-columns: 145px minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .entry-content .ap-related-card .blogcard-thumbnail,
  .entry-content .ap-related-card .internal-blogcard-thumbnail,
  .entry-content .ap-related-card .blogcard-thumb-image,
  .entry-content .ap-related-card .internal-blogcard-thumb-image {
    width: 145px !important;
    max-width: 145px !important;
    height: 82px !important;
  }

  .entry-content .ap-related-card .blogcard-title,
  .entry-content .ap-related-card .internal-blogcard-title {
    margin-bottom: 5px !important;
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  .entry-content .ap-related-card .blogcard-snippet,
  .entry-content .ap-related-card .internal-blogcard-snippet {
    font-size: 12.8px !important;
    line-height: 1.55 !important;
  }
}

/*480px以下*/
@media screen and (max-width: 480px){
  .ap-related-card {
    margin: 18px 0;
    border-left-width: 3px;
    border-radius: 11px;
  }

  .ap-related-card::before {
    top: 9px;
    left: 111px;
    right: 8px;
    font-size: 10.5px;
    line-height: 1.3;
  }

  .ap-related-card::after {
    content: "読む →";
    right: 9px;
    bottom: 8px;
    font-size: 10.5px;
  }

  .entry-content .ap-related-card .blogcard-wrap,
  .entry-content .ap-related-card .internal-blogcard-wrap {
    padding: 29px 8px 27px 8px !important;
  }

  .entry-content .ap-related-card .blogcard,
  .entry-content .ap-related-card .internal-blogcard {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  .entry-content .ap-related-card .blogcard-thumbnail,
  .entry-content .ap-related-card .internal-blogcard-thumbnail,
  .entry-content .ap-related-card .blogcard-thumb-image,
  .entry-content .ap-related-card .internal-blogcard-thumb-image {
    width: 92px !important;
    max-width: 92px !important;
    height: 52px !important;
    border-radius: 6px !important;
  }

  .entry-content .ap-related-card .blogcard-title,
  .entry-content .ap-related-card .internal-blogcard-title {
    margin-bottom: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
  }

  .entry-content .ap-related-card .blogcard-snippet,
  .entry-content .ap-related-card .internal-blogcard-snippet {
    display: none !important;
  }
}
