/* ------------------------------
　　Contact Form
------------------------------ */

/* Page Headings */
.page #main h1 {
  font-size: 2rem;
  font-weight: bold;
}

/* Contact Form Styles */
.co-u {
  margin-bottom: 70px;
  text-align: left;
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .co-u {
      margin-bottom: 40px;
  }
}

/* Form Fields */
.koumoku dl {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ccc;
  width: 90%;
  margin: 0 auto;
  align-items: stretch;
}

.koumoku dl:first-child {
  border-top: 1px solid #ccc;
}

@media (max-width: 860px) {
  .koumoku dl {
      width: 100%;
      border: 1px solid #ccc;
      border-top: none;
  }
}

.koumoku dt {
  width: 30%;
  background: #f7f7f7;
  padding: 2em 1em;
  display: flex;
  align-items: center;
}

@media (max-width: 860px) {
  .koumoku dt {
    width: 100%;
    padding: 15px;
  }
}

.koumoku dd {
  width: 70%;
  padding: 10px 0 10px 30px;
  display: flex;
  align-items: center;
}

@media (max-width: 860px) {
  .koumoku dd {
      width: 100%;
      padding: 10px;
  }
}

/* Required Field */
.required em {
  margin-left: 2%;
  font-style: normal;
  background: #45be2e;
  color: #fff;
  font-size: 10px;
  display: inline-block;
  vertical-align: middle;
  padding: 1px 3px 0;
  line-height: 1.7;
}

/* Comment Area */
.comment textarea {
  padding: 10px 2%;
}

/* Choose Section */
.choose {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  padding: 0 30px;
}

.choose a {
  display: unset;
  text-decoration: underline;
  color: #000;
}

/* Links */
.pb_link a {
  display: block;
  margin-top: 15px;
  text-decoration: underline;
}

/* Form Inputs */
.wpcf7 .wpcf7-text {
  border-radius: 10px;
  width: 100%;
  display: inline-block;
  margin: 10px 14px 10px 0;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  height: 60px;
  font-size: 1rem;
  padding-left: 1em;
}

.wpcf7c-conf {
  background: #ccc;
}

.wpcf7-textarea {
  width: 100% !important;
  border-radius: 10px;
}

/* Confirmed State */
.custom-wpcf7c-confirmed .wpcf7-list-item input[type="checkbox"] {
  display: block;
}

.custom-wpcf7c-confirmed .wpcf7-checkbox .wpcf7-list-item-label::before {
  display: none;
}

.custom-wpcf7c-confirmed input[type="button"] {
  text-decoration: none;
  font-size: 16px;
  display: block;
  color: #fff;
  position: relative;
  font-weight: bold;
  text-align: center;
  transition: all ease-in-out .3s;
  padding: 20px 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  background: #868686;
  margin: 30px 10px;
  border-radius: 10px;
  -webkit-border-radius: 10px; /* Safari用 */
  -webkit-appearance: none; /* iOSでのデフォルトスタイルを無効化 */
  appearance: none; /* ブラウザデフォルトスタイルを無効化 */

}

/* Input Types */
input[type="tel"] {
  cursor: none;
}

input[type="submit"] {
  text-decoration: none;
  font-size: 16px;
  display: block;
  color: #fff;
  position: relative;
  font-weight: bold;
  text-align: center;
  transition: all ease-in-out .3s;
  padding: 20px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background: #45be2e;
  margin: 30px 10px;
  border: 2px solid #45be2e;
  border-radius: 10px;
  -webkit-border-radius: 10px; /* Safari用 */
  -webkit-appearance: none; /* iOSでのデフォルトスタイルを無効化 */
  appearance: none; /* ブラウザデフォルトスタイルを無効化 */
}

@media (max-width: 860px) {
  input[type="submit"] {
    padding: 20px 30px;
    font-size: 16px;
  }
}

input[type="submit"]:hover {
  border: 2px solid #45be2e;
  background: #fff;
  color: #45be2e;
}

/* Form Control Wrap */
span.wpcf7-form-control-wrap {
  width: 100%;
}

span.wpcf7-form-control-wrap.age {
  width: 40%;
}

/* Form Submit */
#form_submit {
  display: flex;
  justify-content: center;
}

#form_submit input:matches([type="button"], [type="submit"], [type="reset"]),
#form_submit input[type="file"]::-webkit-file-upload-button,
#form_submit button {
  -webkit-appearance: none !important;
  border-radius: 0 !important;
}

/* Form Steps Images */
.step-wrapper {
  margin: 30px auto;
  max-width: 800px;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 !important;
  margin: 0;
  list-style: none; 
  position: relative;
  width: 80%; 
  margin: 0 auto; 
}

/* 横線の調整 */
.step-indicator::before {
  content: '';
  position: absolute;
  height: 2px;
  background: #e6e6e6;
  width: calc(100% - 160px);
  left: 80px;
  top: 20px;
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
  max-width: 200px;
  list-style-type: none;  
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6e6e6;
  border: 2px solid var(--step-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #333;
  font-weight: bold;
}

.step-title {
  font-size: 14px;
  color: #333;
  margin-top: 5px;
}

/* アクティブなステップのスタイル */
.wpcf7-form.init .step[data-step="input"] .step-number,
.custom-wpcf7c-confirmed .step[data-step="confirm"] .step-number,
.mw_wp_form_complete .step[data-step="complete"] .step-number {
  background: #45be2e;
  border-color: #45be2e;
  color: #fff;
}

/* 完了したステップのスタイル */
.custom-wpcf7c-confirmed .step[data-step="input"] .step-number,
.mw_wp_form_preview .step[data-step="input"] .step-number,
.mw_wp_form_complete .step[data-step="input"] .step-number,
.mw_wp_form_complete .step[data-step="confirm"] .step-number {
  background:  #edfcea;
  border-color: #45be2e;
  color:  #45be2e;
}
@media screen and (max-width: 580px) {

  .step-indicator::before {
    width: calc(100% - 120px);
    left: 60px;
  }

}
/* Confirmed State Input Styles */
.custom-wpcf7c-confirmed input[type="text"],
.custom-wpcf7c-confirmed input[type="email"],
.custom-wpcf7c-confirmed input[type="tel"],
.custom-wpcf7c-confirmed dd input,
.custom-wpcf7c-confirmed dd textarea {
  background: #ccc !important;
}

/* Select Styles */
.wpcf7-select {
  height: 50px;
  padding: 2px 2%;
  border: 1px solid #cccccc;
  border-radius: 10px;
  background: #fff url(/honbu/wp-content/themes/kohokai/img/common/icon_arrow.svg) no-repeat;
  background-size: 30px 20px;
  background-position: right center;
  -webkit-appearance: none;
  font-size: 100%;
  font-family: inherit;
  width: 60%;
  line-height: 40px;
}

/* Submit Button */
.wpcf7-submit {
  background-color: #8cd0d3;
  color: #fff;
  border: none;
  margin-top: 20px;
  padding: 16px 25px;
  border-radius: 0;
}

.wpcf7-submit:hover {
  background-color: #8cd0d3;
}

/* Focus States */
.koumoku input[type="text"]:focus,
.koumoku input[type="tel"]:focus,
.koumoku select:focus,
.koumoku input[type="email"]:focus ,
  .comment textarea:focus {
  background: #edfff3;
  border-color: #45be2e;
  box-shadow: 0 0 3px 0 #9e9e9e;
}

/* Radio Buttons */
.wpcf7-list-item input[type=radio] {
  display: none;
}

.wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.wpcf7-radio .wpcf7-list-item {
  width: 30%;
}

.wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
}

.wpcf7-radio .wpcf7-list-item-label {
  box-sizing: border-box;
  cursor: pointer;
  padding: 3px 30px;
  width: auto;
  position: relative;
}

.wpcf7-radio .wpcf7-list-item-label::before {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  content: '';
  display: block;
  height: 20px;
  left: 5px;
  position: absolute;
  top: 10px;
  width: 20px;
}

.wpcf7-radio .wpcf7-list-item-label::after {
  background: #263eb7;
  border-radius: 50%;
  content: '';
  display: block;
  height: 11px;
  left: 10px;
  opacity: 0;
  position: absolute;
  top: 14px;
  transform: scale3d(.3,.3,1);
  transition: transform .2s ease-in-out, opacity .2s ease-in-out;
  width: 11px;
}

.wpcf7-radio input[type=radio]:checked + .wpcf7-list-item-label::before {
  border-color: #263eb7;
}

.wpcf7-radio input[type=radio]:checked + .wpcf7-list-item-label::after {
  opacity: 1;
  transform: scale3d(1,1,1);
}

/* Checkboxes */
.wpcf7-list-item input[type=checkbox] {
  display: none;
}

.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
}

.wpcf7-checkbox .wpcf7-list-item-label {
  box-sizing: border-box;
  cursor: pointer;
  padding: 8px 30px;
  width: auto;
  position: relative;
}

.wpcf7-checkbox .wpcf7-list-item-label::before {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  content: '';
  display: block;
  height: 20px;
  left: 5px;
  position: absolute;
  top: 16px;
  width: 20px;
}

.wpcf7-checkbox .wpcf7-list-item-label::after {
  border-radius: 2px;
  border-right: 6px solid #45be2e;
  border-bottom: 4px solid #45be2e;
  content: '';
  display: block;
  height: 20px;
  left: 10px;
  opacity: 0;
  position: absolute;
  top: 13px;
  transform: rotate(45deg) translate3d(0,2px,0) scale3d(.7,.7,1);
  transition: transform .2s ease-in-out, opacity .2s ease-in-out;
  width: 11px;
}

.wpcf7-checkbox input[type=checkbox]:checked + .wpcf7-list-item-label::before {
  border-color: #263eb7;
}

.wpcf7-checkbox input[type=checkbox]:checked + .wpcf7-list-item-label::after {
  opacity: 1;
  transform: rotate(45deg) scale3d(1,1,1);
}

.wpcf7-form.custom-wpcf7c-confirmed .wpcf7-checkbox input[type=checkbox]:checked + .wpcf7-list-item-label::after {
  opacity: 0;
}

/* Error Messages */
.wpcf7-not-valid-tip,
.wpcf7-response-output {
  color: #e10505;
  position: relative;
  padding-left: 30px;
}

.wpcf7-response-output {
  line-height: 1.6;
  padding: 10px;
}

.wpcf7-not-valid-tip::before {
  content: '※';
  position: absolute;
  margin: -5px 0 0 -15px;
}

.screen-reader-response {
  display: none;
}