/* ============================================
   kt-news.css — お知らせ（CPT: news）専用スタイル
   archive-news.php / single-news.php で使用
   依存: kt-home.css の :root デザイントークン / kt-bg-* 共通クラス
   配色: HOMEデザイントークン（黒 #1a1a1a / 白 #fff / グレー #f4f5f6）
   ============================================ */

/* ============ Lightning の main-section--col--two 問題を強制打ち消し
   PHP フィルター lightning_get_main_section_class_name が新しい Lightning の命名規則
   （col-md-12 ではなく main-section--col--two）に効かないため CSS で強制フル幅化。
   /contact/ ページと同じ対応パターン。 ============ */
.single-news-fullwidth #main,
.single-news-fullwidth .main-section,
.archive-news-fullwidth #main,
.archive-news-fullwidth .main-section {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.single-news-fullwidth .sub-section,
.single-news-fullwidth #sub_section,
.archive-news-fullwidth .sub-section,
.archive-news-fullwidth #sub_section {
  display: none !important;
}

.single-news-fullwidth .site-body-container,
.archive-news-fullwidth .site-body-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ============ アーカイブヘッダー（ベイジ流: シンプルなH1のみ） ============ */
.kt-news-archive-header {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(32px, 4vw, 48px);
  background: #fff;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.kt-news-archive-h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 0;
  color: #1a1a1a;
}

/* ============ 信頼バー ============ */
.kt-news-trustbar {
  padding: clamp(32px, 5vw, 56px) 16px;
  background: #f4f5f6;
}

.kt-news-trustbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.kt-news-trustbar-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.kt-news-trustbar-item-num strong {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
}

.kt-news-trustbar-unit {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 700;
  margin-left: 6px;
  color: #1a1a1a;
}

.kt-news-trustbar-item-image img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.kt-news-trustbar-text {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}

.kt-news-trustbar-label {
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.55;
  color: #333;
}

.kt-news-trustbar-label a,
.kt-news-trustbar-label a:link,
.kt-news-trustbar-label a:visited,
.kt-news-trustbar-label a:hover,
.kt-news-trustbar-label a:focus,
.kt-news-trustbar-label a:active {
  color: #333 !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .18s ease;
}

.kt-news-trustbar-label a:hover,
.kt-news-trustbar-label a:focus {
  opacity: 0.7;
}

/* ============ お知らせリスト ============ */
.kt-news-list-section {
  padding: clamp(24px, 3vw, 40px) 16px clamp(56px, 8vw, 80px);
  background: #fff;
}

.kt-news-list-inner {
  max-width: 880px;
  margin: 0 auto;
}

.kt-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.kt-news-list-item {
  border-bottom: 1px solid #e5e7eb;
}

/* ============ Default state: 全要素から text-decoration と background-image を完全排除（carpet-bomb） ============ */
.kt-news-list-link,
.kt-news-list-link:link,
.kt-news-list-link:visited,
.kt-news-list-link:active,
.kt-news-list-link *,
.kt-news-list-title,
.kt-news-list-title-text,
.kt-news-list-date,
.kt-news-list-more {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-color: transparent !important;
  text-decoration-thickness: 0 !important;
  -webkit-text-decoration-line: none !important;
  -webkit-text-decoration-color: transparent !important;
  background-image: none !important;
}

.kt-news-list-link {
  display: grid;
  grid-template-columns: 110px 1fr 20px;
  gap: 20px;
  align-items: center;
  padding: 20px 8px;
  color: #1a1a1a;
  transition: background-color .18s ease, opacity .18s ease;
}

.kt-news-list-link:hover,
.kt-news-list-link:focus-visible {
  background-color: #eef0f3;  /* より視認性のあるグレー（hover状態を明確に示す） */
  opacity: 1;
}

.kt-news-list-date {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  color: #555;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.kt-news-list-title {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  color: #1a1a1a;
  position: static;  /* Lightning theme の position: relative を打ち消し（::after装飾位置を破壊） */
}

/* 【最重要・真犯人】Lightning親テーマの「h3::after { content: '.'; border-bottom: 1px solid; width: 30% }」
   が全 h3 タグに下線装飾を強制追加する。kt-news-list-title では不要なので無効化。
   memory: feedback_kanitax_lightning_h3_after_trap.md */
.kt-news-list-title::after,
.kt-news-list-title::before {
  content: none !important;
  display: none !important;
  border: none !important;
  border-bottom: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Hover時のみ下線表示。text-decoration-color の fade-in animation で smooth に出現
   注: :focus ではなく :focus-visible（マウスクリック後の残留事故防止）
   carpet-bomb で default は text-decoration-color: transparent / line: none。
   hover時のみ underline + color appear */
.kt-news-list-link:hover .kt-news-list-title-text,
.kt-news-list-link:focus-visible .kt-news-list-title-text {
  text-decoration-line: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
  -webkit-text-decoration-line: underline !important;
  -webkit-text-decoration-color: currentColor !important;
  transition: text-decoration-color .25s ease;
}

.kt-news-list-more {
  font-size: 18px;
  color: #1a1a1a;
  text-align: right;
}

@media (max-width: 640px) {
  .kt-news-list-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 4px;
  }
  .kt-news-list-more {
    display: none;
  }
}

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

.kt-news-pagination .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.kt-news-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  text-decoration: none;
  color: #1a1a1a !important;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .18s ease;
}

.kt-news-pagination .page-numbers:hover {
  background-color: #f4f5f6;
}

.kt-news-pagination .page-numbers.current {
  background-color: #1a1a1a;
  color: #fff !important;
  border-color: #1a1a1a;
}

/* ============ 末尾CTA（archive / single 共通） ============ */
.kt-news-cta {
  padding: clamp(56px, 8vw, 96px) 16px;
  background: #f4f5f6;
  text-align: center;
}

.kt-news-cta-inner {
  max-width: 880px;
  margin: 0 auto;
}

.kt-news-cta-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.kt-news-cta-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.9;
  color: #333;
  margin-bottom: 32px;
}

.kt-news-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ single-news FV ============ */
.kt-news-single-fv {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(32px, 5vw, 56px);
  background: #fff;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.kt-news-single-date {
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 600;
  color: #555;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.kt-news-single-h1 {
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  max-width: 880px;
  margin: 0 auto;
}

/* ============ single-news 本文 ============ */
.kt-news-single-body {
  padding: clamp(40px, 6vw, 72px) 16px;
  background: #fff;
}

.kt-news-single-body-inner {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  color: #1a1a1a;
}

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

.kt-news-single-body-inner h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  margin: 2.2em 0 0.8em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid #1a1a1a;
}

.kt-news-single-body-inner h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  margin: 1.8em 0 0.6em;
}

.kt-news-single-body-inner ul,
.kt-news-single-body-inner ol {
  margin: 0 0 1.5em 1.5em;
}

.kt-news-single-body-inner li {
  margin-bottom: 0.5em;
  line-height: 1.85;
}

.kt-news-single-body-inner img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 4px;
}

.kt-news-single-body-inner a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .18s ease;
}

.kt-news-single-body-inner a:hover,
.kt-news-single-body-inner a:focus {
  opacity: 0.7;
}

/* ============ 関連お知らせ ============ */
.kt-news-related-section {
  padding: clamp(40px, 6vw, 72px) 16px;
  background: #fff;
  border-top: 1px solid #e5e7eb;
}

.kt-news-related-inner {
  max-width: 880px;
  margin: 0 auto;
}

.kt-news-related-inner .kt-bg-section-title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.kt-news-related-cta {
  margin-top: 32px;
  text-align: center;
}
