/* ==========================================================================
   残りの下層ページ
   - ログイン / パスワード再設定 / 会員登録のパスワード設定・完了 / スカウト / 404
     … 会員情報と同じ白いカード (.ks_profile)。ここでは線文字とページ固有の部品だけ
   - 利用規約・プライバシーポリシー (.ks_doc) … 読み物用の白いカード
   - キープ・閲覧履歴・応募履歴 (.ks_listpage) … ベージュの背景 + 並び替えを白い角丸の帯に
   - 0件のときの案内 (.ks_empty)
   ========================================================================== */

/* --- 線文字 (右上の大きな英字) ------------------------------------------ */
.other_section:has(.ks_wm_login)::before { content: "LOGIN"; }
.other_section:has(.ks_wm_password)::before { content: "PASSWORD"; }
.other_section:has(.ks_wm_register)::before { content: "REGISTER"; }
.other_section:has(.ks_wm_scout)::before { content: "SCOUT"; }
.other_section:has(.ks_wm_404)::before { content: "NOT FOUND"; }
.other_section:has(.ks_wm_doc_privacy)::before { content: "PRIVACY"; }
.other_section:has(.ks_wm_doc_terms)::before { content: "TERMS"; }
.other_section.ks_wm_keep::before { content: "KEEP"; }
.other_section.ks_wm_history::before { content: "HISTORY"; }
.other_section.ks_wm_application::before { content: "APPLICATION"; }

/* 読み物・一覧のページにも、会員情報と同じベージュの背景と線文字の土台を付ける */
.other_section:has(.ks_doc),
.other_section.ks_listpage {
  position: relative;
  overflow: hidden;
  background-color: #F8F5F1 !important;
}

.other_section:has(.ks_doc)::before,
.other_section.ks_listpage::before {
  position: absolute;
  top: 24px;
  right: -0.04em;
  z-index: 0;
  font-size: min(180px, 13vw);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 128, 0, 0.3);
  pointer-events: none;
}

.other_section:has(.ks_doc) > *,
.other_section.ks_listpage > * {
  position: relative;
  z-index: 1;
}

/* --- ログイン ------------------------------------------------------------ */
.ks_auth .common_btn_p,
.ks_complete .common_btn_wrap .common_btn_p {
  width: 100%;
  max-width: 420px;
  height: 64px;
  margin: 0 auto;
  border: none !important;
  border-radius: 9999px !important;
  background: linear-gradient(to right, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000)) !important;
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.3);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF !important;
}

.ks_auth .forget_link {
  display: inline-block;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--theme-color-primary-config-custom, #ff8000);
  text-decoration: underline;
}

.ks_auth .common_form_submit_btn_wrap {
  text-align: center;
}

/* 会員登録がまだの方: 薄いオレンジの面で区切る */
.ks_auth .not_registered_block {
  margin: 44px 0 0;
  padding: 32px 24px 36px;
  background-color: #FFF4E6;
  border: none !important;
  border-radius: 18px;
  text-align: center;
}

.ks_auth .not_registered_title {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-black, #111111);
}

.ks_auth .forget_text {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
  color: var(--color-text, #414141);
}

/* --- 完了ページ: 元の thanks_* の線を消す (見た目は .ks_complete の change_* にそろえる) --- */
.ks_complete .thanks_title::after {
  display: none;
}

.ks_complete .common_btn_wrap {
  margin: 36px 0 0;
  text-align: center;
}

.ks_complete .common_btn_wrap .common_btn {
  max-width: 420px;
  margin: 0 auto;
  background-color: #FFFFFF !important;
}

/* --- 404 ----------------------------------------------------------------- */
.ks_page404 > .common_form_wrap {
  padding: 56px 60px !important;
  text-align: center;
}

.ks_page404 .img_404 {
  margin: 0 auto 28px;
}

.ks_page404 .img_404 img {
  width: 140px;
  height: auto;
}

.ks_page404 .thanks_text {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-gray, #555555);
}

.ks_page404 .common_btn_wrap {
  margin: 36px 0 0;
}

.ks_page404 .common_btn_wrap .common_btn {
  max-width: 420px;
  margin: 0 auto;
  background-color: #FFFFFF !important;
}

/* --- スカウト ------------------------------------------------------------ */
.ks_scout .scout_msg_content_title {
  padding: 0 0 14px;
  border-bottom: 2px solid #EEE7DF !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-gray, #555555);
}

.ks_scout .scout_msg_item {
  border-bottom: 1px solid #EEE7DF !important;
}

.ks_scout .scout_msg_link {
  padding: 18px 8px !important;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.ks_scout .scout_msg_link:hover {
  background-color: #FAF8F5;
}

.ks_scout .scout_new {
  padding: 2px 10px !important;
  background: linear-gradient(to right, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000)) !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700;
  color: #FFFFFF !important;
}

.ks_scout .ks_scout_empty {
  margin: 0;
  padding: 44px 0 20px;
  font-size: 15px;
  text-align: center;
  color: var(--color-gray, #666666);
}

.ks_scout .scout_detail_content_item {
  padding: 20px 0 !important;
  border-bottom: 1px solid #EEE7DF !important;
}

.ks_scout .scout_detail_content_item_title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* --- 利用規約・プライバシーポリシー: 読み物用の白いカード ----------------- */
.other_section .common_w_box.ks_doc {
  max-width: 880px;
  padding: 56px 64px !important;
  background-color: #FFFFFF !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

.ks_doc .terms_text_block {
  margin: 0 0 40px;
}

.ks_doc .terms_text_block:last-child {
  margin-bottom: 0;
}

.ks_doc .terms_text_title {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 12px 16px;
  border-bottom: 1px solid #EEE7DF;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-black, #111111);
}

.ks_doc .terms_text_title::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 5px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000));
}

.ks_doc .terms_text {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text, #414141);
}

.ks_doc .terms_text a {
  color: var(--theme-color-primary-config-custom, #ff8000);
  text-decoration: underline;
}

.ks_doc .terms_list {
  margin: 16px 0 0;
  padding: 18px 22px 18px 40px;
  background-color: #FAF8F5;
  border-radius: 12px;
}

.ks_doc .terms_list .terms_item {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.9;
}

.ks_doc .terms_list .terms_item::marker {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* --- 一覧系 (キープ・閲覧履歴・応募履歴) --------------------------------- */
.ks_listpage .sort_block {
  margin: 8px 0 0;
  padding: 0 !important;
  background: transparent !important;
}

.ks_listpage .sort_block .sort_content {
  padding: 14px 24px !important;
  background-color: #FFFFFF;
  border-radius: 9999px;
}

.ks_listpage .sort_block .common_select {
  background-color: #F8F5F1 !important;
  border: none !important;
  border-radius: 9999px !important;
}

.ks_listpage .job_box_wrap,
.ks_listpage .job_box_l_wrap {
  margin-top: 32px !important;
}

/* 応募履歴: 二重の枠をやめ、応募日の見出しを日付ラベルに */
.other_section .common_w_box.ks_applications {
  max-width: none;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.ks_applications .mypage_application_date_block {
  margin: 0 0 40px;
}

.ks_applications .mypage_application_date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px 20px;
  background-color: #FFFFFF;
  border: none !important;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black, #111111);
}

.ks_applications .mypage_application_date::before {
  content: "応募日";
  padding: 2px 10px;
  background: linear-gradient(to right, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000));
  border-radius: 9999px;
  font-size: 11px;
  color: #FFFFFF;
}

.ks_applications .mypage_application_date::after {
  display: none !important;
}

/* 0件のときの案内 */
.ks_empty {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 48px 32px;
  background-color: #FFFFFF;
  border-radius: 24px;
  text-align: center;
}

.ks_empty .ks_empty_title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-black, #111111);
}

.ks_empty .ks_empty_text {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-gray, #666666);
}

.ks_empty .ks_empty_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  height: 54px;
  padding: 0 44px;
  background-color: #FFFFFF;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ks_empty .ks_empty_btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.ks_empty .ks_empty_btn:hover {
  background-color: #FFF4E6;
}

@media only screen and (max-width: 640px) {
  .other_section .common_w_box.ks_doc {
    padding: 32px 20px !important;
    border-radius: 16px !important;
  }

  .ks_doc .terms_text_title {
    font-size: 17px;
  }

  .ks_doc .terms_text {
    font-size: 14px;
  }

  .ks_page404 > .common_form_wrap {
    padding: 40px 20px !important;
  }

  .ks_listpage .sort_block .sort_content {
    padding: 12px 16px !important;
    border-radius: 16px;
  }

  .ks_empty {
    padding: 36px 20px;
    border-radius: 16px;
  }

  .ks_empty .ks_empty_btn {
    min-width: 0;
    width: 100%;
  }

  .ks_auth .not_registered_block {
    padding: 26px 16px 28px;
  }
}

/* --- 調整: 応募日ラベルは文字幅のピル、ログインの「パスワードを忘れた方」は中央 --- */
.ks_applications .mypage_application_date {
  display: inline-flex !important;
  width: auto !important;
}

.ks_auth form > .forget_link {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
}

/* --- 法人情報・拠点ページ (/company/show/〇, /branch/show/〇) ------------ */
/* 会社名・拠点名: オレンジの下線をやめ、大きな黒文字 + 左のオレンジの縦線 */
.garden_detail_title {
  position: relative;
  margin: 0 0 40px !important;
  padding: 0 0 0 18px !important;
  border: none !important;
  font-size: 26px !important;
  font-weight: 700;
  line-height: 1.5;
  text-align: left !important;
  color: var(--color-black, #111111) !important;
}

.garden_detail_title::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  background: linear-gradient(to bottom, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000));
}

.garden_detail_title::after {
  display: none !important;
}

/* 「〇〇の求人一覧」: 全幅のオレンジの帯をやめ、英字ラベル付きの見出しに */
.garden_detail_block_job_title {
  position: relative;
  margin: 48px 0 24px !important;
  padding: 0 0 14px !important;
  background: none !important;
  border: none !important;
  border-bottom: 1px solid #EEE7DF !important;
  font-size: 20px !important;
  font-weight: 700;
  color: var(--color-black, #111111) !important;
}

.garden_detail_block_job_title::before {
  content: "JOBS";
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

@media only screen and (max-width: 640px) {
  .garden_detail_title {
    margin: 0 0 28px !important;
    font-size: 21px !important;
  }

  .garden_detail_block_job_title {
    margin: 36px 0 20px !important;
    font-size: 18px !important;
  }
}

/* --- 絞り込み一覧 (/job/link/...) のピックアップ求人: 求人タイトルを3行で「…」に (ほかの一覧とそろえる) --- */
.search_garden_box_title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* --- 法人情報・拠点ページ: 求人詳細と同じベージュの背景 + 線文字。白いカード (ABOUT US・COMPANY・求人) が浮いて見えるように --- */
.job_section:has(.garden_detail_title) {
  position: relative;
  overflow: hidden;
  background-color: #F8F5F1 !important;
}

.job_section:has(.garden_detail_title)::before {
  content: "CORPORATION";
  position: absolute;
  top: 24px;
  right: -0.04em;
  z-index: 0;
  font-size: min(180px, 13vw);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 128, 0, 0.3);
  pointer-events: none;
}

.job_section:has(.garden_detail_title) > * {
  position: relative;
  z-index: 1;
}

/* 求人一覧の見出しも白いカードの外で読めるように (カードと同じ幅で揃える) */
.job_section:has(.garden_detail_title) .garden_detail_block_job_title {
  border-bottom-color: #E7DED4 !important;
}
