html, body {
  overflow-x: hidden;
  width: 100%;
}

#news {
  
}

/* ---------------- 見出し ---------------- */
.hero-section-news {
  position: relative;
  background: url('../images/news/menu-news.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px 120px;
  overflow: hidden;
  margin-bottom:50px;
}
@media screen and (max-width: 757px) {
.hero-section-news {
    background: url('../images/news/menu-news_sp.png') center/cover no-repeat;
    background-size: 100%;
    padding: 80px;
    margin-bottom:0px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom:5px;
  font-weight:normal;
  letter-spacing: 0.2em;
}

.hero-content p {
  font-size: 2rem;
  font-weight:200;
  letter-spacing: 0.1em;
}


/* ---------------- info ---------------- */
.l-sec:last-child {
  padding-bottom: 100px !important;
}

.l-sec-info {
  padding: 100px 0;
  background: url(../images/top/bk01_pc.jpg) center/cover no-repeat;
}
.l-sec-info .info-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.l-sec-info .info-list__item {
  width: calc(50% - 20px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 40px rgba(18, 134, 162, 0.2);
  border-radius: 40px;
  padding: 50px 80px 60px;
}
.l-sec-info .info-list__item .txt {
  letter-spacing: 0.05em;
  color: #707070;
  line-height: 1.87;
}
.l-sec-info .info-list__item .tel {
  margin-top: 24px;
  text-align: center;
  font-size: 3.2rem;
  font-family: "futura-pt", "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo;
  letter-spacing: 0.1em;
  line-height: 0.9;
}
.l-sec-info .info-list__item .tel .icon {
  display: inline-block;
}
.l-sec-info .info-list__item .tel .icon img {
  width: 18px;
  height: 18px;
  margin-top: -10px;
}
.l-sec-info .info-list__item .tel a {
  color: #707070;
}
.l-sec-info .info-list__item .time {
  text-align: center;
}
@media screen and (max-width: 757px) {
  .l-sec-info {
    padding: 60px 0;
  }
  .l-sec-info .c-ttl {
    margin-bottom: 24px;
  }
  .l-sec-info .info-list__item {
    width: 100%;
    padding: 40px 20px;
    right:0;
    left:0;
    margin:auto;
    margin-bottom: 32px;
  }
  .l-sec-info .info-list__item:last-child {
    margin-bottom: 0;
  }
  .l-sec-info .info-list__item .txt {
    line-height: 1.93;
  }
  .l-sec-info .info-list__item .tel {
    margin-top: 20px;
  }
}




/* ---------------- main ---------------- */
.news-narabi {
  width:100%;
  max-width:1000px;
  margin: 0 auto;
  padding-top: 20px;
}
@media screen and (max-width: 757px) {
.news-narabi {
    max-width:100%;
  }
}

/* フィルターボタン */
#news .news-filter {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 70px;
  list-style: none;
  padding: 0;
  text-align: center;
}
#news .news-filter li {
  padding: 6px 16px;
  width: 130px;
  border-radius: 30px;
  background: #ccc;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.3s ease;
}

@media (max-width: 767px) {
  #news .news-filter {
    gap: 15px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 50px;
  }
  
  #news .news-filter li {
    text-align: center;
    flex: 0 0 100px; 
  }
}


#news .news-filter li:hover,
#news .news-filter a:hover {
  background-color: #25819A;
  opacity: 1;
}

#news .news-filter li.active {
  background: #25819A;
  opacity: 1;
}

/* 現在選択されているフィルターのボタンに色をつける */
#news .news-filter .active {
  background-color: #38AFCB;  /* 現在選択されているボタンの背景色 */
  color: #fff;                /* 文字色 */
  border-color: #38AFCB;      /* ボーダーの色 */
}

/* カテゴリフィルターのボタンの文字色 */
.news-filter li a {
  color: #fff;
}



/* 投稿一覧 */
#news .news-list {
  list-style: none;
  padding: 0;
}

#news .news-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 20px 18px 40px;
  width: 100%;
}

/* 1段目：日付とカテゴリ */
#news .news-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

#news .news-date,
#news .news-cat {
  margin-right: 20px;
}

#news .news-date {
  font-family: "futura-pt", "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo !important;
  font-size: 16px;
  color: #707070;
}

#news .news-cat {
  width: 100px; /* 幅を100pxに固定 */
  padding: 3px 12px;
  border: 1px solid #2772b0;
  border-radius: 30px;
  font-size: 14px;
  color: #2772b0;
  text-align: center;
}

/* カテゴリごとに色変えたい場合は以下のように */
#news .news-item.media .news-cat   { border-color: #05b3c6; color: #05b3c6; }
#news .news-item.award .news-cat   { border-color: #43a047; color: #43a047; }
#news .news-item.column .news-cat  { border-color: #b88c1c; color: #b88c1c; }

/* 2段目：記事タイトルと矢印 */
#news .news-body {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#news .news-title {
  flex: 1;
  color: #707070;
  text-decoration: none;
  font-size: 16px;
}

#news .news-arrow {
  font-size: 25px;
  font-weight: 100;
  color: #999;
  margin-left: 20px;
}

/* スマホ版の投稿アイテム */
@media screen and (max-width: 767px) {
  #news .news-item {
    flex-direction: column; /* 1段目と2段目を縦に並べる */
    align-items: flex-start;
    padding: 18px 20px 18px 20px;
    width: 90%;
    margin: 0 auto;
  }

  #news .news-header,
  #news .news-body {
    width: 100%;
  }

  #news .news-cat {
    padding: 2px 12px;
  }

  /* 2段目：記事タイトルと矢印 */
  #news .news-title {
    font-size: 16px;
    color: #707070;
    text-decoration: none;
    margin-bottom: 5px;
  }

  #news .news-arrow {
    display: none;
  }

  /* 日付とカテゴリを横並びにする */
  #news .news-date,
  #news .news-cat {
    display: inline-block;
    margin-right: 15px;
  }

}

/* PC表示で日付・カテゴリ・タイトル・矢印を横並び1列に */
@media screen and (min-width: 768px) {
  #news .news-item {
    flex-direction: row; /* 横並びにする */
    align-items: center;
  }

  #news .news-title {
    margin-left: 10px;
  }

  #news .news-arrow {
    margin-left: 20px;
  }
}






/* ---------------- ページネーション ---------------- */
#news .pagination {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 70px;
}

/* 横並びレイアウト */
#news .page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

#news .page-numbers li {
  margin: 0 10px;
}

/* 共通スタイル */
#news .page-numbers a,
#news .page-numbers span {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  font-size: 22px;
  color: #25819A;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #38b0cbbe; /* 水色のぼかし */
}

/* 非選択のホバー */
#news .page-numbers a:hover {
  box-shadow: 0 0 20px #38b0cbbe; /* 水色のぼかし */
}

/* 現在のページ */
#news .page-numbers .current {
  background: linear-gradient(to bottom, #38AFCB, #0C4281);
  color: #fff;
  pointer-events: none;
  border: none; /* 現在のページの枠線を消す */
  box-shadow: none; /* 現在のページにぼかしを除去 */
}

/* レスポンシブ（スマホ） */
@media screen and (max-width: 757px) {
  #news .page-numbers a,
  #news .page-numbers span {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}


/* ----------------  記事  ---------------- */
/* 記事セクション */
/* 記事セクション */
#single-news {
  width:100%;
  max-width: 1000px;
  margin: 0 auto;
}
@media screen and (max-width: 1030px) {
#single-news {
    width:90%;
  }
}

/* 記事のヘッダー */
#single-news .news-header {
  text-align: left;
  padding-top: 30px;
  margin-bottom: 30px;
}

#single-news .news-date {
  font-family: futura-pt, "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo;
  font-size: 18px;
  color: #707070;
}
@media screen and (max-width: 757px) {
#single-news .news-dates {
  font-size: 16px;
  }
}

#single-news .news-title {
  font-size: 28px;
  font-weight:normal;
  color: #707070;
  margin-top: 20px;
  line-height: 1.4;
}
@media screen and (max-width: 757px) {
#single-news .news-title {
  font-size: 25px;
  }
}

/* 記事の画像 */
#single-news .news-image img {
  width: 80%;
  height: auto;
  border-radius: 20px;
  margin-top: 20px;
  margin-bottom: 0px;
}
@media screen and (max-width: 757px) {
#single-news .news-image img {
  width: 100%;
  }
}

/* 記事本文 */
#single-news .news-body p {
  font-size: 16px;
  color: #707070;
  line-height: 1.7;
  margin-top: 30px;
  text-align: justify;
  margin-bottom:70px;
}

#single-news .wp-block-heading {
  font-size: 20px;
  color: #25819A;
  line-height: 1.7;
  font-weight: 500;
  border-bottom: #25819A 1px solid;
  padding-bottom:15px;
  margin-top:30px;
  margin-bottom:30px;
}
@media screen and (max-width: 757px) {
#single-news .wp-block-heading {
  font-size: 18px;
  }
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 30px;
  margin-bottom: 80px;
}
@media screen and (max-width: 757px) {
.news-pagination {
  padding-top: 0px;
  }
}

.news-pagination a {
  text-decoration: none;
  padding: 12px 25px;
  width:28%;
  background-color: #0097a7;
  color: #fff; /* 文字色を指定 */
  font-weight: normal;
  text-align: center;
  border-radius: 30px; /* 丸い角に */
  transition: background-color 0.3s, color 0.3s;
  font-size: 16px;
  line-height: 1.5;
  transition: transform 0.3s ease;
    position: relative;
}
@media screen and (max-width: 757px) {
.news-pagination a {
  font-size: 14px;
  padding: 10px 10px;
  width:32%;
  }
}

.news-pagination a:not(:last-child) {
  margin-right: 30px;
}
@media screen and (max-width: 757px) {
.news-pagination a:not(:last-child) {
  margin-right: 10px;
  }
}

.news-pagination a.prev-article::before {
  content: "＜"; /* 左矢印 */
  position: absolute;
  left: 28px;
  top: 30%;
transform: translateX(-50%) scale(1, 2);
  font-size: 12px;
}

.news-pagination a.next-article::after {
  content: "＞"; /* 右矢印 */
  position: absolute;
  right: 10px;
  top: 30%;
transform: translateX(-50%) scale(1, 2);
  font-size: 12px;
}

@media screen and (max-width: 757px) {
.news-pagination a.prev-article::before,
.news-pagination a.next-article::after {
  display: none;
  }
}


/* カテゴリボタンのスタイル */
.news-categories {
  margin: 15px 0;
}

.category-button {
  color: #2772b0;
  border: solid 1px #2772b0;
  font-size: 14px;
  padding: 3px 25px;
  margin-right: 10px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

/* カテゴリごとの色を動的に設定 */
.news-categories .category-button.media { 
  border-color: #05b3c6;
  color: #05b3c6;
}

.news-categories .category-button.award { 
  border-color: #43a047;
  color:#43a047;
}

.news-categories .category-button.column { 
  border-color: #b88c1c;
  color:#b88c1c;
}





