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

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

/* ==========================================================
   サイト全体グリーン化・可読性向上（2026年7月）
   ※ サイトキーカラー #4CAF50 / キーテキストカラー #FFFFFF は
   　 Cocoon設定（外観 > カスタマイズ > 全体）側で反映済みの前提。
   　 ここでは設定画面が触れない箇所・微調整のみ追加している。
   ========================================================== */

/* フォント・文字サイズのフォールバック（Cocoon「文字」設定と二重で担保） */
body,
.entry-content {
    font-family: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴシック",
        "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    font-size: 15px;
}

/* 本文の行間：15pxでも詰まって見えないように広めに */
.entry-content p {
    line-height: 1.9;
}

/* ===== 通常リンク：緑ベースで統一 ===== */
.entry-content a {
    color: #388E3C;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: #2E7D32;
}

/* ===== 見出し：緑の帯・下線で統一 ===== */
.entry-content h2 {
    background: #f0f8f0;
    border-left: 5px solid #4CAF50;
    padding: 10px 15px;
    border-radius: 4px;
}

.entry-content h3 {
    border-bottom: 2px solid #a5d6a7;
    padding-bottom: 6px;
}

/* ===== ボタン・CTA：白文字が映える濃い緑 ===== */
.entry-content .sim-btn,
.entry-content .wp-block-button__link,
.entry-content .btn-primary,
.entry-content button {
    background: #388E3C;
    color: #ffffff;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.entry-content .sim-btn:hover,
.entry-content .wp-block-button__link:hover,
.entry-content .btn-primary:hover,
.entry-content button:hover {
    background: #2E7D32;
}

/* ===== 画像内に文字が乗るケース：可読性を保証するオーバーレイ用クラス =====
   img要素をこのクラスのdivで囲むと、どんな背景画像でも白文字が読みやすくなる。
   例）<div class="img-text-overlay"><img ...><span class="overlay-caption">見出し文言</span></div> */
.img-text-overlay {
    position: relative;
    display: inline-block;
    width: 100%;
}

.img-text-overlay .overlay-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

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

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

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

/* サイドバーメニュー リンク */
.sidebar-menu a {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    color: #388E3C;
    text-decoration: none;
    padding-left: 4px;
}

/* 現在のページ（アクティブ） */
.sidebar-menu a.current,
.sidebar-menu a.active {
    background: #f0f8f0;
    color: #388E3C;
    border-left: 4px solid #4CAF50;
    padding-left: 12px;
    font-weight: 700;
}

/* ===== メニューバー洗練化 ===== */

.header-nav,
nav ul {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

nav a,
.header-nav a {
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
}

nav a:hover,
.header-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav a.active,
.header-nav a.active,
nav a.current,
.header-nav a.current {
    background: white;
    color: #4CAF50;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* アイコン追加（オプション） */
nav a::before,
.header-nav a::before {
    content: "◆ ";
    margin-right: 6px;
    opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
    nav a,
    .header-nav a {
        font-size: 12px;
        padding: 8px 12px;
    }
}
