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

/************************************
** ブランドカラー（共通変数）
************************************/
:root {
  --brand-blue: rgb(191,0,255);
  --brand-blue-light: #e599fe;
  --brand-red: #00cd6e;
  --brand-red-soft: #00ff88;
  --brand-green: #ff8000;
}

/************************************
** 見出しデザイン（Cocoon 最新仕様対応）
************************************/
/* 目次タイトル */
.toc-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 8px;
}

/* 目次余白 */
.toc {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* 目次行間 */
.toc li {
  line-height: 1.6;
}

/* H2 */
.article h2 {
  border-left: 6px solid var(--brand-blue);
  padding-left: 12px;
  margin: 32px 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

/* H3 */
.article h3 {
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 4px;
  margin: 28px 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

/* H4 */
.article h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  line-height: 1.4;
}

/************************************
** ボタンデザイン
************************************/
.btn,
a.btn {
  background: #fff;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  font-weight: 600;
  display: inline-block;
  transition: 0.2s;
}

/* ホバー */
.btn:hover,
a.btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* 角丸・余白・影（最終指定） */
.btn,
.button,
a.btn {
  border-radius: 8px;
  padding: 14px 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/************************************
** ボックスデザイン
************************************/
.box-info {
  background: #f0f5fa;
  border-left: 4px solid var(--brand-blue-light);
  padding: 12px 16px;
  margin: 20px 0;
}

.box-alert {
  background: #fbe9eb;
  border-left: 4px solid var(--brand-red);
  padding: 12px 16px;
  margin: 20px 0;
  color: var(--brand-red);
  font-weight: 600;
}

.box-note {
  background: #f7e9ea;
  border-left: 4px solid var(--brand-red-soft);
  padding: 12px 16px;
  margin: 20px 0;
}

.box-success {
  background: #e8f3ed;
  border-left: 4px solid var(--brand-green);
  padding: 12px 16px;
  margin: 20px 0;
}

/************************************
** レスポンシブ（スマホ）
************************************/
@media (max-width: 599px) {
  body {
    line-height: 1.8;
  }
  p {
    margin-bottom: 1.2em;
  }
}

/************************************
** グローバルメニュー罫線（PC）
************************************/
#navi {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

/* メニュー項目間の右罫線（最後以外） */
#navi ul li {
  border-right: 1px solid #ddd;
  border-left: none;
  border-bottom: none;
}

/* 最後の項目は右罫線なし */
#navi ul li:last-child {
  border-right: none;
}

/* 左端（ホーム）に左罫線 */
#navi ul li:first-child {
  border-left: 1px solid #ddd;
}

/************************************
** グローバルメニュー罫線（スマホ）
************************************/
#navi-in {
  border-bottom: 1px solid #ddd;
}

/* メニュー項目に左・右・下罫線（均一） */
#navi-in ul li {
  border-left: 1px solid #ddd !important;
  border-right: 1px solid #ddd !important;
  border-bottom: 1px solid #ddd !important;
}

/* 最後の項目（お問い合わせ）にも下罫線 */
#navi-in ul li:last-child {
  border-bottom: 1px solid #ddd !important;
}

/* シェアボタンの基本スタイル */
.sns-share a,
.share-button a {
  background-color: #333333;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 12px;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ホバー時の色変化（少し明るいグレー） */
.sns-share a:hover,
.share-button a:hover {
  background-color: #4d4d4d;
  color: #ffffff;
}

/* サイドバー見出し（L字型装飾） */
.widget-title,
.sidebar h3,
#sidebar h3 {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  color: rgb(51,51,51);
  padding-left: 16px;
  margin: 24px 0 16px;
}

/* 左の縦線（濃青） */
.widget-title::before,
.sidebar h3::before,
#sidebar h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--brand-blue);
}

/* 上の横線 → 実際は「文字の下端に沿った横線」に変更 */
.widget-title::after,
.sidebar h3::after,
#sidebar h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* ← top: 0 → bottom: 0 に変更 */
  width: 100%;
  height: 1px; /* ← 少し細くして繊細に */
  background-color: var(--brand-blue); /* ← 色を濃いめに変更 */
}

.widget-title {
  background: none !important;
  border: none !important;
}

/* --- 箇条書きの記号をシンプルに変更（目次除外＋左寄せ＋余白調整） --- */

/* 第1階層：- に変更＋スペース追加 */
.entry-content ul:not(.toc-list) li::marker {
  content: "- ";
}

/* 第2階層：・ に変更＋スペース追加 */
.entry-content ul:not(.toc-list) ul li::marker {
  content: "・ ";
}

/* 第3階層：– に変更＋スペース追加 */
.entry-content ul:not(.toc-list) ul ul li::marker {
  content: "– ";
}

/* 箇条書きの上下余白を狭くする */
.entry-content ul:not(.toc-list) {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.entry-content ul:not(.toc-list) li {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
  margin-left: 1em; /* 左寄せ調整（必要に応じて微調整） */
}

/* 段落同士の間隔を狭くする */
.entry-content p {
  text-indent: 1em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* 段落の字下げ（本文） */
.entry-content p {
  text-indent: 1em;
}

/* 画像周り（figure内）の段落は字下げしない */
.entry-content figure p,
.entry-content figure figcaption,
.entry-content .wp-block-image p {
  text-indent: 0 !important;
}