/* =========================
   採用サイト：ヘッダー共通
========================= */

#js-header.recruit-header,
.l-header.recruit-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: #00237B;
  color: #fff;
  box-shadow: none;
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  z-index: 99999 !important;
}

/* テーマ側のスクロール時非表示を打ち消す */
#js-header.recruit-header.is-hide,
#js-header.recruit-header.is-hidden,
#js-header.recruit-header.is-fixed,
#js-header.recruit-header.l-header--fixed,
#js-header.recruit-header.l-header--hide,
#js-header.recruit-header.l-header--hidden {
  transform: translateY(0) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* WordPressログイン中の管理バー対策 */
body.admin-bar #js-header.recruit-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar #js-header.recruit-header {
    top: 46px !important;
  }
}


/* =========================
   採用サイト：ヘッダー PC
========================= */

@media screen and (min-width: 981px) {

  .recruit-header .l-header__inner,
  .l-header.recruit-header .l-header__inner,
  .recruit-header-inner {
    width: 100%;
    max-width: 1800px;
    height: 92px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  /* ロゴ */
  .recruit-header-logo,
  .l-header__logo.recruit-header-logo {
    flex: 0 0 auto;
    margin: 0;
    line-height: 1;
  }

  .recruit-header-logo a {
    display: block;
    line-height: 1;
  }

  .recruit-header-logo img {
    display: block;
    width: auto;
    max-width: 270px;
    max-height: 72px;
    height: auto;
  }

  /* グローバルナビ */
  .recruit-header .p-global-nav {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .recruit-header .p-global-nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: auto;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .recruit-header .p-global-nav > ul > li {
    flex: 0 1 auto;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .recruit-header .p-global-nav > ul > li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.3;
    white-space: nowrap;
  }

  /* メニュー下線：常時表示 */
  .recruit-header .p-global-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 42px;
    height: 1px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
    opacity: 1;
  }

  .recruit-header .sub-menu-toggle {
    display: none;
  }

  /* 右側エントリーボタン */
  .recruit-header-entry {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
  }

  .recruit-header-entry-btn,
  .recruit-header-entry-btn:link,
  .recruit-header-entry-btn:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 60px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
  }

  .recruit-header-entry-btn.is-new {
    background: linear-gradient(90deg, #ff9800 0%, #ff5a00 100%);
  }

  .recruit-header-entry-btn.is-career {
    background: linear-gradient(90deg, #42b8dc 0%, #0096c8 100%);
  }

  .recruit-header-entry-btn:hover,
  .recruit-header-entry-btn:focus {
    transform: translateY(-2px);
    opacity: 0.94;
  }
}


/* =========================
   PC：横幅が少し狭い画面向け
========================= */

@media screen and (min-width: 981px) and (max-width: 1600px) {

  .recruit-header .l-header__inner,
  .l-header.recruit-header .l-header__inner,
  .recruit-header-inner {
    padding: 0 24px;
    gap: 20px;
  }

  .recruit-header-logo img {
    max-width: 240px;
  }

  .recruit-header .p-global-nav > ul {
    gap: 8px;
  }

  .recruit-header .p-global-nav > ul > li > a {
    padding: 0 6px;
    font-size: 14px;
  }

  .recruit-header-entry {
    gap: 10px;
  }

  .recruit-header-entry-btn,
  .recruit-header-entry-btn:link,
  .recruit-header-entry-btn:visited {
    min-width: 160px;
    height: 56px;
    padding: 0 20px;
    font-size: 14px;
  }
}


/* =========================
   PC：さらに狭い画面向け
========================= */

@media screen and (min-width: 981px) and (max-width: 1280px) {

  .recruit-header .l-header__inner,
  .l-header.recruit-header .l-header__inner,
  .recruit-header-inner {
    gap: 16px;
    padding: 0 18px;
  }

  .recruit-header-logo img {
    max-width: 210px;
  }

  .recruit-header .p-global-nav > ul {
    gap: 6px;
  }

  .recruit-header .p-global-nav > ul > li > a {
    padding: 0 4px;
    font-size: 13px;
  }

  .recruit-header-entry {
    gap: 8px;
  }

  .recruit-header-entry-btn,
  .recruit-header-entry-btn:link,
  .recruit-header-entry-btn:visited {
    min-width: 138px;
    height: 52px;
    padding: 0 16px;
    font-size: 13px;
  }
}


/* =========================
   タブレット・スマホ
========================= */

@media screen and (max-width: 980px) {

  .recruit-header {
    background: #00237B;
  }

  .recruit-header .l-header__inner,
  .l-header.recruit-header .l-header__inner,
  .recruit-header-inner {
    height: 72px;
    position: relative; /* メニューボタンの位置決め基準 */
  }

  .recruit-header-logo img {
    max-width: 220px;
    max-height: 58px;
  }

  /* 新卒・中途エントリーボタンを非表示 */
  .recruit-header .recruit-header-entry {
    display: none !important;
  }
}


/* =========================
   ヘッダー：CSS生成の矢印を非表示
   HTMLに直接入力した「＞」を使用
========================= */

.recruit-header .recruit-header-entry-btn::after {
  content: none !important;
  display: none !important;
}

/* =========================
   スマホメニュー：エントリー項目
========================= */

/* PCでは非表示 */
.recruit-header .recruit-sp-entry-item {
  display: none !important;
}

/* スマホでは通常メニューとして表示 */
@media screen and (max-width: 980px) {

  .recruit-header .p-global-nav .recruit-sp-entry-item {
    display: block !important;
  }
}

/* =========================
   トップページリンク
   PC非表示 / スマホ表示
========================= */

/* PCでは非表示 */
@media screen and (min-width: 981px) {
  .recruit-header .p-global-nav .recruit-sp-home {
    display: none !important;
  }
}

/* スマホでは通常メニューとして表示 */
@media screen and (max-width: 980px) {
  .recruit-header .p-global-nav .recruit-sp-home {
    display: block;
  }
}
/* =========================
   スマホ：ヘッダーロゴを表示
========================= */

@media screen and (max-width: 980px) {

  .recruit-header .l-header__logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    margin: 0;
    width: fit-content !important;
    max-width: calc(100% - 76px);
    flex: 0 1 auto;
    min-width: 0;
  }

  .recruit-header .l-header__logo a {
    display: inline-block !important;
    position: relative;
    width: auto !important;
    max-width: 100%;
    height: auto;
    padding: 0;
  }

  .recruit-header .l-header__logo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto;
    height: auto;
    max-width: 220px;
    max-height: 58px;
  }
}

/* =========================
   スマホ：ハンバーガーメニューの操作範囲・アイコン
   ※ KADAN側のメニュー開閉処理は変更しない
========================= */
@media screen and (max-width: 980px) {

  #js-header.recruit-header #js-menu-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    bottom: auto;
    left: auto;
    display: block;
    width: 48px;
    height: 48px;
    padding: 0;
    box-sizing: border-box;
    transform: translateY(-50%);
    z-index: 10000;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  /* テーマのアイコンを白い線で描き直す */
  #js-header.recruit-header #js-menu-btn::before,
  #js-header.recruit-header #js-menu-btn::after {
    content: "" !important;
    position: absolute;
    top: 50%;
    left: 50%;
    display: block !important;
    width: 24px;
    height: 2px;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 0;
    font-size: 0;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  }

  /* 閉じた状態：三本線 */
  #js-header.recruit-header #js-menu-btn::before {
    transform: translate(-50%, -50%);
    box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
  }

  #js-header.recruit-header #js-menu-btn::after {
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  /* 開いた状態：× */
  #js-header.recruit-header #js-menu-btn.recruit-menu-open::before {
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: none;
  }

  #js-header.recruit-header #js-menu-btn.recruit-menu-open::after {
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 1;
  }
}

/* =========================
   下層ページ：ヘッダー画像内タイトルの文字色
========================= */

/* 1行目：日本語タイトル（黒） */
body.page .p-page-header__title .recruit-page-title-jp {
  color: #111111 !important;
}

/* 2行目：英語タイトル（濃紺） */
body.page .p-page-header__title .recruit-page-title-en {
  color: #00237B !important;
}

/* =========================
   下層ページ：ヘッダー背景画像の位置調整
========================= */

/* =========================
   下層ページ共通：ヘッダー画像の表示調整
========================= */

@media screen and (min-width: 768px) {

  body.page .p-page-header__upper {
    background-attachment: scroll;
    background-position: center top;
    background-size: cover;
  }
}
/* =========================
   下層ページ共通：
   固定ヘッダーとの重なりを解消
========================= */

/* PC */
@media screen and (min-width: 981px) {

  body.page .p-page-header {
    margin-top: 92px;
  }

  /* WordPress管理バー表示中 */
  body.page.admin-bar .p-page-header {
    margin-top: 124px;
  }

}

/* タブレット・スマホ */
@media screen and (max-width: 980px) {

  body.page .p-page-header {
    margin-top: 72px;
  }

  /* WordPress管理バー表示中 */
  body.page.admin-bar .p-page-header {
    margin-top: 104px;
  }

}

/* スマホの管理バー高さに対応 */
@media screen and (max-width: 782px) {

  body.page.admin-bar .p-page-header {
    margin-top: 118px;
  }

}
/* ==================================
   下層ページ共通：ヘッダータイトル調整
================================== */

/* 日本語・英語タイトルの行間 */
body.page .p-page-header__title {
  line-height: 1.25 !important;
}

/* 1行目：日本語タイトル */
body.page .p-page-header__title .recruit-page-title-jp {
  display: inline-block;
  color: #111111 !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;

  /* 背景写真に埋もれないよう薄い白い影 */
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.95),
    0 0 10px rgba(255, 255, 255, 0.75) !important;
}

/* 2行目：英語タイトル */
body.page .p-page-header__title .recruit-page-title-en {
  display: inline-block;
  color: #00237B !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 68px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: 0.02em;

  /* 英語にもごく薄い影 */
  text-shadow:
    0 1px 5px rgba(255, 255, 255, 0.4) !important;
}

/* ==================================
   タブレット
================================== */

@media screen and (max-width: 980px) {

  body.page .p-page-header__title .recruit-page-title-jp {
    font-size: 19px !important;
  }

  body.page .p-page-header__title .recruit-page-title-en {
    font-size: 52px !important;
  }
}

/* ==================================
   スマートフォン
================================== */

@media screen and (max-width: 767px) {

  body.page .p-page-header__title .recruit-page-title-jp {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  body.page .p-page-header__title .recruit-page-title-en {
    font-size: 38px !important;
    line-height: 1.2 !important;
  }
}

/* =========================
   下層ページ：タイトル表示速度の調整
========================= */

body.page .p-page-header__title {
  transition-delay: 1.0s !important;
  transition-duration: 0.6s !important;
}
