@charset "UTF-8";
/* ======================================================================
 p-contact
====================================================================== */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
  display: none;
}

/**
 * error message
 */
.mw_wp_form .error {
  display: block;
  color: #b70000;
  font-size: 93%;
}

/**
 * error message of akismet
 */
.mw_wp_form .akismet_error {
  display: block;
}

/**
 * vertical style of radio and checkbox
 */
.mw_wp_form .vertical-item {
  display: block;
}

.mw_wp_form .vertical-item + .vertical-item {
  margin-top: 5px;
}

/**
 * horizontal style of radio and checkbox
 */
.mw_wp_form .horizontal-item + .horizontal-item {
  margin-left: 10px;
}

/**
 * radio and checkbox
 */
.mwform-checkbox-field label,
.mwform-radio-field label {
  margin-bottom: 0;
  font-weight: normal;
}

.mwform-checkbox-field input,
.mwform-radio-field input {
  margin-right: 5px;
}

/**
 * datepicker
 */
.mw_wp_form .ui-datepicker .ui-datepicker-title select.ui-datepicker-month,
.mw_wp_form .ui-datepicker .ui-datepicker-title select.ui-datepicker-year {
  margin: 0 5px;
  width: 40%;
}

/**
 * deprecated message
 */
.mw-wp-form-deprecated-message {
  margin: 0 0 5px;
  padding: 5px;
  border: #b40404 solid 2px;
  border-radius: 5px;
  background: #f5a9a9;
  font-size: 10px;
  line-height: 1.6;
}

/**
 * file
 */
.mw_wp_form input[type=file] {
  display: inline-block;
}

/**
 * file delete button
 */
.mwform-file-delete {
  visibility: hidden;
  cursor: pointer;
}

/**
 * tel and zip
 */
.mwform-tel-field input[type=text],
.mwform-zip-field input[type=text] {
  display: inline-block;
  width: auto;
}

.mw_wp_form .error {
  display: inline-block !important;
}

/* ======================================================================
 p-contact (CF7 form section / include/p-contact.php で使用)
====================================================================== */
.p-contact {
  position: relative;
  padding: 60px 15px;
  background-color: #CE9A37;
  color: #fff;
}
.p-contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("../img/p-contact/bg_contact.svg");
  background-repeat: repeat;
  background-size: 181px 180px;
  opacity: 0.2;
  pointer-events: none;
}
@media screen and (min-width: 1025px) {
  .p-contact {
    padding: 96px 0 100px;
  }
}

.p-contact__inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 600px;
}

.p-contact__title {
  margin-bottom: 24px;
  color: #fff;
  font-family: "Noto Serif JP", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", YuMincho, "ＭＳ Ｐ明朝", "MS PMincho", serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}
@media screen and (min-width: 1025px) {
  .p-contact__title {
    margin-bottom: 20px;
    font-size: 40px;
  }
}

.p-contact__lead {
  margin-bottom: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  font-family: var(--font-goth);
}
@media screen and (min-width: 1025px) {
  .p-contact__lead {
    margin-bottom: 36px;
    font-size: 16px;
  }
}

/* ----------------------------------------------------------------------
 Contact Form 7 — 管理画面テンプレ構造（.form-row / .form-submit）に合わせる
---------------------------------------------------------------------- */
.p-contact .wpcf7-form {
  width: 100%;
}

.p-contact .form-row {
  margin-bottom: 20px;
}
@media screen and (min-width: 1025px) {
  .p-contact .form-row {
    margin-bottom: 28px;
  }
}
.p-contact .form-row > label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-goth);
  font-weight: var(--font-medium);
  line-height: 1.5;
}
@media screen and (min-width: 1025px) {
  .p-contact .form-row > label {
    font-size: 16px;
  }
}
.p-contact .form-row .required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 17px;
  margin-left: 8px;
  border-radius: 2px;
  background-color: #960100;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
@media screen and (min-width: 1025px) {
  .p-contact .form-row .required {
    width: 44px;
    height: 21px;
    font-size: 12px;
  }
}

/* CF7 が input を <span class="wpcf7-form-control-wrap"> で包む */
.p-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p-contact input[type=text],
.p-contact input[type=email],
.p-contact input[type=tel],
.p-contact textarea {
  display: block;
  padding: 8px 16px;
  width: 100%;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  color: #000;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック", YuGothic, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  box-sizing: border-box;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.p-contact input[type=text]:-moz-placeholder, .p-contact input[type=email]:-moz-placeholder, .p-contact input[type=tel]:-moz-placeholder, .p-contact textarea:-moz-placeholder {
  color: #aaa;
}
.p-contact input[type=text]:placeholder-shown,
.p-contact input[type=email]:placeholder-shown,
.p-contact input[type=tel]:placeholder-shown,
.p-contact textarea:placeholder-shown {
  color: #aaa;
}
.p-contact input[type=text]::-webkit-input-placeholder,
.p-contact input[type=email]::-webkit-input-placeholder,
.p-contact input[type=tel]::-webkit-input-placeholder,
.p-contact textarea::-webkit-input-placeholder {
  color: #aaa;
}
.p-contact input[type=text]:-moz-placeholder,
.p-contact input[type=email]:-moz-placeholder,
.p-contact input[type=tel]:-moz-placeholder,
.p-contact textarea:-moz-placeholder {
  color: #aaa;
  opacity: 1;
}
.p-contact input[type=text]::-moz-placeholder,
.p-contact input[type=email]::-moz-placeholder,
.p-contact input[type=tel]::-moz-placeholder,
.p-contact textarea::-moz-placeholder {
  color: #aaa;
  opacity: 1;
}
.p-contact input[type=text]:-ms-input-placeholder,
.p-contact input[type=email]:-ms-input-placeholder,
.p-contact input[type=tel]:-ms-input-placeholder,
.p-contact textarea:-ms-input-placeholder {
  color: #aaa;
}
.p-contact input[type=text]:focus,
.p-contact input[type=email]:focus,
.p-contact input[type=tel]:focus,
.p-contact textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

/* 各フィールド個別の幅 */
.p-contact #your-name {
  max-width: 238px;
}
@media screen and (min-width: 1025px) {
  .p-contact #your-name {
    max-width: 300px;
  }
}

.p-contact #your-company,
.p-contact #your-email,
.p-contact #your-message {
  max-width: 345px;
}
@media screen and (min-width: 1025px) {
  .p-contact #your-company,
  .p-contact #your-email,
  .p-contact #your-message {
    max-width: 600px;
  }
}

.p-contact #your-tel {
  max-width: 173px;
}
@media screen and (min-width: 1025px) {
  .p-contact #your-tel {
    max-width: 200px;
  }
}

.p-contact textarea {
  height: 140px;
  resize: vertical;
}
@media screen and (min-width: 1025px) {
  .p-contact textarea {
    height: 160px;
  }
}

/* ----------------------------------------------------------------------
 submit
---------------------------------------------------------------------- */
.p-contact .form-submit {
  margin-top: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 315px;
  height: 60px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  background: linear-gradient(180deg, #960100 0%, #7C0000 100%);
}
@media screen and (min-width: 1025px) {
  .p-contact .form-submit {
    margin-top: 60px;
    max-width: 460px;
    height: 80px;
  }
}
.p-contact .form-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #810000 0%, #570000 100%);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@media (hover: hover) {
  .p-contact .form-submit:hover::before {
    opacity: 1;
  }
}

.p-contact input[type=submit],
.p-contact .wpcf7-submit,
.p-contact__btn {
  display: inline-block;
  padding: 0 40px;
  width: 100%;
  max-width: 315px;
  height: 60px;
  line-height: 60px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #960100 0%, #7C0000 100%);
  color: #fff;
  font-family: "Noto Serif JP", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "游明朝", YuMincho, "ＭＳ Ｐ明朝", "MS PMincho", serif;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  box-sizing: border-box;
}
.p-contact input[type=submit]:link, .p-contact input[type=submit]:visited,
.p-contact .wpcf7-submit:link,
.p-contact .wpcf7-submit:visited,
.p-contact__btn:link,
.p-contact__btn:visited {
  color: #fff;
}
@media screen and (min-width: 1025px) {
  .p-contact input[type=submit],
  .p-contact .wpcf7-submit,
  .p-contact__btn {
    max-width: 460px;
    height: 80px;
    line-height: 80px;
  }
}
@media (hover: hover) {
  .p-contact input[type=submit]:hover,
  .p-contact .wpcf7-submit:hover,
  .p-contact__btn:hover {
    background: linear-gradient(180deg, #810000 0%, #570000 100%);
    color: #fff;
  }
}
.p-contact input[type=submit]:disabled,
.p-contact .wpcf7-submit:disabled,
.p-contact__btn:disabled {
  background: #888;
  cursor: not-allowed;
}

.p-contact .form-submit input[type=submit],
.p-contact .form-submit .wpcf7-submit {
  position: relative;
  z-index: 1;
  display: block;
  max-width: none;
  background: transparent;
  border-radius: inherit;
  transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@media (hover: hover) {
  .p-contact .form-submit input[type=submit]:hover,
  .p-contact .form-submit .wpcf7-submit:hover {
    background: transparent;
  }
}
.p-contact .form-submit input[type=submit]:disabled,
.p-contact .form-submit .wpcf7-submit:disabled {
  background: transparent;
}

.p-contact .form-submit:has(input[type=submit]:disabled),
.p-contact .form-submit:has(.wpcf7-submit:disabled) {
  background: #888;
}
.p-contact .form-submit:has(input[type=submit]:disabled)::before,
.p-contact .form-submit:has(.wpcf7-submit:disabled)::before {
  opacity: 0;
}

/* CF7 送信中スピナー（完了ページへ遷移するため非表示） */
.p-contact .wpcf7-spinner {
  display: none;
}

/* ----------------------------------------------------------------------
 validation / response
---------------------------------------------------------------------- */
.p-contact .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #960100;
  font-size: 13px;
}

.p-contact .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid #fff;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.p-contact .wpcf7 form.invalid .wpcf7-response-output,
.p-contact .wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #960100;
  color: #960100;
}

.p-contact .wpcf7 form.sent .wpcf7-response-output {
  border-color: #c8a96a;
  color: #c8a96a;
}

/* ======================================================================
 完了ページ（page-complete.php）でのオーバーライド
====================================================================== */
#p-complete .p-contact {
  text-align: center;
}
#p-complete .p-contact__inner {
  max-width: 750px;
}
#p-complete .p-contact__title,
#p-complete .p-contact__lead {
  margin-bottom: 30px;
}
#p-complete .p-contact__lead + p {
  margin-bottom: 0;
  font-size: 14px;
}
@media screen and (min-width: 1025px) {
  #p-complete .p-contact__lead + p {
    font-size: 16px;
  }
}
#p-complete .p-contact__btn {
  margin-top: 30px;
}
@media screen and (min-width: 1025px) {
  #p-complete .p-contact__btn {
    margin-top: 60px;
  }
}