@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* ============================================
   health_posts ショートコード スタイル
   ※ デザインはここを自由に編集してください
============================================ */

/* グリッドレイアウト：PC 4列 */
.health-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* タブレット：2列 */
@media (max-width: 1024px) {
    .health-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ：2列 */
@media (max-width: 767px) {
    .health-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* カード */
.health-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.health-post-card:hover {
    transform: translateY(-4px);
}

.health-post-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* サムネイル */
.health-post-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* テキストエリア */
.health-post-info {
    padding: 16px;
}

.health-post-date {
    font-size: 12px;
    color: #999;
    margin: 0 0 6px;
}

.health-post-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 8px;
}

.health-post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 投稿なし */
.health-posts-none {
    color: #999;
    font-size: 14px;
}

/* もっと見るボタン */
.health-posts-loadmore-wrap {
    text-align: center;
    margin-top: 40px;
}

.health-posts-loadmore {
    display: inline-block;
    padding: 14px 48px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.health-posts-loadmore:hover {
    background: #555;
}

.health-posts-loadmore:disabled {
    background: #aaa;
    cursor: not-allowed;
}
```

---

### 固定ページでの使い方
```
// 新着一覧（カテゴリー全体）
[health_posts category="eiyoshi-mezasu" count="8"]

// タグ別セクション
[health_posts category="eiyoshi-mezasu" tag="books" count="6"]
[health_posts category="eiyoshi-mezasu" tag="school" count="6"]