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

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


/* --------------------------------------------
   pd-small クラス
   WordPressブロック右側の「パディング：小」を再現するためのクラス。
   追加CSSクラス欄に「pd-small」と入れるだけで適用。
   ※ padding値は Cocoon 標準の “小” に近い 12px 前後に設定。
   -------------------------------------------- */
.pd-small {
  padding: 14px !important;
  margin-bottom: 24px;
}


.article h2 {
  /* Cocoonの大きめ見出しサイズ */
  /*font-size: var(--wp--preset--font-size--large, 1.8em);*/
  font-size: 20px;
  font-weight: 700;
  color: #000; /* 視認性の高い黒文字 */
  background: var(--wp--preset--color--cocoon-white, #fff);
  
  border-bottom: 3px solid var(--wp--preset--color--vivid-green-cyan);
  border-left: none;
  border-right: none;
  border-top: none;

  padding: 0 var(--wp--preset--spacing--40);
  margin: 1.2em 0 0.8em; /* 上下の余白は調整可 */
}

.article h3 {
  font-size: 18px;
  padding: 0.6em 0 0.6em 0.4em; /* 左余白を0.8em→0.4emで少し左寄せ */
  border-left: 20px solid var(--wp--preset--color--light-green-cyan);
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: var(--wp--preset--color--cocoon-white, #fff);
  font-weight: 700;
}
.article .entry-content h3,
.entry-content .article h3,
.entry-content h3 {
  font-size: 18px !important;
}

/* 記事一覧（エントリーカード）のカテゴリラベルを非表示 */
.entry-card-label {
  display: none !important;
}

/* カード内のサムネイルに重なっているラベルも非表示 */
.entry-card .cat-label {
  display: none !important;
}

/* 他のスキンで使われるカテゴリラベルクラスも念のため */
.eye-catch .cat-label,
.entry-card-thumb .cat-label {
  display: none !important;
}

.sidebar .widget_new_entries .widget-title,
.sidebar .widget_popular_entries .widget-title {
  position: relative;
  padding-left: 14px;
  font-size: 18px;     /* ←ここを追加／変更：フォントサイズ */
  font-weight: 700;
  margin: 0 0 14px;
  background: transparent !important;
  border: none !important;
}

.sidebar .widget_new_entries .widget-title::before,
.sidebar .widget_popular_entries .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  background: #8be2cf;
  border-radius: 2px;
}

/************************************
  検索・カテゴリを商用サイト風カードに
************************************/

/* 共通：カードっぽい箱 */
.widget_search,
.widget_categories {
  background: #f6fbf9;                /* うすいグリーン系の背景 */
  border: 1px solid #d7e8e3;           /* 枠線もグリーン寄り */
  border-radius: 12px;                 /* 角丸 */
  padding: 16px 20px 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,.03); /* うっすら影 */
}

/* 見出し（「カテゴリから探す」「サイト内で検索」） */
.widget_search .widget-title,
.widget_categories .widget-title {
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

/* 見出し左に小さいバー（商用っぽく） */
.widget_search .widget-title::before,
.widget_categories .widget-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 8px;
  border-radius: 2px;
  background-color: #70b5a0;  /* サイトのメインのグリーンに合わせて調整OK */
}

/************************************
  サイト内検索フォーム
************************************/

/* 入力とボタンを横並びに */
.widget_search .search-form {
  display: flex;
}

/* 入力欄 */
.widget_search .search-field {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px 0 0 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
}

/* 送信ボタン */
.widget_search .search-submit {
  padding: 0 18px;
  border-radius: 0 6px 6px 0;
  border: none;
  background: #70b5a0;      /* メインカラー */
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

/* ホバー時のちょい強調 */
.widget_search .search-submit:hover {
  background: #5a9b8a;      /* 少しだけ濃く */
  transform: translateY(-1px);
}



/************************************
  カテゴリ（ドロップダウンでもOK）
************************************/

/* ドロップダウンを広めのセレクトボックスっぽく */
.widget_categories select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background-color: #fff;
  font-size: 0.95rem;
}

/* セレクトにカーソルを載せたとき */
.widget_categories select:hover {
  border-color: #70b5a0;
}

/* リスト表示にしている場合の ul/li（ドロップダウンOFF時） */
.widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_categories ul li {
  border-bottom: 1px solid #e4eee9;
  padding: 6px 0;
}

.widget_categories ul li:last-child {
  border-bottom: none;
}

.widget_categories ul li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  display: block;
}

.widget_categories ul li a:hover {
  color: #70b5a0;
}


/************************************
  おすすめカテゴリボックス（TOP画面のおすすめ）
************************************/
.top-recommend-box {
  background: #ffffff;                 /* 上2つより少し軽め */
  border: 1px dashed #d7e8e3;          /* うっすら点線の枠 */
  border-radius: 12px;
  padding: 12px 20px 16px;             /* 中の余白 */
  margin: 24px 0 16px;
  box-shadow: none;                    /* 影はなしでサブ感 */
}

/* タイトル：検索・カテゴリとトーンをそろえる */
.top-recommend-title {
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 10px;
  color: #333;
}

.top-recommend-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 8px;
  border-radius: 2px;
  background-color: #70b5a0;  /* 検索・カテゴリと同じバー色 */
}

/* リスト全体 */
.top-recommend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* 各カテゴリボタン */
.top-recommend-list li a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #333;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid #d7e8e3;
  font-weight: 600;  /* カテゴリ文字を太字に */
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.1s ease;
}

/* ホバー時 */
.top-recommend-list li a:hover {
  background: #70b5a0;
  border-color: #70b5a0;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 下の区切り線 */
.top-recommend-divider {
  border: 0;
  border-top: 1px solid #e4eee9;
  margin: 16px 0 0;
}


/************************************
  サイドバー：人気記事・新着記事カード
************************************/

/* カード全体（人気記事・新着記事 共通） */
.sidebar .widget_popular_entries .widget-entry-cards .a-wrap,
.sidebar .widget_new_entries .widget-entry-cards .a-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid #e4eee9;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.1s ease;
}

/* ホバー時のふわっと感 */
.sidebar .widget_popular_entries .widget-entry-cards .a-wrap:hover,
.sidebar .widget_new_entries .widget-entry-cards .a-wrap:hover {
  border-color: #70b5a0;
  box-shadow: 0 3px 6px rgba(0,0,0,.05);
  transform: translateY(-1px);
}

/* サムネイル画像（左側の小さい画像） */
.sidebar .widget-entry-cards .entry-card-thumb,
.sidebar .widget-entry-cards .entry-card-thumb img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
}

/* テキスト側のエリア */
.sidebar .widget-entry-cards .entry-card-content {
  flex: 1;
  margin: 0;              /* 余計な余白を消す */
}

/* タイトル（2〜3行で収める） */
.sidebar .widget-entry-card-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;  /* 3行で省略 */
}

/* 日付などのメタ情報がある場合の調整 */
.sidebar .widget-entry-cards .entry-card-snippet,
.sidebar .widget-entry-cards .entry-card-meta {
  font-size: 11px;
  color: #777;
}

/* 一番下のカードだけ margin-bottom を少し減らす */
.sidebar .widget_popular_entries .widget-entry-cards .a-wrap:last-child,
.sidebar .widget_new_entries .widget-entry-cards .a-wrap:last-child {
  margin-bottom: 6px;
}

/******************************************
  サイドバー全体の背景トーンを統一（淡いグリーン）
******************************************/
.sidebar {
  background: #f6fbf9;  /* 左カードと同じ背景 */
  padding: 12px;
  border-radius: 12px;
}


/******************************************
  サイドバー：各ウィジェット（人気・新着など）をカード化
******************************************/
.sidebar .widget {
  background: #ffffff; /* 白カード */
  border: 1px solid #d7e8e3;
  border-radius: 12px;
  padding: 16px 16px 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,.03);
}


/******************************************
  ウィジェットタイトル（人気記事、新着記事）
******************************************/
.sidebar .widget .widget-title {
  font-weight: 700;
  font-size: 1.05rem;
  padding-left: 14px;
  margin: 0 0 12px;
  position: relative;
  color: #333;
  border: none !important;
  background: none !important;
}

.sidebar .widget .widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: #70b5a0;   /* 左の検索・カテゴリと同じバー色 */
  border-radius: 3px;
}


/******************************************
  サイドバー：記事カード（人気・新着共通）
******************************************/
.sidebar .widget-entry-cards .a-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #e4eee9;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.1s ease;
}

.sidebar .widget-entry-cards .a-wrap:hover {
  border-color: #70b5a0;
  box-shadow: 0 3px 6px rgba(0,0,0,.06);
  transform: translateY(-1px);
}


/******************************************
  サムネイル画像
******************************************/
.sidebar .widget-entry-cards .entry-card-thumb img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
}


/******************************************
  テキスト部分
******************************************/
.sidebar .widget-entry-cards .entry-card-content {
  flex: 1;
  margin: 0;
}

.sidebar .widget-entry-card-title {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3; /* 最大3行 */
  overflow: hidden;
}

.sidebar .widget-entry-cards .entry-card-meta,
.sidebar .widget-entry-cards .entry-card-snippet {
  font-size: 11px;
  color: #777;
}

/******************************************
  最後のカードの余白
******************************************/
.sidebar .widget-entry-cards .a-wrap:last-child {
  margin-bottom: 4px;
}

/************************************
  トップの紹介文（ライン強調タイプ）
************************************/
.top-lead-box {
  max-width: 900px;
  margin: 26px auto 32px;
  padding: 18px 0 16px;
  background: transparent;           /* ボックス背景なし */
  border: none;
  border-top: 2px solid #70b5a0;     /* 上ライン */
  border-bottom: 2px solid #70b5a0;  /* 下ライン */
  box-shadow: none;                  /* 影も消す */
  line-height: 1.8;
}

/* 見出し行（タイトル） */
.top-lead-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 8px;
  text-align: center;                /* 中央寄せでキャッチコピーっぽく */
  color: #333;
}

/* タイトル左のバーは不要なのでリセット */
.top-lead-title::before {
  content: none;
}

/* 本文の段落 */
.top-lead-box p {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #333;
  text-align: left;
}
.top-lead-box p:last-child {
  margin-bottom: 0;
}


/****************************************
  ─ 最終版：商用サイト完全統一の目次デザイン ─
****************************************/

/* 目次カードを中央寄せにする（追加部分） */
.toc,
#toc-container,
.entry-content .toc {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 900px;  /* 本文の横幅に合わせて調整（必要なら変更OK） */
}

/* 目次カード */
.article .toc,
.entry-content .toc {
  background: #ffffff;
  border: 1px solid #d7e8e3;        /* 淡いグリーンの細い線 */
  border-radius: 12px;              /* 他のカードと同じ角丸 */
  padding: 18px 22px;
  margin: 26px auto;                /* 自動で中央寄せ */
  box-shadow: 0 4px 10px rgba(0,0,0,.04); /* 他UIと同じ影 */
}

/* 目次タイトル */
.article .toc .toc-title,
.entry-content .toc .toc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4eee9;
  color: #333;
}

/* タイトル左のバー（統一デザイン） */
.article .toc .toc-title::before,
.entry-content .toc .toc-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1.1em;
  margin-right: 8px;
  background-color: #70b5a0;
  border-radius: 3px;
}

/* リスト（数字消す） */
.article .toc ol,
.entry-content .toc ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* 各リンク行 */
.article .toc li,
.entry-content .toc li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f3;
  line-height: 1.7;   /* 行間広めで読みやすく */
}

.article .toc li:last-child,
.entry-content .toc li:last-child {
  border-bottom: none;
}

/* リンクデザイン */
.article .toc a,
.entry-content .toc a {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.article .toc a:hover,
.entry-content .toc a:hover {
  color: #70b5a0;
  text-decoration: underline;
}

/* TOC左の丸アイコンを消す */
.toc::before {
  content: none !important;
}


/************************************
  FAQ（Cocoon FAQブロック）
  ─ 商用サイト完全統一版 ─
  カラー基調：#e6f4ee
************************************/

/* FAQ 外枠 */
.entry-content .faq-wrap.cocoon-block-faq {
  background: #e6f4ee;              /* ブランド基調色 */
  border-radius: 14px;
  padding: 22px 24px;
  margin: 36px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.05); /* プロサイトの柔らかい影 */
  border: none;
}

/* Q&A レイアウト */
.entry-content .faq-wrap.cocoon-block-faq dl.faq {
  margin: 0;
  padding: 0;
}

.entry-content .faq-wrap.cocoon-block-faq .faq dt,
.entry-content .faq-wrap.cocoon-block-faq .faq dd {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  margin: 0;
  border-top: 1px solid #dfeee8;
}

.entry-content .faq-wrap.cocoon-block-faq .faq dt:first-of-type {
  border-top: none;
}

/* Q / A アイコン（丸アイコン） */
.entry-content .faq-wrap.cocoon-block-faq .faq-item-label {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Qアイコン：白×ミント枠 */
.entry-content .faq-wrap.cocoon-block-faq .faq-question .faq-item-label {
  background: #ffffff;
  color: #6db6a4;
  border: 2px solid #6db6a4;
}

/* Aアイコン：ミント塗りつぶし */
.entry-content .faq-wrap.cocoon-block-faq .faq-answer .faq-item-label {
  background: #6db6a4;
  color: #ffffff;
  border: 2px solid #6db6a4;
}

/* テキスト部分 */
.entry-content .faq-wrap.cocoon-block-faq .faq-item-content {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

.entry-content .faq-wrap.cocoon-block-faq .faq-question-content {
  font-weight: 600;
}

/* 回答ボックスは “白背景のみ” に統一（商用スタイルの基本） */
.entry-content .faq-wrap.cocoon-block-faq .faq-answer {
  background: #ffffff !important;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,.03); /* わずかな影で上品に */
}

/* p余白 */
.entry-content .faq-wrap.cocoon-block-faq .faq-answer-content p {
  margin: 0 0 8px;
}
.entry-content .faq-wrap.cocoon-block-faq .faq-answer-content p:last-child {
  margin-bottom: 0;
}



/************************************
  タイトルだけカード化（リストは通常表示）
・この記事を読むと分かること
・一つでも当てはまったら、この記事が役に立ちます
個々の場所。
************************************/

/* タイトル行（白いカード部分） */
.entry-content p.is-style-border-radius-s-solid.has-border {
  border: 1px solid #d7e8e3;          /* サイト全体と統一した枠線色 */
  border-radius: 12px;                /* 角丸 */
  background: #ffffff;                /* 白いカード背景 */
  padding: 12px 18px;                 /* 文字まわりの余白 */
  font-weight: 600;                   /* 少し太字 */
  margin: 32px 0 8px;                 /* 下に余白、上は大きめ */
}

/* タイトルの直後のリストは「通常のリスト」に戻す */
.entry-content p.is-style-border-radius-s-solid.has-border + ul {
  border: none !important;            /* 枠線なし */
  border-radius: 0 !important;
  background: transparent !important; /* 背景も無し（デフォルト） */
  padding: 0 0 0 1.4em;               /* 左のインデントだけ調整 */
  margin: 0 0 32px;                   /* 下に余白 */
}
/* タイトルボックスの左にミントのアクセントラインを付ける */
.entry-content p.is-style-border-radius-s-solid.has-border {
  border-left: 4px solid #84c9b3;   /* ミントライン */
  padding-left: 16px;               /* 内側の余白調整 */
}
.entry-content p.is-style-border-radius-s-solid.has-border {
  background: #f9fdfa;   /* ごく淡いミント */
}

/* 著者ボックスの写真を非表示にする */
.author-box .author-thumb,
.author-box .author-thumb img,
.author-box .avatar {
  display: none !important;
}

/* 写真が消えても横幅が空かないように調整 */
.author-box {
  display: block !important;
}

.author-box .author-content {
  margin-left: 0 !important;
}


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

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

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

/* --------------------------------------------------------------
   PC表示（769px以上）
   エントリーカード（記事一覧）で
   「画像エリア と テキストエリア の横幅比率」を調整するCSS
   ・画像の横幅：160px
   ・画像とテキストの間：16px
   ・テキスト位置は「画像幅＋余白」に合わせて margin-left 調整
-------------------------------------------------------------- */
@media screen and (min-width:769px){
  .entry-card-thumb {
    width: 160px;
    margin-right: 16px;
  }
  .entry-card-content {
    margin-left: 176px;
  }
}
@media screen and (max-width:768px){

  /* カードを横並びにする（スマホだと縦並びになるため） */
  .entry-card {
    display: flex;
    align-items: flex-start;
  }

  /* 画像エリア（スマホ用サイズ） */
  .entry-card-thumb {
    width: 120px;     /* ←スマホでの画像幅（調整OK） */
    margin-right: 12px;
  }

  /* テキストエリア（スマホ用の左余白） */
  .entry-card-content {
    margin-left: 0;    /* flex を使うので margin-left は不要 */
    flex: 1;
  }
}
