/* =============================================================================
 * ニュース関連スタイル
 * - トップページニュースセクション (.news-section)
 * - アーカイブページ (.news-archive)
 * - 個別記事ページ (.news-single)
 * ============================================================================= */

/* -----------------------------------------------------------------------------
 * 共通: ニュースリスト行
 * ----------------------------------------------------------------------------- */
.news-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

a.news-item:hover {
  background-color: #fafbfe;
}

.news-item-date {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
  font-family: "DIN 2014", sans-serif;
  letter-spacing: 0.5px;
}

.news-cat-label {
  background: #eff3fc;
  color: #3d62ac;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  font-weight: 500;
  display: inline-block;
}

.news-item-title {
  font-size: 16px;
  color: #333;
  flex: 1;
}

.news-item .newpost {
  margin-left: 8px;
}

/* -----------------------------------------------------------------------------
 * トップページ: ニュースセクション (.news-section)
 * ----------------------------------------------------------------------------- */
.news-section {
  background: #fff;
  padding: 60px 0;
}

.news-section .inner {
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 20px;
}

/* セクションヘッダー */
.news-section .news-heading {
  text-align: center;
  margin-bottom: 35px;
}

.news-section .news-heading-en {
  color: #3d62ac;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  display: block;
}

.news-section .news-heading-ja {
  font-size: 26px;
  font-weight: 700;
  margin: 5px 0 0;
  color: #111;
}

.news-section .news-heading-line {
  width: 40px;
  height: 3px;
  background: #3d62ac;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ニュースリスト */
.news-section .news-list-wrap {
  max-width: 800px;
  margin: 0 auto;
}

/* CTAボタン */
.news-section .news-cta {
  text-align: center;
  margin-top: 30px;
}

.news-section .news-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #6492ed, #3d62ac);
  color: #fff;
  padding: 12px 35px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.news-section .news-cta a:hover {
  opacity: 0.9;
}
.news-section .news-cta a img {
  width: 20px;
  height: 20px;
}

/* -----------------------------------------------------------------------------
 * アーカイブページ (.news-archive)
 * ----------------------------------------------------------------------------- */

/* 青グラデーションヘッダー */
.news-archive-header {
  background: linear-gradient(135deg, #3d62ac 0%, #6492ed 100%);
  padding: 150px 30px 50px;
  text-align: center;
}

.news-archive-header .news-heading-en {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  letter-spacing: 3px;
  display: block;
}

.news-archive-header .news-heading-ja {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin: 5px 0 0;
}

/* タブ型カテゴリフィルタ */
.news-tab-filter {
  background: #fff;
  padding: 0 30px;
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 2px solid #eee;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.news-tab-filter a {
  padding: 15px 20px;
  font-size: 13px;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.news-tab-filter a:hover {
  color: #3d62ac;
}

.news-tab-filter a.is-active {
  color: #3d62ac;
  font-weight: 600;
  border-bottom-color: #3d62ac;
}

/* アーカイブ ニュースリスト */
.news-archive .news-archive-list {
  background: #fff;
  max-width: 1128px;
  margin: 0 auto;
  padding: 0 30px;
}

/* アーカイブ 空の状態 */
.news-archive .news-empty {
  text-align: center;
  color: #666;
  padding: 60px 0;
  font-size: 14px;
}

/* WP-PageNavi カスタムスタイル */
.news-archive .wp-pagenavi {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  background: #fff;
  text-align: center;
}

.news-archive .wp-pagenavi a,
.news-archive .wp-pagenavi span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  color: #666;
  border-radius: 50%;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-archive .wp-pagenavi a:hover {
  border-color: #3d62ac;
  color: #3d62ac;
}

.news-archive .wp-pagenavi span.current {
  background: #3d62ac;
  color: #fff;
  border-color: #3d62ac;
  font-weight: 600;
}

.news-archive .wp-pagenavi .pages {
  display: none;
}

.news-archive .wp-pagenavi .extend {
  border: none;
  width: auto;
}

/* -----------------------------------------------------------------------------
 * 個別記事ページ (.news-single)
 * ----------------------------------------------------------------------------- */

/* パンくずリスト */
.news-single-breadcrumb {
  background: #f8fbff;
  padding: 115px 40px 15px;
  font-size: 12px;
  color: #999;
}

.news-single-breadcrumb a {
  color: #999;
  text-decoration: none;
}

.news-single-breadcrumb a:hover {
  color: #3d62ac;
}

/* 記事コンテナ */
.news-single-container {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 30px;
}

/* メタ情報 */
.news-single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* タイトル */
.news-single-title {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #3d62ac;
}

/* 本文 */
.news-single-body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.news-single-body p {
  margin-bottom: 1.5em;
}

.news-single-body img {
  max-width: 100%;
  height: auto;
}

/* SNSシェアボタン */
.news-share {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-share-label {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

.news-share a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.news-share a:hover {
  opacity: 0.8;
}

.news-share-x {
  background: #000;
  font-size: 13px;
}

.news-share-fb {
  background: #1877f2;
  font-size: 14px;
}

.news-share-line {
  background: #06c755;
  font-size: 11px;
}

/* 一覧へ戻るボタン */
.news-back-btn {
  text-align: center;
  margin-top: 35px;
}

.news-back-btn a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3d62ac;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #3d62ac;
  padding: 10px 30px;
  border-radius: 100px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.news-back-btn a:hover {
  background: #3d62ac;
  color: #fff;
}

/* 前後記事ナビゲーション */
.news-post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #eee;
}

.news-post-nav a {
  font-size: 13px;
  color: #3d62ac;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.news-post-nav a:hover {
  opacity: 0.7;
}

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

/* タブレット・SP（ヘッダー50px） */
@media screen and (max-width: 768px) {
  .news-archive-header {
    padding: 80px 20px 40px;
  }

  /* パンくずは768px以下で非表示（既存style.cssで#breadcrumbがdisplay:none） */
  .news-single-breadcrumb {
    display: none;
  }

  .news-single-container {
    padding-top: 65px;
  }

  .news-archive .news-archive-list {
    padding: 0 20px;
  }
}

/* モバイル */
@media screen and (max-width: 480px) {
  /* 共通リスト行 */
  .news-item {
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px 0;
  }

  .news-item-title {
    width: 100%;
    font-size: 14px;
  }
  .news-item-date {
    font-size: 12px;
  }
  .news-cat-label {
    padding: 4px 8px;
  }

  /* トップセクション */
  .news-section {
    padding: 40px 0;
  }

  .news-section .news-heading-ja {
    font-size: 22px;
  }

  .news-section .news-cta a {
    padding: 10px 25px;
    font-size: 14px;
  }

  /* アーカイブ */
  .news-archive-header {
    padding: 75px 15px 25px;
  }

  .news-archive-header .news-heading-ja {
    font-size: 22px;
  }

  .news-tab-filter {
    padding: 0 15px;
    justify-content: flex-start;
  }

  .news-tab-filter a {
    padding: 12px 15px;
    font-size: 12px;
  }

  .news-archive .news-archive-list {
    padding: 0 15px;
  }

  .news-archive .wp-pagenavi {
    padding: 20px 15px;
  }

  /* 個別記事 */
  .news-single-container {
    padding: 60px 15px 25px;
  }

  .news-single-title {
    font-size: 20px;
    padding-bottom: 15px;
    margin-bottom: 25px;
  }

  .news-single-body {
    font-size: 14px;
    line-height: 1.8;
  }

  .news-back-btn a {
    padding: 8px 25px;
    font-size: 13px;
  }

  .news-post-nav {
    margin-top: 25px;
    padding-top: 20px;
  }

  .news-post-nav a {
    font-size: 12px;
  }
}
