@charset "UTF-8";

/* ------------------------------------------------------
 * 固定ページ
 * ------------------------------------------------------ */
/* p-post */
.p-postCard {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.p-postCard .c-favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
}

.p-postList__body,
.p-postList__link {
    position: initial;
}

.p-postList__link::before {
    z-index:1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.p-postCard__info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-views-count {
    margin-left: auto;
}

.p-postCard__areaList {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.p-postCard__areaItem {
    z-index:2;
    pointer-events: auto;
}

.p-postCard__areaItem a {
    padding: 4px 10px;
    background: var(--color-white);
    border-radius: 5px;
    font-size: clamp(.9rem, 1vw, .85rem);;
}

.p-postCard__categoryList {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

.p-postCard__categoryItem {
    z-index: 1;
    pointer-events: auto;
}

.p-postCard__categoryItem a {
    color: #565656;
    font-size: clamp(.8rem, 1vw, .85rem);
}

/* userlist */
.p-userList {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem 0;
}

.p-userList__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(100% / 2);
}

.p-userList__link::before {
    z-index: 1;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.p-userList__avatar {
    max-width: 300px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.p-userList__name {
    margin-top: 1rem;
}

.p-userList__position {
    font-size: .9rem;
}

/* news */
.p-newsListWrap .c-postTimes__posted::before,
.p-newsListWrap .p-postList__cat::before {
    content: none;
}

.p-newsListWrap .p-postList__cat {
    background: var(--color_main);
    padding: 5px 20px;
    border-radius: 15px;
    font-weight: bold;
    color: var(--color-white);    
}

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

    /* userlist */
    .p-userList__item {
        width: calc(100% / 3);
    }

    .p-userList__avatar {
        width: 160px;
        height: 160px;
    }
}

@media (min-width: 1020px) {
    .-type-card .p-postList__item {
        width: 33.33333%;
    }
}

@media screen and (min-width:960px) { 
    /* userlist */
    .p-userList__item {
        width: calc(100% / 4);
    }
    .p-userList__avatar {
        width: 180px;
        height: 180px;
    }
}
