.bg_stage.is_company_top {
  position: absolute;
  top: -224px;
  right: -40px;
  left: auto;
  width: 1160px;
  pointer-events: none;
  z-index: 0;

  @media screen and (min-width: 1921px) {
    right: 9%;
    transform: translateX(0%) !important;
  }

  @media screen and (max-width: 1920px) {
    width: 60.41vw;
    top: -11.66vw;
    right: -2.08vw;
  }

  @media screen and (max-width: 1439px) {
    top: -10vw;
  }

  @media screen and (max-width: 1023px) {
    width: 80vw;
    top: 80vw;
    right: -5vw;
  }

  @media screen and (max-width: 767px) {
    width: 90vw;
    top: 12vw;
    right: -8vw;
  }

}

.contact_header {
  padding-top: 27.6rem;
  padding-bottom: 4rem;
  max-width: 1200px;
  width: calc(100% - 8rem);
  margin: 0 auto;

  @media screen and (max-width: 1439px) {
    padding-top: 18rem;
    width: calc(100% - 8rem);
  }

  @media screen and (max-width: 1023px) {
    padding-top: 16rem;
  }

  @media screen and (max-width: 767px) {
    padding-top: 12rem;
    padding-bottom: 0rem;
    width: calc(100% - 4rem);
  }
}

.contact_page_ttl {
  font-size: clamp(3.2rem, 3.333vw, 6.4rem);
  font-weight: bold;
  color: #2B2D33;
  margin-bottom: 14rem;
  line-height: 1.5;

  @media screen and (max-width: 1439px) {
    margin-bottom: 10rem;
    width: calc(100% - 8rem);
    margin-right: auto;
    margin-left: auto;
  }

  @media screen and (max-width: 1023px) {
    margin-bottom: 8rem;
  }

  @media screen and (max-width: 767px) {
    font-size: 2.8rem;
    width: 100%;
    margin-bottom: 4rem;
  }
}

.c_breadcrumb {
  padding-top: 0;
  padding-bottom: 0;

  @media screen and (max-width: 767px) {
    margin-bottom: 2rem;
  }
}

.contact_inner {
  background-color: #ffffff;
  border-radius: 10rem;
  padding: 12rem 4rem 12rem;
  max-width: 1600px;
  width: calc(100% - 16rem);
  margin: 0 auto 16rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 10;

  @media screen and (max-width: 1439px) {
    width: calc(100% - 8rem);
  }

  @media screen and (max-width: 1023px) {
    border-radius: 4.8rem;
    padding: 4.8rem 4rem;
    width: calc(100% - 4rem);
  }

  @media screen and (max-width: 767px) {
    padding: 4.8rem 2rem 4rem;
    margin-bottom: 8rem;
  }
}

.form_container {
  max-width: 1200px;
  margin: 0 auto;
}

/*  */




/* ==============================================
   お問い合わせフォーム（内容入力）専用デザイン
============================================== */

/* --- リード文 --- */
.p_contact_lead {
  margin-bottom: 8rem;
  line-height: 1.8;
  font-weight: 500;
}

.p_contact_lead_note {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.c_req_badge {
  background-color: #D42424;
  color: #ffffff;
  font-size: 1.6rem;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
  line-height: normal;
}

/* --- ステップバー --- */
.p_contact_step {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 8rem;
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #EAF2FF;
    z-index: 0;
  }
}

.p_contact_step_item {
  flex: 1;
  text-align: center;
  background-color: #EAF2FF;
  padding: 2.4rem 0;
  font-size: 2rem;
  font-weight: 500;
  z-index: 1;
  position: relative;
  border-radius: 8px;
}

.p_contact_step_item.is_active {
  background-color: #1E40AF;
  color: #ffffff;
  font-weight: bold;
}

/* --- フォームレイアウトのオーバーライド（縦並び化） --- */
.form_container form .row {
  display: block;
  margin-bottom: 4rem !important;
}

.form_container form .col-3,
.form_container form .col {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ラベルエリア（上部） */
.form_container form .col-3 {
  margin-bottom: 1rem;
}

.form_container form label {
  font-size: 2rem;
  color: #2B2D33;
  display: flex;
  align-items: center;
  font-weight: 500;
}

/* --- JSで出力される「(必須)」テキストを赤いバッジに変換 --- */
.form_container form .required {
  font-size: 0;
  margin-left: 1rem;
}

.form_container form .required::before {
  content: "必須";
  background-color: #D42424;
  color: #ffffff;
  font-size: 1.6rem;
  padding: 0.4rem 0.4rem;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

/* --- 入力フィールド（input / textarea） --- */
.form_container form .form-control {
  background-color: #EAF2FF;
  border: none;
  border-radius: 4px;
  padding: 1.6rem 2.4rem;
  font-size: 1.6rem;
  color: #2B2D33;
  width: 100%;
}

.form_container form textarea.form-control {
  min-height: 240px;
  resize: vertical;
}

.form_container form .form-control:focus {
  outline: 2px solid #1E40AF;
  box-shadow: none;
}

/* --- 入力例（プレイスホルダー的な補足テキスト） --- */
.form_container form .input-group {
  display: block;
}

.form_container form .input-group-text {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 1.4rem;
  color: #667080;
  text-align: left;
  font-weight: 500;
}

/* ==============================================
   プライバシーポリシーエリア
============================================== */
#item_privacy-policy {
  margin-top: 4rem !important;
}

#item_privacy-policy .text-center {
  border: 1px solid #C3CEDE;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 4px;
  margin-bottom: 4rem;
  text-align: left;
  font-size: 1.6rem;
  line-height: 1.8;
  font-weight: 500;
}

#item_privacy-policy .text-center a {
  color: #1E40AF;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#item_privacy-policy .text-center a:hover {
  text-decoration: none;
}

#item_privacy-policy ul {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0 0 8rem !important;
}

#item_privacy-policy .form-check {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 0;
}

#item_privacy-policy .required {
  margin-left: 0;
}

#item_privacy-policy .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1px solid #C3CEDE;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

#item_privacy-policy .form-check-input:checked {
  background-color: #1E40AF;
  /* バッジと同じ赤色に合わせる場合はこちら（青なら #1E40AF に変更） */
  border-color: #1E40AF;
}

#item_privacy-policy .form-check-input:checked::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 10px;
  width: 6px;
  height: 12px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

#item_privacy-policy .form-check-label {
  font-size: 2rem;
  cursor: pointer;
  font-weight: 500;
}


/* --- 送信ボタン --- */
.p-3 {
  display: grid;
  justify-content: center;
}

.p-3 .c_btn {
  min-width: 400px;
}

/* ==============================================
   エラーメッセージ
============================================== */
.d-none,
.l_cta {
  display: none;
}

.error ul {
  margin-bottom: 2rem;
}

.error li {
  color: #D32F2F;
  background-color: #FDE0DC;
  padding: 1rem 1.6rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.error_text {
  color: #D32F2F;
  background-color: #FDE0DC;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 1.3rem;
  width: 100%;
}


/* ==============================================
   レスポンシブ対応（タブレット・スマホ）
============================================== */
@media screen and (max-width: 1023px) {
  .p_contact_lead {
    margin-bottom: 6rem;
  }
}

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


  /* ステップバー */
  .p_contact_step {
    gap: 0.8rem;
    margin-bottom: 4.8rem;
  }

  .p_contact_step_item {
    font-size: 1.2rem;
    padding: 1.2rem 0;
    border-radius: 4px;
  }

  /* 入力フォーム周り */
  .p_contact_lead {
    margin-bottom: 4rem;
    font-size: 1.4rem;
  }

  .p_contact_lead_note {
    display: inline-block;
  }

  .form_container form .required::before,
  .c_req_badge {
    font-size: 1.2rem;
  }

  .form_container form .row {
    margin-bottom: 3.2rem !important;
  }

  .form_container form label {
    font-size: 1.6rem;
  }

  .form_container form .form-control {
    padding: 1.2rem 1.6rem;
    font-size: 1.6rem;
  }

  .form_container form textarea.form-control {
    min-height: 180px;
  }

  /* プライバシーポリシーエリア */
  #item_privacy-policy .text-center {
    padding: 1.4rem;
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }

  #item_privacy-policy ul {
    margin-bottom: 2.4rem !important;
  }

  #item_privacy-policy .form-check {
    gap: 0.8rem;
  }

  #item_privacy-policy .form-check-label {
    font-size: 1.4rem;
  }

  #item_privacy-policy .form-check-input {
    width: 24px;
    height: 24px;
  }

  #item_privacy-policy .form-check-input:checked::after {
    top: 3px;
    left: 8px;
  }

  /* 送信ボタン（スマホでは横幅いっぱい） */
  .p-3 {
    display: block;
  }

  .p-3 .c_btn {
    min-width: 100%;

  }
}


/* ==============================================
   確認画面（内容確認）
============================================== */
.p_contact_check_lead {
  font-size: 3.2rem;
  font-weight: bold;
  color: #1E40AF;
  text-align: left;
  margin-bottom: 8rem;
}


/* 横並びを解除して縦並びに */
.form_container_check .row {
  display: block !important;
  margin-bottom: 4.8rem !important;
}

.p_contact_check_label {
  width: 100%;
  margin-bottom: 2rem;
  padding: 0;
}

.p_contact_check_value {
  width: 100%;
  padding: 0;

  ul {
    font-size: 2rem;
  }
}

.p_contact_check_label label {
  font-size: 1.6rem;
  font-weight: bold;
  color: #2B2D33;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* 入力値のテキスト */
.p_contact_check_value p {
  font-size: 2rem;
  line-height: 1.8;
  color: #2B2D33;
  margin: 0;
}

/* --- ボタンエリア（破線と2つ並び） --- */
.p_contact_submit_wrap.is_check {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1203' height='3' viewBox='0 0 1203 3'%3E%3Cline id='border' x2='1200' transform='translate(1.5 1.5)' fill='none' stroke='%23c3cede' stroke-linecap='round' stroke-width='3' stroke-dasharray='1 8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: top left;
  padding-top: 6.4rem;
  margin-top: 8rem;
  display: flex;
  justify-content: center;
  gap: 2.4rem;
}

.p_contact_submit_wrap.is_check .c_btn ,  .c_btn.is_back {
  text-align: center;
  justify-content: center;
}

/* ==============================================
   戻るボタン（.is_back） アニメーション＆レイアウト
============================================== */


.c_btn.is_back .c_btn_icon {
  right: auto;
  left: 24px;
}

.c_btn.is_back .c_btn_icon_1 {
  transform: translateX(0);
}

.c_btn.is_back .c_btn_icon_2 {
  transform: translateX(80px);
}

.c_btn.is_back:hover .c_btn_icon_1 {
  transform: translateX(-80px) !important;
  transition: all 0.8s ease-in-out !important;
}

.c_btn.is_back:hover .c_btn_icon_2 {
  transform: translateX(0) !important;
  transition: all 0.8s ease-in-out !important;
}

@media screen and (max-width: 767px) {
  .c_btn.is_back {
    padding-left: 4.8rem;
  }
}

/* ==============================================
   レスポンシブ対応（確認画面）
============================================== */
@media screen and (max-width: 767px) {
  .p_contact_check_lead {
    font-size: 1.8rem;
    margin-bottom: 4rem;
  }
  .p_contact_check_label {
    margin-bottom: 1rem;
  }
  .p_contact_check_value p {
    font-size: 1.6rem;
  }
.p_contact_check_value ul {
    font-size: 1.6rem;
  }
  .form_container_check .row {
    margin-bottom: 3.2rem !important;
  }

  .p_contact_submit_wrap.is_check {
    flex-direction: column-reverse;
    /* スマホ時は「戻る」が下 */
    gap: 1.6rem;
    padding-top: 4.8rem;
    margin-top: 4.8rem;
  }

  .p_contact_submit_wrap.is_check .c_btn {
    min-width: 100%;
    width: 100%;
  }
}


/* 完了　エラー */
.p_contact_complete_ttl {
    font-size: 3.2rem;
  font-weight: bold;
  color: #1E40AF;
  text-align: left;
  margin-bottom: 4.8rem;
}

.p_contact_complete_txt {
  font-size: 1.6rem;
  line-height: 1.8;
}

.p_contact_submit_wrap.is_complete {
  margin-top:8rem ;
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 767px) {
  .p_contact_complete_ttl {
    font-size: 1.8rem;
    margin-bottom: 4rem;
  }

  .p_contact_complete_txt {
    font-size: 1.4rem;
  }

  .p_contact_submit_wrap.is_complete {
    flex-direction: column;
    gap: 1.6rem;
    margin-top: 4.8rem;
  }

  .p_contact_submit_wrap.is_complete .c_btn {
    min-width: 100%;
    width: 100%;
  }
}