.post-roop{
    padding: 1em .5em;
}

div.post-roop{
    display: grid;
    grid-template-columns: 1fr;
    gap: .5em;
}

@media screen and (min-width: 767px){
    div.post-roop{
        grid-template-columns: repeat(2, 1fr);
        gap: .25em .5em;
        padding: 0 1em 1.5em;
    }
}

div.search article{
    padding-bottom: .5em;
}

@media screen and (min-width: 767px){
    div.search article{
        padding-bottom: 1em;
    }
}

.index-title{
    padding: 1em .25em 1em 1em;
    color: #fff;
    background-color: var(--gold);
}

.index-title span{
    font-size: 1.2em;
    color: var(--white);
    margin-right: .5em;
    border: 1px #fff solid;
    padding: .25em .5em;
}

.index-title.category{
    background-color: var(--bronze);
}

.index-title.tag{
    background-color: var(--sky);
}

.index-title.search{
    background-color: var(--purple);
}

@media screen and (min-width: 767px){

    .index-title{
        margin-bottom: 2em;
        padding: 2em 1em 2em 1em;
    }

    .index-title span.hd-aside{
        font-size: inherit;
    }
}

/* iPad Pro 縦専用 */
@media screen and (min-width: 1024px){
    div.post-roop{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 1180px){
    div.post-roop{
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------------------------------
   index card
--------------------------------- */
.post.index div.post-card{
    position: relative;
    width: 100%;
    margin: 2px 0;
}

.post.index div.post-card > a.card-row{
    display: flex;
    align-items: flex-start;
    gap: .5em;
    position: relative;
    text-decoration: none;
    color: inherit;
    border: 2px #aaa solid;
    border-radius: var(--rad);
    padding: .5em;
    box-sizing: border-box;
    background-color: #fff;
}

.post.index div.post-card > a.card-row::after{
    content: "";
    position: absolute;
    right: .45em;
    bottom: .4em;
    width: 34px;
    height: 34px;
    transform: rotate(-45deg);
    opacity: .22;
    pointer-events: none;
    z-index: 2;

    background: linear-gradient(90deg, rgba(0,140,255,.95), rgba(255,70,70,.95));
    -webkit-mask-image: url("../assets/icon/ui/tap.svg");
    mask-image: url("../assets/icon/ui/tap.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;

    transition: transform .25s ease, opacity .25s ease;
}

.post.index div.post-card > a.card-row:hover::after{
    transform: rotate(-45deg) scale(1.12);
    opacity: .28;
}

.post.index a.card-row div.card-thumb{
    flex-shrink: 0;
    width: 80px;
    line-height: 0;
    font-size: 0;
}

.post.index a.card-row div.card-thumb > img,
.post.index a.card-row div.card-thumb > .cp-thumb-fallback{
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    display: block;
}

.post.index a.card-row div.card-thumb > img{
    object-fit: cover;
}

.post.index a.card-row div.card-thumb > .cp-thumb-fallback{
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Trebuchet MS", sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
}

.post.index a.card-row div.card-text{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .35em;
    margin-bottom: .25em;
}

.post.index a.card-row span.post-title{
    display: block;
    font-size: .9em;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
    color: inherit;
}

.post.index a.card-row p.card-meta{
    margin: 0;
}

.post.index a.card-row p.card-meta span.meta-cat{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: .8em;
    color: #fff;
    padding: .25em .75em;
    background-color: var(--red);
    border-radius: var(--rad);
    line-height: 1.4;
}

.post.index a.card-row p.card-meta span.meta-cat::before{
    content: "";
    width: .95em;
    height: .95em;
    margin-right: 4px;
    display: inline-block;
    vertical-align: -.12em;
    background-color: currentColor;
    -webkit-mask-image: url("../assets/icon/ui/folder-regular.svg");
    mask-image: url("../assets/icon/ui/folder-regular.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* ページネーション */
div.nav-links{
    margin: 1.5em 0;
    text-align: center;
}

div.nav-links a.page-numbers,
div.nav-links span.current{
    width: 4em;
    height: 4em;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
    line-height: 4;
    font-weight: 500;
    font-size: .8em;
}

/* 検索0件など */
p.noresult{
    padding: .5em .5em .25em;
}

.notfound article{
    padding-bottom: 1em;
}

@media screen and (min-width: 767px){
    .notfound article{
        padding-bottom: 2em;
    }
}