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

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

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
* {
  font-family: IPAMonaPGothic, "IPA モナー Pゴシック", Monapo, Mona, "MS PGothic", "ＭＳ Ｐゴシック", "Osaka-mono", "Osaka−等幅", "monospace", sans-serif;
  font-feature-settings: "palt" on;
}
/* 記事TOPイメージ */
div.eye-catch-wrap {
  max-width: 896px;
  width: 100%;
  justify-content: center;
  margin: 0px auto;
}
figure.eye-catch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/****************************************
  *
  *記事全体
  *
 ****************************************/
div.entry-content.cf {
  width: 896px;
  margin: auto;
}
div.entry-content.cf > h1:first-child,
div.entry-content.cf > h2:first-child,
div.entry-content.cf > h3:first-child,
div.entry-content.cf > h4:first-child,
div.entry-content.cf > h5:first-child,
div.entry-content.cf > h6:first-child,
div.entry-content.cf > p:first-child,
div.entry-content.cf > img:first-child {
  margin: 2px 0px 16px !important;
}
div.entry-content.cf p,
div.entry-content.cf img {
  margin: 0px 0px 16px;
}
div.entry-content.cf h1:has(+ p, + img, + figure),
div.entry-content.cf h2:has(+ p, + img, + figure),
div.entry-content.cf h3:has(+ p, + img, + figure),
div.entry-content.cf h4:has(+ p, + img, + figure),
div.entry-content.cf h5:has(+ p, + img, + figure),
div.entry-content.cf h6:has(+ p, + img, + figure),
div.entry-content.cf img:has(+ figcaption) {
  margin: 0px 0px 4px !important;
}
div.entry-content.cf h1,
div.entry-content.cf h2,
div.entry-content.cf h3,
div.entry-content.cf h4,
div.entry-content.cf h5,
div.entry-content.cf h6 {
  margin:0px 0px 16px !important;
  font-weight: bold;
  background-color: #FFF !important;
  color: #000 !important;
}
div.entry-content.cf h4,
div.entry-content.cf h5,
div.entry-content.cf h6 {
  font-size: 16px;
  line-height: 18px
}
div.entry-content.cf h1 {
  font-size: 24px;
  line-height: 1.8rem;
}
div.entry-content.cf h2 {
  font-size: 20px;
  line-height: 1.6rem;
  background-color: inherit;
  border-radius: 0;
  padding: 0px;
}
div.entry-content.cf h3 {
  font-size: 18px !important;
  line-height: 1.4rem !important;
  padding: 0px;
  font-weight: bold;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: none;
}
div.entry-content.cf h4,
div.entry-content.cf h5,
div.entry-content.cf h6 {
  font-size: 16px !important;
  line-height: 18px !important;
  padding: 0px;
  border-top:none;
  border-bottom: none;
  font-weight: bold;
}
img + figcaption {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px !important;
    padding: 0px;
}
div.entry-content.cf p,
div.entry-content.cf ul  {
    font-size: 16px !important;
    font-weight: normal;
    line-height: 18px;
}
div.entry-content.cf p {
  margin:0px 0px 16px;
}
div.entry-content.cf figure {
  display: contents !important;
}
div.entry-content.cf figure img {
  max-width: 520px;
  width: 100%;
  object-fit: contain;
  vertical-align: top;
}
div.entry-content.cf ul {
  padding-left: 40px;
  margin-bottom: 16px;
}
div.entry-content.cf ul li {
  margin-bottom: 16px;
}
blockquote {
    position: relative;
    padding: 10px 15px 10px 30px;
    box-sizing: border-box;
    background: #efefef;
    color: #555;
    margin-block-start: 0.2em;
    margin-block-end: 0.2em;
    margin-inline-start: 15px;
    margin-inline-end: 15px;
}
blockquote::before {
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 8px;
    content: "\f10d";
    font-family: FontAwesome;
    color: #cfcfcf;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}
blockquote::after {
  content: "";
}
blockquote cite {
    display: block;
    text-align: right;
    color: #888888;
    font-size: 0.9em;
}
div.wp-block-media-text {
  display: contents;
}
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
  div.entry-content.cf {
    width: auto;
  }
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
    div.entry-content.cf img {
      margin: 0px auto 16px;
      display: block;
    }
    div.entry-content.cf img:has(+ figcaption) {
      margin: 0px auto 4px !important;
      display: block;
    }
    div.entry-content.cf img + figcaption {
      max-width: 520px;
      margin: 0px auto 16px;
    }
}/*520px以下*/
@media screen and (max-width: 520px){
  /*必要ならばここにコードを書く*/
  div.entry-content.cf figure img {
    max-width: 520px;
    width: 100% !important;
  }
}

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