/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 18 2026 | 08:04:52 */
/* ============================================
 * 検索結果ページ：デザイン調整（整理版）
 * 対象：body.search のみ
 * ============================================ */

/* ============================================
 * 1. 検索結果の見出し・件数
 * ============================================ */

/* タイトル周囲のカード装飾を解除 */
body.search .toc.grid.clearfix:has(> #list-title) {
    display: block;
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 0 2.4rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

body.search #list-title {
    margin: 0;
    padding: 0 0 1rem;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(74,61,102,.12);
    box-shadow: none;
}

/* 件数の数字だけを強調（別途JavaScriptでspan/strongにクラス付与） */
body.search #list-title .search-result-count {
    font-size: 1.15em;
    font-weight: 700;
    color: #4A3D66;
    font-variant-numeric: tabular-nums;
}

/* ============================================
 * 2. 検索結果の記事カード：外枠とレイアウト
 * ============================================ */

body.search .toc.grid.clearfix:has(> section) {
    float: none;
    clear: both;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    padding: 0;
    box-sizing: border-box;
}

/* PC：画像130px・本文可変幅。カテゴリーは画像右、Read moreは最下段 */
body.search .toc.grid.clearfix > section {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    grid-template-areas:
        "title title"
        "date date"
        "image category"
        "image excerpt"
        "image more";
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    column-gap: 20px;
    row-gap: 8px;
    align-items: start;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 20px 22px;
    box-sizing: border-box;
}

/* カテゴリーがない固定ページなど：カテゴリー行を作らない */
body.search .toc.grid.clearfix > section:not(:has(> p.meta.meta-u)) {
    grid-template-areas:
        "title title"
        "date date"
        "image excerpt"
        "image more";
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

/* ============================================
 * 3. カード内の要素
 * ============================================ */

/* 記事タイトル */
body.search .toc.grid.clearfix > section > h2.entry-title {
    grid-area: title;
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

body.search h2.entry-title a.entry-link {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

body.search h2.entry-title a.entry-link:hover,
body.search h2.entry-title a.entry-link:focus-visible {
    color: rgba(74,61,102,.85);
}

/* 公開日・更新日（Luxeritasの出力をそのまま表示） */
body.search .toc.grid.clearfix > section > p.meta:not(.meta-u) {
    grid-area: date;
    position: static;
    margin: 0;
    padding: 0;
}

/* カテゴリー：画像の右上 */
body.search .toc.grid.clearfix > section > p.meta.meta-u {
    grid-area: category;
    position: static;
    margin: 0;
    padding: 0;
}

/* サムネイル：figure・リンク・画像の幅を統一 */
body.search .toc.grid.clearfix > section > figure.term {
    grid-area: image;
    float: none;
    position: static;
    width: 130px;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.search .toc.grid.clearfix > section > figure.term > a {
    display: block;
    width: 100%;
    max-width: none;
}

body.search .toc.grid.clearfix > section > figure.term img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    object-fit: cover;
}

/* 抜粋文：最大4行 */
body.search .toc.grid.clearfix > section > .excerpt {
    grid-area: excerpt;
    float: none;
    position: static;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.search .toc.grid.clearfix .excerpt .exsp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.8;
}

/* カテゴリーありの場合のみ、抜粋文を16px上に寄せる（現状の見た目を維持） */
body.search .toc.grid.clearfix > section > p.meta.meta-u + .excerpt {
    margin-top: -16px !important;
}

/* カテゴリーなし（固定ページなど）：画像と抜粋文の上端を揃える */
body.search .toc.grid.clearfix > section:not(:has(> p.meta.meta-u)) > .excerpt {
    padding-top: 0 !important;
}

/* Read more：カード内の右下 */
body.search .toc.grid.clearfix > section > p.read-more {
    grid-area: more;
    position: static;
    float: none;
    justify-self: end;
    align-self: end;
    margin: 0;
    padding: 0;
    text-align: right;
}

body.search p.read-more a.read-more-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: .88em;
    opacity: .72;
    transition: opacity .15s ease;
}

body.search p.read-more a.read-more-link:hover,
body.search p.read-more a.read-more-link:focus-visible {
    color: inherit !important;
    opacity: 1;
}

/* Luxeritas標準の矢印を消し、CSSの矢印で統一 */
body.search i.ico-angle-double-right::before {
    content: none !important;
}

body.search p.read-more a.read-more-link::after {
    content: "»";
    margin-left: .35em;
    opacity: .75;
    transition: transform .15s ease, opacity .15s ease;
}

body.search p.read-more a.read-more-link:hover::after {
    transform: translateX(2px);
    opacity: 1;
}

/* ============================================
 * 4. スマートフォン
 * ============================================ */

@media screen and (max-width: 640px) {
    body.search .toc.grid.clearfix > section {
        grid-template-columns: 96px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 8px;
        padding: 16px;
    }

    body.search .toc.grid.clearfix > section > figure.term {
        width: 96px;
    }
}
