@charset "UTF-8";

@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');
/*!
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
*/

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

/*全てをまとめて非表示*/
.home.page .entry-title,
.home.page .date-tags,
.home.page .author-info{
  display: none;
}




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

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

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

/* ===== ガジェマガ風カスタムCSS ===== */
#navi .navi-in > ul { background-color: #1e1e1e; }
#navi .navi-in > ul > li > a { color: #ffffff; }
#navi .navi-in > ul > li > a:hover { color: #f0a500; }
.entry-card-wrap { border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.10); overflow: hidden; }
.entry-card-wrap:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
@media (min-width: 960px) { .post-list.card-style { display: flex; flex-wrap: wrap; gap: 16px; } .post-list.card-style .entry-card-wrap { width: calc(33.333% - 11px); margin: 0; } }
.cat-label { background-color: #1e1e1e; color: #ffffff; border-radius: 4px; font-size: 11px; }

/* ===== 記事内 H2 — 箱型ボーダー（文字：黒） ===== */
.article h2,
.entry-content h2 {
    color: #1e1e1e;
    border: 2px solid #1e1e1e;
    border-left: 8px solid #1e1e1e;
    padding: 14px 18px;
    font-size: 20px;
    font-weight: 900;
    background: #ffffff;
    margin: 40px 0 20px;
    line-height: 1.5;
    border-radius: 2px;
}

/* ===== 記事内 H3 — ガジェマガ風（下線のみ） ===== */
.article h3,
.entry-content h3 {
    color: #1e1e1e !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    border: none !important;
    border-bottom: 3px solid #1e1e1e !important;
    padding: 0 0 8px 0 !important;
    margin: 32px 0 16px !important;
    line-height: 1.5 !important;
    background: none !important;
    box-shadow: none !important;
}
/* ===== 記事内 H4 ===== */
.article h4,
.entry-content h4 {
    font-size: 16px;
    font-weight: 700;
    padding-left: 12px;
    border-left: 3px solid #f0a500;
    margin: 24px 0 12px;

/* ===== 読了時間 + 最終更新日 ===== */
.ymk-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    color: #777;
    font-weight: 500;
}
.ymk-read-time,
.ymk-updated {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== スティッキーヘッダー ===== */
#navi {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.admin-bar #navi {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar #navi {
        top: 46px;
    }
}
	
	/* ===== 吹き出し（スピーチバルーン）強化 ===== */
.speech-wrap {
    margin: 28px 0;
    gap: 12px;
}
.speech-wrap .speech-balloon {
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    background: #ffffff;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 15px;
    line-height: 1.8;
    position: relative;
}
/* 右向き吹き出し（自分） */
.speech-wrap.sbp-r .speech-balloon {
    background: #fff8e8;
    border-color: #f0a500;
}
/* アイコン画像を丸く */
.speech-wrap .speech-person img,
.speech-wrap .speech-icon img {
    border-radius: 50%;
    border: 2px solid #e8e8e8;
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* ===== ポイント/チェック/注意ボックス強化 ===== */
.point-box, .check-box, .alert-box,
.caution-box, .memo-box, .info-box, .bad-box,
[class*="cocoon-block"][class*="box"] {
    border-radius: 10px;
    padding: 20px 22px;
    margin: 28px 0;
    border-width: 2px;
    border-style: solid;
}
.box-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.box-content { font-size: 15px; line-height: 1.8; }

/* ポイント（金） */
.point-box {
    background: #fffbf0;
    border-color: #f0a500;
}
.point-box .box-title { color: #c88a00; }

/* チェック（緑） */
.check-box {
    background: #f0faf0;
    border-color: #3cb371;
}
.check-box .box-title { color: #2e8b57; }

/* 注意/警告（赤） */
.alert-box, .caution-box {
    background: #fff5f5;
    border-color: #e8380d;
}
.alert-box .box-title,
.caution-box .box-title { color: #c0392b; }

/* メモ（グレー） */
.memo-box {
    background: #f8f8f8;
    border-color: #cccccc;
}
.memo-box .box-title { color: #666666; }

/* インフォ（青） */
.info-box {
    background: #f0f8ff;
    border-color: #4a90d9;
}
.info-box .box-title { color: #2471a3; }

/* ===== スクロールフェードイン ===== */
.ymk-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.ymk-fade.ymk-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== モバイルでの表をスクロール可能に ===== */
.ymk-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.ymk-table-wrap table {
    min-width: 480px;
    margin: 0;
}
.article table th,
.entry-content table th {
    background: #1e1e1e;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 14px;
}
.article table td,
.entry-content table td {
    padding: 10px 14px;
    border-color: #e0e0e0;
}
.article table tr:nth-child(even),
.entry-content table tr:nth-child(even) {
    background: #f8f8f8;
}

/* ===== ダークモード自動対応 ===== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    #main, #sidebar, .entry-content,
    .entry-card-wrap, .widget {
        background-color: #242424;
        color: #e0e0e0;
    }
    #header, #navi .navi-in > ul {
        background-color: #111111;
    }
    .article h2, .entry-content h2 {
        background-color: #2a2a2a;
        color: #f0f0f0;
        border-color: #f0f0f0;
    }
    .article h3, .entry-content h3 {
        color: #f0f0f0;
    }
    .entry-card-title { color: #e0e0e0; }
    .entry-card-snippet { color: #aaaaaa; }
    a { color: #dddddd; }
    a:hover { color: #f0a500; }
    .ymk-post-meta { background: #2a2a2a; color: #aaaaaa; }
    .speech-wrap .speech-balloon {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    .speech-wrap.sbp-r .speech-balloon {
        background: #2a2010;
        border-color: #f0a500;
    }
    .point-box  { background: #2a2510; border-color: #f0a500; }
    .check-box  { background: #102010; border-color: #3cb371; }
    .alert-box,
    .caution-box { background: #2a1010; border-color: #e8380d; }
    .memo-box   { background: #222222; border-color: #555; }
    .info-box   { background: #0f1a2a; border-color: #4a90d9; }
    .article table th,
    .entry-content table th { background: #333; }
    .article table tr:nth-child(even),
    .entry-content table tr:nth-child(even) { background: #2a2a2a; }
    #footer { background-color: #111111; }
    .ymk-trail-wrap { background: rgba(30,30,30,0.96); border-color: #333; }
}