                                        /*title*/
  @media screen and (min-width:767px) {
.title{
    width: 100vw;
    height: 10rem;
    background-image: url("../img/news.jpg");
    background-size: cover;      /* 画像をh3全体に広げる */
    background-position: center; /* 中央寄せ */
    background-repeat: no-repeat;
    aspect-ratio: 1280 / 160; /* ← 比率を明示 */  
}
.title_text{
    background-color: rgba(255,255,255,0.3);
    height: 10rem;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 10%;
}
.title_text p{
    font-size:clamp(1.13rem, 2.81vw, 2.25rem);
    margin: 0;
}
}
                                        /*title_sp*/
  @media screen and (max-width:766px) {
.title{
    width: 100vw;
    height: 4.74rem;
    background-image: url("../img/news.jpg");
    background-size: cover;      /* 画像をh3全体に広げる */
    background-position: center; /* 中央寄せ */
    background-repeat: no-repeat;
    aspect-ratio: 1280 / 160; /* ← 比率を明示 */  
}
.title_text{
    background-color: rgba(255,255,255,0.3);
    height: 10rem;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.title_text p{
    font-size:clamp(1.13rem, 2.81vw, 2.25rem);
    margin: 0;
    text-align: center;
}
}

                                        /*category*/
  @media screen and (min-width:767px) {
.category{
    max-width: clamp(48rem, 80vw, 60rem);
    margin-top: 1.56rem;
    margin-left: auto;
    margin-right: auto;
}
.category ul{
    display: flex;
    list-style: none;
    gap: 0.94rem; /* アイテム間の間隔 */
}
.category ul li{
    width: clamp(9.81rem, 18.75%, 11.25rem);
    background-color: #3A8DDE;
}
.category ul li span,
.category ul li a{
    text-decoration: none;
    font-size: clamp(1rem, 1.72vw, 1.38rem);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.41rem;
    padding-bottom: 0.41rem;
}
}
                                        /*category_sp*/
  @media screen and (max-width:766px) {
.category{
    max-width: 90vw;
    margin-top: 1.56rem;
    margin-left: auto;
    margin-right: auto;
}
.category ul {
    display: flex;
    flex-wrap: wrap; /* 追加：折り返しを有効に */
    gap: 0.94rem;    /* 追加：アイテム間の間隔 */
    list-style: none;
    padding: 0;
  }
  
  .category ul li {
    width: calc(50% - 0.47rem); /* 変更：2列に */
    background-color: #3A8DDE;
  }
.category ul li span,
.category ul li a{
    text-decoration: none;
    font-size: clamp(1rem, 1.72vw, 1.38rem);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.41rem;
    padding-bottom: 0.41rem;
}
}
                                        /*newslist*/
  @media screen and (min-width:767px) {
.newslist{
    max-width: clamp(48rem, 80vw, 60rem);
    margin-top: 3.13rem;
    margin-left: auto;
    margin-right: auto;
}
.newslist ul{
    list-style: none;
    padding: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; 
}
.newslist ul li a{
    display: flex;
    text-decoration: none;
    color: black;
    font-size: clamp(1rem, 1.25vw, 1rem);
    border-top: 0.063rem solid #3A8DDE;
    padding-top: 0.94rem;
    padding-bottom: 0.94rem;
}
.newslist ul li:last-child a {
    border-bottom: 0.063rem solid #3A8DDE;
}
.newslist_label{
    margin-left: 2.38vw;
    background-color: #3A8DDE;
    color: white;
    padding-left: 0.63rem;
    padding-right: 0.63rem;
}
.newslist_text{
    margin-left: 2.38vw;
}

}
                                        /*newslist_sp*/
  @media screen and (max-width:766px) {
.newslist{
    max-width: 90vw;
    margin-top: 3.13rem;
    margin-left: auto;
    margin-right: auto;
}
.newslist ul{
    list-style: none;
    padding: 0;
    margin-top: 1.56rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%; 
}
.newslist ul li a{
    display: flex;
    flex-wrap: wrap; /* 子要素を折り返し可能に */
    align-items: flex-start;
    text-decoration: none;
    color: black;
    font-size: clamp(1rem, 1.25vw, 1rem);
    border-top: 0.063rem solid #3A8DDE;
    padding-top: 0.94rem;
    padding-bottom: 0.94rem;
}
.newslist ul li:last-child a {
    border-bottom: 0.063rem solid #3A8DDE;
}
.newslist_date, .newslist_label {
    display: inline-block;
    /* 必要に応じて幅を調整 */
}
.newslist_label{
    margin-left: 2.38vw;
    background-color: #E6F0FA;
    padding-left: 0.63rem;
    padding-right: 0.63rem;
}
.newslist_text{
    width: 100%;      /* 横幅いっぱいにして下に改行 */
    margin-left: 0;   /* 左余白をリセット */
    margin-top: 0.5em;/* 上に余白を追加（お好みで） */
    display: block;   /* ブロック要素化で確実に改行 */
}
}
                                        /*pagenumber*/
  @media screen and (min-width:767px) {
.pagenumber {
    max-width: clamp(48rem, 80vw, 60rem);
    margin-top: 3.13rem;
    margin-left: auto;
    margin-right: auto;
}

.nav-links {
    display: flex;
    justify-content: center;
}

.nav-links ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links ul.page-numbers li {
    margin: 0 0.47rem;
}

.nav-links ul.page-numbers li .page-numbers {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.13rem;
    background-color: #E6F0FA;
    color: #000;
}

.nav-links ul.page-numbers li .page-numbers.current {
    background-color: #3A8DDE;
    color: #fff;
}

.nav-links ul.page-numbers li .prev.page-numbers,
.nav-links ul.page-numbers li .next.page-numbers {
    background-color: transparent;
    color: #000;
}

.screen-reader-text {
    display: none;
}
}
                                        /*pagenumber_sp*/
@media screen and (max-width:766px) {
.pagenumber {
    max-width: clamp(48rem, 80vw, 60rem);
    margin-top: 3.13rem;
    margin-left: auto;
    margin-right: auto;
}

.nav-links {
    display: flex;
    justify-content: center;
}

.nav-links ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links ul.page-numbers li {
    margin: 0 0.47rem;
}

.nav-links ul.page-numbers li .page-numbers {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.13rem;
    background-color: #E6F0FA;
    color: #000;
}

.nav-links ul.page-numbers li .page-numbers.current {
    background-color: #3A8DDE;
    color: #fff;
}

.nav-links ul.page-numbers li .prev.page-numbers,
.nav-links ul.page-numbers li .next.page-numbers {
    background-color: transparent;
    color: #000;
}

.screen-reader-text {
    display: none;
}
}

/* pagination */
.pagination {
    margin: 40px 0 0;
}
.nav-links {
    display: flex;
}
.pagination .pnavi {
    position: relative;
    display: flex;
    gap: 35px;
    width: fit-content;
    margin: 50px auto;
}
.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #000000;
    background: #EEF6FB;
    text-decoration: none;
}
.pagination .current {
    background: #46A9EB;
    color: #ffffff;
}
.pagination .prev,
.pagination .next {
    position: absolute;
    background: transparent;
    box-shadow: none;
    color: #000000;
}
.pagination .prev {
    left: -75px;
}
.pagination .next {
    right: -75px;
}
.pagination .dots {
    background: transparent;
    box-shadow: none;
    border: none;
}

@media screen and (max-width:766px) {
    .pagination .pnavi {
        gap: 15px;
    }
    .pagination .prev {
        left: -40px;
    }
    .pagination .next {
        right: -40px;
    }
}