/* ==========================================================================
   会員情報確認・変更 (/mypage/profiles)
   - ベージュの背景 + 右上の線文字「PROFILE」、二重の枠をやめて1枚の白いカード
   - 入力欄はベージュの角丸、必須はオレンジのピル
   - 希望職種のチェックボックスはピル型のボタン (選択中はオレンジ)
   - 変更ボタンはグラデーションのピル、戻るは白地 + オレンジ細枠
   ========================================================================== */
.other_section:has(.ks_profile) {
  position: relative;
  overflow: hidden;
  background-color: #F8F5F1 !important;
}

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

.other_section .common_w_box.ks_profile {
  max-width: 820px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.ks_profile > .common_form_wrap {
  padding: 52px 60px !important;
  background-color: #FFFFFF !important;
  border: none !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

/* 項目 */
.ks_profile .common_form_list .common_form_item {
  margin-bottom: 30px;
}

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

.ks_profile .common_form_list .common_form_item .common_form_title_area .common_form_title_required {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ks_profile .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_profile .common_form_required {
  margin: 0 !important;
  padding: 3px 10px !important;
  background: linear-gradient(to right, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000)) !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.4;
  color: #FFFFFF !important;
}

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

/* 入力欄: ベージュの角丸、入力中は白 + オレンジ枠 */
.ks_profile .common_input,
.ks_profile .common_select {
  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;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ks_profile .common_select {
  padding-right: 40px;
  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 16px center !important;
  background-size: 11px 7px !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

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

.ks_profile .common_form_block_address_select_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ks_profile .common_form_block_address_select {
  flex: 1 1 200px;
  max-width: 280px;
  margin: 0 !important;
}

.ks_profile .common_form_block_address_select .common_select {
  width: 100%;
}

.ks_profile .common_form_block_birthday_select_wrap {
  align-items: center;
}

.ks_profile .common_form_block_birthday_select {
  width: 100px;
}

.ks_profile .common_form_birthday_text {
  margin: 0 14px 0 8px;
  font-size: 14px;
}

/* 希望職種: ピル型のボタン */
.ks_profile .form_checkbox_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ks_profile .form_checkbox_wrap .checkbox_label {
  position: relative;
  display: inline-flex;
  margin: 0 !important;
  cursor: pointer;
}

.ks_profile .form_checkbox_wrap .checkbox_input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.ks_profile .form_checkbox_wrap .checkbox_text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px !important;
  background-color: #F8F5F1;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text, #414141);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* 元のチェック枠 (疑似要素) は使わず、選択中は文字の前にチェック */
.ks_profile .form_checkbox_wrap .checkbox_text::before,
.ks_profile .form_checkbox_wrap .checkbox_text::after {
  display: none !important;
}

.ks_profile .form_checkbox_wrap .checkbox_label:hover .checkbox_text {
  border-color: rgba(255, 128, 0, 0.45);
}

.ks_profile .form_checkbox_wrap .checkbox_input:focus-visible + .checkbox_text {
  outline: 2px solid var(--theme-color-primary-config-custom, #ff8000);
  outline-offset: 2px;
}

.ks_profile .form_checkbox_wrap .checkbox_input:checked + .checkbox_text {
  background-color: #FFF4E6;
  border-color: var(--theme-color-primary-config-custom, #ff8000);
  color: var(--theme-color-primary-config-custom, #ff8000);
  font-weight: 700;
}

.ks_profile .form_checkbox_wrap .checkbox_input:checked + .checkbox_text::before {
  content: "";
  display: inline-block !important;
  position: static !important;
  width: 12px;
  height: 7px;
  margin: -3px 0 0;
  border: none !important;
  border-left: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  background: none !important;
  transform: rotate(-45deg);
}

/* 変更ボタン: グラデーションのピル */
.ks_profile .common_form_submit_btn_wrap {
  margin: 44px 0 0;
}

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

.ks_profile .mypage_back_btn_wrap {
  margin: 20px 0 0 !important;
}

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

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

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

  .ks_profile .common_form_block_address_select {
    max-width: none;
  }

  .ks_profile .common_form_block_birthday_select {
    width: 84px;
  }

  .ks_profile .form_checkbox_wrap {
    gap: 8px;
  }

  .ks_profile .form_checkbox_wrap .checkbox_text {
    height: 40px;
    padding: 0 14px !important;
    font-size: 13px;
  }

  .ks_profile .common_form_submit_btn_wrap .common_form_submit_btn {
    height: 58px;
    font-size: 16px;
  }
}

/* ---------- 会員登録と同じ項目にしたときの追加パーツ ---------- */

/* リード文: 薄いオレンジの面 (会員登録と同じ) */
.ks_profile .ks_profile_lead {
  margin: 0 0 40px;
  padding: 20px 24px;
  background-color: #FFF4E6;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text, #414141);
}

/* 「基本情報」「詳細情報」の小見出し */
.ks_profile .ks_profile_group_title {
  position: relative;
  margin: 0 0 26px;
  padding: 0 0 14px 16px;
  border-bottom: 1px solid #EEE7DF;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-black, #111111);
}

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

.ks_profile .common_form_list + .ks_profile_group_title {
  margin-top: 48px;
}

/* 任意バッジ: グレーのピル */
.ks_profile .common_form_any {
  margin: 0 !important;
  padding: 3px 10px !important;
  background-color: #F1ECE6 !important;
  border: none !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.4;
  color: #8A8178 !important;
}

.ks_profile .common_form_textarea {
  width: 100%;
  height: 140px;
  padding: 16px 18px;
  background-color: #F8F5F1 !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  font-size: 15px;
  line-height: 1.8;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

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

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

.ks_profile .common_select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* メールアドレス (表示のみ) */
.ks_profile .ks_profile_readonly {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  min-height: 56px;
  padding: 10px 12px 10px 18px;
  background-color: #F8F5F1;
  border-radius: 12px;
  box-sizing: border-box;
}

.ks_profile .ks_profile_readonly_value {
  flex: 1 1 auto;
  font-size: 15px;
  word-break: break-all;
  color: var(--color-text, #414141);
}

.ks_profile .ks_profile_readonly_link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 18px;
  background-color: #FFFFFF;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ks_profile .ks_profile_readonly_link:hover {
  background-color: #FFF4E6;
}

@media only screen and (max-width: 640px) {
  .ks_profile .ks_profile_lead {
    margin: 0 0 28px;
    padding: 16px 18px;
    font-size: 14px;
  }

  .ks_profile .ks_profile_group_title {
    font-size: 17px;
  }

  .ks_profile .common_form_list + .ks_profile_group_title {
    margin-top: 36px;
  }
}

/* 年齢・郵便番号・生年月日は会員登録と同じ幅に */
.ks_profile .common_form_list .common_form_item .common_form_input_area .common_input.ks_form_age_input {
  width: 120px;
}

.ks_profile .common_form_list .common_form_item .common_form_input_area .common_input.ks_form_postal_input1 {
  width: 120px;
}

.ks_profile .common_form_list .common_form_item .common_form_input_area .common_input.ks_form_postal_input2 {
  width: 160px;
}

.ks_profile .common_form_list .common_form_item .common_form_input_area .common_input.ks_form_birthday_input {
  width: 240px;
}

@media only screen and (max-width: 640px) {
  .ks_profile .common_form_list .common_form_item .common_form_input_area .common_input.ks_form_postal_input1 {
    width: 90px;
  }

  .ks_profile .common_form_list .common_form_item .common_form_input_area .common_input.ks_form_postal_input2 {
    width: 120px;
  }

  .ks_profile .common_form_list .common_form_item .common_form_input_area .common_input.ks_form_birthday_input {
    width: 100%;
  }
}

/* ==========================================================================
   メールアドレス変更 (/mypage/emails)
   - 会員情報と同じ白いカード (.ks_profile を共用)、線文字は「EMAIL」
   - 現在のメールアドレスはベージュの面で表示
   ========================================================================== */
.other_section:has(.ks_mypage_email)::before {
  content: "EMAIL";
}

.ks_profile .mail_text.ks_email_current {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin: 0;
  padding: 10px 18px;
  background-color: #F8F5F1;
  border-radius: 12px;
  font-size: 15px;
  word-break: break-all;
  color: var(--color-text, #414141);
  box-sizing: border-box;
}

.ks_profile .mail_text.ks_form_note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--color-gray, #666666);
}

.ks_profile .mail_text.ks_form_note {
  font-weight: 400;
}

.ks_profile .mail_text.ks_email_current {
  font-weight: 500;
}

/* ==========================================================================
   パスワード変更 (/mypage/passwords) と各完了ページ
   - パスワード変更は会員情報と同じカード、線文字「PASSWORD」
   - 完了ページ (.ks_complete) は中央寄せ、上にオレンジの丸いチェックアイコン
   - 期限切れ (.ks_complete--error) はビックリマークのアイコン
   ========================================================================== */
.other_section:has(.ks_mypage_password)::before {
  content: "PASSWORD";
}

.other_section:has(.ks_mypage_resume_done)::before {
  content: "RESUME";
}

.ks_complete > .common_form_wrap {
  padding: 64px 60px 56px !important;
  text-align: center;
}

.ks_complete .change_title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-black, #111111);
}

.ks_complete .change_title::after {
  display: none;
}

.ks_complete .change_title::before {
  content: "";
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='26' viewBox='0 0 34 26'%3E%3Cpath d='M3 13.5l9.5 9.5L31 3' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px 24px no-repeat,
    linear-gradient(135deg, var(--theme-color-button-gradient-config-custom, #ffa64d), var(--theme-color-button-config-custom, #ff8000));
  box-shadow: 0 10px 24px rgba(255, 128, 0, 0.25);
}

.ks_complete.ks_complete--error .change_title::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='34' viewBox='0 0 8 34'%3E%3Cpath d='M4 4v16' stroke='%23ff8000' stroke-width='6' stroke-linecap='round'/%3E%3Ccircle cx='4' cy='30' r='3.5' fill='%23ff8000'/%3E%3C/svg%3E") center / 8px 34px no-repeat,
    #FFF4E6;
  box-shadow: none;
}

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

.ks_complete .pdf_btn_wrap {
  margin: 36px 0 0;
}

.ks_complete .pdf_btn_wrap .pdf_btn {
  max-width: 420px;
  height: 56px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border: 1px solid var(--theme-color-primary-config-custom, #ff8000) !important;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-color-primary-config-custom, #ff8000);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ks_complete .pdf_btn_wrap .pdf_btn:hover {
  background-color: #FFF4E6;
}

.ks_complete .mypage_back_btn_wrap {
  margin: 36px 0 0 !important;
}

.ks_complete .pdf_btn_wrap + .mypage_back_btn_wrap {
  margin-top: 16px !important;
}

@media only screen and (max-width: 640px) {
  .ks_complete > .common_form_wrap {
    padding: 44px 20px 36px !important;
  }

  .ks_complete .change_title {
    font-size: 18px;
  }

  .ks_complete .change_title::before {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .ks_complete .change_text {
    font-size: 14px;
  }
}

/* 「作成した履歴書を見る」などのボタンも「マイページトップへ戻る」と同じ枠・矢印に */
.ks_complete .pdf_btn_wrap .pdf_btn {
  border-width: 2px !important;
}

.ks_complete .pdf_btn_wrap .pdf_btn::after {
  right: 24px;
  width: 8px;
  height: 8px;
  background: none;
  border-top: 2px solid var(--theme-color-primary-config-custom, #ff8000);
  border-right: 2px solid var(--theme-color-primary-config-custom, #ff8000);
  transform: translateY(-50%) rotate(45deg);
}

/* ==========================================================================
   お問い合わせ (/contact) と送信完了
   - 会員情報と同じ白いカード (.ks_profile を共用)、線文字「CONTACT」
   ========================================================================== */
.other_section:has(.ks_contact)::before {
  content: "CONTACT";
}

.ks_contact .common_form_textarea {
  height: 200px;
}

.ks_contact .ks_form_submit_note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
  color: var(--color-gray, #666666);
}

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

/* 送信完了: 元の thanks_* の余白・線を完了ページの形にそろえる */
.ks_complete.ks_contact .thanks_title::after {
  display: none;
}

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

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