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

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

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

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

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

/************************************
** ボックスデザイン
***********************************/

/* リセットとボックスサイジング */
.wp-custom-box *,
.wp-custom-box *:before,
.wp-custom-box *:after {
  box-sizing: border-box;
}

/* 基本ボックススタイル */
.wp-custom-box {
  position: relative !important;
  margin: 2em auto !important;
  width: 100% !important;
  border-style: solid !important;
  border-width: 2px !important;
  border-radius: 8px !important;
  line-height: 1.6 !important;
  z-index: 0 !important;
  background-color: #f8f8f0 !important; /* 薄いベージュ */
  border-color: #e0d8c0 !important; /* 少し濃いベージュ */
  color: #333 !important; /* 黒に近いグレー */
}

/* ラベルなしボックスのパディング */
.wp-custom-box {
  padding: 1.5em !important;
}

/* ラベル付きボックスのパディング */
.wp-custom-box.has-label {
  padding: 2em 1.5em 1em !important; /* 下側のpaddingを減らした */
}

/* ラベル基本スタイル */
.wp-custom-box .box-label {
  position: absolute !important;
  left: -2px !important;
  top: -2px !important;
  display: inline-block !important;
  padding: 0.5em 1em !important;
  font-size: 0.9em !important;
  font-weight: bold !important;
  line-height: 1 !important;
  color: #ffffff !important;
  border-radius: 8px 0 8px 0 !important;
  z-index: 1 !important;
  background-color: #b8860b !important;  /* 濃いめの黄色に近い色 */
}

/* ボックス内のテキスト */
.wp-custom-box p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit !important;
}

/* リストのスタイリング（.wp-custom-box 内の ul のみに適用） */
.wp-custom-box > ul {
  padding-left: 15px; /* 左側のインデント調整 */
  margin: 0;
}

.wp-custom-box > ul > li {
  margin-bottom: 0.25em; /* 各項目の下のマージンを小さく */
}

/* アイコンの追加 (Font Awesomeを使用する場合) */
.wp-custom-box .box-label:before {
  font-family: "Font Awesome 5 Free"; /* Font Awesomeのフォントファミリー */
  font-weight: 900; /* Font Awesomeの太さ */
  content: "\f05a"; /* アイコンのコード (例：情報アイコン) */
  margin-right: 0.5em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .wp-custom-box {
    margin: 1.5em auto !important;
    padding: 1.2em !important;
  }

  .wp-custom-box.has-label {
    padding: 1.8em 1.2em 1.2em !important;
  }

  .wp-custom-box .box-label {
    padding: 0.3em 0.8em !important;
    font-size: 0.8em !important;
  }
}

/************************************
** 箇条書きデザイン
************************************/

/* 本文エリア (.entry-content) 内のリストにのみ適用 */
.entry-content > ul,
.entry-content > ol {
  background: #fffcf4;
  border-radius: 8px;
  box-shadow: 0px 0px 5px silver;
  padding: 0.5em 0.5em 0.5em 2em;
}

/* 内側の ul と ol のスタイルをリセット */
.entry-content > ul ul,
.entry-content > ul ol,
.entry-content > ol ul,
.entry-content > ol ol {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* リストのアイテムスタイル */
.entry-content ul li,
.entry-content ol li {
  line-height: 1.5;
  padding: 0.5em 0;
}

/* 目次・サイドバー・フッターの ul には影響を与えない */
.toc-content ul,
.sidebar ul,
.footer ul,
.widget ul {
  all: unset;
}

.sidebar ul,
.widget ul {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
