/* =========================================================
   Team page UI (nfu_page_team)
   File: assets/css/30-pages/team.css
   Scope: .nfu-team + body.nfu-has-team
========================================================= */

.nfu-team {
  --nfu-primary: #1b2988;
  --nfu-text: #f2b705;

  --nfu-bg: #06102a;
  --nfu-text: rgba(244, 246, 255, 0.92);
  --nfu-text-dim: rgba(244, 246, 255, 0.8);
  --nfu-text-muted: rgba(244, 246, 255, 0.68);

  --nfu-line: rgba(255, 255, 255, 0.12);

  background: var(--nfu-bg);
  color: var(--nfu-text);
}

/* チーム紹介ページだけ：テンプレのアイキャッチ（Featured Image）を消す */
body.nfu-has-team .wp-block-post-featured-image,
body.nfu-has-team figure.wp-block-post-featured-image {
  display: none !important;
}

/* -----------------------------------------
   見出し + パンくず（TOPICS風の強さに寄せる）
----------------------------------------- */

.nfu-team__hero {
  position: relative;
  padding: 0;
  border-bottom: none;
}

.nfu-team__heroInner {
  max-width: 1280px;
  margin: 0 auto;
  /* news-archive.css の .nfu-topic__hero を踏襲 */
  background: radial-gradient(
    ellipse at 0% 40%,
    rgb(0 194 255 / 22%),
    rgba(6, 16, 42, 0) 40%
  );
}

.nfu-team__kicker {
  margin: 0 0 10px;
  color: rgba(244, 246, 255, 0.85);
  font-weight: 1000;
  letter-spacing: 0.12em;
  font-size: 14px;
}

.nfu-team__title {
  margin: 0 0 10px;
  color: rgba(244, 246, 255, 0.98);
  font-weight: 1000;
  letter-spacing: 0.02em;
  font-size: 48px;
  line-height: 1.1;
}

.nfu-team__crumbs {
  margin: 10px 0 16px;
}

.nfu-team__crumbs .nfu-breadcrumbs a,
.nfu-team__crumbs .nfu-breadcrumbs span {
  color: rgba(244, 246, 255, 0.72);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nfu-team__crumbs .nfu-breadcrumbs a:hover {
  color: rgba(244, 246, 255, 0.95);
  text-decoration: underline;
}

/* ★leadはヒーロー内から外へ移動したので、ここは“本文導入”として整える */
.nfu-team__lead {
  margin: 0 0 22px; /* ヒーロー直下の導入文として余白 */
  color: rgba(244, 246, 255, 0.78);
  font-size: 15px;
  line-height: 1.75;
}

/* -----------------------------------------
   中身（余白は統一）
----------------------------------------- */
.nfu-team__shell {
  padding-top: 100px;
  background: transparent;
}

.nfu-team__inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* -----------------------------------------
   概要（理念/特徴）：枠は下線だけ
----------------------------------------- */
.nfu-team__overview {
  display: grid;
  gap: 100px;
}

.nfu-team__box {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;

  /* 下線区切り */
  position: relative;
  padding-bottom: 60px;
  display: grid;
  grid-template-columns: 240px 1fr;
  column-gap: 28px;
  align-items: start;
}

.nfu-team__box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--nfu-primary) 0%,
    var(--nfu-primary) 70%,
    var(--nfu-text) 70%,
    var(--nfu-text) 100%
  );
  opacity: 0.85;
}

.nfu-team__boxKicker {
  margin: 0;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  color: var(--nfu-text-muted);
  text-transform: uppercase;
}

/* 見出しは大きく */
.nfu-team__h2 {
  margin: 0;
  font-size: 38px;
  font-weight: 1000;
  color: rgba(244, 246, 255, 0.97);
  line-height: 1.3;
}

/* 本文は小さめに */
.nfu-team__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.95;
  color: var(--nfu-text-dim);
  max-width: 80ch;
}

/* 特徴：メリハリを強化 */
.nfu-team__featList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
}

.nfu-team__featTitle {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 1000;
  color: rgba(244, 246, 255, 0.95);
}

.nfu-team__featText {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--nfu-text-dim);
}

/* =========================
   Team Achievements
========================= */
.nfu-team__achievements {
  margin-top: 60px;
  position: relative;
  padding-bottom: 60px;
}

.nfu-team__achievements::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--nfu-primary) 0%,
    var(--nfu-primary) 70%,
    var(--nfu-text) 70%,
    var(--nfu-text) 100%
  );
  opacity: 0.85;
}

.nfu-team__achievementsList {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.nfu-team__achievementsItem {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
}

.nfu-team__achievementsLabel {
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

.nfu-team__achievementsText {
  opacity: 0.92;
}

@media (max-width: 640px) {
  .nfu-team__achievementsItem {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* -----------------------------------------
   挨拶：下線区切り + 2カラム（写真サイズ差を解消）
----------------------------------------- */
.nfu-team__message {
  margin-top: 100px;
  position: relative;
}

/* 下線のみ */
.nfu-team__message::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--nfu-primary) 0%,
    var(--nfu-primary) 70%,
    var(--nfu-text) 70%,
    var(--nfu-text) 100%
  );
  opacity: 0.85;
}

/* ここが重要：列幅は固定（写真列は常に細め） */
.nfu-team__msgGrid {
  display: grid;
  grid-template-columns: 1.15fr auto;
  align-items: center;
  padding-bottom: 60px;
}

/* 監督側 is-reverse は「列幅を逆転させない」 */
.nfu-team__msgGrid.is-reverse {
  grid-template-columns: auto;
}

.nfu-team__msgGrid.is-reverse .nfu-team__msgBody {
  grid-column: 2;
  grid-row: 1;
}

.nfu-team__msgGrid.is-reverse .nfu-team__msgPhoto {
  grid-column: 1;
  grid-row: 1;
}

.nfu-team__msgKicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  color: var(--nfu-text-muted);
  text-transform: uppercase;
}

.nfu-team__msgName {
  margin: 12px 0 0;
  font-weight: 900;
  font-size: 20px;
  color: rgba(244, 246, 255, 0.9);
}

/* 本文は小さめに統一 */
.nfu-team__prose {
  font-size: 16px;
  line-height: 2;
  color: var(--nfu-text-dim);
}

.nfu-team__prose p {
  max-width: 80ch;
}

/* 画像：枠線は基本消して、サイズを統一 */
.nfu-team__msgPhoto {
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;

  aspect-ratio: auto;
  height: auto;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.nfu-team__msgGrid.is-reverse .nfu-team__msgPhoto {
  justify-self: start;
}

.nfu-team__msgPhoto img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.nfu-team__noimg {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--nfu-text-muted);
  border: 1px solid var(--nfu-line);
}

/* -----------------------------------------
   CTA：下線区切り（2色アクセント）
----------------------------------------- */
.nfu-team__cta {
  margin-top: 50px;
  position: relative;
  display: flex;
  justify-content: end;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================================================
   Responsive (grouped)
========================================================= */

@media (max-width: 1024px) {
  .nfu-team__title {
    font-size: 48px;
  }

  .nfu-team__shell {
    padding-top: 60px;
  }

  .nfu-team__box {
    column-gap: 0px;
  }

  .nfu-team__text {
    max-width: 50ch;
  }

  .nfu-team__featText {
    max-width: 50ch;
  }

  .nfu-team__featList {
    gap: 30px;
  }

  .nfu-team__msgGrid {
    column-gap: 40px;
  }

  .nfu-team__msgPhoto {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .nfu-team__title {
    font-size: 40px;
  }

  .nfu-team__lead {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 18px;
  }

  .nfu-team__overview {
    gap: 60px;
  }

  .nfu-team__featList {
    padding-top: 30px;
  }

  .nfu-team__box {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .nfu-team__msgGrid,
  .nfu-team__msgGrid.is-reverse {
    grid-template-columns: 1fr minmax(220px, 320px);
    column-gap: 24px;
  }

  .nfu-team__msgGrid.is-reverse .nfu-team__msgBody {
    grid-column: 2;
  }
  .nfu-team__msgGrid.is-reverse .nfu-team__msgPhoto {
    grid-column: 1;
  }

  .nfu-team__msgPhoto img {
    width: 100%;
    height: auto;
    display: block;
  }

  .nfu-team__msgPhoto {
    width: 100%;
    height: auto;
    max-width: none;
  }

  .nfu-team__prose {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .nfu-team__msgGrid,
  .nfu-team__msgGrid.is-reverse {
    grid-template-columns: 1fr;
  }

  .nfu-team__msgGrid.is-reverse .nfu-team__msgBody,
  .nfu-team__msgGrid.is-reverse .nfu-team__msgPhoto {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 425px) {
  .nfu-team__kicker {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .nfu-team__title {
    font-size: 34px;
  }

  .nfu-team__crumbs {
    margin: 8px 0 12px;
  }

  .nfu-team__crumbs .nfu-breadcrumbs a,
  .nfu-team__crumbs .nfu-breadcrumbs span {
    font-size: 11.5px;
  }

  .nfu-team__text,
  .nfu-team__featText,
  .nfu-team__prose {
    font-size: 13.5px;
  }
}
