@charset "UTF-8";
/* ==========================================================================
   リデザイン 第4段階: 下層ページ
   元に戻すときは ~/revert-redesign-phase4.sh
   ========================================================================== */

/* --- ニュース詳細 (/news/show/{id}) --------------------------------------- */

/* 黒枠の箱をやめ、読みやすい幅の記事ページにする */
.info_box_wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
}

/* 矢羽根型のラベルを細枠のピル型に。日付と横並び */
.info_box_wrap .info_detail_category {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  margin: 0 16px 0 0;
  background: transparent;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  border-radius: 9999px;
  color: var(--theme-color-primary-config-custom, #ff8000);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.info_box_wrap .info_detail_category::before,
.info_box_wrap .info_detail_category::after {
  display: none;
}

.info_box_wrap .info_detail_date {
  display: inline-block;
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #8a8a8a;
  vertical-align: middle;
}

.info_box_wrap .info_detail_title {
  font-size: 32px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--color-black, #111111);
  padding: 20px 0 32px;
  margin: 0 0 40px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.info_box_wrap .blog_detail_main_img {
  border-radius: 16px;
  margin: 0 0 40px;
}

/* 本文 */
.info_box_wrap #info_editor {
  margin: 0 0 64px;
}

.info_box_wrap #info_editor p {
  font-size: 16px;
  line-height: 2.1;
  margin: 0 0 28px;
}

.info_box_wrap #info_editor h2 {
  font-size: 22px;
  padding: 0 0 0 16px;
  border-left: 4px solid var(--theme-color-primary-config-custom, #ff8000);
  margin: 56px 0 24px;
}

.info_box_wrap #info_editor h3 {
  margin: 40px 0 20px;
}

.info_box_wrap #info_editor a {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.info_box_wrap #info_editor img {
  border-radius: 12px;
}

/* 一覧へ戻るボタン: 文言が長いので幅を広げ、上に区切り線 */
.info_box_wrap .common_btn_wrap {
  padding: 48px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.info_box_wrap .common_btn_wrap .common_btn {
  max-width: 520px;
}

@media only screen and (max-width: 640px) {
  .info_box_wrap .info_detail_title {
    font-size: 24px;
    padding: 16px 0 24px;
    margin: 0 0 28px;
  }

  .info_box_wrap #info_editor p {
    font-size: 15px;
  }

  .info_box_wrap .common_btn_wrap {
    padding: 36px 0 0;
  }
}

/* --- ニュース一覧 (/news): トップのニュース欄と同じ見た目 ----------------- */

/* 詳細ページ用の中央寄せ (最大840px) は一覧には使わない */
.info_box_wrap:has(> .info_list) {
  max-width: none;
}

.other_section .info_list {
  margin: 0 0 48px;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.other_section .info_list .info_item {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.other_section .info_list .info_item .info_link {
  padding: 24px 8px;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.other_section .info_list .info_item .info_link:hover {
  background-color: #F8F5F1;
}

.other_section .info_list .info_item .info_link:hover .info_list_title {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.other_section .info_list .info_item .info_link .info_list_date_category {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: auto;
}

.other_section .info_list .info_item .info_link .info_list_date_category .info_list_date {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.other_section .info_list .info_item .info_link .info_list_date_category .info_list_category {
  background: transparent;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  border-radius: 9999px;
  color: var(--theme-color-primary-config-custom, #ff8000);
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  padding: 0 12px;
  margin: 0 32px 0 0;
}

.other_section .info_list .info_item .info_link .info_list_date_category .info_list_category::before,
.other_section .info_list .info_item .info_link .info_list_date_category .info_list_category::after {
  display: none;
}

.other_section .info_list .info_item .info_link .info_list_title {
  width: auto;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  font-size: 14px;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

@media only screen and (max-width: 640px) {
  .other_section .info_list .info_item .info_link {
    padding: 18px 4px;
  }

  .other_section .info_list .info_item .info_link .info_list_date_category {
    margin: 0 0 8px;
  }

  .other_section .info_list .info_item .info_link .info_list_date_category .info_list_date {
    width: auto;
    font-size: 13px;
    margin: 0 12px 0 0;
  }
}

/* --- 求人詳細 (/job/detail/{id}) ------------------------------------------ */

/* 本文の見出し: 左の縦線をやめ、ほかのページと同じ「頭にオレンジの短い線」 */
.job_detail_content_block_title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
  border-left: none;
  padding: 0 0 14px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.job_detail_content_block_title::before {
  content: "";
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 点線の区切りを細い実線に */
.job_detail_point_box .job_detail_point_box_img_list .job_detail_point_box_list .job_detail_point_box_item,
.person_list .person_item {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

/* 募集要項・企業情報の表: 線を薄く、項目名をベージュに */
.job_table {
  border: none;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.job_table th,
.job_table td {
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  padding: 16px 18px;
}

.job_table th {
  background-color: #F8F5F1;
  font-weight: 700;
  text-align: left;
  width: 150px;
}

.job_table td a {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 関連求人の見出し: 黒い帯をやめ、ベージュの面 + 左にオレンジの線 */
.job_detail_resemble_block_title_wrap {
  background-color: #F8F5F1;
  border-left: 4px solid var(--theme-color-primary-config-custom, #ff8000);
  border-radius: 0 10px 10px 0;
  padding: 16px 22px;
  margin: 0 0 24px;
}

.job_detail_resemble_block_title_wrap .job_detail_resemble_title {
  color: var(--color-black, #111111);
}

.job_detail_resemble_block_title_wrap .job_detail_resemble_block_title_link {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 白い矢印アイコンをオレンジに近い濃い色で見えるように */
.job_detail_resemble_block_title_wrap .job_detail_resemble_block_title_link img {
  -webkit-filter: brightness(0);
  filter: brightness(0);
  opacity: 0.6;
}

/* 関連求人カード: トップのピックアップ求人と同じ見た目 */
.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box .pickup_job_box_img {
  border-radius: 12px;
}

.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box .pickup_job_box_detail {
  padding: 14px 0 64px;
  background-color: transparent;
}

.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box .pickup_job_box_list {
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box .pickup_job_box_link_btn_wrap {
  padding: 0;
}

.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box .pickup_job_box_link_btn {
  background: #FFFFFF;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  color: var(--theme-color-primary-config-custom, #ff8000);
  -webkit-transition: background-color 0.2s ease, color 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box .pickup_job_box_link_btn::after {
  background-image: none;
  width: 7px;
  height: 7px;
  right: 18px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  -webkit-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
}

.job_detail_resemble_block .pickup_job_box_wrap .pickup_job_box .pickup_job_box_link_btn:hover {
  background: var(--theme-color-primary-config-custom, #ff8000);
  color: #FFFFFF;
}

@media only screen and (max-width: 640px) {
  .job_table th,
  .job_table td {
    padding: 12px 12px;
  }

  .job_table th {
    width: 100px;
  }

  .job_detail_resemble_block_title_wrap {
    padding: 12px 14px;
  }
}

/* --- 求人一覧のカード (/job など) ----------------------------------------- */

/* 「詳しく見る」は非コンバージョンなので白地+オレンジ細枠 */
.job_box_l_wrap .job_box_l .job_box_l_btn_wrap .job_box_l_detail_btn,
.job_detail_btn_wrap .job_box_l_detail_btn {
  background: #FFFFFF;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  color: var(--theme-color-primary-config-custom, #ff8000);
  -webkit-transition: background-color 0.2s ease, color 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.job_box_l_wrap .job_box_l .job_box_l_btn_wrap .job_box_l_detail_btn::after,
.job_detail_btn_wrap .job_box_l_detail_btn::after {
  background-image: none;
  width: 7px;
  height: 7px;
  right: 18px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  -webkit-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
}

.job_box_l_wrap .job_box_l .job_box_l_btn_wrap .job_box_l_detail_btn:hover,
.job_detail_btn_wrap .job_box_l_detail_btn:hover {
  background: var(--theme-color-primary-config-custom, #ff8000);
  color: #FFFFFF;
}

/* 「キープする」は詳しく見ると区別するため、枠を薄いグレーに (星はオレンジのまま) */
.job_box_l_wrap .job_box_l .job_box_l_btn_wrap .keep_btn {
  border: 1px solid var(--color-border-gray, #dfdfdf) !important;
  color: var(--color-text, #414141) !important;
}

.job_box_l_wrap .job_box_l .job_box_l_btn_wrap .keep_btn:hover {
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

/* --- 会社概要のMVV・メンバー紹介のカード ---------------------------------- */

/* 上端のオレンジの太線と影をやめ、細い枠だけにする (ヘッダー・フッターと同じ方針) */
.ks_member_item,
.ks_mvv_item {
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
}

.ks_member_item::before,
.ks_mvv_item::before {
  display: none;
}

/* --- 求人画像の比率を 3:2 に統一 (求人画像は 3:2 で作られているため) ------- */
.pickup_job_box_wrap .pickup_job_box .pickup_job_box_img,
.job_box_wrap .job_box .job_box_img_btn .job_box_img,
.job_box_l_wrap .job_box_l .job_box_l_detail_block .job_box_l_img,
.job_box_l_wrap .job_box_l.job_box_l--half .job_box_l_detail_block .job_box_l_img,
.job_box_l_wrap .job_box_l.job_box_l--img_right .job_box_l_detail_block .job_box_l_img,
.job_detail_wrap .job_detail_main .job_detail_img,
.job_detail_img_list_block .job_detail_img,
.top_new_job_info_wrap .top_new_job_info_list .top_new_job_info_item .top_new_job_info_link .top_new_job_info_link_img,
.search_garden_box .search_garden_box_img {
  height: auto;
  aspect-ratio: 3 / 2;
}

/* --- 会社概要: 「KANA-SHOW」の由来 ---------------------------------------- */
.ks_origin_section {
  padding: 120px 0;
  background-color: #FFFFFF;
}

.ks_origin_block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 56px;
  background-color: #F8F5F1;
  border-radius: 24px;
}

.ks_origin_visual {
  text-align: center;
  padding: 40px 24px;
  background-color: #FFFFFF;
  border-radius: 20px;
}

.ks_origin_logo {
  margin: 0 0 20px;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--color-black, #111111);
}

.ks_origin_logo span,
.ks_origin_read span {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.ks_origin_read {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-black, #111111);
}

.ks_origin_ja {
  display: inline-block;
  margin: 0;
  padding: 4px 16px;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.ks_origin_lead {
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

.ks_origin_text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--color-text, #414141);
}

.ks_origin_text:last-child {
  margin: 0;
}

@media only screen and (max-width: 840px) {
  .ks_origin_section {
    padding: 96px 0;
  }

  .ks_origin_block {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
  }
}

@media only screen and (max-width: 640px) {
  .ks_origin_section {
    padding: 72px 0;
  }

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

  .ks_origin_visual {
    padding: 28px 16px;
  }

  .ks_origin_logo {
    font-size: 34px;
  }

  .ks_origin_read {
    font-size: 17px;
  }

  .ks_origin_lead {
    font-size: 16px;
  }

  .ks_origin_text {
    font-size: 14px;
  }
}

/* --- なぜ選ばれるのか: REASON ---------------------------------------------- */
.ks_reason_section {
  padding: 120px 0;
  background-color: #FFFFFF;
}

.ks_reason_list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 96px;
}

.ks_reason_item {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.ks_reason_item--reverse .ks_reason_img {
  -webkit-box-ordinal-group: 3;
  -ms-flex-order: 2;
  order: 2;
}

.ks_reason_img {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 2;
}

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

.ks_reason_num {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.ks_reason_num::after {
  content: "";
  width: 40px;
  height: 1px;
  background-color: currentColor;
}

.ks_reason_title {
  margin: 0 0 24px;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

.ks_reason_text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--color-text, #414141);
}

.ks_reason_text:last-child {
  margin: 0;
}

.ks_reason_points {
  list-style: none;
  margin: 0 0 16px;
  padding: 20px 24px;
  background-color: #F8F5F1;
  border-radius: 12px;
}

.ks_reason_points li {
  position: relative;
  padding: 0 0 0 28px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-black, #111111);
}

.ks_reason_points li:last-child {
  margin: 0;
}

/* オレンジのチェックマーク */
.ks_reason_points li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 2px;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--theme-color-primary-config-custom, #ff8000);
  border-bottom: 2px solid var(--theme-color-primary-config-custom, #ff8000);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* --- なぜ選ばれるのか: FLOW (元サイト kana-show.co.jp と同じ縦のタイムライン) --- */
.ks_flow_section {
  padding: 120px 0;
  background-color: #F8F5F1;
}

.ks_flow_list {
  max-width: 950px;
  margin: 0 auto;
  padding: 20px 0 0;
  list-style: none;
}

.ks_flow_item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  margin: 0 0 20px;
}

.ks_flow_item:last-child {
  margin: 0;
}

/* 番号の丸どうしをつなぐ縦線 */
.ks_flow_item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 60px;
  bottom: -40px;
  left: 29px;
  width: 2px;
  background-color: #fce4d2;
  z-index: 1;
}

.ks_flow_num {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin: 0 30px 0 0;
  border-radius: 50%;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 500;
}

.ks_flow_card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  overflow: hidden;
  background-color: #FFFFFF;
}

.ks_flow_img {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 40%;
}

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

.ks_flow_body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 20px;
}

.ks_flow_title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.15rem;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.ks_flow_text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text, #414141);
}

@media only screen and (max-width: 840px) {
  .ks_reason_section,
  .ks_flow_section {
    padding: 96px 0;
  }

  .ks_reason_list {
    gap: 64px;
  }

  .ks_reason_item {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .ks_reason_item--reverse .ks_reason_img {
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0;
  }

  .ks_reason_title {
    font-size: 22px;
  }

}

@media only screen and (max-width: 640px) {
  .ks_reason_section,
  .ks_flow_section {
    padding: 72px 0;
  }

  .ks_reason_title {
    font-size: 20px;
    margin: 0 0 18px;
    padding: 0 0 16px;
  }

  .ks_reason_text,
  .ks_reason_points li {
    font-size: 14px;
  }

  /* スマホ: 元サイトと同じく 番号 → カード (画像が上) の縦並び、縦線はなし */
  .ks_flow_item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .ks_flow_item:not(:last-child)::after {
    display: none;
  }

  .ks_flow_num {
    margin: 0 0 15px;
  }

  .ks_flow_card {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .ks_flow_img {
    width: 100%;
    height: 200px;
  }
}

/* --- パララックス背景 (about_top_bg) --------------------------------------
   背景画像 topback.png は下部の腕を組んでいる部分を見せたいので、表示位置を下寄せにする */
/* 画像を拡大して、枠の中に腕の帯 (画像の下 1/3) だけが入るようにする。
   必要な拡大率は枠の高さで決まるので、幅は「枠幅の○% か ○px の大きい方」で指定 */
.about_top_bg.ks_parallax .ks_parallax_img {
  left: 50%;
  width: max(140%, 2700px);
  max-width: none;
  margin-left: calc(max(140%, 2700px) / -2);
  object-position: center 100%;
}

/* --- 参考サイト (buddica.jp) のファーストビュー風の装飾 --------------------
   左寄せの大きなメッセージ + 小さなラベル + マーカー線 + 背景の英字の飾り文字 */
.about_top_bg.ks_parallax {
  height: 420px;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
}

/* 左ほど暗くして文字を読みやすく */
.about_top_bg.ks_parallax::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.about_top_bg_inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.about_top_bg_label {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}

.about_top_bg_inner .about_top_bg_catch {
  padding: 0;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: left;
}

/* 「最後まで」にオレンジのマーカー線 */
.about_top_bg_inner .about_top_bg_catch_em {
  background: linear-gradient(transparent 80%, var(--theme-color-primary-config-custom, #ff8000) 80%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.08em;
}

/* 背景の英字の飾り文字 (線だけの大きな文字) */
.about_top_bg_deco {
  position: absolute;
  right: 2%;
  bottom: -0.18em;
  z-index: 1;
  font-size: min(110px, 7.6vw);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

@media only screen and (max-width: 840px) {
  .about_top_bg.ks_parallax {
    height: 360px;
  }

  .about_top_bg.ks_parallax .ks_parallax_img {
    width: max(140%, 2300px);
    margin-left: calc(max(140%, 2300px) / -2);
  }

  .about_top_bg_inner .about_top_bg_catch {
    font-size: 30px;
  }
}

@media only screen and (max-width: 640px) {
  .about_top_bg.ks_parallax {
    height: 260px;
  }

  .about_top_bg.ks_parallax .ks_parallax_img {
    width: max(100%, 1700px);
    margin-left: calc(max(100%, 1700px) / -2);
  }

  .about_top_bg_label {
    margin: 0 0 8px;
    font-size: 13px;
  }

  .about_top_bg_inner .about_top_bg_catch {
    font-size: 22px;
  }
}

/* ==========================================================================
   なぜ選ばれるのか (/about) の装飾 (参考: buddica.jp)
   - 各セクションの右上に、線だけの大きな英字の飾り文字
   - 写真の後ろにオレンジの面をずらして重ねる
   - REASON の番号を写真に大きく重ねる
   - FLOW の背景にドット柄
   ========================================================================== */

.about,
.ks_reason_section,
.ks_flow_section,
main:has(.ks_reason_section) .top_faq_config_custom {
  position: relative;
  overflow: hidden;
}

.about::before,
.ks_reason_section::before,
.ks_flow_section::before,
main:has(.ks_reason_section) .top_faq_config_custom .common_wrap::before {
  position: absolute;
  top: 40px;
  right: -0.04em;
  z-index: 0;
  font-size: min(180px, 13vw);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 128, 0, 0.28);
  pointer-events: none;
}

.about::before { content: "ABOUT"; }
.ks_reason_section::before { content: "REASON"; }
.ks_flow_section::before { content: "FLOW"; }

main:has(.ks_reason_section) .top_faq_config_custom .common_wrap {
  position: relative;
}

main:has(.ks_reason_section) .top_faq_config_custom .common_wrap::before {
  content: "FAQ";
  top: 60px;
}

.about .common_wrap,
.ks_reason_section .common_wrap,
.ks_flow_section .common_wrap {
  position: relative;
  z-index: 1;
}

/* 冒頭の写真: 後ろにオレンジの面をずらす */
.about .about_page_top_img {
  position: relative;
  overflow: visible !important;
}

.about .about_page_top_img::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  z-index: -1;
  border-radius: 16px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
  opacity: 0.9;
}

/* REASON: 写真の後ろにずらした面 + 大きな番号 */
.ks_reason_img {
  position: relative;
  overflow: visible;
}

.ks_reason_img img {
  position: relative;
  z-index: 1;
  border-radius: 20px;
}

.ks_reason_img::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -24px;
  right: 24px;
  bottom: -24px;
  z-index: 0;
  border-radius: 20px;
  background-color: #F8F5F1;
}

.ks_reason_item--reverse .ks_reason_img::before {
  left: 24px;
  right: -24px;
  background-color: rgba(255, 128, 0, 0.14);
}

.ks_reason_list {
  counter-reset: ks_reason;
}

.ks_reason_item {
  counter-increment: ks_reason;
}

.ks_reason_img::after {
  content: counter(ks_reason, decimal-leading-zero);
  position: absolute;
  top: -0.42em;
  left: 18px;
  z-index: 2;
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--theme-color-primary-config-custom, #ff8000);
  pointer-events: none;
}

.ks_reason_item--reverse .ks_reason_img::after {
  left: auto;
  right: 18px;
}

/* FLOW: うっすらドット柄 */
.ks_flow_section {
  background-image: radial-gradient(rgba(255, 128, 0, 0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.ks_flow_card {
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05);
}

@media only screen and (max-width: 640px) {
  .about::before,
  .ks_reason_section::before,
  .ks_flow_section::before,
  main:has(.ks_reason_section) .top_faq_config_custom .common_wrap::before {
    top: 24px;
  }

  .about .about_page_top_img::before {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
  }

  .ks_reason_img::before {
    top: 14px;
    left: -12px;
    right: 12px;
    bottom: -14px;
  }

  .ks_reason_item--reverse .ks_reason_img::before {
    left: 12px;
    right: -12px;
  }

  .ks_reason_img::after {
    font-size: 64px;
  }
}

/* ==========================================================================
   会社概要 (/company) の装飾 (/about と同じ考え方)
   - 各セクションの右上に線だけの大きな英字
   - 写真の後ろにずらした面、代表メッセージに大きな引用符
   - ORIGIN・MVV の背景にドット柄
   ========================================================================== */

main:has(.ks_origin_section) > section:not(.common_register_btn_block) {
  position: relative;
  overflow: hidden;
}

main:has(.ks_origin_section) > section:not(.common_register_btn_block) > .common_wrap {
  position: relative;
  z-index: 1;
}

main:has(.ks_origin_section) > section:not(.common_register_btn_block)::before {
  position: absolute;
  top: 40px;
  right: -0.04em;
  z-index: 0;
  font-size: min(180px, 13vw);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 128, 0, 0.28);
  pointer-events: none;
}

main:has(.ks_origin_section) > section.other_section:has(.ks_company_list)::before { content: "COMPANY"; }
main:has(.ks_origin_section) > section.ks_origin_section::before { content: "ORIGIN"; }
main:has(.ks_origin_section) > section.ks_message_section::before { content: "MESSAGE"; }
main:has(.ks_origin_section) > section.other_section:has(.ks_mvv_list)::before { content: "VISION"; }

/* 会社の写真: 角丸 + 後ろにずらしたベージュの面 */
.ks_company_img_item {
  position: relative;
}

.ks_company_img_item img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: 16px;
}

.ks_company_img_item::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  z-index: 0;
  border-radius: 16px;
  background-color: rgba(255, 128, 0, 0.14);
}

/* ORIGIN: 図のカードにオレンジのずらした面、ブロックの背景にドット柄 */
.ks_origin_block {
  background-image: radial-gradient(rgba(255, 128, 0, 0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

.ks_origin_visual {
  position: relative;
  box-shadow: 14px 14px 0 var(--theme-color-primary-config-custom, #ff8000);
}

/* 代表メッセージ: 写真の後ろにオレンジの面、右上に大きな引用符 */
.ks_message_block {
  position: relative;
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.06);
}

.ks_message_block::after {
  content: "“";
  position: absolute;
  top: -0.2em;
  right: 28px;
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 128, 0, 0.22);
  pointer-events: none;
}

.ks_message_img {
  position: relative;
  overflow: visible;
  background: transparent;
}

.ks_message_img img {
  position: relative;
  z-index: 1;
  border-radius: 12px;
}

.ks_message_img::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -12px;
  right: 12px;
  bottom: -12px;
  z-index: 0;
  border-radius: 12px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

/* MVV: セクション背景にドット柄 */
main:has(.ks_origin_section) > section.other_section:has(.ks_mvv_list) {
  background-color: #FFFFFF;
  background-image: radial-gradient(rgba(255, 128, 0, 0.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

@media only screen and (max-width: 640px) {
  main:has(.ks_origin_section) > section:not(.common_register_btn_block)::before {
    top: 24px;
  }

  .ks_company_img_item::before {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
  }

  .ks_origin_visual {
    box-shadow: 8px 8px 0 var(--theme-color-primary-config-custom, #ff8000);
  }

  .ks_message_block::after {
    font-size: 100px;
    right: 16px;
  }

  .ks_message_img::before {
    top: 8px;
    left: -8px;
    right: 8px;
    bottom: -8px;
  }
}

/* ==========================================================================
   メンバー紹介 (/member)
   - 1人目 (中野さん) は横長の写真を枠いっぱいに敷き、左に大きな英字・名前・リンク
   - ほかのメンバーは /about・/company と同じ飾り (右上の英字、写真のずらした面)
   ========================================================================== */

main:has(.ks_member_hero) .other_section {
  position: relative;
  overflow: hidden;
}

main:has(.ks_member_hero) .other_section::before {
  content: "MEMBER";
  position: absolute;
  top: 40px;
  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.28);
  pointer-events: none;
}

main:has(.ks_member_hero) .other_section .common_wrap {
  position: relative;
  z-index: 1;
}

/* --- 1人目: 左に白地の文字・右に写真 (参考: member.png) --- */
.ks_member_hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100vw;
  margin: 0 calc(50% - 50vw) 96px;
  min-height: 640px;
  background-color: #FFFFFF;
}

.ks_member_hero_inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  max-width: 570px;
  margin: 0 0 0 auto;
  padding: 72px 64px 72px 20px;
}

.ks_member_hero_en {
  margin: 0 0 32px;
  font-size: 56px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.ks_member_hero_position {
  -ms-flex-item-align: start;
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 4px 16px;
  border-radius: 9999px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #FFFFFF;
}

.ks_member_hero_name {
  margin: 0 0 24px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-black, #111111);
}

.ks_member_hero_message {
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 2;
  color: var(--color-text, #414141);
}

/* 大きな文字 + 下線のリンクを縦に並べる */
.ks_member_hero_links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ks_member_hero_links a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--theme-color-primary-config-custom, #ff8000);
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
}

.ks_member_hero_links a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.ks_member_hero_links a:hover {
  opacity: 0.7;
}

/* 右の写真: 背景に同じ写真をぼかして敷き、中央に人物を切り出す */
.ks_member_hero_photo {
  position: relative;
  overflow: hidden;
  background-color: #6a6a6a;
}

.ks_member_hero_photo img {
  position: absolute;
  top: 0;
  height: 100%;
  object-fit: cover;
  object-position: 83% center;
}

.ks_member_hero_photo_bg {
  left: 0;
  width: 100%;
  filter: blur(18px) brightness(0.9);
  transform: scale(1.15);
}

.ks_member_hero_photo_main {
  left: 50%;
  width: 66%;
  transform: translateX(-50%);
}

/* --- 2人目以降: 中野さんのブロックと同じテイストの一覧 ---
   グレーの写真枠 / オレンジの細い英字 / オレンジの役職ラベル / 下線付きの文字リンク */
main:has(.ks_member_hero) .ks_member_list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

main:has(.ks_member_hero) .ks_member_item {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}

main:has(.ks_member_hero) .ks_member_head {
  display: block;
  margin: 0 0 20px;
}

/* 写真: グレーの横長の枠に、人物を切り出して表示 */
main:has(.ks_member_hero) .ks_member_img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 0 20px;
  border: none;
  border-radius: 0;
  background-color: #6a6a6a;
  overflow: hidden !important;
}

main:has(.ks_member_hero) .ks_member_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  -webkit-transition: transform 0.6s ease;
  transition: transform 0.6s ease;
}

/* 写真が未登録 (イラスト) のときはベージュの枠に収める */
main:has(.ks_member_hero) .ks_member_img:has(img[src$=".svg"]) {
  background-color: #F8F5F1;
}

main:has(.ks_member_hero) .ks_member_img img[src$=".svg"] {
  object-fit: contain;
  object-position: center;
  padding: 12%;
}

main:has(.ks_member_hero) .ks_member_item:hover .ks_member_img img {
  transform: scale(1.04);
}

/* 名前まわり: 英字を上に */
main:has(.ks_member_hero) .ks_member_name_block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

main:has(.ks_member_hero) .ks_member_name_en {
  -webkit-box-ordinal-group: 0;
  -ms-flex-order: -1;
  order: -1;
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

main:has(.ks_member_hero) .ks_member_position {
  margin: 0 0 8px;
  padding: 3px 14px;
  border-radius: 9999px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
  font-weight: 700;
  color: #FFFFFF;
}

main:has(.ks_member_hero) .ks_member_name {
  margin: 0;
  font-size: 22px;
  color: var(--color-black, #111111);
}

main:has(.ks_member_hero) .ks_member_message {
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  font-size: 14px;
  line-height: 1.9;
}

/* ボタンを、中野さんと同じ下線付きの文字リンクに */
main:has(.ks_member_hero) .ks_member_btn_wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 14px;
}

main:has(.ks_member_hero) .ks_member_btn_wrap .common_btn {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--theme-color-primary-config-custom, #ff8000) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

main:has(.ks_member_hero) .ks_member_btn_wrap .common_btn::after {
  position: static !important;
  display: inline-block;
  width: 7px !important;
  height: 7px !important;
  background: none !important;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-bottom: 0 !important;
  transform: rotate(45deg) !important;
}

main:has(.ks_member_hero) .ks_member_btn_wrap .common_btn:hover {
  opacity: 0.7;
}

@media only screen and (max-width: 840px) {
  /* 写真が上、文字が下の縦並び */
  .ks_member_hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ks_member_hero_photo {
    grid-row: 1;
    height: 80vw;
    max-height: 520px;
  }

  .ks_member_hero_inner {
    max-width: none;
    margin: 0;
    padding: 40px 20px 48px;
  }

  .ks_member_hero_en {
    font-size: 40px;
    margin: 0 0 20px;
  }

  .ks_member_hero_name {
    font-size: 28px;
  }

  .ks_member_hero_links a {
    font-size: 20px;
  }

  main:has(.ks_member_hero) .ks_member_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 20px;
  }
}

@media only screen and (max-width: 640px) {
  .ks_member_hero {
    margin-bottom: 64px;
  }

  .ks_member_hero_photo_main {
    width: 78%;
  }

  .ks_member_hero_en {
    font-size: 34px;
  }

  .ks_member_hero_name {
    font-size: 24px;
  }

  .ks_member_hero_message {
    font-size: 14px;
  }

  main:has(.ks_member_hero) .other_section::before {
    top: 24px;
  }

  main:has(.ks_member_hero) .ks_member_list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 中野さん以外のメンバーがいないときは、下の余白を詰める */
.ks_member_hero:last-child {
  margin-bottom: 0;
}

main:has(.ks_member_hero:last-child) .other_section {
  padding-bottom: 0;
}

/* --- メンバー詳細 (/member/{id}) ------------------------------------------ */
.ks_member_hero--profile .ks_profile_tel_btn {
  -ms-flex-item-align: start;
  align-self: flex-start;
  margin: 8px 0 0;
}

/* 写真が未登録 (イラスト) のときはベージュの面に収める */
.ks_member_hero_photo:has(img[src$=".svg"]) {
  background-color: #F8F5F1;
}

.ks_member_hero_photo:has(img[src$=".svg"]) .ks_member_hero_photo_bg {
  display: none;
}

.ks_member_hero_photo img[src$=".svg"].ks_member_hero_photo_main {
  object-fit: contain;
  object-position: center;
  padding: 10%;
}

/* プロフィール・担当求人の見出し: アイコンをやめ、頭にオレンジの短い線 */
main:has(.ks_member_hero--profile) .section_img_title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-black, #111111);
}

main:has(.ks_member_hero--profile) .section_img_title img {
  display: none;
}

main:has(.ks_member_hero--profile) .section_img_title::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block,
main:has(.ks_member_hero--profile) .ks_profile_jobs {
  margin: 0 0 80px;
}

/* プロフィールの表: 左に項目名 (ベージュ)、細い線で区切る */
main:has(.ks_member_hero--profile) .ks_profile_detail_list {
  margin: 0;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

main:has(.ks_member_hero--profile) .ks_profile_detail_item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

main:has(.ks_member_hero--profile) .ks_profile_detail_heading {
  margin: 0;
  padding: 20px 20px;
  background-color: #F8F5F1;
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

main:has(.ks_member_hero--profile) .ks_profile_detail_heading::before {
  display: none;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_body {
  margin: 0;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.9;
}

@media only screen and (max-width: 640px) {
  main:has(.ks_member_hero--profile) .ks_profile_detail_item {
    grid-template-columns: minmax(0, 1fr);
  }

  main:has(.ks_member_hero--profile) .ks_profile_detail_heading {
    padding: 12px 16px;
  }

  main:has(.ks_member_hero--profile) .ks_profile_detail_body {
    padding: 14px 16px 18px;
  }

  main:has(.ks_member_hero--profile) .section_img_title {
    font-size: 18px;
  }
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block,
main:has(.ks_member_hero--profile) .ks_profile_detail_list {
  background: transparent !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_list {
  border-bottom: none !important;
}

/* ==========================================================================
   トップページ: /about・/company と同じく各セクション右上に線だけの大きな英字
   (会員登録ブロック・パララックスの帯は対象外)
   ========================================================================== */
main:has(.top_new_job) > .top_pickup,
main:has(.top_new_job) > .top_faq_config_custom,
main:has(.top_new_job) > .top_news,
main:has(.top_new_job) > .top_new_job,
main:has(.top_new_job) > .ks_instagram {
  position: relative;
  overflow: hidden;
}

main:has(.top_new_job) > .top_pickup::before,
main:has(.top_new_job) > .top_faq_config_custom > .common_wrap::before,
main:has(.top_new_job) > .top_news::before,
main:has(.top_new_job) > .top_new_job::before,
main:has(.top_new_job) > .ks_instagram::before {
  position: absolute;
  top: 40px;
  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.28);
  pointer-events: none;
}

main:has(.top_new_job) > .top_pickup::before { content: "PICK UP"; }
main:has(.top_new_job) > .top_faq_config_custom > .common_wrap::before { content: "FAQ"; top: 60px; }
main:has(.top_new_job) > .top_news::before { content: "NEWS"; }
main:has(.top_new_job) > .top_new_job::before { content: "NEW JOB"; }
main:has(.top_new_job) > .ks_instagram::before { content: "INSTAGRAM"; }

main:has(.top_new_job) > .top_faq_config_custom > .common_wrap { position: relative; }

main:has(.top_new_job) > .top_pickup > *,
main:has(.top_new_job) > .top_news > *,
main:has(.top_new_job) > .top_new_job > *,
main:has(.top_new_job) > .ks_instagram > * {
  position: relative;
  z-index: 1;
}

@media only screen and (max-width: 640px) {
  main:has(.top_new_job) > .top_pickup::before,
  main:has(.top_new_job) > .top_faq_config_custom > .common_wrap::before,
  main:has(.top_new_job) > .top_news::before,
  main:has(.top_new_job) > .top_new_job::before,
  main:has(.top_new_job) > .ks_instagram::before {
    top: 24px;
  }
}

/* お知らせ: 中の .common_wrap にもテーマ色の白背景 (!important) が付いていて英字「NEWS」を隠すので消す */
main:has(.top_new_job) > .top_news > .common_wrap.top_news_config_custom {
  background-color: transparent !important;
  background-image: none !important;
}

/* --- トップページ: 画像の後ろにずらした面 (box-shadow で外側に描く) ------- */
.ks_new_job--wide .ks_new_job_img {
  box-shadow: -20px 20px 0 #F8F5F1;
}

.ks_new_job--wide_reverse .ks_new_job_img {
  box-shadow: 20px 20px 0 rgba(255, 128, 0, 0.16);
}

.top_pickup .pickup_job_box_wrap .pickup_job_box .pickup_job_box_img {
  box-shadow: 10px 10px 0 rgba(255, 128, 0, 0.16);
}

.top_category_column .top_category_column_type01 .top_category_column_type01_left .top_category_column_type01_left_column_box .top_category_column_type01_left_column_box_img {
  box-shadow: -18px 18px 0 rgba(255, 128, 0, 0.16);
}

.top_category_column .new_column_box_wrap .new_column_box {
  box-shadow: 18px 18px 0 rgba(255, 128, 0, 0.16) !important;
}

/* --- トップページ: 背景にうっすらドット柄 -------------------------------- */
main:has(.top_new_job) > .top_new_job,
main:has(.top_new_job) > .ks_instagram {
  background-image: radial-gradient(rgba(255, 128, 0, 0.14) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}

/* ドットの上でもカード類が読みやすいよう、2列の面はそのまま (ベージュ)、
   カード・横長の文字部分は白地を敷かず余白で見せる */

@media only screen and (max-width: 640px) {
  .ks_new_job--wide .ks_new_job_img {
    box-shadow: -10px 10px 0 #F8F5F1;
  }

  .ks_new_job--wide_reverse .ks_new_job_img {
    box-shadow: 10px 10px 0 rgba(255, 128, 0, 0.16);
  }

  .top_pickup .pickup_job_box_wrap .pickup_job_box .pickup_job_box_img {
    box-shadow: 6px 6px 0 rgba(255, 128, 0, 0.16);
  }

  .top_category_column .top_category_column_type01 .top_category_column_type01_left .top_category_column_type01_left_column_box .top_category_column_type01_left_column_box_img {
    box-shadow: -10px 10px 0 rgba(255, 128, 0, 0.16);
  }

  .top_category_column .new_column_box_wrap .new_column_box {
    box-shadow: 10px 10px 0 rgba(255, 128, 0, 0.16) !important;
  }
}

/* NEW JOB スライダー: ks-reveal.js が各スライドに付ける ks_reveal (透明) を無効に。
   スライダーが両端用に作る複製スライドは is_shown が付かず透明のままで、
   左右のスライドが消えて見える原因になっていたため */
.top_new_job_info_list .ks_reveal {
  opacity: 1 !important;
  -webkit-transform: none !important;
  transform: none !important;
}

/* ==========================================================================
   求人詳細 (/job/detail/{id}): メリハリを付ける
   - ページ全体をベージュに、情報のかたまりを白いカードに
   - 給与・勤務地などの基本情報を強調
   ========================================================================== */
.job_section:has(.job_detail_img_list_block) {
  background-color: #F8F5F1 !important;
}

/* 情報のかたまりを白いカードに */
.job_main_block .job_detail_img_list_block,
.job_main_block .job_detail_content_block,
.job_main_block .job_detail_resemble_block,
.job_side_block .side_block {
  padding: 32px;
  margin: 0 0 24px;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(17, 17, 17, 0.04);
}

/* 冒頭の基本情報: 画像 + 勤務地・最寄駅・時給 */
.job_main_block .job_detail_img_list_block {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 32px;
}

.job_main_block .job_detail_img_list_block .job_detail_img {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin: 0;
  border-radius: 12px;
}

.job_main_block .job_detail_img_list_block .job_detail_list_block {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  width: auto;
}

.job_main_block .job_detail_img_list_block .job_detail_content_list .job_detail_content_item {
  padding: 14px 0;
}

.job_main_block .job_detail_img_list_block .job_detail_content_list .job_detail_content_item:last-child {
  border-bottom: none;
}

/* 時給・給与を大きく (最後の行) */
.job_main_block .job_detail_img_list_block .job_detail_content_list .job_detail_content_item:last-child .job_detail_content_text {
  font-size: 30px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* おすすめポイント: オレンジの細枠をやめ、薄いオレンジの面に */
.job_main_block .job_detail_point_box {
  padding: 28px 32px;
  margin: 0 0 24px;
  background-color: #FFF4E6 !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

/* 条件相談のブロック */
.job_main_block .job_detail_chat_block > * {
  border-radius: 16px;
}

/* 見出しはカードの中で少し詰める */
.job_main_block .job_detail_content_block .job_detail_content_block_title,
.job_main_block .job_detail_resemble_block .job_detail_resemble_block_title_wrap {
  margin-top: 0;
}

/* キープ・応募ボタンの行: カードの間に余白 */
.job_main_block > .job_detail_btn_wrap {
  margin: 0 0 24px;
}

/* 「こんな方におすすめ」などの箇条書きの行を少し広く */
.job_main_block .person_list .person_item {
  padding: 14px 0;
  margin: 0;
}

/* サイドの見出し */
.job_side_block .side_block .side_block_title {
  margin-top: 0;
}

@media only screen and (max-width: 640px) {
  .job_main_block .job_detail_img_list_block,
  .job_main_block .job_detail_content_block,
  .job_main_block .job_detail_resemble_block,
  .job_side_block .side_block {
    padding: 20px 16px;
    border-radius: 12px;
    margin: 0 0 16px;
  }

  .job_main_block .job_detail_img_list_block .job_detail_img {
    margin: 0 0 16px;
  }

  .job_main_block .job_detail_img_list_block .job_detail_content_list .job_detail_content_item:last-child .job_detail_content_text {
    font-size: 24px;
  }

  .job_main_block .job_detail_point_box {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   求人詳細: 参考サイト (buddica.jp / neo-career.co.jp) 寄せ
   - 見出しの上に英字ラベル (data-en)
   - ページ上部に線だけの大きな英字、写真を大きく + ずらした面
   - カードは影をやめて余白で見せる
   ========================================================================== */
.job_section:has(.job_detail_img_list_block) {
  position: relative;
  overflow: hidden;
}

.job_section:has(.job_detail_img_list_block)::before {
  content: "JOB DETAIL";
  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(.job_detail_img_list_block) > * {
  position: relative;
  z-index: 1;
}

/* タイトルまわり */
.job_main_block .job_detail_company_name {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px;
  border-radius: 9999px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.job_main_block .job_detail_title {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

/* カード: 影をやめ、余白を広く */
.job_main_block .job_detail_img_list_block,
.job_main_block .job_detail_content_block,
.job_main_block .job_detail_resemble_block,
.job_side_block .side_block {
  padding: 48px;
  margin: 0 0 32px;
  border-radius: 20px;
  box-shadow: none;
}

/* 基本情報: 写真を大きく + 後ろにオレンジの面 (写真はスライダーの中にあるのでスライダー側に指定) */
.job_main_block .job_detail_img_list_block > .job_detail_img_slider,
.job_main_block .job_detail_img_list_block > .job_detail_img {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 48%;
  margin: 0;
  border-radius: 12px;
  box-shadow: 14px 14px 0 rgba(255, 128, 0, 0.9);
}

.job_main_block .job_detail_img_list_block > .job_detail_img_slider .job_detail_img {
  width: 100%;
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
}

/* 見出しの上に英字ラベル */
.job_main_block .job_detail_content_block_title[data-en] {
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  row-gap: 6px;
  padding: 0 0 20px;
  margin: 0 0 32px;
  font-size: 24px;
}

.job_main_block .job_detail_content_block_title[data-en]::after {
  content: attr(data-en);
  -webkit-box-ordinal-group: 0;
  -ms-flex-order: -1;
  order: -1;
  -ms-flex-preferred-size: 100%;
  flex-basis: 100%;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

/* 関連求人の見出しにも英字ラベル */
.job_main_block .job_detail_resemble_block .job_detail_resemble_block_title_wrap {
  position: relative;
  padding: 0 0 20px;
  margin: 0 0 32px;
  background: transparent;
  border-left: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.job_main_block .job_detail_resemble_block .job_detail_resemble_block_title_wrap::before {
  content: "RELATED JOBS";
  display: block;
  margin: 0 0 6px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

.job_main_block .job_detail_resemble_block .job_detail_resemble_title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
}

.job_main_block .job_detail_resemble_block .job_detail_resemble_title::before {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

@media only screen and (max-width: 840px) {
  .job_main_block .job_detail_img_list_block > .job_detail_img_slider,
  .job_main_block .job_detail_img_list_block > .job_detail_img {
    width: 100%;
    margin: 0 0 24px;
  }
}

@media only screen and (max-width: 640px) {
  .job_main_block .job_detail_title {
    font-size: 21px;
  }

  .job_main_block .job_detail_img_list_block,
  .job_main_block .job_detail_content_block,
  .job_main_block .job_detail_resemble_block,
  .job_side_block .side_block {
    padding: 24px 18px;
    margin: 0 0 20px;
    border-radius: 14px;
  }

  .job_main_block .job_detail_img_list_block > .job_detail_img_slider,
  .job_main_block .job_detail_img_list_block > .job_detail_img {
    box-shadow: 8px 8px 0 rgba(255, 128, 0, 0.9);
  }

  .job_main_block .job_detail_content_block_title[data-en] {
    font-size: 18px;
    margin: 0 0 20px;
    padding: 0 0 14px;
  }

  .job_main_block .job_detail_content_block_title[data-en]::after,
  .job_main_block .job_detail_resemble_block .job_detail_resemble_block_title_wrap::before {
    font-size: 30px;
  }

  .job_main_block .job_detail_resemble_block .job_detail_resemble_title {
    font-size: 16px;
  }
}

/* ==========================================================================
   求人詳細: 「あなたが派遣のお仕事に求めるポイントをお選びください」
   - 薄いオレンジの面 + ドット柄、英字ラベル
   - 選択肢は2列のカード (左に丸いラジオ)、選ぶとオレンジの枠と丸
   - 次へ進むボタンはコンバージョンなのでオレンジのグラデーション
   ========================================================================== */
.job_main_block .about_page_top:has(.detail_questionnaire_title) {
  padding: 48px !important;
  margin: 0 0 32px !important;
  background-color: #FFF4E6 !important;
  background-image: radial-gradient(rgba(255, 128, 0, 0.16) 1.5px, transparent 1.5px) !important;
  background-size: 22px 22px !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .about_page_top_content {
  background: transparent !important;
  padding: 0 !important;
}

.job_main_block .about_page_top .about_page_top_content .about_page_top_title.detail_questionnaire_title {
  display: block !important;
  margin: 0 0 14px;
  padding: 0;
  border-bottom: none;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-black, #111111);
}

.job_main_block .about_page_top .about_page_top_content .about_page_top_title.detail_questionnaire_title::before {
  content: "CONSULTATION";
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .about_page_top_sub_title {
  margin: 0 0 32px !important;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

/* 選択肢: 2列のカード */
.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item {
  width: auto !important;
  margin: 0 !important;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item label {
  display: block;
  height: 100%;
  cursor: pointer;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item label span {
  position: relative;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start !important;
  -ms-flex-pack: start !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 76px;
  padding: 16px 18px 16px 56px !important;
  background-color: #FFFFFF !important;
  border: 2px solid transparent !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.05);
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.6;
  text-align: left !important;
  color: var(--color-black, #111111) !important;
  -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 左の丸いラジオ */
.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item label span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border: 2px solid rgba(255, 128, 0, 0.5);
  border-radius: 50%;
  background-color: #FFFFFF;
  box-sizing: border-box;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item label:hover span {
  border-color: rgba(255, 128, 0, 0.45) !important;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item label input:checked + span,
.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_list .input_check_item label input:checked + span {
  background-color: #FFFFFF !important;
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
  box-shadow: 0 6px 18px rgba(255, 128, 0, 0.18);
  color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item label input:checked + span::before {
  border-color: var(--theme-color-primary-config-custom, #ff8000);
  box-shadow: inset 0 0 0 4px #FFFFFF;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 次へ進む (コンバージョン) */
.job_main_block .about_page_top:has(.detail_questionnaire_title) .step_btn_area {
  margin: 32px 0 0;
  text-align: center;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .step_next_btn {
  width: 340px;
  max-width: 100%;
  height: 60px;
  margin: 0 auto !important;
  border: none;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000));
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.3);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  cursor: pointer;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) .step_next_btn:disabled {
  background: #C9C3BD;
  box-shadow: none;
  cursor: not-allowed;
}

@media only screen and (max-width: 640px) {
  .job_main_block .about_page_top:has(.detail_questionnaire_title) {
    padding: 28px 16px !important;
    margin: 0 0 20px !important;
    border-radius: 14px !important;
  }

  .job_main_block .about_page_top .about_page_top_content .about_page_top_title.detail_questionnaire_title {
    font-size: 18px;
  }

  .job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .job_main_block .about_page_top:has(.detail_questionnaire_title) .input_check_item label span {
    min-height: 60px;
    font-size: 14px !important;
  }
}

/* 求人詳細: サイドの列がないときは本文を全幅に */
.job_content:not(:has(.job_side_block)) .job_main_block {
  width: 100% !important;
}

.job_main_block .about_page_top:has(.detail_questionnaire_title) {
  max-width: none;
}

/* --- 求人詳細: 条件一覧から求人を探す (job_relation_link_list) ----------------
   ニュース一覧と同じ、細い線で区切った1行ずつのリスト + オレンジの件数ピル + 矢印 */
.job_relation_link_list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.job_relation_link_list .job_relation_link_item {
  margin: 0 !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.job_relation_link_list .job_relation_link_item .job_relation_category_number {
  position: relative;
  gap: 4px 10px;
  padding: 20px 48px 20px 8px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}

.job_relation_link_list .job_relation_link_item .job_relation_category_number:hover {
  background-color: #F8F5F1 !important;
}

.job_relation_link_list .job_relation_link_item .job_relation_category_number .job_relation_category_list .job_relation_category_item,
.job_relation_link_list .job_relation_link_item .job_relation_category_number .job_relation_link_text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black, #111111);
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.job_relation_link_list .job_relation_link_item .job_relation_category_number .job_relation_category_list .job_relation_category_item:first-child {
  margin-left: 0;
}

.job_relation_link_list .job_relation_link_item .job_relation_category_number .job_relation_category_list .job_relation_category_item::after {
  content: "×";
  margin: 0 0 0 6px;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

.job_relation_link_list .job_relation_link_item .job_relation_category_number:hover .job_relation_category_item,
.job_relation_link_list .job_relation_link_item .job_relation_category_number:hover .job_relation_link_text {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 件数: オレンジの細枠ピル */
.job_relation_link_list .job_relation_link_item .job_relation_category_number .job_relation_link_number {
  margin: 0 0 0 4px;
  padding: 2px 12px;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 右端の矢印 */
.job_relation_link_list .job_relation_link_item .job_relation_category_number::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  margin: 0;
  background: none;
  border-top: 2px solid var(--theme-color-primary-config-custom, #ff8000);
  border-right: 2px solid var(--theme-color-primary-config-custom, #ff8000);
  -webkit-transform: translateY(-50%) rotate(45deg);
  transform: translateY(-50%) rotate(45deg);
  -webkit-transition: right 0.2s ease;
  transition: right 0.2s ease;
}

.job_relation_link_list .job_relation_link_item .job_relation_category_number:hover::after {
  right: 12px;
}

@media only screen and (max-width: 640px) {
  .job_relation_link_list .job_relation_link_item .job_relation_category_number {
    padding: 16px 36px 16px 4px !important;
  }

  .job_relation_link_list .job_relation_link_item .job_relation_category_number .job_relation_category_list .job_relation_category_item,
  .job_relation_link_list .job_relation_link_item .job_relation_category_number .job_relation_link_text {
    font-size: 13px;
  }
}

/* 見出しの下線と二重にならないよう、見出し直後のリストは上線なし */
.job_detail_resemble_block_title_wrap + .job_relation_link_list {
  border-top: none;
}

.job_main_block .job_detail_resemble_block:has(.job_relation_link_list) .job_detail_resemble_block_title_wrap {
  margin-bottom: 0;
}

/* ピックアップ求人カード: 元の「.pickup_job_box_list li:last-child { margin:0 }」が
   入れ子のタグの最後 (job_box_tag_item / job_detail_tag_item) にも効き、最後のタグだけ余白がなくなってずれていたので戻す */
.pickup_job_box_wrap .pickup_job_box .pickup_job_box_list .pickup_job_box_tag .job_box_tag_list .job_box_tag_item:last-child,
.pickup_job_box_wrap .pickup_job_box .pickup_job_box_list .job_detail_tag_list .job_detail_tag_item:last-child {
  margin: 0 8px 8px 0;
}

/* 求人詳細: キープする・応募するボタンを大きく (PC 高さ 60px) */
.job_main_block .job_detail_btn_wrap .keep_btn,
.job_main_block .job_detail_btn_wrap .keeped_btn,
.job_main_block .job_detail_btn_wrap .application_btn,
.job_main_block .job_detail_btn_wrap .applied_btn {
  height: 60px !important;
  font-size: 17px !important;
  letter-spacing: 0.08em;
}

.job_main_block .job_detail_btn_wrap .keep_btn img,
.job_main_block .job_detail_btn_wrap .keeped_btn img {
  width: 18px;
  margin-right: 8px;
}

@media only screen and (max-width: 640px) {
  .job_main_block .job_detail_btn_wrap .keep_btn,
  .job_main_block .job_detail_btn_wrap .keeped_btn,
  .job_main_block .job_detail_btn_wrap .application_btn,
  .job_main_block .job_detail_btn_wrap .applied_btn {
    height: 48px !important;
    font-size: 14px !important;
  }

  .job_main_block .job_detail_btn_wrap .keep_btn img,
  .job_main_block .job_detail_btn_wrap .keeped_btn img {
    width: 14px;
  }
}

/* ==========================================================================
   求人詳細: 働くことの魅力 (attractive_box_wrap)
   - 3つを1枚の白いカードにまとめ、上に英字ラベル「CHARM」
   - 各魅力は大きな線文字の番号 + 見出し + 本文、細い線で区切る
   ========================================================================== */
.attractive_box_wrap {
  margin: 0 0 24px;
  padding: 32px 28px;
  background-color: #FFFFFF;
  border-radius: 20px;
  counter-reset: ks_charm;
}

.job_side_block .attractive_box_wrap::before {
  content: "CHARM";
  display: block;
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

.attractive_box_wrap .attractive_box {
  position: relative;
  margin: 0 !important;
  padding: 24px 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(17, 17, 17, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.attractive_box_wrap .attractive_box:first-child {
  border-top: none !important;
  padding-top: 12px !important;
}

.attractive_box_wrap .attractive_box:last-child {
  padding-bottom: 0 !important;
}

/* 「〇〇で〇〇で働くことの魅力」: 小さなオレンジの文字、番号は右の大きな線文字 */
.attractive_box_wrap .attractive_box .attractive_box_name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 56px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* アイコン (icon_kuma.svg) は大事なので残す: 薄いオレンジの丸の中に置く */
.attractive_box_wrap .attractive_box .attractive_box_name img {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 8px;
  border-radius: 50%;
  background-color: #FFF4E6;
  object-fit: contain;
}

.attractive_box_wrap .attractive_box .attractive_box_name span {
  position: absolute;
  top: 12px;
  right: 0;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--theme-color-primary-config-custom, #ff8000);
}

.attractive_box_wrap .attractive_box:not(:first-child) .attractive_box_name span {
  top: 24px;
}

.attractive_box_wrap .attractive_box .attractive_box_detail {
  padding: 0;
  background: transparent;
}

.attractive_box_wrap .attractive_box .attractive_box_detail .attractive_box_title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-black, #111111);
}

.attractive_box_wrap .attractive_box .attractive_box_detail .attractive_box_text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-text, #414141);
}

.attractive_box_wrap .attractive_box .attractive_box_detail .attractive_box_text a {
  display: inline-block;
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media only screen and (max-width: 640px) {
  .attractive_box_wrap {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .job_side_block .attractive_box_wrap::before {
    font-size: 28px;
  }
}

.attractive_box_wrap .attractive_box .attractive_box_detail .attractive_box_title {
  padding: 0 !important;
  border: none !important;
}

.attractive_box_wrap .attractive_box .attractive_box_name span {
  font-size: 36px;
  top: 14px;
}

.attractive_box_wrap .attractive_box:not(:first-child) .attractive_box_name span {
  top: 26px;
}

/* ==========================================================================
   求人検索 (/job/search) と、同じ検索フォームを使う求人一覧ページ
   - 求人詳細と同じ: ベージュの背景 + 白いカード + 右上の線文字
   - 検索フォームの見出し・チェックボックス・入力欄を整える
   ========================================================================== */
.job_section:has(.job_search_box) {
  position: relative;
  overflow: hidden;
  background-color: #F8F5F1 !important;
}

.job_section:has(.job_search_box)::before {
  content: "JOB SEARCH";
  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(.job_search_box) > * {
  position: relative;
  z-index: 1;
}

/* 検索フォーム: 白いカード */
.job_section .job_search_box {
  padding: 40px !important;
  margin: 0 0 56px !important;
  background-color: #FFFFFF !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: none !important;
}

.job_section .job_search_box .job_search_block {
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.job_section .job_search_box .job_search_form > .job_search_block:first-of-type {
  padding-top: 0;
  border-top: none;
}

/* 市区町村の一覧は勤務地の続きなので区切り線なし */
.job_section .job_search_box .job_search_block:has(#search_cities) {
  padding-top: 0;
  border-top: none;
}

.job_section .job_search_box .job_search_block_title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--color-gray, #555555);
}

.job_section .job_search_box .job_search_block_title span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: var(--color-black, #111111);
}

.job_section .job_search_box .job_search_block_title span::before {
  content: "";
  width: 20px;
  height: 2px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

/* セレクト・フリーワード: 枠付きの角丸 */
.job_section .job_search_box .common_select,
.job_section .job_search_box .job_search_input .input {
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--color-border-gray, #dfdfdf) !important;
  border-radius: 9999px;
  background-color: #FFFFFF;
  font-size: 14px;
  -webkit-transition: border-color 0.2s ease;
  transition: border-color 0.2s ease;
}

.job_section .job_search_box .common_select {
  min-width: 240px;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ff8000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.job_section .job_search_box .job_search_input .input {
  width: 100%;
  max-width: 420px;
}

.job_section .job_search_box .common_select:hover,
.job_section .job_search_box .common_select:focus,
.job_section .job_search_box .job_search_input .input:focus {
  outline: none;
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

/* チェックボックス: 角丸の四角、選ぶとオレンジ */
.job_section .job_search_box .search_check_link_block {
  margin: 0;
}

.job_section .job_search_box .search_check_link_list .search_check_link_item {
  margin: 0 22px 12px 0;
}

.job_section .job_search_box .search_check_link_list .checkbox_link {
  padding-left: 28px;
}

.job_section .job_search_box .search_check_link_list .checkbox_link::before {
  top: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid #CFC8C0;
  border-radius: 5px;
  background: #FFFFFF;
  box-sizing: border-box;
}

.job_section .job_search_box .link_input:checked + .checkbox_link::before {
  background: var(--theme-color-primary-config-custom, #ff8000);
  border-color: var(--theme-color-primary-config-custom, #ff8000);
}

.job_section .job_search_box .link_input:checked + .checkbox_link::after {
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border-color: #FFFFFF !important;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.job_section .job_search_box .search_check_link_list .checkbox_link .search_check_link_btn {
  font-size: 13px;
  color: var(--color-text, #414141);
}

.job_section .job_search_box .search_check_link_list .checkbox_link .search_check_link_btn:hover {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 検索ボタン (コンバージョン): 大きめのグラデーションのピル */
.job_section .job_search_box .job_search_submit_btn_block {
  margin: 12px 0 0;
}

.job_section .job_search_box .job_search_submit_btn {
  width: 360px;
  max-width: 100%;
  min-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 8px 20px rgba(255, 128, 0, 0.28);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF !important;
}

/* 「ピックアップの求人」見出し: 求人詳細と同じ英字ラベル付き */
.job_section:has(.job_search_box) .job_main_block > .section_img_title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 32px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 20px;
  color: var(--color-black, #111111);
}

.job_section:has(.job_search_box) .job_main_block > .section_img_title img {
  display: none;
}

.job_section:has(.job_search_box) .job_main_block > .section_img_title::before {
  content: "";
  order: -1;
  width: 28px;
  height: 2px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

.job_section:has(.job_search_box) .job_main_block > .section_img_title::after {
  content: "JOB LIST";
  order: -2;
  flex-basis: 100%;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.job_section:has(.job_search_box) .job_main_block > .section_img_title {
  counter-reset: none;
}

/* 求人カード: 白いカードのまま、枠をやめる */
.job_section:has(.job_search_box) .job_box_l_wrap .job_box_l {
  border: none !important;
  border-radius: 20px !important;
}

/* サイドの人気コラム: 白いカード */
/* column_ranking_wrap は入れ子になっているので外側だけをカードに。幅に余白を含める */
.job_section:has(.job_search_box) .job_side_block > .column_ranking_wrap {
  box-sizing: border-box;
  padding: 28px 20px;
  background-color: #FFFFFF;
  border-radius: 20px;
}

/* ALL / MONTHLY / WEEKLY のタブがカード幅に収まるように */
.job_section:has(.job_search_box) .job_side_block .aside_media_tab {
  display: flex;
  gap: 6px;
}

.job_section:has(.job_search_box) .job_side_block .aside_media_tab .aside_media_tab_btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}

@media only screen and (max-width: 640px) {
  .job_section .job_search_box {
    padding: 24px 18px !important;
    margin: 0 0 40px !important;
    border-radius: 14px !important;
  }

  .job_section .job_search_box .job_search_block {
    padding: 18px 0;
  }

  .job_section .job_search_box .common_select {
    width: 100%;
    min-width: 0;
  }

  .job_section:has(.job_search_box) .job_main_block > .section_img_title {
    font-size: 16px;
  }

  .job_section:has(.job_search_box) .job_main_block > .section_img_title::after {
    font-size: 30px;
  }

  .job_section:has(.job_search_box) .job_box_l_wrap .job_box_l {
    border-radius: 14px !important;
  }
}

/* ==========================================================================
   ポップアップ (.popup_wrap): ログイン・キープ・応募完了
   - 角丸の白いカード、英字ラベル付きの見出し
   - 入力欄は角丸のベージュ、会員登録ブロックはベージュの面
   - ボタン: かんたん登録 = コンバージョン (グラデーション)、ログイン・閉じる = 白地+オレンジ細枠
   ========================================================================== */
.popup_filter {
  background: rgba(17, 17, 17, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.popup_wrap {
  max-width: 480px;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;
}

/* 閉じるボタン: 右上の小さな丸 */
.popup_wrap .popup_close_btn {
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  background-color: #F8F5F1;
  z-index: 2;
}

.popup_wrap .popup_close_btn:hover {
  opacity: 1;
  background-color: #FFF4E6;
}

.popup_wrap .popup_main {
  padding: 56px 40px 40px;
}

/* 見出し: 上にオレンジの英字ラベル */
.popup_wrap .popup_main .popup_title {
  margin: 0 0 24px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--color-black, #111111);
}

.popup_wrap .popup_main .popup_title::before {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

#RecruitPopup .popup_main > .popup_title::before,
#KeepPopup .popup_main > .popup_title::before { content: "LOGIN"; }
#ApplicationCompletePopup .popup_main > .popup_title::before,
#ApplicationFailurePopup .popup_main > .popup_title::before { content: "ENTRY"; }
.popup_wrap .popup_form_sub_block .popup_title::before { content: "REGISTER"; }

.popup_wrap .popup_main .popup_text {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
}

/* 入力欄 */
.popup_wrap .popup_form_block {
  margin: 0 0 12px;
}

.popup_wrap .popup_form_input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  background-color: #F8F5F1 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  font-size: 15px;
  box-sizing: border-box;
  -webkit-transition: border-color 0.2s ease, background-color 0.2s ease;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.popup_wrap .popup_form_input:focus {
  outline: none;
  background-color: #FFFFFF !important;
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

/* ログイン・閉じる: 白地+オレンジ細枠のピル (非コンバージョン) */
.popup_wrap .common_btn_wrap {
  margin: 20px 0 0;
}

.popup_wrap .common_btn_p,
.popup_wrap .common_btn {
  width: 100%;
  max-width: none;
  height: 54px;
  margin: 0 auto;
  background: #FFFFFF !important;
  border: 1.5px solid var(--theme-color-primary-config-custom, #ff8000) !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000) !important;
  -webkit-transition: background-color 0.2s ease, color 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.popup_wrap .common_btn_p:hover,
.popup_wrap .common_btn:hover {
  background: var(--theme-color-primary-config-custom, #ff8000) !important;
  color: #FFFFFF !important;
}

/* 会員登録がまだの方: ベージュの面 + かんたん登録 (コンバージョン) */
.popup_wrap .popup_form_sub_block {
  margin: 28px -40px -40px;
  padding: 32px 40px 36px;
  background-color: #F8F5F1;
}

.popup_wrap .popup_form_sub_block .popup_title {
  margin: 0 0 18px;
  font-size: 18px;
}

.popup_wrap .popup_register_btn {
  width: 100%;
  height: 58px;
  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 8px 20px rgba(255, 128, 0, 0.28);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF !important;
}

.popup_wrap .popup_register_btn:hover {
  opacity: 0.9;
}

@media only screen and (max-width: 640px) {
  .popup_wrap {
    border-radius: 18px !important;
  }

  .popup_wrap .popup_main {
    padding: 52px 20px 24px;
  }

  .popup_wrap .popup_main .popup_title {
    font-size: 19px;
  }

  .popup_wrap .popup_form_sub_block {
    margin: 24px -20px -24px;
    padding: 24px 20px 28px;
  }
}

/* ==========================================================================
   会員登録 (/register)
   - ベージュの背景 + 右上の線文字「REGISTER」
   - 二重の枠をやめて1枚の白いカード、入力欄はベージュの角丸
   - 登録ボタン (コンバージョン) は大きなグラデーションのピル
   ========================================================================== */
.other_section:has(.ks_register_form) {
  position: relative;
  overflow: hidden;
  background-color: #F8F5F1;
}

.other_section:has(.ks_register_form)::before {
  content: "REGISTER";
  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_register_form) > * {
  position: relative;
  z-index: 1;
}

/* 外枠はなくし、中のフォームを白いカードに */
.other_section:has(.ks_register_form) .common_w_box {
  max-width: 820px;
  padding: 0;
  background: transparent;
}

.other_section .common_form_wrap > .ks_register_form {
  padding: 56px 64px !important;
  background-color: #FFFFFF !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

/* リード文: 薄いオレンジの面 */
.ks_register_form .ks_register_lead {
  margin: 0 0 44px;
  padding: 22px 26px;
  background-color: #FFF4E6 !important;
  border: none !important;
  border-radius: 14px;
  font-size: 15px;
  color: var(--color-text, #414141);
}

/* 項目名 */
.ks_register_form .common_form_list .common_form_item .common_form_title_area .common_form_title_required .common_form_title {
  font-size: 16px;
  color: var(--color-black, #111111);
}

.ks_register_form .common_form_list .common_form_item .common_form_title_area {
  margin: 0 0 12px;
}

/* 入力欄: ベージュの角丸、入力中は白+オレンジ枠 */
.ks_register_form .common_input,
.ks_register_form .common_select,
.ks_register_form .common_form_textarea {
  height: 56px;
  padding: 0 18px;
  background-color: #F8F5F1 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  font-size: 15px;
  box-sizing: border-box;
  -webkit-transition: border-color 0.2s ease, background-color 0.2s ease;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ks_register_form .common_form_textarea {
  height: 140px;
  padding: 16px 18px;
}

.ks_register_form .common_select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ff8000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 18px center !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}

.ks_register_form .common_input:focus,
.ks_register_form .common_select:focus,
.ks_register_form .common_form_textarea:focus {
  outline: none;
  background-color: #FFFFFF !important;
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

/* 詳細入力 (アコーディオン) の見出し */
.ks_register_form .ks_register_accordion_head {
  padding: 18px 20px;
  background-color: #FFFFFF;
  border: 1.5px dashed rgba(255, 128, 0, 0.5);
  border-radius: 14px;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 個人情報の同意 */
.ks_register_form .ks_register_privacy {
  margin: 32px 0 28px;
  padding: 0;
  background: transparent;
  border: none;
}

/* 登録ボタン (コンバージョン) */
.ks_register_form .common_form_submit_btn_wrap .common_btn_p {
  width: 100%;
  max-width: 420px;
  height: 66px;
  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: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFFFFF !important;
}

.ks_register_form .ks_form_submit_note {
  margin: 16px 0 0;
  font-size: 13px;
  text-align: center;
  color: var(--color-gray, #555555);
}

@media only screen and (max-width: 640px) {
  .other_section .common_form_wrap > .ks_register_form {
    padding: 28px 18px !important;
    border-radius: 16px !important;
  }

  .ks_register_form .ks_register_lead {
    margin: 0 0 28px;
    padding: 16px 18px;
    font-size: 14px;
  }

  .ks_register_form .common_input,
  .ks_register_form .common_select {
    height: 52px;
  }

  .ks_register_form .common_form_submit_btn_wrap .common_btn_p {
    height: 58px;
    font-size: 16px;
  }
}

/* 外側の common_form_wrap (半透明の四角) は枠をなくし、中の ks_register_form だけをカードに */
.other_section:has(.ks_register_form) .common_w_box > .common_form_wrap {
  padding: 0 !important;
  background: transparent !important;
}

/* ==========================================================================
   コラム一覧 (/article)
   - ベージュの背景 + 右上の線文字「COLUMN」
   - カテゴリー・タグの面は白いカード、見出しは英字ラベル付き
   - 記事カードのカテゴリーはオレンジの細枠ピル、サイドは白いカード
   ========================================================================== */
.column_section:has(.column_category_search_box_area) {
  position: relative;
  overflow: hidden;
  background-color: #F8F5F1 !important;
}

.column_section:has(.column_category_search_box_area)::before {
  content: "COLUMN";
  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;
}

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

/* カテゴリー・タグ: 白いカード */
.column_section .column_category_search_box_area {
  padding: 40px !important;
  margin: 0 0 24px !important;
  background-color: #FFFFFF !important;
  border-radius: 20px !important;
}

.column_section .column_category_search_box_area .column_category_search_box_title {
  margin: 0 0 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1) !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

.column_section .column_category_search_box_area .column_category_search_box_title img {
  display: none;
}

/* カテゴリーのカード: ベージュの面、ホバーでオレンジの枠 */
.column_section .column_category_search_list .column_category_search_item .column_category_search_link {
  background-color: #F8F5F1 !important;
  border: 1.5px solid transparent !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  -webkit-transition: border-color 0.2s ease, background-color 0.2s ease;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.column_section .column_category_search_list .column_category_search_item .column_category_search_link:hover {
  background-color: #FFFFFF !important;
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

/* タグ: 細枠のピル */
.column_section .column_tag_search_list .column_tag_search_item .column_tag_search_link {
  padding: 6px 14px;
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: 9999px;
  font-size: 13px;
  text-decoration: none;
  -webkit-transition: border-color 0.2s ease, color 0.2s ease;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.column_section .column_tag_search_list .column_tag_search_item .column_tag_search_link:hover {
  border-color: var(--theme-color-primary-config-custom, #ff8000);
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 「ピックアップ / 新着」見出し: 英字ラベル付き */
.column_main_block .pick_column_area > .section_img_title,
.column_main_block .new_column_area > .section_img_title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 56px 0 32px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  font-size: 20px;
  color: var(--color-black, #111111);
}

.column_main_block .pick_column_area > .section_img_title img,
.column_main_block .new_column_area > .section_img_title img {
  display: none;
}

.column_main_block .pick_column_area > .section_img_title::before,
.column_main_block .new_column_area > .section_img_title::before {
  content: "";
  order: -1;
  width: 28px;
  height: 2px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

.column_main_block .pick_column_area > .section_img_title::after,
.column_main_block .new_column_area > .section_img_title::after {
  order: -2;
  flex-basis: 100%;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.column_main_block .pick_column_area > .section_img_title::after { content: "PICK UP"; }
.column_main_block .new_column_area > .section_img_title::after { content: "NEW COLUMN"; }

/* 記事一覧のセクション (column_list) も同じベージュに */
main:has(.column_category_search_box_area) > .column_list {
  background-color: #F8F5F1 !important;
}

/* 記事カード: 画像を角丸、カテゴリーはオレンジの細枠ピル */
main:has(.column_category_search_box_area) .column_list_box_wrap .column_box .column_box_img {
  border-radius: 16px;
}

main:has(.column_category_search_box_area) .column_list_box_wrap .column_box .column_box_category {
  padding: 4px 12px;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000) !important;
  border-radius: 9999px;
  background-color: #FFFFFF !important;
  font-size: 11px;
  color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

main:has(.column_category_search_box_area) .column_list_box_wrap .column_box .column_box_title {
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

main:has(.column_category_search_box_area) .column_list_box_wrap .column_box:hover .column_box_title {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* サイドの人気コラム: 白いカード (求人検索と同じ) */
main:has(.column_category_search_box_area) .column_side_block > .column_ranking_wrap {
  box-sizing: border-box;
  padding: 28px 20px;
  background-color: #FFFFFF;
  border-radius: 20px;
}

main:has(.column_category_search_box_area) .column_side_block .aside_media_tab {
  display: flex;
  gap: 6px;
}

main:has(.column_category_search_box_area) .column_side_block .aside_media_tab .aside_media_tab_btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}

@media only screen and (max-width: 640px) {
  .column_section .column_category_search_box_area {
    padding: 22px 16px !important;
    border-radius: 14px !important;
  }

  .column_section .column_category_search_box_area .column_category_search_box_title {
    font-size: 19px;
  }

  .column_main_block .pick_column_area > .section_img_title,
  .column_main_block .new_column_area > .section_img_title {
    margin: 40px 0 24px;
    font-size: 16px;
  }

  .column_main_block .pick_column_area > .section_img_title::after,
  .column_main_block .new_column_area > .section_img_title::after {
    font-size: 30px;
  }
}

/* ==========================================================================
   サイドの人気コラム (popular_articles): どのページでも同じ見た目に
   - 白いカード + 薄い枠 (白背景・ベージュ背景のどちらでも見えるように)
   - 見出しは英字ラベル「RANKING」付き、タブはカード幅に収める
   - 「コラムをもっと見る」はカードの外、上に余白を空けて置く
   ========================================================================== */
/* カードにするのは見出しを持つ column_ranking_wrap (ページによって外側にもう1つ同じ名前の入れ物があるため) */
:is(.job_side_block, .column_side_block, .common_layout_right) .column_ranking_wrap:has(> .side_area_title) {
  box-sizing: border-box;
  padding: 28px 20px !important;
  margin: 0 !important;
  background-color: #FFFFFF;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .column_ranking_wrap .side_area_title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  color: var(--color-black, #111111);
}

:is(.job_side_block, .column_side_block, .common_layout_right) .column_ranking_wrap .side_area_title::before {
  content: "RANKING";
  display: block;
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .aside_media_tab {
  display: flex;
  gap: 6px;
  margin: 0 0 24px;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .aside_media_tab .aside_media_tab_btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .rank_column_box_list {
  margin: 0;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .rank_column_box_list .rank_column_box_item {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

:is(.job_side_block, .column_side_block, .common_layout_right) .rank_column_box_list .rank_column_box_item:first-child {
  padding-top: 0;
  border-top: none;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .rank_column_box_list .rank_column_box_item .rank_column_box_link .rabk_column_box_img {
  border-radius: 8px;
  overflow: hidden;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .rank_column_box_list .rank_column_box_item .rank_column_box_link:hover .rank_column_box_title {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* もっと見るボタン: カードから離す */
:is(.job_side_block, .column_side_block, .common_layout_right) .side_block_btn_wrap {
  margin: 20px 0 0;
}

:is(.job_side_block, .column_side_block, .common_layout_right) .side_block_btn_wrap .side_block_btn {
  width: 100%;
  max-width: none;
  height: 56px;
}

/* 外側の入れ物 (見出しを持たない column_ranking_wrap) は枠なし */
:is(.job_side_block, .column_side_block, .common_layout_right) > .column_ranking_wrap:not(:has(> .side_area_title)) {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

/* ==========================================================================
   見出しの大きさ: 英字ラベルは以前のまま、h1 の日本語を h2 の日本語より少しだけ大きく
   ========================================================================== */
h1.common_section_title {
  font-size: 26px !important;
}

/* h2 の日本語で h1 を超えていたものを少しだけ小さく */
.common_register_btn_block_title {
  font-size: 24px !important;
}

/* スマホだけで使う改行 (「を」の後ろ) */
.ks_about_banner .ks_about_banner_br {
  display: none;
}

/* 「あなたの不安を一緒に解決します！」は写真の帯に載るキャッチコピーなので大きめ */
.ks_about_banner .about_section_title.ks_about_banner_title {
  font-size: 34px !important;
  line-height: 1.5 !important;
}

@media only screen and (max-width: 640px) {
  h1.common_section_title {
    font-size: 21px !important;
  }

  .common_register_btn_block_title {
    font-size: 19px !important;
  }

  .ks_about_banner .about_section_title.ks_about_banner_title {
    font-size: 24px !important;
  }

  .ks_about_banner .ks_about_banner_br {
    display: inline;
  }
}

@media only screen and (max-width: 640px) {
  h1.job_detail_title {
    font-size: 21px !important;
  }
}

/* ==========================================================================
   セクションの区切り: 本文のあとに続く「NEW COLUMN」(column_section) を
   ベージュの面にして、前後の白いセクションと区別する (ニュース一覧・詳細など)
   ========================================================================== */
main > .other_section + .column_section {
  background-color: #F8F5F1 !important;
}

/* ベージュの上ではカテゴリーのラベルを白地に */
main > .other_section + .column_section .column_box_category {
  background-color: #FFFFFF !important;
}

/* ベージュの面のあとの「NEW JOB」(relation_job) は上に余白を取って区切りを見せる */
main > .other_section + .column_section + .relation_job {
  padding-top: 96px;
}

@media only screen and (max-width: 640px) {
  main > .other_section + .column_section + .relation_job {
    padding-top: 64px;
  }
}

/* ==========================================================================
   セクションの区切り (白とベージュを交互に)
   ========================================================================== */
/* コラム詳細: RELATION COLUMN (カテゴリー一覧のあとの column_section) をベージュに */
main > .column_detail_category + .column_section {
  background-color: #F8F5F1 !important;
}

main > .column_detail_category + .column_section .column_box_category {
  background-color: #FFFFFF !important;
}

/* 会社概要: ORIGIN のセクションをベージュに、中の面は白に */
.ks_origin_section {
  background-color: #F8F5F1 !important;
}

.ks_origin_block {
  background-color: #FFFFFF;
}

.ks_origin_visual {
  background-color: #F8F5F1;
}

/* ==========================================================================
   おすすめ求人ポップアップ (ks_recommend_popup)
   - ログインなどのポップアップと同じ角丸の白いカード + 英字ラベル
   - 求人は 3:2 の画像つきの横並びカード、給与はオレンジ
   - 「ほかの求人も見る」は非コンバージョンなので白地+オレンジ細枠
   ========================================================================== */
.ks_recommend_popup .ks_recommend_popup_overlay {
  background: rgba(17, 17, 17, 0.55) !important;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.ks_recommend_popup .ks_recommend_popup_body {
  max-width: 520px;
  padding: 48px 36px 32px !important;
  background: #FFFFFF !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25) !important;
}

.ks_recommend_popup .ks_recommend_popup_close {
  top: 16px !important;
  right: 16px !important;
  width: 40px !important;
  height: 40px !important;
  border: none !important;
  border-radius: 50% !important;
  background: #F8F5F1 !important;
  font-size: 20px !important;
  line-height: 40px !important;
  color: var(--color-black, #111111) !important;
}

.ks_recommend_popup .ks_recommend_popup_head {
  margin: 0 0 24px !important;
  padding: 0 !important;
  background: none !important;
  text-align: center;
}

.ks_recommend_popup .ks_recommend_popup_head .ks_recommend_popup_title {
  font-size: 21px !important;
  line-height: 1.5 !important;
  color: var(--color-black, #111111) !important;
}

.ks_recommend_popup .ks_recommend_popup_head .ks_recommend_popup_title::before {
  content: "RECOMMEND";
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 求人: ベージュの面の横並びカード */
.ks_recommend_popup .ks_recommend_list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px !important;
  padding: 0;
  list-style: none;
}

.ks_recommend_popup .ks_recommend_item {
  margin: 0 !important;
  border: none !important;
}

.ks_recommend_popup .ks_recommend_link {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 12px !important;
  background: #F8F5F1 !important;
  border: 1.5px solid transparent !important;
  border-radius: 14px !important;
  -webkit-transition: border-color 0.2s ease, background-color 0.2s ease;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ks_recommend_popup .ks_recommend_link:hover {
  background: #FFFFFF !important;
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

.ks_recommend_popup .ks_recommend_img {
  flex-shrink: 0;
  width: 108px !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  border-radius: 8px !important;
  background-size: cover !important;
  background-position: center !important;
}

.ks_recommend_popup .ks_recommend_body {
  min-width: 0;
}

.ks_recommend_popup .ks_recommend_name {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 0 4px;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.5 !important;
  color: var(--color-black, #111111) !important;
}

.ks_recommend_popup .ks_recommend_meta {
  display: block;
  font-size: 11px !important;
  color: var(--color-gray, #555555) !important;
}

.ks_recommend_popup .ks_recommend_salary {
  display: block;
  margin: 2px 0 0;
  font-size: 13px !important;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000) !important;
}

/* ボタン */
.ks_recommend_popup .ks_recommend_popup_actions .ks_recommend_popup_btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 54px;
  background: #FFFFFF !important;
  border: 1.5px solid var(--theme-color-primary-config-custom, #ff8000) !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000) !important;
  -webkit-transition: background-color 0.2s ease, color 0.2s ease;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ks_recommend_popup .ks_recommend_popup_actions .ks_recommend_popup_btn:hover {
  background: var(--theme-color-primary-config-custom, #ff8000) !important;
  color: #FFFFFF !important;
}

.ks_recommend_popup .ks_recommend_popup_actions .ks_recommend_popup_text_btn {
  margin: 12px 0 0;
}

@media only screen and (max-width: 640px) {
  .ks_recommend_popup .ks_recommend_popup_body {
    padding: 48px 18px 24px !important;
    border-radius: 18px !important;
  }

  .ks_recommend_popup .ks_recommend_popup_head .ks_recommend_popup_title {
    font-size: 18px !important;
  }

  .ks_recommend_popup .ks_recommend_img {
    width: 88px !important;
  }
}

.ks_recommend_popup .ks_recommend_popup_head,
.ks_recommend_popup .ks_recommend_popup_head .ks_recommend_popup_head_text {
  display: block !important;
  width: 100%;
  text-align: center !important;
}

.ks_recommend_popup .ks_recommend_popup_head .ks_recommend_popup_title {
  text-align: center !important;
}

/* 会社概要: MESSAGE を白に (ORIGIN のベージュと交互にする)。カードは枠で形を見せる */
.ks_message_section {
  background-color: #FFFFFF !important;
}

.ks_message_section .ks_message_block {
  border: 1px solid rgba(17, 17, 17, 0.08) !important;
}

/* 会社概要: MESSAGE = 白 + ドット柄、ミッション ビジョン バリュー = ベージュ (ドットなし) */
.ks_message_section {
  background-color: #FFFFFF !important;
  background-image: radial-gradient(rgba(255, 128, 0, 0.16) 1.5px, transparent 1.5px) !important;
  background-size: 22px 22px !important;
}

main:has(.ks_origin_section) > section.other_section:has(.ks_mvv_list) {
  background-color: #F8F5F1 !important;
  background-image: none !important;
}

/* 中野さんの写真: 人物が中央に来るよう切り出した画像を、枠いっぱいに中央基準で表示 */
.ks_member_hero_photo .ks_member_hero_photo_main {
  left: 0;
  width: 100%;
  transform: none;
  object-position: center center;
}

@media only screen and (max-width: 640px) {
  .ks_member_hero_photo .ks_member_hero_photo_main {
    width: 100%;
  }
}

/* メンバー紹介: 写真・名前・メッセージのリンク (中の文字の見た目は変えない) */
.ks_member_hero_link,
.ks_member_card_link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.ks_member_hero_link .ks_member_hero_en,
.ks_member_hero_link .ks_member_hero_message,
.ks_member_card_link .ks_member_message {
  display: block;
}

.ks_member_hero_link .ks_member_hero_position {
  display: inline-block;
}

.ks_member_hero_link:hover .ks_member_hero_name,
.ks_member_card_link:hover .ks_member_name {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

a.ks_member_hero_photo {
  display: block;
}

a.ks_member_hero_photo .ks_member_hero_photo_main {
  -webkit-transition: transform 0.6s ease;
  transition: transform 0.6s ease;
}

a.ks_member_hero_photo:hover .ks_member_hero_photo_main {
  transform: scale(1.03);
}

/* ==========================================================================
   メンバー詳細 (/member/{id}): セクションごとに背景を変える
   上部 (白) → PROFILE (ベージュ) → JOBS (白 + ドット柄)
   同じ section の中のブロックを、画面幅いっぱいの帯に広げて背景を付ける
   ========================================================================== */
main:has(.ks_member_hero--profile) .other_section {
  overflow-x: clip;
  padding-bottom: 0;
}

main:has(.ks_member_hero--profile) .ks_member_hero--profile {
  margin-bottom: 0;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block,
main:has(.ks_member_hero--profile) .ks_profile_jobs {
  margin: 0 calc(50% - 50vw) !important;
  padding: 96px calc(50vw - 50%) !important;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block {
  background-color: #F8F5F1 !important;
}

main:has(.ks_member_hero--profile) .ks_profile_jobs {
  background-color: #FFFFFF !important;
  background-image: radial-gradient(rgba(255, 128, 0, 0.16) 1.5px, transparent 1.5px) !important;
  background-size: 22px 22px !important;
}

/* プロフィールの表は白いカードに */
main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_list {
  overflow: hidden;
  background-color: #FFFFFF !important;
  border-radius: 20px !important;
  border-top: none !important;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_item:last-child {
  border-bottom: none;
}

/* 見出しに英字ラベル */
main:has(.ks_member_hero--profile) .section_img_title {
  flex-wrap: wrap;
  row-gap: 6px;
}

main:has(.ks_member_hero--profile) .section_img_title::before {
  order: -1;
}

main:has(.ks_member_hero--profile) .section_img_title::after {
  order: -2;
  flex-basis: 100%;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--color-black, #111111);
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .section_img_title::after { content: "PROFILE"; }
main:has(.ks_member_hero--profile) .ks_profile_jobs .section_img_title::after { content: "JOBS"; }

/* 最後の「メンバー一覧へ」の行 */
main:has(.ks_member_hero--profile) .ks_profile_back_wrap {
  padding: 56px 0 96px;
}

@media only screen and (max-width: 640px) {
  main:has(.ks_member_hero--profile) .ks_profile_detail_block,
  main:has(.ks_member_hero--profile) .ks_profile_jobs {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_list {
    border-radius: 14px !important;
  }

  main:has(.ks_member_hero--profile) .section_img_title::after {
    font-size: 30px;
  }

  main:has(.ks_member_hero--profile) .ks_profile_back_wrap {
    padding: 40px 0 64px;
  }
}

/* ==========================================================================
   メンバー詳細: プロフィールを項目ごとの白いカードに (PC 2列 / スマホ 1列)
   ========================================================================== */
main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  overflow: visible;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item,
main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item:nth-child(odd),
main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item:nth-child(even) {
  display: block;
  margin: 0;
  padding: 24px 28px;
  background-color: #FFFFFF !important;
  border: none !important;
  border-radius: 16px;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0 0 10px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--theme-color-primary-config-custom, #ff8000);
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_heading::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 2px;
  background-color: var(--theme-color-primary-config-custom, #ff8000);
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_body {
  margin: 0;
  padding: 0 !important;
  background: transparent !important;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-black, #111111);
}

@media only screen and (max-width: 640px) {
  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item,
  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item:nth-child(odd),
  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item:nth-child(even) {
    padding: 18px 18px;
    border-radius: 12px;
  }

  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_body {
    font-size: 14px;
  }
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_heading {
  width: auto !important;
  position: static !important;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_heading::before {
  display: block !important;
  position: static !important;
  border-radius: 0 !important;
}

/* --- メンバー詳細プロフィール: 装飾 ---------------------------------------
   - 帯の右上に線だけの大きな英字「PROFILE」
   - 各カードの右上に線だけの番号 (01, 02 …)、左上に角のアクセント
   - ホバーで少し浮く
   ------------------------------------------------------------------------ */
main:has(.ks_member_hero--profile) .ks_profile_detail_block {
  position: relative;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block::before {
  content: "PROFILE";
  position: absolute;
  top: 40px;
  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.28);
  pointer-events: none;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block > * {
  position: relative;
  z-index: 1;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_list {
  counter-reset: ks_profile;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item {
  position: relative;
  overflow: hidden;
  counter-increment: ks_profile;
  -webkit-transition: transform 0.25s ease, box-shadow 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 右上の番号 */
main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item::after {
  content: counter(ks_profile, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 128, 0, 0.45);
  pointer-events: none;
}

/* 左上の角のアクセント */
main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--theme-color-primary-config-custom, #ff8000) 0 50%, transparent 50%);
  opacity: 0.9;
  pointer-events: none;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_heading {
  padding-right: 56px !important;
}

main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

@media only screen and (max-width: 640px) {
  main:has(.ks_member_hero--profile) .ks_profile_detail_block::before {
    top: 28px;
  }

  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item::after {
    font-size: 32px;
    top: 12px;
    right: 14px;
  }

  main:has(.ks_member_hero--profile) .ks_profile_detail_block .ks_profile_detail_item::before {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   マイページ (/mypage)
   - ベージュの背景 + 右上の線文字「MYPAGE」、二重の枠をやめる
   - 応募求人履歴・キープ求人は大きな白いカード (アイコン + 文字)
   - メニューは白い角丸カードの中に、細い線で区切った行
   ========================================================================== */
.other_section:has(.mypage_menu_list) {
  position: relative;
  overflow: hidden;
  background-color: #F8F5F1 !important;
}

.other_section:has(.mypage_menu_list)::before {
  content: "MYPAGE";
  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(.mypage_menu_list) > * {
  position: relative;
  z-index: 1;
}

.other_section:has(.mypage_menu_list) .common_w_box {
  max-width: 760px;
  padding: 0 !important;
  background: transparent !important;
}

.other_section:has(.mypage_menu_list) .common_form_wrap {
  padding: 0 !important;
  background: transparent !important;
}

/* 応募求人履歴・キープ求人: 大きな白いカード */
.other_section .mypage_btn_wrap {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px !important;
}

.other_section .mypage_btn_wrap .mypage_btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 132px;
  margin: 0 !important;
  padding: 24px !important;
  background: #FFFFFF !important;
  border: 1.5px solid transparent !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  -webkit-transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.other_section .mypage_btn_wrap .mypage_btn:hover {
  border-color: var(--theme-color-primary-config-custom, #ff8000) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08) !important;
}

.other_section .mypage_btn_wrap .mypage_btn .mypage_btn_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.other_section .mypage_btn_wrap .mypage_btn .mypage_btn_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 50%;
  background-color: #FFF4E6;
}

.other_section .mypage_btn_wrap .mypage_btn .mypage_btn_img img {
  width: 24px;
  height: 24px;
}

.other_section .mypage_btn_wrap .mypage_btn .mypage_btn_title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-black, #111111);
}

/* メニュー: 白い角丸カード */
.other_section .mypage_menu_list {
  margin: 0;
  padding: 8px 28px;
  background-color: #FFFFFF;
  border-radius: 20px;
  list-style: none;
}

.other_section .mypage_menu_list .mypage_menu_item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08) !important;
}

.other_section .mypage_menu_list .mypage_menu_item:last-child {
  border-bottom: none !important;
}

.other_section .mypage_menu_list .mypage_menu_item .mypage_menu_link {
  padding: 22px 36px 22px 4px !important;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}

.other_section .mypage_menu_list .mypage_menu_item .mypage_menu_link .mypage_menu_link_img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 14px;
  border-radius: 50%;
  background-color: #F8F5F1;
}

.other_section .mypage_menu_list .mypage_menu_item .mypage_menu_link .mypage_menu_link_img img {
  width: 16px;
}

.other_section .mypage_menu_list .mypage_menu_item .mypage_menu_link .mypage_menu_link_title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-black, #111111);
}

.other_section .mypage_menu_list .mypage_menu_item .mypage_menu_link:hover .mypage_menu_link_title {
  color: var(--theme-color-primary-config-custom, #ff8000);
}

/* 作成した履歴書を見る: 細枠のピル */
.other_section .mypage_menu_list .pdf_preview_btn {
  margin: 0 0 18px 54px;
}

@media only screen and (max-width: 640px) {
  .other_section .mypage_btn_wrap {
    gap: 10px;
  }

  .other_section .mypage_btn_wrap .mypage_btn {
    min-height: 112px;
    padding: 18px 10px !important;
    border-radius: 16px !important;
  }

  .other_section .mypage_btn_wrap .mypage_btn .mypage_btn_title {
    font-size: 14px;
  }

  .other_section .mypage_menu_list {
    padding: 4px 16px;
    border-radius: 16px;
  }

  .other_section .mypage_menu_list .mypage_menu_item .mypage_menu_link {
    padding: 18px 28px 18px 0 !important;
  }

  .other_section .mypage_menu_list .pdf_preview_btn {
    margin: 0 0 16px 50px;
  }
}

/* メニューは2つのボタンと同じ並びの中にあるので、横幅いっぱいに */
.other_section .mypage_btn_wrap > :not(.mypage_btn) {
  grid-column: 1 / -1;
}

.other_section .mypage_menu_list .pdf_preview_btn {
  width: auto;
  display: inline-flex;
  white-space: nowrap;
}
