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

/************************************
** 子テーマ用のスタイルを書く
************************************/


/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/* ===== 目次（TOC） ===== */
.toc {
  background: #fff; /* 白ベースでスッキリ */
  border: 2px solid #f6e1e1; /* メインカラーで囲み */
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: 0 2px 6px rgba(246, 225, 225, 0.25);
}

.toc .toc-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 6px solid #f6e1e1; /* タイトルにアクセント */
  color: #444;
}

.toc ol {
  margin: 0;
  padding-left: 1.2em;
  list-style: none; /* 数字を消す */
}

.toc ol li {
  padding: 0.5em 0;
  border-bottom: 1px dashed #f2c9c9;
  line-height: 1.6;
  transition: background 0.3s;
  position: relative; /* ::before用 */
  padding-left: 1.4em; 
}

.toc ol li:hover {
  background: #fff6f6; /* ホバーでふんわり色付け */
}

.toc ol li:last-child {
  border-bottom: none;
}

/* トップレベルの矢印 */
.toc ol li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #f6a5a5;
  font-size: 0.9em;
}

/* 入れ子の小見出し */
.toc ol li ol li {
  font-size: 0.95em;
  color: #666;
  padding-left: 1em;
  border-bottom: none;
}

.toc ol li ol li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #666;
  font-size: 0.9em;
}

/* ===== グローバルナビ ===== */
#navi .navi-in a {
  position: relative;
  text-decoration: none;
  padding: 0.3em 0;
}
#navi .navi-in a:hover {
  border-bottom: 2px solid #d96b83;
  transition: border-bottom 0.2s;
}

/* ===== モバイルメニュー ===== */
.mobile-menu-buttons {
  background:#faf7f2;
  box-shadow:0 -2px 4px rgba(0,0,0,0.05);
}
.mobile-menu-buttons a {
  color: #6b4e3d;
}
.mobile-menu-buttons a:hover {
  background: #f6d4de;
  color: #444;
}
