/* cosmee category layout. Limited to the six supported category archives. */
body.category.cosmee-category-redesign #content {margin-top:0!important;padding-top:0!important;}
body.category.cosmee-category-redesign #content #main {padding-top:20px!important;}
body.category.cosmee-category-redesign #content #main .cosmee-category-hero {padding:28px 32px!important;margin:0 0 20px!important;border:1px solid #e2e7db;border-radius:20px;background:linear-gradient(120deg,#f2f6ef,#f8f9f4 75%,#f7eeeb);}
body.category.cosmee-category-redesign #content #main .cosmee-category-hero .category-header {margin:0!important;padding:0!important;}
body.category.cosmee-category-redesign #content #main .cosmee-category-kicker {margin:0 0 10px!important;color:#647557;font:italic 18px/1.5 Georgia,serif!important;letter-spacing:.06em;}
body.category.cosmee-category-redesign #content #main .cosmee-category-hero h1 {display:block!important;margin:0 0 10px!important;padding:0!important;border:0!important;background:none!important;color:#3f443b;font:300 30px/1.7 'Noto Sans JP','Yu Gothic',Meiryo,sans-serif!important;letter-spacing:.04em!important;text-align:left!important;}
body.category.cosmee-category-redesign #content #main .cosmee-category-hero h1::before,
body.category.cosmee-category-redesign #content #main .cosmee-category-hero h1::after {content:none!important;}
body.category.cosmee-category-redesign #content #main .category-page-content {margin:0!important;padding:0!important;font:400 13px/2 'Noto Sans JP','Yu Gothic',Meiryo,sans-serif!important;color:#626d5a;}
body.category.cosmee-category-redesign #content #main .category-page-content p {margin:0!important;font:inherit!important;letter-spacing:.02em;}
body.category.cosmee-category-redesign #content #main .cosmee-category-nav {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px;}
body.category.cosmee-category-redesign #content #main a.cosmee-category-chip {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 17px;border:1px solid #cbd6c3;border-radius:999px;background:white;color:#536348;font:400 12px/1.6 'Noto Sans JP',Meiryo,sans-serif;text-decoration:none;}
body.category.cosmee-category-redesign #content #main a.cosmee-category-chip.is-current {color:white;background:#647557;border-color:#647557;}
.cosmee-category-chip:focus-visible {outline:3px solid #536348;outline-offset:3px;}
body.category.cosmee-category-redesign #content #main .cosmee-category-section {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;}
body.category.cosmee-category-redesign #content #main .cosmee-category-section h2 {margin:0!important;padding:0!important;border:0!important;background:none!important;color:#3f443b;font:400 22px/1.6 'Noto Sans JP',Meiryo,sans-serif!important;letter-spacing:.03em;}
body.category.cosmee-category-redesign #content #main .cosmee-category-section h2::before,
body.category.cosmee-category-redesign #content #main .cosmee-category-section h2::after {content:none!important;}
body.category.cosmee-category-redesign #content #main .cosmee-category-section p {margin:0!important;color:#65705d;font:400 11px/1.6 'Noto Sans JP',Meiryo,sans-serif;}
body.category.cosmee-category-redesign #content #main #list {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;margin:0!important;padding:0!important;}
/* Ads and index widgets remain intact and use a full row instead of a card cell. */
body.category.cosmee-category-redesign #content #main #list > :not(a.entry-card-wrap) {grid-column:1/-1;min-width:0;}
body.category.cosmee-category-redesign #content #main #list > a.entry-card-wrap {display:flex!important;float:none!important;width:auto!important;min-width:0;max-width:none!important;margin:0!important;padding:0!important;border:1px solid #dce4d6!important;border-radius:16px;overflow:hidden;background:white;text-decoration:none;box-shadow:0 3px 12px #3f443b05;}
body.category.cosmee-category-redesign #content #main #list .entry-card {display:flex!important;flex-direction:column!important;width:100%;height:100%;margin:0!important;padding:0!important;}
body.category.cosmee-category-redesign #content #main #list .entry-card-thumb {position:relative;float:none!important;display:flex!important;align-items:center;justify-content:center;flex:none;width:100%!important;height:190px!important;min-height:0!important;margin:0!important;padding:16px!important;box-sizing:border-box;background:#f7f8f4;border-radius:0;overflow:hidden;}
body.category.cosmee-category-redesign #content #main #list .entry-card-thumb img {display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center;opacity:1!important;visibility:visible!important;}
body.category.cosmee-category-redesign #content #main #list .entry-card-thumb .aiim-thumbwrap {display:block;width:100%;height:100%;}
body.category.cosmee-category-redesign #content #main #list .entry-card-thumb > .cat-label {display:none!important;}
body.category.cosmee-category-redesign #content #main #list .entry-card-content {display:flex!important;flex-direction:column!important;gap:0!important;flex:1;min-width:0;margin:0!important;padding:16px!important;}
body.category.cosmee-category-redesign #content #main #list .entry-card-title {display:block!important;margin:0 0 16px!important;padding:0!important;border:0!important;background:none!important;color:#3f443b;font:400 16px/1.75 'Noto Sans JP','Yu Gothic',Meiryo,sans-serif!important;letter-spacing:.01em!important;-webkit-line-clamp:unset!important;overflow:visible!important;max-height:none!important;}
body.category.cosmee-category-redesign #content #main #list .entry-card-title::before,
body.category.cosmee-category-redesign #content #main #list .entry-card-title::after {content:none!important;}
body.category.cosmee-category-redesign #content #main #list .entry-card-meta {display:flex!important;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:6px;order:-1;margin:0 0 10px!important;padding:0!important;position:static!important;}
body.category.cosmee-category-redesign #content #main #list .entry-card-info {order:2;float:none!important;margin:0!important;white-space:nowrap;font-size:10px!important;color:#65705d!important;}
body.category.cosmee-category-redesign #content #main #list .post-date {color:#65705d!important;font-size:10px!important;}
body.category.cosmee-category-redesign #content #main #list .post-date .fa {display:none;}
body.category.cosmee-category-redesign #content #main #list .entry-card-categorys {display:flex;flex-wrap:wrap;gap:4px;order:1;max-width:100%;margin:0!important;}
body.category.cosmee-category-redesign #content #main #list .entry-category {padding:3px 7px;margin:0!important;border-radius:6px;background:#edf2e8!important;color:#536348!important;font:400 9px/1.5 'Noto Sans JP',Meiryo,sans-serif;}
body.category.cosmee-category-redesign #content #main .entry-card-content::after {content:"記事を読む →";display:block;margin-top:auto;padding-top:8px;color:#536348;font:400 11px/1.5 'Noto Sans JP',Meiryo,sans-serif;text-align:right;}
body.category.cosmee-category-redesign #content #main #list > a.entry-card-wrap:hover {box-shadow:0 5px 18px #53634812;border-color:#b8c8ac!important;background:white!important;}
body.category.cosmee-category-redesign #content #main #list > a.entry-card-wrap:focus-visible {outline:3px solid #647557;outline-offset:3px;}
body.category.cosmee-category-redesign #content #main .pagination-next {margin:30px 0 18px!important;}
body.category.cosmee-category-redesign #content #main .pagination-next-link {min-height:44px!important;padding:10px 26px!important;border:1px solid #647557!important;background:#647557!important;color:white!important;border-radius:999px!important;}
body.category.cosmee-category-redesign #content #main .pagination {margin:0 0 28px!important;}
@media(max-width:1000px) and (min-width:601px){body.category.cosmee-category-redesign #content #main #list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;}}
@media(max-width:600px){
 body.category.cosmee-category-redesign #content #main {padding-top:8px!important;}
 body.category.cosmee-category-redesign #content #main .cosmee-category-hero {padding:22px 20px!important;margin-bottom:16px!important;border-radius:18px;}
 body.category.cosmee-category-redesign #content #main .cosmee-category-hero h1 {font-size:24px!important;}
 body.category.cosmee-category-redesign #content #main .cosmee-category-kicker {font-size:15px!important;margin-bottom:8px!important;}
 body.category.cosmee-category-redesign #content #main .category-page-content {font-size:12px!important;}
 body.category.cosmee-category-redesign #content #main .cosmee-category-nav {gap:7px;margin-bottom:22px;}
 body.category.cosmee-category-redesign #content #main a.cosmee-category-chip {min-height:40px;padding:7px 12px;font-size:11px;}
 body.category.cosmee-category-redesign #content #main .cosmee-category-section h2 {font-size:20px!important;}
 body.category.cosmee-category-redesign #content #main .cosmee-category-section p {font-size:10px;}
 body.category.cosmee-category-redesign #content #main #list {grid-template-columns:minmax(0,1fr)!important;gap:14px!important;}
 body.category.cosmee-category-redesign #content #main #list .entry-card {display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;}
 body.category.cosmee-category-redesign #content #main #list .entry-card-thumb {width:112px!important;height:100%!important;min-height:174px!important;padding:10px!important;}
 body.category.cosmee-category-redesign #content #main #list .entry-card-content {padding:12px!important;}
 body.category.cosmee-category-redesign #content #main #list .entry-card-title {font-size:14px!important;line-height:1.65!important;margin-bottom:12px!important;}
 body.category.cosmee-category-redesign #content #main #list .entry-card-meta {gap:5px;flex-direction:column;}
 body.category.cosmee-category-redesign #content #main #list .entry-card-info {font-size:10px!important;}
 body.category.cosmee-category-redesign #content #main #list .entry-category {font-size:8px;}
 body.category.cosmee-category-redesign #content #main .entry-card-content::after {font-size:10px;}
}
