@charset "utf-8";
@import url('_common.css');

/* courses、search画面用 */

.background
{
    padding: 35px 30px 0;
}

.search-box
{
    position: relative;
    overflow: hidden;
    max-width: 1024px;
    margin: 0 auto;
    padding: 2em;
    background: #fff;
    border-radius: 20px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.32);
}

.search-list
{
    max-width: 1084px;
    margin: 0 auto;
}

@media screen and (max-width: 767px)
{
    .background
    {
        padding: 35px 0;
    }

    .search-box
    {
        width: 90%;
        margin: 0 auto;
        padding: 15px 10px;
    }

    .search-list
    {
        width: 90%;
        margin: 0 auto;
    }
}

.search-box h2
{
    font-size: 26px;
    border-bottom: solid 3px #2A90A6;
}

.search-box h5
{
    font-size: 20px;
    margin: 30px 0 10px;
}

.search-box ul
{
    padding-left:0;
    white-space: nowrap;
    display: flex;
    gap: 12px 10px;
}

.search-box li
{
    /*white-space: nowrap;*/
	white-space: normal;
}

.search-box ul li label
{
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
	display: block;
	box-sizing: border-box;
}

/* チェックマークのcss */
label
{
    font-size: 16px;
    color: #000;
    background-color: #d9d9d9;
    padding-right: 10px;
    border-radius: 9999px;
    width: 100%;
    padding-top: 0px;
    padding-bottom: 2px;
    padding-left: 25px;
    padding-right: 10px;
}

.check_box
{
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.check_box input, .check_box label
{
    cursor: pointer;
}

.check_box .checksample
{
    position: absolute;
   /* left: 1px;*/
	top: 0;
  bottom: 0;
  margin: auto 0 auto 2px;
}

input[type="checkbox"]:checked+label
{
    background-color: #2A90A6;
    color: #fff;
}

input[type="checkbox"]
{
    position: relative;
    vertical-align: middle;
    margin-right: 5px; 
    width: 17px;
    height: 17px;
    background-color: #fff;
    vertical-align: -5px;
    border-radius: 50%;
    -webkit-appearance: none;
        -moz-appearance: none;
            appearance: none;
}

input[type="checkbox"]:before
{
    position: absolute;
    top: 2px;
    left: 5px;
    transform: rotate(50deg);
    width: 4px;
    height: 8px;
    border-right: 2px solid #d9d9d9;
    border-bottom: 2px solid #d9d9d9;
    content: '';
}

input[type="checkbox"]:checked:before
{
    border-right: 2px solid #2A90A6;
    border-bottom: 2px solid #2A90A6;
}

.flex-container
{
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
}


/* キーワード検索のcss */
.search-area
{
    position: relative;
    display: block;
}

.search-area input
{
    padding-left: 10px;
    background-color: #fff;
    border: solid 1.5px #ddd;
    height: 35px;
    width: 500px;
    border-radius: 9999px;
    outline: 0;
    box-sizing: border-box;
}

.search-btn
{
    position: relative;
    text-align: center;
    padding: 2em 0;
    width: calc(100% + 4em);
    left: -2em;
    bottom: -2em; 
    background-color: #F3F3F3;
}

@media screen and (max-width: 680px)
{
    .search-area input
    {
        width: 100%;
    }
}

/* 投稿一覧のcss */
.count
{
    margin: 30px 0;
}

.list
{
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 3rem;
}

/* 2024.9.2 add */
/*.category-wrap {
	display: flex;
	justify-content: flex-start;
}*/
p.category {
	/*max-height: 24px;
	overflow: hidden;
	position: relative;
	display: inline-block;*/
}



#showMoreBtn {
		display: block;
	margin-left: 10px;
	
		
}
/* */
.list .category span
{
    margin-right: 5px;
    padding: 2px 6px 4px;
    border-radius: 5px;
    background-color: #2A90A6;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 26px;
    white-space: nowrap;
	display: inline-block;
	font-weight: 400;
	font-size: 10px;
	line-height: 18px;
	height: 18px;
	padding: 0 6px;
}

.news
{
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 1.5em;
    background: #fff;
    border-radius: 20px;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.32);
    opacity: 1;
    transition: .2s;

    &:hover
    {
        opacity: 0.5;
        transition: .2s;
    }
}

.news .sp_flex
{
    display: flex;
}

.news h3
{
    font-size: 26px;
    padding: .1rem 0;
}

.post-categories
{
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.contents-wrap
{
    display: flex;
    flex-flow: column;
    width: 65%;
    padding-right: 10px;
    gap: 5px 0;
}

.img-wrap
{
    width: 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16 / 9;
}

.img-wrap img
{
    width: 100%;
}

.news .title
{
	font-size: 20px;
	margin: 10px 0;
}



@media screen and (max-width: 1024px)
{
    .list
    {
        display: block;
    }

    .list .news
    {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 767px)
{
    .list
    {
        display: block;
        gap: 2rem;
    }

    .news .title
    {
        font-size: 18px;
        margin: 10px 0;
    }

    .news .sp_flex
    {
        flex-direction: column-reverse;
    }

    .sp_flex .category
    {
        margin-top: 8px;
    }

    .news .img-wrap
    {
        width: 100%;
    }

    .list .news
    {
        margin: 2rem 0;
    }

    .contents-wrap
    {
        width: 100%;
        padding-right: 0;
    }
}

/* ページネーションのcss */
.pagination
{
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items:center;
    margin: 3rem 0 4rem;
    gap: 1.5rem;
    color: #C3C3C3;
}

.prev
{
    color: #C3C3C3;
}

.next
{
    color: #C3C3C3;
}

.first
{
    color: #C3C3C3;
}

.last
{
    color: #C3C3C3;
}

.pagination span
{
    font-size: 16px;
    color: #fff;
    border: solid 1.5px #2A90A6;
    background-color: #2A90A6;
    padding: 5px 8px;
    border-radius: 4px;
}

.pager
{
    font-size: 16px;
    color: #C3C3C3;
    border: solid 1.5px #C3C3C3;
    background-color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
}

/* 大学名のcss */
.university
{
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 5px;
    margin-top: calc(-2em);
    min-width: 130px;
    width: fit-content;
    height: fit-content;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    color: #fff;
    background-color: #000;
}

.flex
{
    display: flex;
    gap: 5px;
}

.flex.withicon {
	align-items: flex-start;
}
.flex.withicon > img {
	margin-top: 3px;
}


.category {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* 2行まで表示 */
    overflow: hidden;
    position: relative;
    max-height: 1.5em;
    line-height: 1.5em;
    transition: all 0.3s;
}

.category::after {
    content: ''; /* デフォルトは空にする */
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: white;
    padding-left: 10px;
    display: none; /* デフォルトでは非表示 */
}

