@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: 1023px){
  /*必要ならばここにコードを書く*/
}

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

/************************************
** 投稿された文字サイズを16px
************************************/
p {
  font-size: 16px;
}

/************************************
** 全てをまとめて表示 日付など
************************************/
.home.page .entry-title,
.home.page .date-tags,
.home.page .author-info{
  display: none;
}


/************************************
** 記事冒頭の「記事のポイント」の枠を作成
************************************/
.custom-point-box {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1em;
  margin: 1.5em 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.custom-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 0.8em;
  padding-left: 0.5em;
  color: #333;
}

.custom-point-box ol {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
}

.custom-point-box li {
  counter-increment: item;
  margin: 10px 0;
  padding-left: 2.2em;
  position: relative;
}

.custom-point-box li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background-color: #f4b400;
  color: white;
  font-weight: bold;
  border-radius: 3px;
  width: 1.8em;
  height: 1.8em;
  text-align: center;
  line-height: 1.8em;
}

/************************************
** H2見出し用
************************************/
/* h2 見出し */
h2 {
  position: relative;
  font-weight: bold;
  margin-left: 0;
  margin-bottom: 1em;
  padding-left: 0;
  padding-right: 0;
  display: block; /* 全幅にする */
  width: 100%;
  max-width: 840px; /* 画像と同じ幅に調整（例：画像が横幅840pxなら） */
  box-sizing: border-box;
}

/* ゴールドの下線 */
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: #bfa500;
  margin-top: 8px;
}


.article h2 {
  text-align: left !important;
  display: block !important;
  justify-content: flex-start !important;
}
.article h2 {
  padding-left: 0 !important;
  margin-left: 0 !important;
}


/************************************
** H3見出し用
************************************/
h3 {
  position: relative;
  background-color: #2c2c2c;
  color: #fff;
  padding: 0.5em 1em;
  display: block;
  font-weight: bold;
  font-size: 1.1em;
  margin: 1em 0;
  width: 100%;
  max-width: 860px; /* ← 画像幅に合わせて拡張 */
  box-sizing: border-box;
}


/* 下向き三角 */
h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 1.5em;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid #2c2c2c;
}
/************************************
**画像回り込み防止
************************************/
.alignleft {
  float: none !important;
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
}
/************************************
**画像左上のカテゴリーを非表示
************************************/
.cat-label {
  display: none !important;
}
/************************************
**記事の投稿日、更新日を非表示
************************************/
.entry-date,
.updated,
.post-date,
.post-meta {
  display: none !important;
}













