@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ（お米屋さん・農家直販ラボ仕様）
Template: cocoon-master
Version: 1.2.0
*/

/*====================================
** 全般・基本設定
**====================================*/
body {
    color: #444; /* PHP側の指定と統一 */
}

/* 固定ページの投稿日・更新日を非表示 */
.page .date-tags,
.page .post-meta {
    display: none !important;
}

/* ヘッダー・フッターの境界線調整 */
#header-container {
    border-bottom: 1px solid #eee; /* 重すぎないグレーに変更 */
}

#footer {
    border-top: 2px solid #555; /* PHP側のheader境界線と統一 */
}

/*====================================
** 見出しのスタイル（洗練されたセリフレス・モダン）
**====================================*/
.article h2, .article h3, .article h4, .article h5 {
    font-family: sans-serif;
    font-weight: bold;
    background: none;
    border: none;
    padding: 0;
    letter-spacing: 0.1em;
}

/* H2: 所在地セクションのような細い下線とアクセント */
.article h2 {
    font-size: 1.8rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    color: #555;
}

.article h2::after {
    content: '';
    position: absolute;
    bottom: -1px; /* 親のborderと重ねる */
    left: 0;
    width: 60px;
    height: 2px;
    background: #d89134; /* アクセントカラーのオレンジ */
}

/* H3: INTRODUCTIONタイトルのような英字併記・小見出し風 */
.article h3 {
    font-size: 1.3rem;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #d89134;
    text-transform: uppercase;
}

/* H4: リスト項目的なシンプルデザイン */
.article h4 {
    font-size: 1.1rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    padding-left: 15px;
    border-left: 3px solid #555;
    color: #444;
}

/* H5: 目立たせすぎない強調表現 */
.article h5 {
    font-size: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #888;
}

/*====================================
** サイドバー見出し（PHPのPREMIUMタグ風デザイン）
**====================================*/
#sidebar .widget-title,
#slide-in-sidebar .widget-title {
    background: #d89134; /* アクセントカラー */
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    padding: 8px 15px;
    border: none;
    text-align: center;
    border-radius: 2px;
}

/*====================================
** 通知エリア（読みやすさ重視）
**====================================*/
.notice-area {
    padding: 5px 0;
    background: #fdfaf5; /* INTRODUCTIONエリアの背景色と統一 */
    border: 1px solid #f0f0f0;
}

.notice-area-message {
    font-size: 1.1rem;
    font-weight: bold;
    color: #d89134;
    line-height: 1.5;
}

/*====================================
** その他の微調整
**====================================*/
.home .entry-header {
    display: none;
}

.main {
    border-top: none;
}

.content {
    margin-top: 0;
}


/* 目次全体のスタイル */
.toc {
    border: none; /* 枠線を消す */
    background-color: #f9f9f9; /* 薄いグレー背景で清潔感を出す */
    padding: 20px;
    border-radius: 4px;
    font-family: "Yu Gothic", "游ゴシック", sans-serif;
}

/* 目次のタイトル（目次という文字） */
.toc-title {
    background-color: #d9913b; /* サイトで使われているオレンジ系 */
    color: #fff;
    padding: 8px 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
    margin-bottom: 15px;
}

/* 目次内のリンク（箇条書き部分） */
.toc-content ol, .toc-content ul {
    list-style-type: none; /* 数字やポッチを一旦消す */
    padding-left: 0;
}

.toc-content li {
    margin-bottom: 8px;
    border-bottom: 1px dotted #ccc; /* 下点線で区切りを入れる */
    padding-bottom: 5px;
}

.toc-content a {
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
}

.toc-content a:hover {
    color: #d9913b; /* ホバー時にサイトカラーに */
    text-decoration: underline;
}

/*====================================
** モバイル（スマホ）向けの調整
**====================================*/
@media screen and (max-width: 768px) {
    /* H1（ページタイトル）をサイズダウン */
    .article h1, 
    header h1 {
        font-size: 1.5rem !important; /* 2remからサイズダウン */
        margin-bottom: 20px !important;
        line-height: 1.4;
    }

    /* H2を一回り小さく、余白も調整 */
    .article h2 {
        font-size: 1.3rem; /* 1.8remからサイズダウン */
        margin-top: 2.5rem; /* 上の余白を少し詰める */
        margin-bottom: 1.5rem;
        padding-bottom: 10px;
    }

    /* オレンジ色のアクセント線の幅も調整 */
    .article h2::after {
        width: 40px; 
    }

    /* H3もバランスを見て微調整 */
    .article h3 {
        font-size: 1.15rem;
        margin-top: 2rem;
    }
}