/* ========== NEWS アーカイブ用 ========== */

.news-list {
  padding: 80px 0;
}

.news-list__header {
  text-align: center;
  margin: 30px 0 28px;
}

.news-list__header .section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.news-list__desc {
  margin-top: 8px;
  color: #666;
}

.news-item {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
}

/* news */
.news-ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 90%;
}
.news-li {
  border-bottom: 1px solid #eee;
  margin: 1rem 0;
}
.news-a {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .8em;
  padding: .7em 0;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.news-date {
  font-size: 13px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 0.4em; 
}
.news-title { line-height: 1.6; }

/* ol */
.news-content ol {
  counter-reset: li;
}
.news-content ol li {
  display: flex;
  align-items: center;
  padding: .3em;
  margin-left: 10%;
}
.news-content ol li::before {
  display: inline-block;
  min-width: 1.7em;
  margin-right: 5px;
  border-radius: 50%;
  background-color: #2589d0;
  color: #fff;
  font-weight: bold;
  font-size: .75em;
  line-height: 1.7em;
  text-align: center;
  content: counter(li);
  counter-increment: li;
}
@media (max-width: 767px){
  .news-content ol li {
    margin-left: 0;
  }
}

/* ul */
.news-content ul li {
  display: flex;
  align-items: center;
  gap: 0 10px;
  position: relative;
  padding: .3em .3em .3em 1.5em;
  margin-left: 10%;
}
.news-content ul li::before,
.news-content ul li::after {
  position: absolute;
  content: '';
}
.news-content ul li::before {
  left: 0;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  background-color: #2589d0;
}
.news-content ul li::after {
  left: .6em;
  transform: translateX(-75%) rotate(-45deg);
  width: .3em;
  height: .3em;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
}
@media (max-width: 767px){
  .news-content ul li {
    margin-left: 0;
  }
}

/* --- スマホ幅で「お知らせ」アーカイブを横いっぱいに --- */
@media (max-width: 767px) {
  .news-list .container {
    max-width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .news-ul {
    width: 100% !important;
  }

  .news-li a {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /*.news-date {
    width: 80px;
    font-size: 0.85rem;
    flex-shrink: 0;
  }*/

  .news-title {
    flex: 1;
    font-size: 0.95rem;
    white-space: normal;
  }
}

/* ===== アイキャッチ ===== */
.news-thumb {
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 4px;
}
.news-thumb-img {
  display: block;
  width: 20%;
  height: auto;
  object-fit: cover;
}


/* =========================================================
   News Archive (category-news.php) — トップと同じレイアウト
   依存クラス: .news-archive, .top-news, .top-news__*
   ========================================================= */

/* コンテナ */
.news-archive .container {
  max-width: 1100px;
  width: 92%;
  margin: 0 auto;
}

/* セクションヘッダー */
.news-archive__header {
  margin: 32px 0 20px;
}
/*.section-title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}*/
.news-archive__desc {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}

/* 一覧グリッド */
.top-news {
  margin: 24px 0 48px;
}
.top-news__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .top-news__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .top-news__list { grid-template-columns: 1fr; }
}

.top-news__list ul {
}
.top-news__list li {
  list-style: none;
}
.top-news__item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.top-news__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-color: #e5e7eb;
}

/* クリック領域をカード全体に */
.top-news__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* サムネイル（必ず1枚だけ表示される想定） */
.top-news__thumb {
  position: relative;
  aspect-ratio: 16 / 9;          /* 上と同じ見え方に */
  width: 100%;
  overflow: hidden;
  background: #f6f7f8;
}
.top-news__thumb img {
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* メタ情報（日時・カテゴリ・NEW） */
.top-news__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 12px 16px 0;
}

.top-news__date {
  font-size: 12px;
  color: #6b7280;
}

/* カテゴリ */
.top-news__cats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.top-news__cat {
  font-size: 11px;
  line-height: 1;
  color: #2563eb;
  background: #eaf1ff;
  border: 1px solid #d6e4ff;
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}

/* NEWバッジ */
.top-news__badge {
  margin-left: auto;
}
.top-news__badge--new {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  padding: 6px 8px;
  line-height: 1;
  border-radius: 6px;
  letter-spacing: .08em;
}

/* タイトル・抜粋 */
.top-news__title {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
  font-weight: 700;
  padding: 10px 16px 0;
  margin: 0;
}
.top-news__title a { color: inherit; text-decoration: none; }

.top-news__excerpt {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.8;
  padding: 8px 16px 16px;
  margin: 0;
}

/* 空メッセージ */
.top-news__empty {
  text-align: center;
  color: #6b7280;
  padding: 48px 0 64px;
}

/* ページネーション */
.pagination--news {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0 64px;
}
.pagination--news .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.pagination--news .page-numbers:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}
.pagination--news .page-numbers.current {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

/* ダークモード（必要なら） */
@media (prefers-color-scheme: dark) {
  .top-news__item { background: #111315; border-color: #222; }
  .top-news__item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.5); }
  .news-archive__desc { color: #9ca3af; }
  .top-news__date { color: #9ca3af; }
  .top-news__excerpt { color: #cbd5e1; }
  .top-news__cat { color: #93c5fd; background: #0a1a33; border-color: #133b7a; }
  .pagination--news .page-numbers { background: #0b0d0f; border-color: #1f2937; color: #e5e7eb; }
  .pagination--news .page-numbers.current { background: #2563eb; border-color: #2563eb; }
}





/* ===== ページネーション ===== */
.news-pagination {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.news-pagination ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #0073aa;
  border-radius: 6px;
  background: #f7f7f7;
  color: #0073aa;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s ease;
}

.news-pagination .page-numbers:hover {
  background: #0073aa;
  color: #fff;
}

.news-pagination .page-numbers.current {
  background: #0073aa;
  color: #fff;
  font-weight: 700;
}

/* 一覧へ戻るボタン */
.news-actions {
  margin-top: 20px;
}
.btn-news {
  display: block;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s ease;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 160px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.btn-news:hover { background:#e5e7eb; border-color:#e5e7eb; }

/* 前/次ナビ（中央寄せ・ボタン風） */
.news-postnav {
  margin: 32px 0 0;
}
.news-postnav__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.news-postnav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all .2s ease;
}
.news-postnav a:hover { background:#333; color:#fff; }

/* 空表示 */
.news-empty { text-align:center; color:#666; }

.single-featured-img { display:block; max-width:100%; height:auto; }
.single-featured { margin: 0 0 24px; }


/* ========== NEWS 詳細ページ ========== */
.news-single {
  padding: 33px 0;
}
.news-single .news-single__article {
  max-width: 900px;
  margin: 2rem auto;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 24px;
}
.news-single .news-date {
  font-size: 13px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 0.4em; 
}
.news-single .news-title {
  font-size: 2rem;
  line-height: 1.3;
  margin: 2rem 0 1.5rem;
}
.news-single .news-content {
  color: #222;
  line-height: 1.9;
}
.news-single .news-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  margin: 20px 0;
}
.news-content h2 {
  margin: 1.5rem 0 1.5rem;
  border-bottom: solid 2px #cce4ff;
  position: relative;
}
.news-content h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 2px #5472cd;
  bottom: -2px;
  width: 20%;
}

.news-content h3 {
  display: flex;
  align-items: center;
  column-gap: 8px;
  color: #333333;
  margin: 1.5rem 0;
}
.news-content h3::before {
  width: 0.8em;
  height: 0.4em;
  border-bottom: 4px solid #2589d0;
  border-left: 4px solid #2589d0;
  transform: rotate(-45deg) translate(2px, -2px);
  content: '';
}
.news-content h4 {
  display: inline-block;
  position: relative;
  color: #0073aa;
  margin: 1rem 0 1.5rem;
}
.news-content h4:before {
  content: '';
  display: inline-block;
  position: absolute;
  bottom: -15px;
  width: 60px;
  height: 2px;
  background-color: #e5e7eb;
}
.news-content p {
  margin-bottom: 2rem;
}

@media (max-width: 767px) {
  .news-single {
    padding: 0;
}
/*
.news-content h2 {
  margin: 1.5rem 0 1.5rem;
  border-bottom: solid 2px #cce4ff;
  position: relative;
}
.news-content h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 2px #5472cd;
  bottom: -2px;
  width: 20%;
}
.news-content h3 {
  position: relative;
  display: inline-block;
  padding: 0 45px;
  margin: 1rem 0 1rem;
}
.news-content h3:before, .news-content h3:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 44px;
  height: 2px;
  background-color: black;
  -webkit-transform: rotate(-60deg);
  transform: rotate(-60deg);
}
.news-content h3:before {
  left:0;
}
.news-content h3:after {
  right: 0;
}
.news-content h4 {
  display: inline-block;
  position: relative;
  color: #5472cd;
  margin: 1rem 0 1.5rem;
}
.news-content h4:before {
  content: '';
  display: inline-block;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #cce4ff;
}
.news-content p {
  margin-bottom: 2rem;
}*/
}
