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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

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

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

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


/* 記事カードのカスタマイズ */
.entry-card-wrap {
    border: none !important; /* 標準の枠線を消す */
    border-radius: 12px; /* 角を丸くする */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 薄い影をつける */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 25px;
    background-color: #fff;
}

/* マウスホバー時に浮かせる */
.entry-card-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* カード内の画像を角丸に */
.entry-card-thumb img {
    border-radius: 12px 12px 0 0;
}

/* H2見出し：左線と下線でシンプルに */
.article h2 {
    background: none; /* 背景色を消す */
    border-left: 6px solid #1a365d; /* 濃い青色の縦線（お好みで変更可） */
    border-bottom: 1px solid #e2e8f0; /* 薄いグレーの下線 */
    padding: 10px 0 10px 20px;
    margin: 40px 0 20px;
    color: #1a365d;
    line-height: 1.4;
}

/* H3見出し：下線のみ */
.article h3 {
    border-bottom: 2px solid #1a365d;
    padding: 10px;
    margin: 30px 0 15px;
    color: #2d3748;
}

/* 目次のカスタマイズ */
.toc {
    border: none;
    border-radius: 8px;
    background-color: #f7fafc; /* 非常に薄いグレー */
    padding: 25px !important;
    font-size: 0.95em;
}

.toc-title {
    background: none;
    font-weight: bold;
    color: #1a365d;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

/* 本文の行間と段落間の調整 */
.entry-content p {
    line-height: 1.9; /* 行間を広げて読みやすく */
    margin-bottom: 1.8em; /* 段落の間隔を広げる */
}

/* 強調（太字）の色味を少し抑える（真っ黒より少しグレーがオシャレ） */
.entry-content strong {
    color: #2d3748;
}

/* サイドバーの各ウィジェットをカード化 */
.sidebar aside {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* 軽い影 */
    border: none !important;
}

/* ウィジェットタイトルのデザイン */
.widget-title {
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 2px solid #1a365d; /* 濃い青の下線 */
    margin-bottom: 15px;
    padding-bottom: 8px;
    color: #1a365d;
    background: none !important; /* 背景色があれば消す */
}

/* 人気記事などのリストをスッキリさせる */
.widget_popular_entries ul li, .widget_new_entries ul li {
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
}
.widget_popular_entries ul li:last-child {
    border-bottom: none;
}

/* フッターを落ち着いたトーンに */
#footer {
    background-color: #1a365d !important; /* メインカラーの濃い青 */
    color: #fff;
    padding: 40px 0 20px;
}

/* フッター内のリンク色 */
#footer a {
    color: #e2e8f0;
    text-decoration: none;
}

#footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* コピーライト部分をさらにシンプルに */
.copyright {
    margin-top: 30px;
    font-size: 0.8em;
    opacity: 0.8;
}

/* --- センス重視：ソリッドカラーのサイトタイトル --- */

.site-name-text, 
.site-name-text a {
    /* グラデーション設定を完全に解除 */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    
    /* センスの良い深紺色を指定 */
    color: #1a365d !important; 
    
    font-size: 1.5rem !important; /* 少しシャープにサイズ調整 */
    font-weight: 800 !important;
    letter-spacing: 0.12em !important; /* 文字の間隔を広げて「余白の美」を出す */
    text-decoration: none !important;
    display: inline-block !important;
}

/* アイコン：タイトルと同系色にして一体感を出す */
.site-name-text::before {
    content: "\f201" !important; 
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    margin-right: 12px !important;
    font-size: 0.9em !important;
    vertical-align: middle !important;
    color: #3182ce !important; /* アイコンだけ少し明るい青でアクセント */
}

/* --- キャッチフレーズ（タグライン）の強調設定 --- */
.tagline {
    margin-top: 12px !important; /* タイトルとの間隔を少し広げる */
    font-size: 1.05rem !important; /* 0.7remから大幅にアップ（標準的な本文より少し大きめ） */
    font-weight: 600 !important; /* 適度な太さで読みやすく */
    color: #475569 !important; /* 濃すぎず薄すぎない誠実なグレー */
    background-color: transparent !important;
    border: none !important;
    letter-spacing: 0.05em !important; /* 文字が詰まらないように微調整 */
    line-height: 1.5 !important; /* 2行になっても重ならないように */
    max-width: 90% !important; /* 画面端に寄りすぎないよう制限 */
}

/* スマホ表示での調整：画面幅に合わせて適切に縮小 */
@media screen and (max-width: 768px) {
    .tagline {
        font-size: 0.85rem !important; /* スマホでもしっかり読めるサイズを維持 */
        margin-top: 8px !important;
        display: block !important; /* 非表示設定を解除して表示させる */
    }
    .site-name-text a {
        font-size: 1.4rem !important; /* タイトルもスマホで見やすいサイズに固定 */
    }
}

/* --- 親近感アップ！丸みのあるプロフィールデザイン --- */

/* プロフィール枠全体：角を丸くして影を柔らかく */
.widget_author_box {
    background-color: #ffffff;
    border-radius: 20px !important; /* 角丸を強めに */
    padding: 25px 20px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06) !important; /* ふんわりした影 */
    border: 2px solid #f1f5f9 !important; /* 優しい枠線 */
    text-align: center;
    margin-bottom: 24px;
}

/* 名前（ストラ）のデザイン */
.author-box-name {
    font-size: 1.3em !important;
    font-weight: 700 !important;
    color: #475569 !important; /* 濃すぎないグレー */
    margin: 15px 0 10px !important;
    letter-spacing: 0.05em;
}

/* 自己紹介文のデザイン */
.author-description p {
    font-size: 0.9em !important;
    line-height: 1.8 !important; /* 行間を広げて読みやすく */
    color: #64748b !important;
    text-align: left; /* 文章は左揃え */
    margin-top: 15px !important;
}

/* アイコン画像の装飾（ウィジェット設定で円形にしなくてもここで強制的に丸くします） */
.author-thumb img {
    border-radius: 50% !important;
    width: 110px !important; /* 少し大きめに見せる */
    height: 110px !important;
    border: 4px solid #e0f2fe !important; /* 水色の優しい枠線を追加 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    object-fit: cover; /* 画像の比率を崩さない */
}

/* 不要なラベルを消す */
.author-widget-name { display: none; }

/* --- フッターデザイン変更（背景を明るくして文字を見えるようにする） --- */

#footer {
    /* 背景を目次と同じ薄いグレーに変更 */
    background-color: #f7fafc !important; 
    
    /* 文字色を濃いグレーに変更（白だと見えなくなるため） */
    color: #2d3748 !important; 
    
    /* 上部にメインカラーの線を引いて引き締める */
    border-top: 4px solid #1a365d !important; 
}

/* フッター内のリンク色も見やすい色（濃いグレー）に変更 */
#footer a {
    color: #4a5568 !important;
}

/* リンクにマウスを乗せた時はメインカラー（青）にする */
#footer a:hover {
    color: #1a365d !important;
}

/* コピーライト（一番下の©表示）を少し薄く */
.copyright {
    color: #718096 !important;
}

/* ヘッダーメニュー全体の調整 */
.menu-header .menu-item a {
    white-space: nowrap; /* 文字を折り返さない */
    padding: 10px 15px;  /* クリック範囲を広げる */
    font-weight: bold;   /* 文字を太くして視認性アップ */
    transition: 0.3s;    /* 変化を滑らかに */
    border-radius: 4px;  /* 角を少し丸める */
}

/* メニュー項目にマウスを乗せた時（ホバー） */
.menu-header .menu-item a:hover {
    background-color: #f0f4f8; /* 薄いグレー/青系に変更 */
    color: #0056b3;            /* 文字色を少し濃く */
    text-decoration: none;     /* 下線を消す */
}

/* アクティブな（今見ている）カテゴリを強調 */
.menu-header .current-menu-item a {
    border-bottom: 3px solid #0056b3; /* 下にラインを引く */
}

/* 横幅が狭い時にメニューが重なるのを防ぐ */
#navi .navi-in > ul {
    justify-content: center; /* メニューを中央寄せにする */
    flex-wrap: wrap;         /* 幅が足りない時は綺麗に改行させる */
}

/* --- 品質監査レポート専用：ボタンデザイン --- */
.entry-content .audit-button-container {
    text-align: center;
    margin: 3em 0;
}

.entry-content .audit-report-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a365d !important; /* ブログのメインカラーと統一 */
    color: #ffffff !important;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
}

.entry-content .audit-report-link:hover {
    background-color: #2c5282 !important; /* ホバー時に少し明るく */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.audit-report-text {
    margin-right: 12px;
}

.audit-report-icon {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.audit-report-link:hover .audit-report-icon {
    transform: translateX(8px); /* 矢印が右に動く演出 */
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
    .entry-content .audit-report-link {
        font-size: 16px;
        padding: 15px 25px;
    }
}