/* ニュース一覧ページーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.under-news-wrapper {
  display: flex;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 15rem;
  gap: 5rem;
  padding: 0 1rem;
  /* 左右の高さをそろえない */
  align-items: flex-start;
}

.news-main-area {
  width: 70%;
}

.news-side-area {
  width: 25%;
}

.under-news-wrapper .news-main-area .b-post a {
  padding: 1.5rem;
}

.news-main-area article.b-post:last-of-type a {
  border-bottom: 1px solid #ccc;
}


/* トップページ記事の右矢印取消 */
.b-post a::after {
  display: none;
}

/* カテゴリーーーーーーーーーーーーーーーーーーーーーーーーーー */

/* 全体の枠 */
.news-side-area {
  border: 1px solid #0053BA;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

/* 見出し */
.news-sidearea-title {
  background-color: #0053BA;
  color: #fff;
  text-align: center;
  font-weight: bold;
  padding: 15px 0;
  margin: 0;
  border-bottom: 1px solid #0053BA;
}

/* UL */
.news-sidearea-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: none;
  /* 最後の下に線が出ないように */
}

/* LI */
.news-sidearea-list li {
  position: relative;
  border-bottom: 1px solid #DDDDDD;
}

/* 最終LIの下線を消*/
.news-sidearea-list li:last-child {
  border-bottom: none;
}

.news-sidearea-list li a {
  display: block;
  padding: 15px 15px;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

/* 疑似要素（＞を線で作る） */
.news-sidearea-list li::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #0053BA;
  border-right: 2px solid #0053BA;
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.2s;
}

/* ホバー */
.news-sidearea-list li:hover a {
  color: #0053BA;
}


@media screen and (max-width: 767px) {
  .under-news-wrapper {
    flex-wrap: wrap;
  }

  .news-main-area {
    width: 100%;
  }

  .news-side-area {
    width: 90%;
    margin: auto;
  }
}

/* ページネーションーーーーーーーーーーーーーーーーーーーーーーーーーー */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 5rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* 各リンク */
.pagination a,
.pagination span {
  border: 1px solid #0053BA;
  color: #0053BA;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 1.6rem;
  position: relative;
}

/* 現在ページ */
.pagination .current {
  background: #0053BA;
  color: #fff;
}

/* hover */
.pagination a:hover {
  background: #0053BA;
  color: #fff;
}

/* --------------------------------------
   PC：前へ（左矢印）
--------------------------------------- */
.pagination .prev::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid #0053BA;
  border-bottom: 2px solid #0053BA;
  transform: translateY(-50%) rotate(45deg);
}

/* 「前へ」の文字と矢印が重ならないように余白追加 */
.pagination .prev {
  padding-left: 28px;
}

/* hover 時の矢印色を白に */
.pagination .prev:hover::before {
  border-color: #fff;
}

/* --------------------------------------
   PC：次へ（右矢印）
--------------------------------------- */
.pagination .next::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #0053BA;
  border-bottom: 2px solid #0053BA;
  transform: translateY(-50%) rotate(-45deg);
}

/* 「次へ」の文字と矢印が重ならないように余白追加 */
.pagination .next {
  padding-right: 28px;
}

/* hover 時の矢印色を白に */
.pagination .next:hover::after {
  border-color: #fff;
}

@media screen and (max-width: 767px) {
  .pagination {
    justify-content: center;
     flex-wrap: nowrap;
    align-items: center;
  }

  /* 前へ / 次へ */
  .pagination .prev,
  .pagination .next {
    position: relative;
    /* 疑似要素用 */
    /* padding: 20px 18px; */
    
    padding:0px;
     font-size: 0;         /* 文字を非表示 */
    line-height: 0;       /* 高さのズレを防ぐ */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
  }

  /* 左矢印 */
  .pagination .prev::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-left: 2px solid #0053BA;
    border-bottom: 2px solid #0053BA;
    transform: translateY(-50%) rotate(45deg);
  }

  /* 右矢印 */
  .pagination .next::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #0053BA;
    border-bottom: 2px solid #0053BA;
    transform: translateY(-50%) rotate(-45deg);
  }

  /* ページ番号 */
  .pagination .page {
    padding: 10px 15px;
    font-size: 1.4rem;
  }

  /* hover時の矢印色 */
  .pagination .prev:hover::before,
  .pagination .next:hover::after {
    border-color: #fff;
  }
}

/* 記事ページーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

@media screen and (max-width: 767px) {
  /* スマホの左右空間より開ける */
  .news-main-area.entry {
    padding: 01rem;
  }
}

.news-main-area.entry .e-time {
  /* 日付太字 */
  font-weight: 500;
}

.news-main-area.entry .b-postdate {
  /* 青ライン */
  padding-bottom: 1.5rem;
  border-bottom: solid 2px #0053BA;
  margin-bottom: 2.5rem;
}



/* 記事ページ以下の要素設定（pageと同じ）ーーーーーーーーーーーーーーー */

/* pーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry p {
  margin: 1rem 0.5rem;
}

/* imgーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry img {
  margin: 1rem 1rem 0;
}

@media screen and (max-width: 500px) {
  /* スマホ表示で画像が中心にくるよう左右を0に */
.news-main-area.entry img {
  margin: 1rem 0 0;
}
}

/* h1ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.news-main-area.entry h1 {
  position: relative;
  font-size: 3.2rem;
  font-weight: 700;
  display: block;
  /* 文字幅に合わせるため */
  padding: 0 15px;
  z-index: 1;
  letter-spacing: 0.05em;
  margin: 5rem 0 2rem;
}

/* 背景線 */
.news-main-area.entry h1::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  transform: translateY(-50%);
  /* 文字の中央にくるように */
  height: 15px;
  background-color: #D2EFFD;
  z-index: -1;
  /* 背景として後ろに配置 */
  /* border-radius: 3px;  */
}

@media screen and (max-width: 767px) {
  .news-main-area.entry h1 {
    font-size: 2.8rem;
    font-weight: 500;
    margin: 5rem 0 1.5rem;
  }
}

/* h2ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry h2 {
  position: relative;
  font-size: 2.4rem;
  font-weight: 700;
  padding-left: 25px;
  letter-spacing: 0.05em;
  margin: 4rem 0 2rem;
}

/* 左の青ライン */
.news-main-area.entry h2::before {
  content: "";
  position: absolute;
  left: 0;
  /* h2 文字から左15px の位置 */
  top: 0;
  width: 10px;
  /* 横幅10px のライン */
  height: 100%;
  /* h2文字の高さに合わせる */
  background-color: #0053BA;
}

@media screen and (max-width: 767px) {
  .news-main-area.entry h2 {
    padding-left: 15px;
    font-weight: 500;
    margin: 3rem 0 1.5rem;
  }

  .news-main-area.entry h2::before {
    width: 5px;
  }
}

/* h3ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry h3 {
  position: relative;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 4rem 0 2rem;
  padding-bottom: 10px;
  /* 文字と線の距離を確保 */
}

/* 青線（左100px） */
.news-main-area.entry h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  /* h3 の文字から10px下の位置 */
  width: 100px;
  /* 青い線の長さ */
  height: 1px;
  /* 線の太さ（調整可） */
  background-color: #0053BA;
}

/* グレー線（青線の続き） */
.news-main-area.entry h3::after {
  content: "";
  position: absolute;
  left: 100px;
  /* 青線の続きからスタート */
  right: 0;
  /* 横幅いっぱいまで伸ばす */
  bottom: 0;
  height: 1px;
  background-color: #ACACAC;
}

@media screen and (max-width: 767px) {
  .news-main-area.entry h3 {
    margin: 3rem 0 1.5rem;
  }
}

/* h4ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry h4 {
  position: relative;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 4rem 0 2rem;
  padding-bottom: 10px;
  /* 文字と点線の距離 */
}

/* 点線（線6px・間隔6px・太さ1px） */
.news-main-area.entry h4::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-image: linear-gradient(to right,
      #0053BA 0 6px,
      /* 線の長さ 6px */
      transparent 6px 12px
      /* 間隔 6px */
    );
  background-size: 12px 1px;
  /* 6 + 6 = 12px の繰り返しパターン */
  background-repeat: repeat-x;
}

@media screen and (max-width: 767px) {
  .news-main-area.entry h4 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
  }
}

/* h5ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry h5 {
  font-size: 1.8rem;
  font-weight: 500;
  color: #0053BA;
  letter-spacing: 0.05em;
  margin: 3rem 0 1.5rem;
}

@media screen and (max-width: 767px) {

  .news-main-area.entry h5 {
    margin: 2rem 0 1.5rem;
  }
}

/* h6ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry h6 {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 1.5rem 0;
}

/* ulーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry ul {
  margin: 0 0 0 2rem;
}

.news-main-area.entry ul li {
  list-style-type: disc;
  padding-bottom: 0.2em;
}

/* olーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */
.news-main-area.entry ol {
  margin: 0 0 1rem 2rem;
}

.news-main-area.entry ol li {
  list-style-type: decimal;
  padding-bottom: 0.2em;
}

/* hrーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry hr {
  border: none;
  height: 1px;
  background-color: #0053BA;
  margin: 2rem 0;
}

@media screen and (max-width: 767px) {
  .news-main-area.entry hr {
    margin: 1.5rem 0;
  }
}

/* aーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry a {
  color: #0053BA;
  text-decoration: underline;
  margin: 0.3rem 0;
  font-weight: 500;
  display:inline-block;
}

/* blockquoteーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry blockquote {
    border-left: 2px solid #ccc;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

/* tableーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.table-wrapper {
  overflow-x: auto;                  /* 横スクロール */
  -webkit-overflow-scrolling: touch; /* スマホでスムーズスクロール */
  width: 100%;
  /*margin-bottom:3remフッター下に空間が空く*/
}

.table-wrapper table {
  width:auto;
  border-collapse: collapse;
  min-width: 700px;
}

.news-main-area.entry table p{
    margin: 1rem;
}

.news-main-area.entry table tr,
.news-main-area.entry table th,
.news-main-area.entry table td{
 padding:1rem
}

table, th, td {
  border-color: #333;
}

/* figcaptionーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry figcaption{
    font-size: 1.5rem;
}

/* 2カラム落ちーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー */

@media screen and (max-width: 767px) {
.mt-be-columns{
  flex-wrap: wrap;
  }
}

/* ファイルアップロードーーーーーーーーーーーーーーーーーーーーーーーーーー */

.news-main-area.entry .asset {
  display: inline-flex;
  /* 横並びにする */
  align-items: center;
  /* アイコンと文字を縦方向中央揃え */
}

.news-main-area.entry .file-icon {
  display: inline-block;
  width: 25px;
  height: 30px;
  margin-right: 5px;
  vertical-align: text-bottom;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* aタグの色 */
.news-main-area.entry .asset a {
  color: #333;
}

/* アイコン画像のパス */
.news-main-area.entry .file-icon.pdf {
  background-image: url('assets/images/icon_pdf.png');
}

.news-main-area.entry .file-icon.word {
  background-image: url('assets/images/icon_word.png');
}

.news-main-area.entry .file-icon.excel {
  background-image: url('assets/images/icon_excel.png');
}

/* 新着情報一覧へ戻るボタンーーーーーーーーーーーーーーーーーーーーーーーー */

.entry-return-btn {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 5rem;
}

.entry-return-btn-inner {
  width: 300px;
}

.under-news-wrapper .entry-return-btn-inner a {
  border: solid 1px #0053BA;
  border-radius: 40px;
  white-space: nowrap;
  color: #0053BA;
  position: relative;
  display: block;
  padding: 20px 100px 20px 40px;
  font-size: 1.8rem;
  font-weight: 500;
  text-decoration: none;
}

.entry-return-btn-inner a:hover {
  background-color: #0053BA;
  color: #ffffff;
}

.entry-return-btn-inner a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 40px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #0053BA;
  border-right: 2px solid #0053BA;
  transform: translateY(-50%) rotate(45deg);
}

.entry-return-btn-inner a:hover::after {
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

@media screen and (max-width: 767px) {
  /* ボタン */
  .entry-return-btn {
    padding: 0 1rem;
  }

  .entry-return-btn-inner {
    width: 90%;
  }
}