@charset "UTF-8";

/* contact.css — お問い合わせフォーム専用 */

.page-contact .contact-form .lead-text {
  display: block;
  flex-direction: unset;
}

.page-contact .privacy-main .privacy-title {
  margin-top: 0;
}

.page-contact .privacy-check input.check {
  background: transparent;
  background-color: transparent;
}

.page-contact .privacy-check label {
  background: transparent;
  background-color: transparent;
}

.contact-form-submit-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  border: none;
}

/* disabled 時は親ボタンのホバーアニメーションを無効化 */
.page-contact .submit-button:has(.contact-form-submit-btn:disabled) {
  pointer-events: none;
  cursor: not-allowed;
}

.page-contact .submit-button:has(.contact-form-submit-btn:disabled):hover {
  border: none;
  background-color: #1a3209;
  transition: none;
}

.page-contact
  .submit-button:has(.contact-form-submit-btn:disabled):hover::before {
  transform: scale(0, 1);
  opacity: 1;
}

.page-contact
  .submit-button:has(.contact-form-submit-btn:disabled):hover
  input {
  color: #fff;
  transition: none;
}

.contact-form .error {
  font-size: 93%;
  color: #b70000;
  display: block;
  scroll-margin-top: 15rem;
}

.contact-form .error-bg input,
.contact-form .error-bg textarea {
  background-color: #fff5f5;
  border-color: #db000f;
}

.contact-form--confirm .lead-text,
.contact-form--confirm .privacy-head,
.contact-form--confirm .privacy-main,
.contact-form--confirm .privacy-check {
  display: none;
}

.contact-form--confirm .form-input {
  border: none;
  padding: 0 8px;
  height: auto;
  min-height: 36px;
}

.contact-form--confirm .form-input--textarea {
  height: auto;
  min-height: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-form .contact-form-back-btn {
  color: #1a3209;
  background: transparent;
  border: none;
  font-size: inherit;
  font-family: inherit;
  width: 100%;
  height: 100%;
  cursor: pointer;
  padding: 0;
  transition: color 0.6s ease-in-out;
}

/* 確認画面「修正する」（button）— submit-button2 ホバー相当（緑背景・白文字・白矢印） */
.page-contact .submit-button2:has(.contact-form-back-btn):hover {
  border: 1px solid #1a3209;
  background-color: #1a3209;
  background-image: url(../../img/contact/next_arrow.png);
  transition: background-color 0s 0.6s;
}

.page-contact .submit-button2:hover .contact-form-back-btn {
  color: #fff;
  transition: color 0.2s 0.1s ease-in-out;
}

.page-contact.contact-error .contact-current-text {
  width: 266px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-contact.contact-error .contact-current-text .step:nth-child(2) {
  margin-right: 84px;
}

.page-contact.contact-error .contact-current-text .step:first-child {
  margin-right: 92px;
}

.page-contact.contact-error .contact-text--error {
  text-align: center;
}

.page-contact.contact-error .contact-text--error a {
  color: currentColor;
  text-decoration: underline;
}

.page-contact.contact-error .submit-button2 a,
.page-contact.contact-thanks .submit-button2 a {
  color: #1a3209;
  transition: color 0.6s ease-in-out;
}

.page-contact.contact-error .submit-button2:hover a,
.page-contact.contact-thanks .submit-button2:hover a {
  color: #fff;
  transition: color 0.2s 0.1s ease-in-out;
}

.page-contact .privacy-check label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

input[type="checkbox"].agree-check + span,
.page-contact .privacy-check label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-contact.page-contact .form-input:last-of-type {
  height: auto;
}
