main {
  background-color: #f3f3f3;
}

#loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}

#loading .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  height: fit-content;
  font-size: 20px;
  animation: blinking .5s ease-in-out infinite alternate;
}

@keyframes blinking {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.contact  {
  padding: 200px 20px 60px;
}

.contact .inner_960 {
  padding: 55px 100px 90px;
  background-color: #FFF;
}

.contact h1 {
  margin-bottom: 2em;
  font-size: 24px;
  text-align: center;
}

.contact p {
  margin: 0 0 3em;
}

.contact p.text_center {
  text-align: center;
}

.contact p span.required,
.contact label span.required {
  color: #ff0000;
}

.contact p a {
  color: #00a9d2;
  text-decoration: underline;
}

@media(hover: hover) {
  .contact p a:hover {
    text-decoration: none;
  }
}

/* ----- text / email / textarea ----- */
.contact .input {
  margin-bottom: 35px;
  width: 100%;
}

.contact .input:has(> .column) {
  display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact .input.textarea {
  margin-bottom: 60px;
  width: 100%;
}

.contact .input .column {
  width: calc(350 / 800 * 100%);
}

.contact .input .column span {
  width: 100%;
}

.contact label {
  display: block;
  font-weight: 400;
  width: 100%;
  text-align: left;
  cursor: default;
}

.contact .input p {
  width: 100%;
  text-align: left;
}

.contact input[type="text"],
.contact input[type="email"],
.contact input[type="tel"],
.contact textarea {
  padding: .5em 1em;
  width: 100% !important;
  text-align: left;
  border: 1px solid #A7A7A7;
}

/* ----- checkbox ----- */
.contact .input_checkbox {
  margin: 0 auto;
  text-align: center;
  width: fit-content;
}

.contact .mw_wp_form_confirm .input_checkbox {
  display: none;
}

.contact .input_checkbox span.mwform-checkbox-field-text {
  display: none;
}

.contact .input_checkbox label.check {
  text-align: left;
  cursor: pointer;
}

.contact .input_checkbox input[type="checkbox"] {
  /*display: none;
	border: 0;
	margin: 0;*/
  all: revert;
}

.contact .input_checkbox label.check {
  display: inline-block;
  cursor: pointer;
}

.contact small {
  display: block;
}

/* ----- プライバシーポリシーをみる ----- */
.contact a.link_privacy {
  position: relative;
  display: block;
  margin: .5em auto 1.5em;
  padding-right: 1.5em;
  width: fit-content;
  color: #00a9d2;
}

.contact a.link_privacy::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: #00a9d2;
  transform: scale(1);
  transform-origin: right;
  transition: 0.3s;
}

@media(hover: hover) {
  .contact a.link_privacy:hover::before {
    transform: scale(0, 1);
  }
}

.contact a.link_privacy::after {
  content: '';
  width: 8px;
  height: 8px;
  border: 0;
  border-bottom: solid 1.5px #00a9d2;
  border-right: solid 1.5px #00a9d2;
  transform: rotate(-45deg);
  position: absolute;
  top: 3px;
  right: 0;
  bottom: 0;
  margin: auto;
  transition: 0.3s;
}

@media(hover: hover) {
  .contact a.link_privacy:hover::after {
    right: -5px;
  }
}

/* ----- エラー ----- */
.contact .wpcf7-not-valid-tip,
.contact .error-text {
  display: block;
  /*font-size: 14px;*/
  color: #dc3232;
  text-align: left;
}

/* ----- ボタン ----- */
.contact .button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 60px auto 0;
}

.contact .button.single {
  justify-content: center;
}

.contact .button div {
  position: relative;
  width: calc(260 / 800 * 100%);
}

.contact button[type="submit"],
.contact button[type="button"],
.contact a.contact_confirm,
.contact a.contact_submit {
  overflow: hidden;
  position: relative;
  display: block;
  padding-right: 0 0 0 .5em;
  width: 100%;
  max-width: 260px;
  height: 53px;
  font-weight: 400;
  font-size: 16px;
  line-height: 53px;
  text-align: center;
  color: #FFF;
  background-color: #1f2a66;
  border: 1px solid #1f2a66;
  z-index: 0;
}

.contact button[type="button"]:disabled {
  background-color: #BBB;
  pointer-events: none;
}

@media(hover: hover) {
  .contact button[type="submit"]:hover,
  .contact button[type="button"]:hover,
  .contact a.contact_confirm:hover,
  .contact a.contact_submit:hover {
    color: #1f2a66;
  }
}

.contact button[type="submit"]::before,
.contact button[type="button"]::before,
.contact a.contact_confirm::before,
.contact a.contact_submit::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #FFF;
  transform: scale(0, 1);
  transform-origin: left;
  transition: 0.3s;
  z-index: -1;
}

@media(hover: hover) {
  .contact button[type="submit"]:hover::before,
  .contact button[type="button"]:hover::before,
  .contact a.contact_confirm:hover::before,
  .contact a.contact_submit:hover::before {
    transform: scale(1);
  }
}

.contact button[type="submit"]::after,
.contact button[type="button"]::after,
.contact a.contact_confirm::after,
.contact a.contact_submit::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 0;
  border-bottom: solid 1.5px #FFF;
  border-right: solid 1.5px #FFF;
  transform: rotate(-45deg);
  position: absolute;
  top: 3px;
  right: 20px;
  bottom: 0;
  margin: auto;
  transition: 0.3s;
}

@media(hover: hover) {
  .contact button[type="submit"]:hover::after,
  .contact button[type="button"]:hover::after,
  .contact a.contact_confirm:hover::after,
  .contact a.contact_submit:hover::after {
    border-bottom: solid 1.5px #1f2a66;
    border-right: solid 1.5px #1f2a66;
    right: 15px;
  }
}

.contact button[type="button"].contact_back,
.contact a.contact_back {
  overflow: hidden;
  position: relative;
  display: block;
  padding-left: .5em;
  width: 100%;
  height: 53px;
  font-weight: 400;
  font-size: 16px;
  line-height: 53px;
  text-align: center;
  color: #1f2a66;
  background-color: #FFF;
  border: 1px solid #1f2a66;
  z-index: 0;
}

@media(hover: hover) {
  .contact button[type="button"].contact_back:hover,
  .contact a.contact_back:hover {
    color: #FFF;
  }
}

.contact button[type="button"].contact_back::before,
.contact a.contact_back::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #1f2a66;
  transform: scale(0, 1);
  transform-origin: right;
  transition: 0.3s;
  z-index: -1;
}

@media(hover: hover) {
  .contact button[type="button"].contact_back:hover::before,
  .contact a.contact_back:hover::before {
    transform: scale(1);
  }
}
.contact button[type="button"].contact_back::after,
.contact a.contact_back::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 0;
  border-bottom: solid 1.5px #1f2a66;
  border-right: solid 1.5px #1f2a66;
  transform: rotate(135deg);
  position: absolute;
  top: 3px;
  right: auto;
  left: 20px;
  bottom: 0;
  margin: auto;
  transition: 0.3s;
}

@media(hover: hover) {
  .contact button[type="button"].contact_back:hover::after,
  .contact a.contact_back:hover::after {
    border-bottom: solid 1.5px #FFF;
    border-right: solid 1.5px #FFF;
    left: 15px;
  }
}

/* ----- 確認画面 ----- */
.contact dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 60px;
}

.contact dt {
  margin-bottom: 1em;
  padding-right: 2em;
  width: calc(300 / 960 * 100%);
  font-weight: 500;
}

.contact dd {
  margin-bottom: 1em;
  width: calc(660 / 960 * 100%);
  word-wrap: break-word;
}

/* ----- 完了画面 ----- */
.contact a.index_back {
  overflow: hidden;
  position: relative;
  display: block;
  padding-left: 1em;
  width: 100%;
  height: 53px;
  font-weight: 400;
  font-size: 16px;
  line-height: 53px;
  text-align: center;
  color: #FFF;
  background-color: #1f2a66;
  border: 1px solid #1f2a66;
  z-index: 0;
}

@media(hover: hover) {
  .contact a.index_back:hover {
    color: #1f2a66;
  }
}

.contact a.index_back::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #FFF;
  transform: scale(0, 1);
  transform-origin: right;
  transition: 0.3s;
  z-index: -1;
}

@media(hover: hover) {
  .contact a.index_back:hover::before {
    transform: scale(1);
  }
}

.contact a.index_back::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 0;
  border-bottom: solid 1.5px #FFF;
  border-right: solid 1.5px #FFF;
  transform: rotate(135deg);
  position: absolute;
  top: 3px;
  left: 20px;
  bottom: 0;
  margin: auto;
  transition: 0.3s;
}

@media(hover: hover) {
  .contact a.index_back:hover::after {
    border-bottom: solid 1.5px #1f2a66;
    border-right: solid 1.5px #1f2a66;
    left: 15px;
  }
}

#form-complete .wpcf7-response-output {
  display: none;
}

/*  767px以下
=========================================================================
=========================================================================*/
@media screen and (max-width:767px) {

  .contact {
    padding: 90px 20px 60px;
  }

  .contact .inner_960 {
    padding: 50px 20px;
  }

  .contact h1 {
    font-size: 18px;
  }

  .contact p span.required,
  .smf-item:has([data-validations~="required"]) .smf-item__label__text::after {
    font-size: 13px;
  }

  /* ----- text / email / textarea ----- */
  .contact .input {
    margin-bottom: 20px;
  }

  .contact .input.textarea {
    margin-bottom: 30px;
  }

  .contact .input .column {
    width: calc(300 / 620 * 100%);
  }

  .contact input[type="text"],
  .contact input[type="email"],
  .contact input[type="tel"],
  .contact textarea {
    font-size: 16px;
  }

  /* ----- ボタン ----- */
  .contact .button div {
    position: relative;
    width: calc(230 / 500 * 100%);
  }

  .contact .button.single div {
    width: calc(360 / 500 * 100%);
  }

  /* ----- 確認画面 ----- */
  .contact dl {
    margin-bottom: 40px;
  }

  .contact dt {
    margin-bottom: .25em;
    width: 100%;
    font-size: 15mpx;
  }

  .contact dd {
    margin-bottom: 1.5em;
    width: 100%;
  }
}
