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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* エレメント */
body {
  letter-spacing: 0.05em;
}
/* リンク画像 */
.a-wrap figure {
  overflow: hidden;
}
.a-wrap figure > img {
  transition: 0.3s;
}
.a-wrap:hover figure > img {
  transform: scale(1.3);
}
/* フッターナビ */
.navi-footer-in a {
  font-size: 12px;
}
/* アピールエリア */
.appeal {
  background-position: center center;
}
/* タブ */
.tab-content-group {
  border-color: var(--wp--preset--color--key-color);
}
.tab-block .tab-label-group {
  justify-content: center;
}
.tab-block .tab-label-group .tab-label {
  border: 1px solid var(--cocoon-basic-border-color);
  border-bottom: none;
  transition: 0.3s;
}
.tab-block .tab-label-group .tab-label.is-active {
  border-color: var(--wp--preset--color--key-color);
  background-color: var(--wp--preset--color--key-color);
}
.home .tab-block .tab-label-group .tab-label::before {
  font-family: "Font Awesome 5 Free";
  margin-right: 0.2em;
}
.home .tab-block .tab-label-group .tab-label-0::before {
  content: "\f017";
}
.home .tab-block .tab-label-group .tab-label-1::before {
  content: "\f005";
}
/* 見出し（h2） */
.article h2 {
  position: relative;
}
.article h2::before {
  position: absolute;
  top: -4px;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: calc(100% + 4px);
  border-top: 2px solid var(--wp--preset--color--key-color);
  border-bottom: 2px solid var(--wp--preset--color--key-color);
}
/* 見出し（h3・サイドバー） */
.article h3,
.sidebar .widget-title {
  border-color: var(--wp--preset--color--key-color);
  border-width: 2px;
  border-radius: 8px;
  position: relative;
}
.sidebar .widget-title {
  text-align: center;
}
.article h3::after,
.sidebar .widget-title:after {
  position: absolute;
  top: 100%;
  left: 20px;
  content: "";
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-top: 15px solid var(--wp--preset--color--key-color);
}
.sidebar .widget-title:after {
  left: 50%;
  transform: translatex(-50%);
}
/* 人気記事順位アイコン */
.widget-entry-cards.ranking-visible .card-thumb::before {
  background-color: #3f4a59;
  background-image: linear-gradient(
    135deg,
    #4c5b6b,
    #3f4a59,
    #354148,
    #3f4a59,
    #2c353e
  );
  opacity: 0.95;
}
.widget-entry-cards.ranking-visible .no-1 .card-thumb::before {
  background-color: #ffb700;
  background-image: linear-gradient(
    135deg,
    #ffcc33,
    #ffb700,
    #ff9e00,
    #ffb700,
    #e69a00,
    #d88f00,
    #ffb700,
    #ffcc33,
    #ff9e00,
    #e69a00,
    #d88f00
  );
}
.widget-entry-cards.ranking-visible .no-2 .card-thumb::before {
  background-color: #c0c0c0;
  background-image: linear-gradient(
    135deg,
    #d0d0d0,
    #c0c0c0,
    #b0b0b0,
    #c0c0c0,
    #a0a0a0,
    #909090,
    #c0c0c0,
    #d0d0d0,
    #b0b0b0,
    #a0a0a0,
    #909090
  );
}
.widget-entry-cards.ranking-visible .no-3 .card-thumb::before {
  background-color: #cd7f32;
  background-image: linear-gradient(
    135deg,
    #d88a44,
    #cd7f32,
    #b86a2e,
    #cd7f32,
    #a66124,
    #9c5b22,
    #cd7f32,
    #d88a44,
    #b86a2e,
    #a66124,
    #9c5b22
  );
}
.card-content .card-title {
  font-size: 14px;
}
/* トップページヘッダー */
.home .entry-title,
.home .date-tags {
  display: none;
}
/* 投稿ヘッダー */
.eye-catch .cat-label {
  padding-left: 2em;
  opacity: 0.95;
}
.eye-catch .cat-label::before {
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
  left: 0.6em;
  content: "\f07b";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
/* 目次 */
.toc-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  font-weight: 700;
}
.toc-title::before {
  display: inline-block;
  margin-right: 0.4em;
  content: "\f02d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
/* 目次（h2） */
.toc-list > li > a {
  padding-left: 1.3em;
  position: relative;
}
.toc-list > li > a::before {
  position: absolute;
  top: -0.15em;
  left: 0;
  content: "\f08d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transform: rotate(15deg);
}
/* 目次（h3） */
.toc-list > li li a {
  padding-left: 0.8em;
  font-size: 0.9em;
  position: relative;
}
.toc-list > li li a::before {
  position: absolute;
  top: -0.2em;
  left: 0;
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
/* 目次（サイドバー） */
.sidebar .toc-title {
  display: none;
}
#sidebar.sidebar .toc-content {
  max-height: 500px;
  overflow-y: auto;
}
.sidebar .toc-content li a {
  transition: 0.3s;
}
.sidebar .toc-content li.current a {
  color: var(--wp--preset--color--ex-a);
  font-weight: 700;
}
/* カテゴリー（サイドバー） */
.sidebar .cat-item a {
  display: flex;
  border-bottom: 1px dashed #ccc;
  padding: 0.3em 0 0.1em 2em;
  position: relative;
}
.sidebar .cat-item a::before {
  position: absolute;
  top: 50%;
  left: 0.4em;
  transform: translatey(-48%);
  content: "\f07b";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.sidebar .cat-item .post-count::before {
  content: "（";
}
.sidebar .cat-item .post-count::after {
  content: "）";
}

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

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
