@charset "UTF-8";

/* ============================================================
   お知らせ（archive / single）専用スタイル
   - common.css の :root 変数（--brand-main / --brand-accent / --bg-sub /
     --border-light / --text-main）を継承
   - .page-hero / .hero-label / .page-hero__title / .hero-en /
     .fade-up / aioseo_breadcrumbs() の表示は common.css の
     共通スタイルをそのまま利用
   ============================================================ */


/* ============================================================
   お知らせ一覧(archive.php)— 3カラムカードグリッド
   ============================================================ */
.news-archive {
  padding: 80px 0 120px;
  background-color: #fff;
}

.news-archive__inner {
  width: 92%;
  max-width: 1400px;
  margin: 0 auto;
}

/* グリッド本体：PC 3カラム / タブレット 2カラム / SP 1カラム */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 40px;
}

.news-list__item {
  /* fade-up を行ごとにずらしたい場合は、PHP側で delay クラスを付与 */
}

/* カード：縦積みレイアウト */
.news-list__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--text-main, #333);
}

/* サムネイル */
.news-list__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-sub, #f5f7fa);
}

.news-list__thumb img {
  height: 100% !important;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.news-list__link:hover .news-list__thumb img {
  transform: scale(1.06);
}

.news-list__noimg {
  opacity: 0.6;
}

/* 本文 */
.news-list__body {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-list__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.news-list__date {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-main, #333);
}

.news-list__cat {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  background-color: var(--brand-main, #003B73);
  border-radius: 0;
  white-space: nowrap;
}

.news-list__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-main, #333);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.25s ease;
}

.news-list__link:hover .news-list__title {
  color: var(--brand-accent, #0080C6);
}

/* 抜粋（people カテゴリ表示時のみ archive.php から出力される） */
.news-list__excerpt {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list__excerpt > * {
  margin: 0;
}

.news-list__excerpt > * + * {
  margin-top: 0.4em;
}

.news-archive__none {
  text-align: center;
  padding: 80px 0;
  color: #666;
}


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

.news-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-main, #003B73);
  background-color: #fff;
  border: 1px solid var(--border-light, #e5e7eb);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.news-pagination .page-numbers:hover {
  background-color: var(--brand-accent, #0080C6);
  color: #fff;
  border-color: var(--brand-accent, #0080C6);
}

.news-pagination .page-numbers.current {
  background-color: var(--brand-main, #003B73);
  color: #fff;
  border-color: var(--brand-main, #003B73);
}

.news-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}


/* ============================================================
   お知らせ詳細(single.php)
   ============================================================ */
.news-single {
  padding: 80px 0 120px;
  background-color: #fff;
}

.news-single__inner {
  width: 92%;
  max-width: 820px;
  margin: 0 auto;
}

.news-single__header {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-light, #e5e7eb);
}

.news-single__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.news-single__date {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-main, #333);
}

/* カテゴリバッジ : <span> でも <a> でも同じ見た目になるよう指定 */
.news-single__cat {
  display: inline-block;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  background-color: var(--brand-main, #003B73);
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

/* リンク化したときの a 要素用 : 親 a 共通指定の上書き */
a.news-single__cat,
a.news-single__cat:visited {
  color: #fff;
  text-decoration: none;
}

a.news-single__cat:hover,
a.news-single__cat:focus {
  background-color: var(--brand-accent, #0080C6);
  color: #fff;
  text-decoration: none;
}

.news-single__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main, #333);
  margin: 0;
}

/* 本文(the_content)の基本スタイル */
.news-single__body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-main, #333);
}

.news-single__body > * + * {
  margin-top: 1.6em;
}

.news-single__body h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand-main, #003B73);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-accent, #0080C6);
  margin-top: 2.4em;
}

.news-single__body h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand-main, #003B73);
  padding-left: 14px;
  border-left: 4px solid var(--brand-accent, #0080C6);
  margin-top: 2em;
}

.news-single__body h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main, #333);
  margin-top: 1.8em;
}

.news-single__body p {
  text-align: justify;
}

.news-single__body a {
  color: var(--brand-accent, #0080C6);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-single__body a:hover {
  color: var(--brand-main, #003B73);
}

.news-single__body ul,
.news-single__body ol {
  padding-left: 1.6em;
}

.news-single__body li + li {
  margin-top: 0.4em;
}

.news-single__body img {
  max-width: 100%;
  height: auto;
  display: block;
}

.news-single__body figure {
  margin: 0;
}

.news-single__body figcaption {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  text-align: center;
}

.news-single__body blockquote {
  padding: 20px 24px;
  background-color: var(--bg-sub, #f5f7fa);
  border-left: 4px solid var(--brand-accent, #0080C6);
  color: #555;
  font-size: 15px;
}

.news-single__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.news-single__body th,
.news-single__body td {
  padding: 12px 16px;
  border: 1px solid var(--border-light, #e5e7eb);
  text-align: left;
}

.news-single__body th {
  background-color: var(--bg-sub, #f5f7fa);
  font-weight: 700;
}

.news-single__pages {
  margin-top: 32px;
  font-size: 14px;
}


/* ============================================================
   ACF 繰り返しフィールド「記事」のセクション
   - 各リピーター行は <section class="news-single__article-block"> でラップ
   - 見出し(article-title)は他ページの section-title 系に揃え、
     左サイドアクセントラインを持つクリーンなデザイン
   ============================================================ */
.news-single__article-block {
  margin-top: 4em;
}

/* the_content() が空の場合(最初の article-block)の上余白を抑える */
.news-single__article-block:first-child {
  margin-top: 2.4em;
}

/* 直下の各要素間に縦余白を確保。
   .news-single__body figure { margin: 0 }(詳細度 0,1,1)を上書きするため、
   詳細度 0,2,0 で書く。
   この後ろに同詳細度の margin リセットを書かないこと(ソース順で負けるため)。 */
.news-single__body .news-single__article-block > * + * {
  margin-top: 1.8em;
}

/* 見出し：news-single__body h2 の既存スタイル(下線ボックス)を上書き */
.news-single__body .news-single__article-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand-main, #003B73);
  padding: 4px 0 4px 18px;
  border-bottom: none;
  border-left: 4px solid var(--brand-accent, #0080C6);
  margin: 0;
}

/* 画像内の img の見た目だけ調整。
   figure 自体には margin リセットを書かない(上の > * + * を打ち消すため) */
.news-single__body .news-single__article-img img,
.news-single__body .news-single__article-block > img {
  width: 100%;
  height: auto;
  display: block;
}

/* 本文(WYSIWYG)内の段落間 */
.news-single__article-text > * + * {
  margin-top: 1.2em;
}


/* ============================================================
   前後／一覧へ戻る
   ============================================================ */
.news-single__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light, #e5e7eb);
}

.news-single__nav-prev {
  text-align: left;
}

.news-single__nav-next {
  text-align: right;
}

.news-single__nav-back {
  text-align: center;
}

.news-single__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--brand-main, #003B73);
  text-decoration: none;
  transition: color 0.25s ease;
}

.news-single__nav-link:hover {
  color: var(--brand-accent, #0080C6);
}

.news-single__nav-arrow {
  font-family: 'Montserrat', sans-serif;
}

.news-single__back-link {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  background-color: var(--brand-main, #003B73);
  text-decoration: none;
  transition: background-color 0.3s ease;
  border-radius: 2px;
}

.news-single__back-link:hover {
  background-color: var(--brand-accent, #0080C6);
}


/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット(〜1023px)：2カラム */
@media (max-width: 1023px) {
  .news-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
  }
}

/* スマホ(〜767px)：1カラム */
@media (max-width: 767px) {

  /* 一覧 */
  .news-archive {
    padding: 48px 0 80px;
  }

  .news-list {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .news-list__thumb {
    aspect-ratio: 16 / 10;
  }

  .news-list__body {
    padding-top: 14px;
  }

  .news-list__date {
    font-size: 12px;
  }

  .news-list__cat {
    font-size: 11px;
    padding: 2px 10px;
  }

  .news-list__title {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }

  .news-list__excerpt {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
  }

  .news-pagination {
    margin-top: 56px;
  }

  .news-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* 詳細 */
  .news-single {
    padding: 48px 0 80px;
  }

  .news-single__header {
    padding-bottom: 24px;
    margin-bottom: 32px;
  }

  .news-single__title {
    font-size: 22px;
  }

  .news-single__body {
    font-size: 15px;
    line-height: 1.85;
  }

  .news-single__body h2 {
    font-size: 20px;
  }

  .news-single__body h3 {
    font-size: 17px;
  }

  .news-single__body h4 {
    font-size: 16px;
  }

  /* ACF 記事ブロック(SP) */
  .news-single__article-block {
    margin-top: 3em;
  }

  .news-single__body .news-single__article-block > * + * {
    margin-top: 1.4em;
  }

  .news-single__body .news-single__article-title {
    font-size: 18px;
    padding: 2px 0 2px 14px;
    border-left-width: 3px;
  }

  .news-single__nav {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 56px;
    padding-top: 28px;
    text-align: center;
  }

  .news-single__nav-prev,
  .news-single__nav-next {
    text-align: center;
  }

  .news-single__nav-back {
    order: 3;
  }

  .news-single__nav-prev {
    order: 1;
  }

  .news-single__nav-next {
    order: 2;
  }
}
