/* ==================================================
   NAWANO トップページ用 ローカル感デザイン
================================================== */

/* 全体背景（柔らかな生成り色） */
body.home {
    background-color: #f9f8f3 !important;
    font-family: 'Zen Maru Gothic', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

/* 見出しデザイン（手書き風の丸みと破線） */
.home h2.list-title,
.home .widget-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    color: #4a3c31;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 24px;
    border-bottom: 3px dashed #d4c5b2;
}

/* 記事カードのデザイン */
.home .entry-card-wrap {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0ece1;
    margin-bottom: 20px;
}

/* ホバー時に浮き上がるアニメーション */
.home .entry-card-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* カテゴリータグ */
.home .cat-label {
    background-color: #e88d67 !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 3px 12px !important;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ==================================================
   スマホ表示（画面幅768px以下）の視認性・可読性改善
================================================== */
@media screen and (max-width: 768px) {

    /* 1. タイトル文字を大きく・濃くして読みやすく */
    .home .entry-card-title {
        font-size: 15px !important;       /* タイトルサイズ調整 */
        line-height: 1.5 !important;      /* 行間を詰めてきゅっとまとめる */
        font-weight: 700 !important;      /* 太字でくっきり */
        color: #2b2b2b !important;        /* 黒に近い濃い色でコントラストUP */
        margin-bottom: 6px !important;
    }

    /* 2. 抜粋文章（スニペット）の文字調整 */
    .home .entry-card-snippet {
        font-size: 12px !important;
        line-height: 1.6 !important;
        color: #555555 !important;        /* 薄すぎないグレー */
    }

    /* 3. カード内のテキストエリアの余白（詰めすぎ・開きすぎを防止） */
    .home .entry-card-content {
        padding: 12px 14px !important;
    }

    /* 4. 日付や投稿者情報の文字サイズ */
    .home .post-date,
    .home .post-update,
    .home .author-name {
        font-size: 11px !important;
        color: #777777 !important;
    }

    /* 5. 2列表示などで窮屈になっている場合、カード自体を1列でスッキリ見せる設定 */
    /* （※もしスマホで1列表示にしたい場合は以下のコメントアウトを解除してください） */
    /*
    .home .list .entry-card {
        width: 100% !important;
        margin-right: 0 !important;
    }
    */
}

/* ==================================================
   スマホ表示での「記事タイトルの見切り」完全防止策
================================================== */
@media screen and (max-width: 768px) {

    /* 1. タイトルの高さ制限や切り落とし（ellipsis等）を解除 */
    .home .entry-card-title {
        height: auto !important;          /* 高さを固定せず自動伸縮させる */
        max-height: none !important;      /* 最大高さの制限を解除 */
        overflow: visible !important;     /* 溢れた文字を隠さない */
        display: block !important;        /* フレックスやマルチライン省略を解除 */
        -webkit-line-clamp: unset !important; /* 行数制限を解除 */
        white-space: normal !important;   /* 自動折り返しを許可 */
        word-break: break-word !important; /* 長い単語・日本語の適切な途中改行 */
        
        /* フォント・行間の調整 */
        font-size: 14px !important;       /* スマホで収まりやすいサイズ */
        line-height: 1.5 !important;      /* 行間を適切に保つ */
        font-weight: 700 !important;
        color: #2b2b2b !important;
    }

    /* 2. カード全体およびテキスト領域の高さ固定を解除 */
    .home .entry-card,
    .home .entry-card-wrap,
    .home .entry-card-content {
        height: auto !important;
        max-height: none !important;
    }
}