/* =========================================================
   採用サイト 先輩・部署パーツ（テストサイト準拠）
   ========================================================= */
:root {
  --nu-black: #151515;
  --nu-hover: #e2ffdf;
  --nu-green-top: #e6ffe3;
  --nu-green-bottom: #f4f7eb;
  --nu-staff: #2d56d1;
  --nu-dept: #23ac38;
}

/* ---------- SWELL標準の記事タイトル・アイキャッチを隠す ---------- */
.nu-single .p-articleHead,
.nu-single .p-articleThumb,
.nu-single .l-topTitleArea,
.nu-single .p-articleFoot,
.nu-single .p-authorBox,
.nu-single .p-relatedPosts,
.nu-single .p-pnLinks,
.nu-single .p-articleMetas,
.nu-single .c-categoryList { display: none !important; }

/* ---------- 一覧ページの見出し（nu-heading） ---------- */
body:has(.nu-heading) .c-pageTitle,
body:has(.nu-heading) .l-topTitleArea { display: none !important; } /* SWELLのページタイトルを隠す */
.nu-heading { margin-bottom: 60px; }
.nu-heading .nu-heading__en {
  margin: 0 !important;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
}
.nu-heading h2 {
  margin: 16px 0 32px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: var(--nu-black) !important;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.5;
}
.nu-heading h2::before,
.nu-heading h2::after { display: none !important; }
@media (max-width: 959px) {
  .nu-heading { margin-bottom: 45px; }
  .nu-heading h2 { font-size: 26px; }
}

/* ---------- 共通：写真に重なるタイトル（白い帯） ---------- */
.nu-ttl {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.9;
}
.nu-ttl span {
  padding: 2px 10px;
  background: #fff;
  color: var(--nu-black);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 共通：所属・病棟名バッジ／イニシャル ---------- */
.nu-meta { margin-top: 14px; font-family: "Noto Sans JP", sans-serif; }
.nu-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--nu-black);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.nu-single--staff .nu-badge,
.nu-cards--staff .nu-badge { background: var(--nu-staff); }
.nu-single--dept .nu-badge,
.nu-cards--dept .nu-badge,
.nu-textcards .nu-badge { background: var(--nu-dept); }

.nu-name {
  margin: 8px 0 0;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
}
.nu-name small { margin-left: 4px; font-family: "Noto Sans JP", sans-serif; font-size: 12px; }
.nu-detail { margin: 8px 0 0; font-size: 14px; line-height: 1.7; }
.nu-note { margin: 4px 0 0; font-size: 12px; line-height: 1.6; }

/* ---------- 一覧カード ---------- */
.nu-list, .nu-others { margin: 0 auto; }
.nu-cards, .nu-textcards { margin: 0 !important; padding: 0 !important; list-style: none !important; }

.nu-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--nu-black);
  border-bottom: 1px solid var(--nu-black);
}

.nu-card { margin: 0 !important; padding: 0 !important; }
.nu-card::before { display: none !important; } /* SWELLのリストマーカー対策 */
.nu-cards .nu-card {
  padding: 30px clamp(12px, 2vw, 30px) 24px !important;
  border-right: 1px dashed var(--nu-black);
  border-top: 1px dashed var(--nu-black);
}
/* 右端の列だけ右の点線なし（最後の段が1〜2枚でも点線が残る） */
.nu-cards .nu-card:nth-child(3n) { border-right: none; }
.nu-cards .nu-card:nth-child(-n+3) { border-top: none; }

.nu-card a {
  position: relative;
  display: block;
  height: 100%;
  padding-bottom: 40px;
  color: var(--nu-black) !important;
  text-decoration: none !important;
}
.nu-card__photo { position: relative; }
.nu-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  transition: opacity .3s;
}
.nu-card__photo img { aspect-ratio: 4 / 3; }
.nu-cards--staff .nu-card__photo img { object-position: center 22%; } /* 縦長の写真でも顔が切れない位置 */
.nu-card a:hover .nu-card__photo img { opacity: .85; }

.nu-role { /* 新人看護師などの黒ラベル（写真の左上） */
  position: absolute;
  top: 0;
  left: 0;
  padding: 3px 10px;
  background: var(--nu-black);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  border-radius: 10px 0 10px 0;
}

.nu-card .nu-ttl {
  margin: -1.6em 0 0 10px; /* 写真の下端にかぶせる */
  font-size: 22px;         /* 一覧のタイトルの大きさ */
  letter-spacing: .02em;
  line-height: 1.8;
}

.nu-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--nu-black);
  border-radius: 50%;
  background: #fff;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  transition: background .2s, color .2s;
}
.nu-card a:hover .nu-arrow { background: var(--nu-black); color: #fff; }

/* テキストのみの部署 */
.nu-textcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px !important;
}
.nu-card--text a {
  padding: 20px 56px 20px 24px;
  border: 1px solid var(--nu-black);
  border-radius: 30px 30px 0 30px;
  background: #fff;
  transition: background .2s;
}
.nu-card--text a:hover { background: var(--nu-hover); }
.nu-card--text .nu-ttl { margin: 0; font-size: 22px; }
.nu-card--text .nu-ttl span { padding: 0; background: none; }
.nu-card--text .nu-meta { margin-top: 10px; }
.nu-card--text .nu-arrow { right: 16px; bottom: 50%; transform: translateY(50%); background: var(--nu-hover); }

/* ---------- 個別ページ：写真＋タイトル ---------- */
.nu-hero { margin: 0 auto 56px; }
.nu-hero__visual { position: relative; padding-bottom: 1.2em; }
.nu-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
}
.nu-hero__photo { position: relative; }
.nu-hero__photo img { aspect-ratio: 4 / 3; }
.nu-hero--staff .nu-hero__photo img { object-position: center 22%; }
.nu-hero .nu-role { font-size: 16px; padding: 6px 16px; }

.nu-ttl--lg {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  font-size: 28px !important;
  line-height: 1.9 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: var(--nu-black) !important;
}
.nu-ttl--lg::before, .nu-ttl--lg::after { display: none !important; }
.nu-ttl--lg span { padding: 4px 14px; }

/* 写真なし（テキストのみの部署） */
.nu-hero--text .nu-hero__visual {
  padding: 56px 32px;
  border-radius: 10px;
  background: linear-gradient(to bottom, var(--nu-green-top), var(--nu-green-bottom));
}
.nu-hero--text .nu-ttl--lg { position: static; }

.nu-hero .nu-meta { margin-top: 20px; }
.nu-hero .nu-badge { font-size: 15px; padding: 4px 14px; }

/* 部署名を大きく */
.nu-cards--dept .nu-badge,
.nu-textcards .nu-badge,
.nu-single--dept .nu-hero .nu-badge {
  padding: 6px 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
}
.nu-single--dept .nu-hero .nu-badge { font-size: 28px; padding: 8px 22px; }
.nu-cards--dept .nu-detail,
.nu-textcards .nu-detail { font-size: 15px; font-weight: 500; }
.nu-single--dept .nu-hero .nu-detail { font-size: 17px; font-weight: 500; }

/* ---------- 個別ページ：本文（Q&A） ---------- */
.nu-body { max-width: 760px; margin: 0 auto; }
.nu-body h3.nu-q {
  margin: 48px 0 16px !important;
  padding: 0 0 12px !important;
  border: none !important;
  border-bottom: 1px solid var(--nu-black) !important;
  background: none !important;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
}
.nu-body h3.nu-q::before, .nu-body h3.nu-q::after { display: none !important; }
.nu-body h3.nu-q .nu-q__num {
  display: inline-block;
  margin-right: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  color: var(--nu-dept);
}
.nu-single--staff .nu-body h3.nu-q .nu-q__num { color: var(--nu-staff); }
.nu-body p { font-size: 15px; line-height: 2; }

/* ---------- 個別ページ：ほかの◯◯ ---------- */
.nu-others { margin-top: 96px; }
.nu-others__ttl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 0 32px !important;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 500;
}
.nu-others__ttl::before, .nu-others__ttl::after {
  content: "";
  flex-shrink: 0;
  align-self: flex-end;
  width: 1px;
  height: 40px;
  background: var(--nu-black);
  transform: translateY(4px) rotate(-38deg);
}
.nu-others__ttl::after { transform: translateY(4px) rotate(38deg); }
/* ---------- 一覧を本文幅より広く（PCのみ） ----------
   --nu-wide を変えると全体の幅が変わる */
@media (min-width: 960px) {
  :root { --nu-wide: min(1360px, calc(100vw - 80px)); }
  .nu-list,
  .nu-heading,
  .nu-others {
    width: var(--nu-wide) !important;
    max-width: none !important;
    margin-left: calc((100% - var(--nu-wide)) / 2) !important;
    margin-right: 0 !important;
  }
}

/* ---------- スマホ ---------- */
@media (max-width: 959px) {
  .nu-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nu-cards .nu-card { padding: 20px 12px 18px !important; border-right: 1px dashed var(--nu-black); border-top: 1px dashed var(--nu-black); }
  .nu-cards .nu-card:nth-child(3n) { border-right: 1px dashed var(--nu-black); }
  .nu-cards .nu-card:nth-child(-n+3) { border-top: 1px dashed var(--nu-black); }
  .nu-cards .nu-card:nth-child(2n) { border-right: none !important; }
  .nu-cards .nu-card:nth-child(-n+2) { border-top: none !important; }
  .nu-cards--dept .nu-badge, .nu-textcards .nu-badge { font-size: 18px; padding: 5px 14px; }
  .nu-single--dept .nu-hero .nu-badge { font-size: 22px; }
  .nu-card .nu-ttl { font-size: 18px; margin-left: 4px; }
  .nu-name { font-size: 18px; }
  .nu-textcards { grid-template-columns: 1fr; }
  .nu-ttl--lg { left: 10px; right: 10px; font-size: 20px !important; }
  .nu-hero--text .nu-hero__visual { padding: 40px 20px; }
  .nu-body h3.nu-q { font-size: 17px; }
  .nu-others__ttl { font-size: 16px; gap: 12px; }
}

/* スマホ（599px以下）は1列 */
@media (max-width: 599px) {
  .nu-cards { grid-template-columns: 1fr; }
  .nu-cards .nu-card { padding: 24px 16px 20px !important; border-right: none !important; border-top: 1px dashed var(--nu-black) !important; }
  .nu-cards .nu-card:first-child { border-top: none !important; }
  .nu-card .nu-ttl { font-size: 20px; }
}

/* =========================================================
   ヘッダーのメニューをボタンにする（PC：960px以上）
   ・資料請求（secure-smart-entry）→ 本のアイコン
   ・インターンシップ・見学会・説明会（/events/）→ カレンダーのアイコン
   ・それ以外（先輩メッセージ・部署紹介）→ 色の丸
     メニューの「CSSクラス」に nu-gnav-staff / nu-gnav-dept を入れると丸の色が変わる
   ========================================================= */
@media (min-width: 960px) {
  .c-gnav { display: flex; align-items: center; gap: 10px; height: auto; }
  .c-gnav > .menu-item { height: auto; }
  .c-gnav > .menu-item > a {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    height: auto !important;
    min-height: 44px;
    padding: 6px 20px !important;
    border: 1px solid var(--nu-black);
    border-radius: 999px;
    background: #fff;
    color: var(--nu-black) !important;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: background .2s;
  }
  .c-gnav > .menu-item > a .ttl { font-size: inherit; font-weight: inherit; }
  .c-gnav > .menu-item > a .c-smallNavTitle { display: none; } /* 英字の補足は出さない */
  .c-gnav > .menu-item > a::after { display: none !important; } /* SWELLの下線を消す */
  .c-gnav > .menu-item > a:hover,
  .c-gnav > .current-menu-item > a,
  .c-gnav > .current_page_item > a { background: var(--nu-hover); }

  /* 先頭のアイコン */
  .c-gnav > .menu-item > a::before {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nu-black);
  }
  .c-gnav > .nu-gnav-staff > a::before { background: var(--nu-staff); }
  .c-gnav > .nu-gnav-dept  > a::before { background: var(--nu-dept); }

  .c-gnav > .menu-item > a[href*="secure-smart-entry"]::before,
  .c-gnav > .menu-item > a[href*="/events/"]::before {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: center / contain no-repeat;
  }
  .c-gnav > .menu-item > a[href*="secure-smart-entry"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M12 6.5C10 5 7 4.6 3 5v13.2c4-.4 7 .1 9 1.6z' stroke='%23f2b705'/%3E%3Cpath d='M12 6.5C14 5 17 4.6 21 5v13.2c-4-.4-7 .1-9 1.6z' stroke='%23151515'/%3E%3C/svg%3E");
  }
  .c-gnav > .menu-item > a[href*="/events/"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151515' stroke-width='1.5'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='1'/%3E%3Cpath d='M8 3v4M16 3v4M3.5 9.5h17'/%3E%3Cg fill='%23f2b705' stroke='none'%3E%3Crect x='6.5' y='12' width='2.4' height='1.6'/%3E%3Crect x='10.8' y='12' width='2.4' height='1.6'/%3E%3Crect x='15.1' y='12' width='2.4' height='1.6'/%3E%3Crect x='6.5' y='15.6' width='2.4' height='1.6'/%3E%3Crect x='10.8' y='15.6' width='2.4' height='1.6'/%3E%3Crect x='15.1' y='15.6' width='2.4' height='1.6'/%3E%3C/g%3E%3C/svg%3E");
  }
}
/* 画面が狭いPC（1280px未満）は少しコンパクトに */
@media (min-width: 960px) and (max-width: 1279px) {
  .c-gnav { gap: 6px; }
  .c-gnav > .menu-item > a { padding: 4px 14px !important; font-size: 13px; min-height: 40px; }
  .c-gnav > .menu-item > a[href*="secure-smart-entry"]::before,
  .c-gnav > .menu-item > a[href*="/events/"]::before { width: 20px; height: 20px; }
}
