@charset "utf-8";

/* ==============================
CONTACT-CONTAINER
============================== */
.contact_container {
  font-family: var(--NotoSerif);
  font-size: 1.6rem;
  width: 100%;
  padding-top: 11rem;
  padding-bottom: 12.7rem;
}

/* ==============================
FORM
============================== */
.contact_form_content {
  display: flex;
  flex-direction: column;
  width: 118rem;
  margin: 0 auto;
}

/* ====== FORM-ITEM ====== */
.contact_form_item:first-child {
  padding-top: 0;
}

.contact_form_item {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 1.9rem;
  border-bottom: 0.1rem solid var(--white);
}

/* ====== FORM-LABEL&INPUT ====== */
.contact_required {
  position: absolute;
  color: #bd3325;
}

.contact_form_label {
  position: relative;
  max-width: 11.2rem;
  width: 100%;
  color: var(--white);
  line-height: calc(23 / 16);
}

.contact_form_input {
  font-size: 1.6rem;
  font-family: var(--NotoSerif);
  max-width: 97.1rem;
  min-width: 97.1rem;
  width: 100%;
  line-height: calc(23 / 16);
  padding: 1.6rem 2rem 1.5rem;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

/* ====== TEXTAREA-STYLE ====== */
.contact_form_item:nth-last-child(1 of .contact_form_item) {
  align-items: flex-start;
}

.contact_form_item:nth-last-child(1 of .contact_form_item) .wpcf7-form-control-wrap {
  height: 28rem;
}

.contact_form_item:nth-last-child(1 of .contact_form_item) .contact_form_label {
  padding-top: 1.766rem;
}

.contact_form_textarea {
  max-height: 28rem;
  height: 100%;
  line-height: calc(26 / 16);
}

/* ====== TEXTAREA-SCROLLBAR ====== */
.contact_form_textarea::-webkit-scrollbar {
  width: 2.4rem;
  height: 26rem;
}

.contact_form_textarea::-webkit-scrollbar-thumb {
  background: #000000;
  border-right: 0.95rem solid transparent;
  border-left: 0.95rem solid transparent;
  background-clip: padding-box;
}

.contact_form_textarea::-webkit-scrollbar-track {
  margin-top: 0.967rem;
  margin-bottom: 1.033rem;
  background-color: #EBEBEB;
  border-right: 0.95rem solid transparent;
  border-left: 0.95rem solid transparent;
  background-clip: padding-box;
}

/* ====== FORM-BTN ====== */
.contact_btn_container {
  width: 21rem;
  margin: 7rem auto 0 47.5rem;
}

.contact_form_submit {
  font-size: 1.6rem;
  font-family: var(--NotoSerif);
  color: var(--white);
  cursor: pointer;
  width: 100%;
  text-align: left;
  line-height: calc(23 / 16);
  padding-bottom: 1rem;
  background: none;
  border: none;

  /* 1つ目の影を隠す */
  color: transparent;
  /* テキスト本体は透明にする */
  /*
   影の設定
   1つ目：Y方向の位置にマイナスに設定してテキスト本体の上に配置、ぼかしなし
   2つ目：位置はテキスト本体と同じ、ぼかしなし
  */
  text-shadow: 0 -1.8em 0 var(--white), 0 0 0 var(--white);
  transition: text-shadow 0.3s;
}

.contact_form_submit:hover,
.contact_form_submit:focus {
  text-shadow: 0 0 0 var(--white), 0 2em 0 var(--white);
  /* 2つの影の位置を上方向に2emずつずらす */
}

.wpcf7-spinner {
  display: none;
}

/* ====== FORM-BTN-ARROW ====== */
.btn_bottom_arrow {
  display: block;
  width: 21rem;
  height: 0.1rem;
  background-color: var(--white);
  position: relative;
}

.btn_bottom_arrow::after {
  content: "";
  position: absolute;
  width: 1.2rem;
  height: 0.1rem;
  background-color: var(--white);
  top: calc(50% - 0.5rem);
  right: 0;
  transform: rotate(30deg);
  transform-origin: calc(100% - 0.8rem) 50%;
}

.btn_bottom_arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: 5rem;
  height: 5rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: #B9A019;
  z-index: -1;
}

/* ====== 見入力エラー時のスタイル ====== */
.wpcf7-form-control-wrap:has(.is_errortext) {
  display: flex;
  flex-direction: column;
}

.is_errortext {
  color: #bd3325;
}

.wpcf7-not-valid-tip {
  display: none;
}

.wpcf7-response-output {
  display: none;
}

/* ==============================
CONFIRM
============================== */
.contact_confirm_content {
  display: none;
  flex-direction: column;
  gap: unset;
  width: 118rem;
  margin: 0 auto;
}

.confirm_flex {
  display: flex;
}

/* ======= CONFIRM-ITEMS ======= */
.contact_confirm_item {
  justify-content: unset;
  gap: 9.75rem;
  padding-bottom: 3.3rem;
}

.contact_confirm_item {
  padding-top: 3.6rem;
}

.contact_confirm_item:first-child {
  padding-top: 0;
}

.en_confirm .contact_confirm_item:nth-child(n + 4):nth-child(-n + 6) {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.en_confirm .contact_confirm_item:nth-child(4) {
  padding-bottom: 2.2rem;
}

/* ======= CONFIRM-LABEL&INPUT ======= */
.contact_confirm_item>.contact_form_label {
  padding-top: 0 !important;
  line-height: calc(24.5 / 16);
}

.contact_confirm_value {
  color: var(--white);
}

.qcj-confirm-your_message {
  white-space: pre-wrap;
  line-height: calc(26 / 16);
}

/* ==============================
CONFIRM-BTN 
============================== */
.btn_flex {
  display: flex;
  justify-content: center;
  gap: 20rem;
  margin-top: 7rem;
}

.btn_flex .contact_btn_container {
  margin: 0;
}

.btn_flex .contact_form_submit {
  padding-bottom: 1.3rem;
}

.confirm_back_btn .contact_form_submit {
  text-align: right;
}

.confirm_back_btn .btn_bottom_arrow::before {
  left: -10%;
  right: 0;
}

.confirm_back_btn .btn_bottom_arrow::after {
  top: -0.2rem;
  left: -0.03rem;
  transform: rotate(-30deg);
}

.wpcf7-response-output {
  color: var(--white);
}

@media screen and (max-width:699.98px) {

  /* ==============================
  CONTACT-CONTAINER
  ============================== */
  .contact_container {
    padding-top: 6rem;
    padding-bottom: 10.5rem;
  }

  /* ==============================
  FORM
  ============================== */
  .contact_form_content {
    width: 31.5rem;
    margin: 0 auto;
  }

  /* ====== FORM-ITEM ====== */
  .contact_form_item {
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    padding-top: 2.5rem;
  }

  /* ====== FORM-LABEL&INPUT ====== */
  .contact_form_label {
    max-width: unset;
  }

  .contact_form_input {
    min-width: unset;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1.1rem;
  }

  /* ====== TEXTAREA-STYLE ====== */
  .contact_form_item:nth-last-child(1 of .contact_form_item) .contact_form_label {
    padding: 0;
  }

  .contact_form_item:nth-last-child(1 of .contact_form_item) .wpcf7-form-control-wrap {
    height: 26.3rem;
  }

  .contact_form_textarea::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  /* ====== FORM-BTN ====== */
  .contact_btn_container {
    width: 21rem;
    margin: 3rem auto 0 4.2rem;
  }

  /* ==============================
  CONFIRM
  ============================== */
  .contact_confirm_content {
    width: 31.5rem;
  }

  .contact_confirm_item {
    gap: 1.5rem;
    padding: 2.25rem 0;
  }

  .contact_confirm_item>.contact_form_label {
    line-height: calc(26 / 18);
  }

  .confirm_label {
    font-size: 1.8rem;
  }

  /* ==============================
  CONFIRM-BTN 
  ============================== */
  .btn_flex .contact_form_submit {
    padding-bottom: 1.1rem;
  }

  .btn_flex {
    align-items: center;
    gap: 5rem;
    margin-top: 7rem;
  }

  .btn_flex .contact_btn_container {
    margin: 0;
  }

  .btn_flex .btn_bottom_arrow{
    width: 100%;
  }

}