@charset "UTF-8";

/*
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Template: cocoon-master
Version: 1.1.3
*/

/* 以降にこれまでのCSSを記述 */


/* ========================================
　固定ページの投稿日、更新日、投稿者名を非表示にする
　======================================== */
.page .date-tags,
.page .author-info {
    display: none;
}

/* ========================================
　ログアウトボタンの基本スタイル 
　======================================== */
.wpms-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 150px;
  padding: 10px 20px;
  background-color: #666666; /* ボタンの背景色（好みに合わせて変更してください） */
  color: #ffffff !important; /* 文字色（白） */
  text-decoration: none !important;
  border-radius: 4px; /* 角の丸み */
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

/* マウスホバー時のエフェクト */
.wpms-logout-btn:hover {
  background-color: #444444; /* ホバー時の背景色 */
  opacity: 0.9;
  text-decoration: none !important;
}

/* ========================================
   1. 本文見出し（H2・H3）のデザイン
   ======================================== */
/* H2: サイトカラーを活かした左線＋下線 */
.article h2 {
    background: transparent !important;
    border-left: 5px solid #d4a373 !important; /* 稲穂・土のイメージ */
    border-bottom: 1px solid #d4a373 !important;
    padding: 0.5em 0.8em !important;
    color: #5d4037 !important;
    line-height: 1.4;
    margin: 2em 0 1em;
}

/* H3: シンプルなアンダーライン */
.article h3 {
    background: transparent !important;
    border-bottom: 2px solid #e0d5c1 !important;
    padding: 0.4em 0.2em !important;
    color: #5d4037 !important;
    margin: 1.5em 0 1em;
}

/* ========================================
   2. サイドバー：グレー排除・スタイリッシュ化
   ======================================== */
/* ウィジェット全体 */
.sidebar .widget {
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 30px;
}

/* サイドバー見出し */
.sidebar .widget-title {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #5d4037 !important; /* 細いラインで引き締め */
    color: #5d4037 !important;
    font-weight: 700;
    padding: 0 0 8px 0 !important;
    margin-bottom: 15px !important;
    font-size: 1.1rem;
    position: relative;
}

/* Cocoonのデフォルト装飾（擬似要素）を完全にリセット */
.sidebar .widget-title::before,
.sidebar .widget-title::after {
    content: none !important;
    display: none !important;
}

/* ========================================
   3. 目次（TOC）：シンプル＆モダン
   ======================================== */
.toc {
    border: 1px solid #e0d5c1 !important;
    background-color: #fcfbf9 !important; /* わずかに温かみのある白 */
    border-radius: 4px;
    padding: 20px !important;
}

.toc-title {
    background: transparent !important;
    color: #d4a373 !important;
    font-weight: 700;
    font-size: 1rem !important;
    text-align: center;
    border-bottom: 1px dashed #e0d5c1;
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
}

/* ========================================
   4. モバイル・機能干渉の防止
   ======================================== */
/* モバイルメニューボタンや閉じるボタンには触れないよう、
   セレクタを限定（.sidebar や .article 内のみ）しています */