/*
Theme Name: カブトプラテク
Author: grasp
Description: カブトプラテクのテーマ
Version: 1.0
*/
.wpcf7-form-control-wrap[data-name="delivery-date"] {
  display: block;
  width: 100%;
}

.wpcf7-form-control.wpcf7-date {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  border-radius: 0;
  margin: 0;
  min-height: 50px;
}

.wpcf7-form-control.wpcf7-date,
.wpcf7-textarea,
input.wpcf7-form-control,
.custom-select {
  width: 100%;
  padding: 15px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid #0B308E;
  box-sizing: border-box;
  -webkit-appearance: none;
}

#subTop-title .inner .left {
  width: 61%;
}

#subTop-title .inner .right {
  width: 39%;
  font-size: 1.5rem;
}

#subTop-title .inner .right strong {
  margin-top: 40px;
  font-size: 2.0rem;
  display: block;
}

#subTop-title .inner .right small {
  font-size: 1.4rem;
  margin-top: 10px;
  display: block;
}

#subTop-title .inner .right .manrope.tel-link {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-size: 4.8rem;
  line-height: 1;
}

@media (max-width: 1000px) {

  #subTop-title .inner .left,
  #subTop-title .inner .right {
    width: 50%;
  }
}

.section h3.gradient-text {
  font-size: 4.0rem;
}

#form-area>.inner.flexBlock {
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #222222;
}

#form-area>.inner.flexBlock .sub-text {
  font-size: 1.5rem;
  margin: 10px auto 40px;
}

.thanks-section .animated-btn.btn-black.flexBlock {
  width: calc(100% - 30px);
  max-width: 350px;
  height: 70px;
  margin: 30px auto 0;
  font-size: 1.8rem;
  position: relative;
  display: flex;
}

.step-navigation {
  display: flex;
  gap: 7px;
  width: 100%;
  max-width: 800px;
  margin-bottom: 30px;
}

.step {
  flex: 1;
  height: 50px;
  line-height: 50px;
  text-align: center;
  color: #fff;
  background-color: #8DA3B8;
  border-radius: 2px;
  position: relative;
  font-weight: bold;
  font-size: 1.4rem;
}

.step:not(:first-child) {
  margin-left: -15px;
}

.step:nth-child(1) {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
  border-radius: 2px 0 0 2px;
}

.step:nth-child(2) {
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
  z-index: 2;
}

.step:nth-child(3) {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
  border-radius: 0 2px 2px 0;
  z-index: 1;
}

.step:nth-child(1),
body.is-confirm .step:nth-child(2),
.page-thanks .active.step:nth-child(3) {
  background: linear-gradient(to right, #0B308E 0%, #0665B5 33%, #028CD2 62%, #00A5E4 86%, #00AEEB 100%);
}

.page-thanks .step:nth-child(1),
.page-thanks .step:nth-child(2),
body.is-confirm .step:nth-child(1) {
  background: #8DA3B8 !important;
}

.page-content {
  width: 100%;
  max-width: 800px;
  text-align: left;
  color: #222222;
  font-size: 1.5rem;
}

.page-content form>div>p,
.page-content form>p {
  margin-bottom: 20px;
}

.page-content form>div>p.label,
.page-content form>p.label {
  margin-bottom: 5px;
}

.page-content form>div.form-btn-area>p {
  margin-bottom: 0;
}

.page-content form p.label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
}

.page-content form p.label>span {
  background: #0B308E;
  color: #FFFFFF;
  font-size: 1.1rem;
  width: 36px;
  height: 20px;
  border-radius: 40px;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.page-content form p.label>span.required {
  background: #E93D40;
}

textarea {
  resize: none;
}

#btn-confirm:disabled {
  background-color: #ccc !important;
  border-color: #ccc !important;
  color: #fff !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.custom-radio {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.custom-radio .wpcf7-list-item {
  display: inline-block;
}

.custom-radio label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.custom-radio input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 20px !important;
  height: 20px !important;
  cursor: pointer !important;
  z-index: 1;
}

.custom-radio .wpcf7-list-item-label {
  padding-left: 30px;
  position: relative;
  z-index: 0;
  line-height: 20px;
}

.custom-radio .wpcf7-list-item-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  transition: all 0.2s;
}

.custom-radio input[type="radio"]:checked+.wpcf7-list-item-label::before {
  border-color: #0B308E;
}

.custom-radio input[type="radio"]:checked+.wpcf7-list-item-label::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: #0B308E;
  border-radius: 50%;
  pointer-events: none;
}

.custom-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M0 0l5 6 5-6z" fill="%238DA3B8"/></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px 6px;
  padding-right: 35px;
}

.custom-file-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.custom-file-upload .caption {
  width: 100%;
}

.hidden-input {
  display: none;
}

#btn-submit-area {
  width: 100%;
  position: relative;
  height: auto;
}

#btn-submit-area>p {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#btn-submit-area>p>br {
  display: none;
}

#btn-submit-area>p #btn-back {
  width: 200px;
  height: 50px;
  border-radius: 30px;
  font-size: 1.2rem;
}

#btn-submit-area>p .wpcf7-submit {
  font-size: 1.8rem;
  max-width: 350px;
  width: calc(100% - 30px);
  height: 70px;
  border-radius: 80px;
  margin-bottom: 35px;
  background: linear-gradient(to right,
      #0b308e 0%,
      #0665b5 10%,
      #028cd2 30%,
      #00a5e4 50%,
      #00aeeb 70%,
      #ff6600 73%,
      #ff6600 100%);
  background-size: 500% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s ease;
  color: #fff;
  border: none;
  cursor: pointer;
}

.custom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 240px;
  height: 50px;
  margin-right: 10px;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  background: linear-gradient(to right,
      #0b308e 0%,
      #0665b5 10%,
      #028cd2 30%,
      #00a5e4 50%,
      #00aeeb 70%,
      #000000 73%,
      #000000 100%);
  background-size: 500% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s ease;
  text-align: center;
  border: none;
}

.btn {
  background: linear-gradient(to right,
      #0b308e 0%,
      #0665b5 10%,
      #028cd2 30%,
      #00a5e4 50%,
      #00aeeb 70%,
      #000000 73%,
      #000000 100%);
  background-size: 500% 100%;
  background-position: 100% 0;
  transition: background-position 0.6s ease;
  color: #fff;
  border: none;
  cursor: pointer;
}

#btn-confirm {
  width: calc(100% - 30px);
  max-width: 350px;
  height: 70px;
  margin: 0 auto;
  border-radius: 40px;
  display: block;
  position: relative;
}

#btn-confirm:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.caption {
  font-size: 1.4rem;
  margin: 5px 0;
}

.privacy-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.6rem;
  gap: 10px;
}

.privacy-text a {
  color: #00AEEB;
  text-decoration: none;
}

@media (min-width: 769px) {
  .privacy-text a:hover {
    text-decoration: none;
  }

  .btn:hover {
    background-position: 0 0;
  }

  #btn-submit-area>p .wpcf7-submit:hover {
    background-position: 0 0;
  }

  .custom-button:hover {
    background-position: 0 0;
  }
}

.page-thanks #subTop-title,
.is-confirm #subTop-title {
  padding-bottom: 50px;
}

.is-confirm .caption {
  display: none !important;
}

.is-confirm .custom-button,
.is-confirm #subTop-title>.inner {
  display: none;
}

body.is-confirm input:not(.wpcf7-submit),
body.is-confirm textarea:not(.wpcf7-submit),
body.is-confirm select:not(.wpcf7-submit) {
  border: none !important;
  background: transparent !important;
  pointer-events: none !important;
  padding: 0 !important;
  color: #333 !important;
}

body.is-confirm .custom-radio .wpcf7-list-item:not(:has(input:checked)) {
  display: none !important;
}

body.is-confirm .custom-radio .wpcf7-list-item-label::before,
body.is-confirm .custom-radio .wpcf7-list-item-label::after {
  display: none !important;
}

body.is-confirm .custom-radio .wpcf7-list-item-label {
  padding-left: 0 !important;
}

body.is-confirm input:-webkit-autofill,
body.is-confirm textarea:-webkit-autofill,
body.is-confirm select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: #333 !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

body.is-confirm .wpcf7-acceptance a {
  pointer-events: none !important;
  text-decoration: none !important;
  color: inherit !important;
}

.wpcf7cf-group {
  transition: opacity 0.3s ease-in-out;
}

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

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #007BFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.page-thanks .section h3.gradient-text {
  margin-bottom: 30px;
}

@media (max-width: 768px) {

  .page-thanks #subTop-title,
  .is-confirm #subTop-title {
    padding-bottom: 0px;
  }

  .step {
    height: 42px;
    line-height: 42px;
  }

  #subTop-title .inner .right .manrope.tel-link {
    font-size: 3.6rem;
  }

  .section h3.gradient-text {
    font-size: 3.0rem;
  }

  #form-area>.inner.flexBlock .sub-text {
    text-align: left;
  }

  .wpcf7-form-control.wpcf7-date,
  .wpcf7-textarea,
  input.wpcf7-form-control,
  .custom-select {
    padding: 10px;
    box-sizing: border-box;
    font-size: 1.6rem;
  }
}

@media (max-width: 350px) {
  .wpcf7-turnstile.cf-turnstile {
    transform: scale(0.9);
    transform-origin: left top;
  }
}