/* =========================================================
  NEWS（/css/pages/news.css）
========================================================= */

/* ===== layout ===== */
.page-news .news-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px){
  .page-news .news-layout{ grid-template-columns: 1fr; }
}

/* ===== breadcrumb（装飾抑制） ===== */
.page.page-news .breadcrumb{
  border: none !important;
  box-shadow: none !important;
  margin-top: 16px;
  padding-top: 0;
  padding-bottom: 0;
}
.page.page-news .breadcrumb::before,
.page.page-news .breadcrumb::after{
  content: none !important;
  display: none !important;
}

/* =========================================================
  ヒーロー：余計な線/バーをNEWSだけ消す＋下線の隙間を詰める
  ※最低限の !important だけ使用
========================================================= */
.page.page-news .page-hero .page-hero__ja{
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;

  /* 文字下の余白感を減らす */
  line-height: 1.05 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 擬似要素で線を出してる系を潰す（上のバー復活対策） */
.page.page-news .page-hero .page-hero__ja::before{
  content: none !important;
  display: none !important;
}

/* =========================================================
  一覧（PC：サムネ左＋本文右）
========================================================= */
.page-news .news-list{
  margin-top: 20px;
  display: grid;
  gap: 0;
}

.page-news .news-card{
  border-bottom: 1px solid rgba(0,0,0,.18);
}

.page-news .news-card__link{
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  text-decoration: none;
  color: inherit;
  align-items: start;
}

.page-news .news-card__thumb{
  width: 140px;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.page-news .news-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-news .news-card__noimg{
  font-size: 12px;
  color: rgba(0,0,0,.45);
}

.page-news .news-card__title{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.page-news .news-card__meta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.page-news .news-card__date{
  font-size: 13px;
  color: rgba(0,0,0,.75);
}

.page-news .news-card__cat{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 2px;
  background: #003a8c;
  color: #fff;
}

.page-news .news-card__excerpt{
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(0,0,0,.78);
}

.page-news .news-card__link:hover{
  opacity: .92;
}

/* ===== pagination ===== */
.page-news .news-pagination{
  margin-top: 18px;
}
.page-news .news-pagination .nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-news .news-pagination a,
.page-news .news-pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  text-decoration: none;
}
.page-news .news-pagination .current{
  background: #002855;
  color: #fff;
  border-color: #002855;
}

/* =========================================================
  詳細（タイトル大＋縦バー）
========================================================= */
.page-news .news-article__header{
  margin-top: 6px;
}

.page-news .news-article__title{
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 4px solid #111;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
}

@media (max-width: 768px){
  .page-news .news-article__title{ font-size: 22px; }
}

.page-news .news-article__date{
  display: inline-block;
  color: rgba(0,0,0,.65);
  font-size: .95rem;
}

.page-news .news-article__content{
  margin-top: 18px;
  max-width: 860px;
}

.page-news .news-article__content p{
  line-height: 1.95;
  margin: 0 0 1.15em;
}

.page-news .news-article__content h2{
  margin: 1.8em 0 .8em;
  padding-left: 12px;
  border-left: 4px solid #002855;
  line-height: 1.35;
}

.page-news .news-article__content h3{
  margin: 1.5em 0 .7em;
  line-height: 1.4;
  font-size: 1.05rem;
}

.page-news .news-article__content img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-news .news-article__nav{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,.18);
}

.page-news .news-article__nav-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-news .news-article__prev,
.page-news .news-article__next{
  flex: 1 1 0;
}

.page-news .news-article__prev a,
.page-news .news-article__next a{
  text-decoration: none;
  color: #003a8c;
  font-weight: 600;
}

.page-news .news-article__next{ text-align: right; }

.page-news .news-article__back{ text-align: center; }

.page-news .news-back-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  border-radius: 0;
  padding: 14px 22px;
  border: 2px solid #003a8c;
  color: #003a8c;
  font-weight: 700;
  text-decoration: none;
}
.page-news .news-back-btn:hover{ opacity: .9; }

/* =========================================================
  右カラム：紺の見出し帯＋中身白
========================================================= */
.page-news .news-sidebar .widget{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.page-news .news-sidebar .widget-title,
.page-news .news-sidebar .news-widget__title{
  margin: 0 !important;
  padding: 12px 14px !important;
  background: #002855 !important;
  color: #fff !important;
  font-size: 14px !important;
  letter-spacing: .08em;
  border: 0 !important;
  box-shadow: none !important;
}

/* Lightning等が擬似要素で線を作る場合を潰す */
.page-news .news-sidebar .widget-title::before,
.page-news .news-sidebar .widget-title::after,
.page-news .news-sidebar .news-widget__title::before,
.page-news .news-sidebar .news-widget__title::after{
  content: none !important;
  display: none !important;
}

/* 中身 */
.page-news .news-sidebar .widget > *:not(.widget-title){
  padding: 12px 14px 14px;
}

/* 検索 */
.page-news .news-sidebar input[type="search"],
.page-news .news-sidebar input[type="text"]{
  width: 100%;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  padding: 10px 10px;
  font-size: 16px;
  background: #fff;
}
.page-news .news-sidebar input[type="submit"],
.page-news .news-sidebar button{
  border: none;
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
}

/* =========================================================
  カレンダー：投稿日を色付け（リンク日）
========================================================= */
.page-news .news-sidebar #wp-calendar{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.page-news .news-sidebar #wp-calendar caption{
  margin-bottom: 8px;
  font-weight: 700;
}
.page-news .news-sidebar #wp-calendar th,
.page-news .news-sidebar #wp-calendar td{
  padding: 6px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.06);
}

/* 今日 */
.page-news .news-sidebar #wp-calendar td#today{
  background: rgba(0,40,85,.08);
  font-weight: 700;
}

/* 投稿日（リンクが付く日） */
.page-news .news-sidebar #wp-calendar td a{
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #002855;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.page-news .news-sidebar #wp-calendar td a:hover{ opacity: .9; }

/* =========================================================
  SP：右カラムだけ下に落とす
========================================================= */
@media (max-width: 768px){

  .page-news .news-layout{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-news .news-card__link{
    display: grid !important;
    grid-template-columns: 112px minmax(0,1fr) !important; 
    gap: 14px !important;
    padding: 16px 0 !important;
  }

  .page-news .news-card__thumb{
    width: 112px !important;
    aspect-ratio: 1 / 1 !important; 
    margin: 0 !important;
  }

  .page-news .news-card__title{
    border-bottom: 0 !important; 
    padding-bottom: 0 !important;
    margin-bottom: 8px !important;
    font-size: 17px !important;
  }

  .page-news .news-card__meta{
    margin-bottom: 8px !important;
  }
}

/* =========================================================
  ヒーロー：NEWS / お知らせ の隙間を0にする
========================================================= */
.page.page-news .page-hero__title{
  gap: 14px !important;          /* flex / grid の隙間を消す */
  margin-bottom: 0px !important;
  padding-bottom: 14px !important;
}

/* NEWS */
.page.page-news .page-hero__en{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* お知らせ */
.page.page-news .page-hero__ja{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* 下線（en / ja どちらで出ても）を文字直下に */
.page.page-news .page-hero__en::after,
.page.page-news .page-hero__ja::after{
  margin-top: 0 !important;
}


/* =========================================================
  /* NEWSだけ：フッターの高さ差（18px）を強制補正 
========================================================= */
.page-news .footer-heading{
  margin-top: 16px;
}

/* =========================================
  NEWS sidebar：ウィジェット間の余白（検索⇔カレンダー）
  ※ .widget じゃなく .news-widget を実体に合わせて当てる
========================================= */

/* まず「箱」をちゃんと分離して見せる */
.page-news .news-sidebar .news-widget{
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  overflow: hidden;
  margin-bottom: 18px;         /* ← 検索とカレンダーの隙間 */
}

/* 見出し帯（既にあるなら上書き強化） */
.page-news .news-sidebar .news-widget__title{
  margin: 0;
  padding: 12px 14px;
  background: #002855;
  color: #fff;
  font-size: 14px;
  letter-spacing: .08em;
}

/* 中身の余白 */
.page-news .news-sidebar .news-widget__body{
  padding: 12px 14px 14px;
}

/* =========================================
  検索フォーム：小さくして帯に被らないように
========================================= */
.page-news .news-sidebar .news-widget__body form{
  display: flex;
  gap: 8px;
  align-items: center;
}

/* 入力 */
.page-news .news-sidebar .news-widget__body input[type="search"],
.page-news .news-sidebar .news-widget__body input[type="text"]{
  height: 34px;
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

/* ボタン */
.page-news .news-sidebar .news-widget__body input[type="submit"],
.page-news .news-sidebar .news-widget__body button{
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-news .news-search-note{
  margin: 10px 0 0;
  color: rgba(0,0,0,.7);
  font-size: 14px;
}
