/* えらべる介護 記事一覧プラグイン用スタイル */

/* アイキャッチ自動表示（固定ページ本文先頭） */
.era-eyecatch {
    margin: 0 0 1.6em;
}
.era-eyecatch img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: var(--swl-img_shadow, 0 2px 8px rgba(0, 0, 0, 0.1));
}

/* 新着・更新記事カード（ホーム） */
.eart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 1em 0;
}
@media (max-width: 640px) {
    .eart-grid {
        grid-template-columns: 1fr;
    }
}
.eart-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e8ded2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.eart-card:hover {
    border-color: #e86a17;
    box-shadow: 0 4px 14px rgba(232, 106, 23, 0.15);
}
.eart-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fdf3ea;
}
.eart-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.eart-card-body {
    display: block;
    padding: 12px 14px 14px;
}
.eart-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.eart-chip {
    display: inline-block;
    background: #e86a17;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 999px;
}
.eart-date {
    font-size: 0.78em;
    color: #8a7a68;
}
.eart-card-title {
    display: block;
    font-weight: 700;
    line-height: 1.5;
    color: #4a2c14;
}

/* 関連記事（本文末尾） */
.eart-related-h2 {
    margin-top: 2em;
}
.eart-related {
    margin-bottom: 1.5em;
}

/* 全記事索引（記事一覧ページ） */
.eart-total {
    font-weight: 700;
    color: #4a2c14;
}
.eart-list {
    list-style: none;
    margin: 0.5em 0 1.5em;
    padding: 0;
}
.eart-list li {
    border-bottom: 1px solid #eee3d5;
    padding: 10px 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}
.eart-list li a {
    font-weight: 600;
    text-decoration: none;
}
.eart-list li a:hover {
    text-decoration: underline;
}
.eart-list-date {
    font-size: 0.78em;
    color: #8a7a68;
    margin-left: auto;
    white-space: nowrap;
}

/* v1.3.0: ガイドハブ（/guide/）のカード型リスト */
.eart-hub ul.wp-block-list,
.eart-hub ul.eart-hub-list { list-style: none; margin: 1em 0 1.6em; padding: 0; display: grid; gap: 10px; }
@media (min-width: 768px) {
  .eart-hub ul.wp-block-list,
  .eart-hub ul.eart-hub-list { grid-template-columns: 1fr 1fr; }
}
.eart-hub ul.wp-block-list > li,
.eart-hub ul.eart-hub-list > li { position: relative; background: #fff; border: 1px solid #E8DFD2; border-radius: 14px; box-shadow: 0 1px 3px rgba(46, 38, 32, .06); padding: 13px 38px 13px 16px; color: #5C554D; line-height: 1.6; margin: 0; }
.eart-hub ul.wp-block-list > li:hover,
.eart-hub ul.eart-hub-list > li:hover { border-color: #E86A17; }
.eart-hub ul.wp-block-list > li::after,
.eart-hub ul.eart-hub-list > li::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #E86A17; font-size: 1.3em; font-weight: 700; }
.eart-hub ul.wp-block-list > li > a:first-child,
.eart-hub ul.eart-hub-list > li > a:first-child { display: block; color: #2E2620; font-weight: 700; text-decoration: none; }
.eart-hub ul.wp-block-list > li > a:first-child::after,
.eart-hub ul.eart-hub-list > li > a:first-child::after { content: ""; position: absolute; inset: 0; }
