@charset "UTF-8";

.news-list {
    width: 80%;
    margin: 0 auto;

    display: flex;
	flex-direction: column;
	gap: 3rem;
}
	@media screen and (min-width: 744px) {
		.news-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

    @media screen and (min-width: 1024px) {
        .news-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5rem;
      }
    }

.news {
    display: flex;
    flex-direction: column;
	gap: 3rem;
}
    @media screen and (min-width: 744px) {
        .news {
			gap: 3.5rem;
		}
    }

    @media screen and (min-width: 1024px) {
		.news {
			gap: var(--padding-gap);
		}
    }

.news-item {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
}

.news-item-category-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.news-item-category {
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    font-family: var(--jp-font);

    font-size: 0.75rem;
    color: var(--white);
    background-color: var(--sub-color);
}

.news-item-date {
    font-size: 1rem;
    font-family: var(--en-font);
    color: var(--sub-color);
}

.news-item-details {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.news-item-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2; /* 2行（または3行）で止める */
    overflow: hidden;
    height: 3.75rem;
    font-family: var(--jp-font);
    font-weight: 300;
    font-size: 1.25rem;
    color: var(--main-color);
    text-decoration: none;
}



.news-pagination{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
	gap: 6px;
}
    @media screen and (min-width: 744px) {
        .news-pagination{
			display: grid;
			grid-template-columns: 1fr auto 1fr;
    		gap: 12px;
		}
    }

/* 数字部分は news-page-numbers */
.news-page-numbers{
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 戻る＋数字＋次へ：中央カラムに置いて画面中央固定 */
.news-page-center{
    grid-column: 2;           /* ★真ん中カラムに固定 */
    justify-self: center;

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 数字部分 */
.news-page-numbers{
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ステータス：右端カラムへ */
.news-page-status{
    grid-column: 3;
    justify-self: start;        /* 中央ブロックの右端に寄せる */
    margin: 0;
    font-size: 0.75rem;
    color: var(--sub-color);
    white-space: nowrap;      /* 1行固定 */
}

/* prev / next */
.news-page-btn{
    padding: 0.5rem;
    border: 1px solid var(--sub-color);
    background: var(--white);
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    color: var(--sub-color);
}
.news-page-btn:disabled{
    opacity: .5;
    cursor: not-allowed;
}

/* ページ番号ボタン */
.news-page-number{
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line-color);

    font-family: var(--en-font);
    background: var(--white);
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
}
.news-page-number.is-active,
.news-page-number[aria-current="page"]{
    background: var(--main-color);
    color: var(--white);
    border-color: var(--main-color);
    font-weight: 600;
}