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

/************************************
** 子テーマ用のスタイルを書く
************************************/

/* =========================
   見出し2をカスタマイズ
========================= */
.article h2 {
  position: relative;
  padding: 0.5em 0.5em 0.5em 1.5em;
  line-height: 1.4;
  color: #ff6a6a;
  border-top: dotted 1px gray;
  border-bottom: dotted 1px gray;
  background: #fffff4;

  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article h2:before {
  font-family: FontAwesome;
  content: "\f138";
  font-weight: 900;
  position: absolute;
  font-size: 1em;
  left: 0.25em;
  top: 0.5em;
  color: #ff6a6a;
}


/* =========================
   見出し3をカスタマイズ
========================= */
.article h3 {
  position: relative;
  padding: 0.25em 0;

  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

.article h3:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(
    to right,
    rgb(255, 186, 115),
    #ffb2b2
  );
  background: linear-gradient(
    to right,
    rgb(255, 186, 115),
    #ffb2b2
  );
}


/* =========================
   ブログカードをカスタマイズ
========================= */
.internal-blogcard {
  border: 3px solid #87ceeb !important;
}

.internal-blogcard-site {
  display: none;
}

/* 内部ブログカードの抜粋文を消す */
.internal-blogcard-snippet {
  display: none;
}

.internal-blogcard-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.internal-blogcard-label {
  background-color: #87ceeb;
  border-radius: 30px;
}

.internal-blogcard-title {
  color: #2f4f4f;
}


/* =========================
   案内ボックス
========================= */

/* アイコン・案内ボックス内の段落間隔を狭くする */
.article .compact-box p {
  margin-top: 0;
  margin-bottom: 0.7em;
}

.article .compact-box li {
  margin-bottom: 0.4em;
}

.article .compact-box p:last-child,
.article .compact-box li:last-child {
  margin-bottom: 0;
}


/* =========================
   アフィリエイトCTA
========================= */

/*
使用方法：
Cocoon「囲みボタン」の
「追加CSSクラス」に

affiliate-cta

と入力する。
*/

/* PC・タブレット：本文幅の75% */
.article .affiliate-cta {
  width: 75% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* A8の商品リンクをボタン全体に広げる */
.article .affiliate-cta > a {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;

  /* CTAカラー */
  background-color: #e06f00 !important;
  color: #ffffff !important;

  /* ホバーをなめらかにする */
  transition: background-color 0.2s ease;
}

/* PCでマウスを乗せたとき */
.article .affiliate-cta > a:hover {
  background-color: #c76500 !important;
  color: #ffffff !important;
}


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

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


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


/* CTA：スマホでは横幅100% */
@media screen and (max-width: 600px) {

  .article .affiliate-cta {
    width: 100% !important;
    max-width: 100% !important;
  }

  .article .affiliate-cta > a {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* 480px以下 */
@media screen and (max-width: 480px) {

  /* 案内ボックス内の文字サイズをスマホだけ小さくする */
  .article .primary-box .fz-24px,
  .article .secondary-box .fz-24px,
  .article .success-box .fz-24px,
  .article .info-box .fz-24px,
  .article .warning-box .fz-24px,
  .article .danger-box .fz-24px,
  .article .light-box .fz-24px,
  .article .dark-box .fz-24px {
    font-size: 22px;
  }

  .article .primary-box .fz-22px,
  .article .secondary-box .fz-22px,
  .article .success-box .fz-22px,
  .article .info-box .fz-22px,
  .article .warning-box .fz-22px,
  .article .danger-box .fz-22px,
  .article .light-box .fz-22px,
  .article .dark-box .fz-22px {
    font-size: 20px;
  }

  .article .primary-box .fz-20px,
  .article .secondary-box .fz-20px,
  .article .success-box .fz-20px,
  .article .info-box .fz-20px,
  .article .warning-box .fz-20px,
  .article .danger-box .fz-20px,
  .article .light-box .fz-20px,
  .article .dark-box .fz-20px {
    font-size: 19px;
  }

  .article .primary-box .fz-18px,
  .article .secondary-box .fz-18px,
  .article .success-box .fz-18px,
  .article .info-box .fz-18px,
  .article .warning-box .fz-18px,
  .article .danger-box .fz-18px,
  .article .light-box .fz-18px,
  .article .dark-box .fz-18px {
    font-size: 17px;
  }


  /* compact-box内の段落間隔をスマホでは狭くする */
  .article .compact-box p {
    margin-top: 0 !important;
    margin-bottom: 0.35em !important;
  }

  /* リストブロック自体の上下余白 */
  .article .compact-box ul,
  .article .compact-box ol {
    margin-top: 0.35em !important;
    margin-bottom: 0.35em !important;
  }

  /* リスト各項目の間隔 */
  .article .compact-box li {
    margin-bottom: 0.25em !important;
  }

  .article .compact-box p:last-child,
  .article .compact-box li:last-child {
    margin-bottom: 0 !important;
  }


  /* 見出しの余白をスマホ用に調整 */
  .article h2 {
    margin-top: 2rem;
    margin-bottom: 0.9rem;
  }

  .article h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
  }
}