/* アイキャッチ */
.nfu-match-eyecatch {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ===== Common components ===== */

.nfu-card {
  border: 1px solid #005fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.nfu-section-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* 長文が横に伸びすぎない保険（1280運用でも読みやすい） */
.nfu-page p,
.nfu-page li,
.nfu-page .nfu-text,
.nfu-front p,
.nfu-front li {
  max-width: 72ch;
}

/* ===== News list ===== */

.nfu-newslist {
  display: grid;
  gap: 16px;
}

.nfu-newslist__item {
  overflow: hidden;
}

.nfu-newslist__thumbwrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  background: var(--wp--preset--color--secondary, #f4f6ff);
}

.nfu-newslist__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nfu-newslist__thumb.is-fallback {
  object-fit: contain;
}

.nfu-newslist__noimg {
  font-size: 12px;
  opacity: 0.6;
}

.nfu-newslist__body {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

/* ===== Member list ===== */

.nfu-member-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nfu-membercard {
  text-decoration: none;
  color: inherit;
}

.nfu-membercard__inner {
  height: 100%;
  border: 1px solid var(--wp--preset--color--border, #d7dbf0);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.nfu-membercard__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--wp--preset--color--secondary, #f4f6ff);
  display: grid;
  place-items: center;
}

.nfu-membercard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nfu-membercard__noimg {
  font-size: 12px;
  opacity: 0.6;
}

/* クリック要素だけ反応 */
.nfu-membercard:hover .nfu-membercard__inner {
  box-shadow: 0 2px 10px rgba(11, 16, 42, 0.1);
  border-color: rgba(27, 41, 136, 0.35);
}

/* ===== Member cards ===== */
.nfu-membergrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.nfu-membercard__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.nfu-membercard__body {
  padding: 12px 14px;
}

.nfu-membercard__name {
  margin: 0 0 6px;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

.nfu-membercard__meta {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.5;
}

/* News thumb: aspect fix */
.nfu-newslist__thumbwrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.nfu-newslist__thumbwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Shared UI (front -> global) ===== */

/* Buttons */
.nfu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.nfu-btn:hover {
  text-decoration: none;
}

.nfu-btn--primary:hover,
.nfu-btn:not(.nfu-btn--ghost):hover {
  background: #1b2988;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nfu-btn--primary,
.nfu-btn:not(.nfu-btn--ghost) {
  background: var(--wp--preset--color--primary, #1b2988);
  color: #fff;
  box-shadow: var(--nfu-shadow-brand);
}

.nfu-btn--ghost {
  background: rgba(244, 246, 255, 0.08);
  color: rgba(244, 246, 255, 0.92);
  border-color: rgba(244, 246, 255, 0.22);
}

.nfu-btn--ghost:hover {
  background: #1b2988;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  color: #fff;
}

/* Panel + Section head */
.nfu-panel {
  max-width: var(--nfu-container, 1280px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(11, 16, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--nfu-shadow-lg);
}

.nfu-sectionhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.nfu-sectionhead__title {
  margin: 0;
  padding-left: 12px;
  position: relative;
  color: rgba(244, 246, 255, 0.96);
}

.nfu-sectionhead__title::before {
  content: "";
  position: absolute;
  left: 0;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: #005fff;
}

.nfu-sectionhead__more,
.nfu-link {
  color: rgba(244, 246, 255, 0.92);
  text-decoration: none;
  font-weight: 900;
}

.nfu-sectionhead__more:hover,
.nfu-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Page shell (fixed pages) */
.nfu-page {
  padding: 0 0 56px;
}

.nfu-page__section,
.nfu-front__section {
  max-width: var(--nfu-container, 1280px);
  margin: 0 auto;
  padding: 0 var(--nfu-gutter, 24px);
}

/* FAQ (recruit/ob/contact で使ってる想定) */
.nfu-faq__q {
  margin: 18px 0 8px;
  font-weight: 1000;
}

.nfu-faq__a {
  margin: 0 0 8px;
  opacity: 0.92;
  line-height: 1.75;
}

/* =========================================================
   Shortcode-driven pages: hide WP default title + unify background
========================================================= */
.nfu-shortcode-page .wp-block-post-title,
.nfu-shortcode-page .entry-title {
  display: none !important;
}

.nfu-shortcode-page main,
.nfu-shortcode-page .wp-site-blocks {
  background: #0b102a;
}

/* テーマ側の上下余白が残る場合の保険 */
.nfu-shortcode-page main {
  padding-top: 0;
  padding-bottom: 0;
}

/* =========================================================
   Kill WP template spacing (global)
   - main直下のテンプレGroupが付けてくるインライン余白を全ページで無効化
========================================================= */
body.page
  main
  > .wp-block-group.alignfull.has-global-padding.is-layout-constrained {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* =========================
   Breadcrumbs (global)
========================= */
.nfu-breadcrumbs {
  margin-top: 12px; /* 好みで */
}

.nfu-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;

  margin-top: 40px;
  padding: 0;

  list-style: none; /* ← 縦並び・マーカー暴走の元を消す */
}

.nfu-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* 区切り記号（福岡大っぽく） */
.nfu-breadcrumbs__item + .nfu-breadcrumbs__item::before {
  content: "-";
  opacity: 0.6;
  margin-right: 8px;
  color: rgba(244, 246, 255, 0.98);
}
