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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* ===================================================
   Lumière Diary Design Customization for Cocoon
   =================================================== */

/* --- 1. 全体の設定 --- */
:root {
    --primary-color: #d4a373; /* ゴールドベージュ */
    --accent-color: #e6b8b8; /* ダスティピンク */
    --text-color: #4a4a4a;
    --bg-color: #fcfbf9;
    --link-color: #507ea4; /* リンク用：落ち着いたグレイッシュブルー */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Zen Kaku Gothic New', sans-serif;
}

body {
    font-family: var(--font-sans) !important;
    color: var(--text-color);
    background-color: var(--bg-color) !important; /* 背景色 */
}

/* リンクの色 */
a {
    transition: 0.3s;
    text-decoration: none;
    color: var(--link-color); /* 青系に変更 */
}

a:hover {
    opacity: 0.8;
}

/* --- 2. ヘッダー周り --- */
#header {
    background: transparent !important; /* Cocoonのデフォルト背景を透明に */
    box-shadow: none !important;
    padding: 3rem 0;
}

/* サイトタイトル */
.site-name-text {
    font-family: var(--font-serif);
    font-size: 3rem !important;
    color: var(--primary-color) !important;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* キャッチフレーズ */
.tagline {
    font-size: 0.9rem !important;
    letter-spacing: 0.2em;
    color: #888 !important;
}

/* グローバルナビゲーション（メニュー） */
.navi-in > ul > li > a {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #666;
}
.navi-in > ul > li > a:hover {
    background: none !important;
    color: var(--link-color) !important; /* ホバー時も青系に */
    text-decoration: underline;
}

/* --- 3. メインコンテンツ（記事カード） --- */

/* 記事一覧のカード（インデックス） */
.entry-card-wrap {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    box-shadow: var(--shadow-soft) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.entry-card-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 163, 115, 0.15) !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

/* カテゴリラベルの装飾 */
.cat-label,.cat-link {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    top: -10px !important; /* 位置調整 */
    left: -10px !important;
}

/* 記事サムネイル画像 */
.entry-card-thumb img,
.entry-content img {
    border-radius: 4px;
    border: 6px solid #fff; 
    box-shadow: 
        0 0 0 1px #eee, 
        10px 10px 0 -2px rgba(212, 163, 115, 0.3), 
        10px 10px 10px -2px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.entry-card-thumb img:hover,
.entry-content img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
    box-shadow: 
        0 0 0 1px #eee,
        0 0 0 4px rgba(212, 163, 115, 0.5),
        0 10px 20px rgba(0,0,0,0.15);
}

/* 記事タイトル */
.entry-card-title, .entry-title {
    font-size: 1.5rem;
    color: var(--text-color); /* タイトルは基本色（グレー）を維持 */
}
/* タイトルのリンクホバー時 */
a.entry-card-title:hover,
.entry-title a:hover {
    color: var(--link-color);
}

/* --- 4. 記事の中身（見出しなど） --- */
.article h2 {
    background: none !important;
    border-bottom: 1px solid var(--primary-color) !important;
    border-left: none !important;
    padding: 10px 0 !important;
    font-size: 1.6rem;
    position: relative;
    color: var(--text-color);
}
.article h2::after {
    content: '✨';
    position: absolute;
    right: 0;
    bottom: 5px;
    font-size: 1.2rem;
}

.article h3 {
    border-left: 4px solid var(--accent-color) !important;
    border-bottom: none !important;
    background: none !important;
    padding-left: 1rem !important;
    color: var(--text-color);
}

/* 引用 */
blockquote {
    background: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    font-family: var(--font-serif);
    font-style: italic;
    border-radius: 10px;
    position: relative;
}
blockquote::before {
    font-family: "Font Awesome 5 Free";
    content: '\f10d'; /* クォートアイコン */
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* --- 5. サイドバー --- */
.sidebar {
    background: transparent !important;
}

.widget {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    padding: 1.5rem !important;
    border-radius: 20px !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft) !important;
    margin-bottom: 2rem !important;
}

/* サイドバーの見出し（ウィジェットタイトル）調整 */
.sidebar h3,
.widget-title,
.sidebar .wp-block-heading {
    background: none !important; /* デフォルト背景削除 */
    border: none !important;
    border-bottom: 1px dotted var(--primary-color) !important; /* 上品な点線 */
    text-align: center !important;
    font-family: var(--font-serif) !important;
    font-size: 1.3rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0 10px 0 !important;
    letter-spacing: 0.1em;
}
/* 左側の装飾（縦線など）を消す */
.sidebar h3::before,
.sidebar h3::after,
.widget-title::before,
.widget-title::after {
    display: none !important;
}

/* プロフィール画像（サイドバーウィジェット内にある場合） */
.author-box .author-widget-box .author-thumb img, 
.profile-img { 
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 15px rgba(0,0,0,0.1) !important;
    transition: 0.5s ease;
}
.author-box .author-widget-box .author-thumb img:hover {
    transform: rotate(10deg) scale(1.1);
}

/* --- 6. ページネーション（ページ送り） --- */
.pagination a,
.pagination span,
.page-numbers {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-color) !important;
    border-radius: 50% !important; /* 丸くする */
    width: 40px;
    height: 40px;
    line-height: 40px;
    padding: 0 !important;
    margin: 0 5px;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-soft);
    display: inline-block;
    /* アイコンフォント（豆腐文字対策）のため、ここではfont-familyを強制しない */
}

/* 数字（1, 2, 3...）のみオシャレなセリフ体を適用 */
.page-numbers:not(.next):not(.prev) {
    font-family: var(--font-serif), serif !important;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 現在のページ */
.pagination .current,
.page-numbers.current {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* ホバー時の挙動 */
.pagination a:hover,
.page-numbers:not(.current):hover {
    background: #fff !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.3) !important;
}

/* 「次のページ」「前のページ」リンクの調整 */
.pagination-next-link,
.pagination-prev-link,
.next.page-numbers,
.prev.page-numbers {
    border-radius: 20px !important; /* 丸みを帯びた長方形 */
    width: auto !important;
    padding: 0 20px !important;
    font-size: 0.9rem;
    /* アイコンではなく文字の場合に備えて日本語フォント指定（!importantなしで） */
    font-family: var(--font-sans), sans-serif;
}

/* --- 7. ボタン（続きを読むなど） --- */
.entry-read a, 
.btn-shine {
    background: linear-gradient(45deg, var(--primary-color), #eecda3) !important;
    color: white !important;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4) !important;
    transition: 0.4s !important;
}
.entry-read a:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #eecda3, var(--primary-color)) !important;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.6) !important;
    color: white !important; /* ホバー時も白文字 */
}

/* --- 8. モバイル調整 (スマホ用) --- */
@media screen and (max-width: 768px) {
    /* サイトタイトルを少し小さく */
    .site-name-text {
        font-size: 2rem !important;
    }
    
    /* 記事カードの余白調整（詰めすぎないように修正） */
    .entry-card-wrap {
        padding: 2rem 1.5rem !important; /* 余白を戻してゆとりを持たせる */
        margin-bottom: 2rem !important; /* カード同士の間隔も確保 */
    }
    
    /* 記事内ブログカード（リンクカード）のスタイル */
    .blogcard {
        padding: 1.5rem !important;
        margin: 2rem 0 !important;
        border-radius: 12px !important;
    }
    
    /* 記事タイトルの文字サイズ調整 */
    .entry-card-title {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
    
    /* 記事内見出しのサイズ調整 */
    .article h2 {
        font-size: 1.3rem !important;
    }
    .article h3 {
        font-size: 1.1rem !important;
    }
    
    /* ヘッダーの余白調整 */
    #header {
        padding: 1.5rem 0 !important;
    }
}


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

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

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