@charset "utf-8";

/* contact */
/* Block: page-visual */
.page-visual-contact {
  z-index: 1;
  background-image: url("../img/page-visual/page-visual_contact.jpg");
}

/* section--contact */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form__field {
  position: relative;
  display: flex;
  margin-bottom: 30px;
}

.contact-form__label {
  display: flex;
  align-items: flex-start;
  width: 25%;
  margin-top: 16px;
  font-weight: 600;
  color: #333;
}

.contact-form__title {
  letter-spacing: 2px;
  line-height: 1.8;
}

.contact-form__text {
  width: 75%;
}

.contact-form__required {
  background-color: #e74c3c;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 100vw;
  margin-right: 8px;
}

.contact-form__optional {
  background-color: #95a5a6;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 100vw;
  margin-right: 8px;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #0082c8;
  font-size: 14px;
  background-color: #e1f4fd;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  background-color: #f8fcff;
}

.contact-form__textarea {
  height: 150px;
  resize: vertical;
  font-family: inherit;
}

.contact-form__example {
  font-size: 12px;
  margin-top: 8px;
  letter-spacing: 2px;
}

.contact-form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
  cursor: pointer;
}

.contact-form__checkbox input[type="checkbox"]:checked + .contact-form__checkmark {
  background-color: #3498db;
  border-color: #3498db;
}

.contact-form__checkbox-label {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.contact-form__checkbox-label a {
  color: #3498db;
  text-decoration: none;
}

.contact-form__checkbox-label a:hover {
  text-decoration: underline;
}

.contact-form__submit {
  width: 280px;
  margin: 40px auto 0;
  display: block;
}

.contact-form__submit-btn {
  width: 100%;
  padding: 16px 24px;
  background-color: #fff;
  color: #0082c8;
  border: 1px solid #0082c8;
  border-radius: 100vw;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.contact-form__submit-btn:hover {
  color: #fff;
  background-color: #0082c8;
}

.contact-form__submit-btn:active {
  transform: translateY(0);
}

.contact-form__submit-icon {
  width: 20px;
  height: 20px;
  border: 1px solid white;
  border-radius: 50%;
  position: relative;
}

.contact-form__submit-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(-45deg);
}

/* WordPress Contact Form 7用のスタイル */
.wpcf7-form {
  margin: 0;
}

.wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

.wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 5px;
}

.wpcf7-not-valid {
  border-color: #e74c3c !important;
  background-color: #fdf2f2 !important;
}

.wpcf7-response-output {
  margin: 20px 0 0;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
}

.wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.wpcf7-submit:disabled {
  opacity: .3;
}

.wpcf7-submit:disabled:hover {
  color: #0082c8;
  background-color: #fff;
}

.wpcf7-list-item-label {
  padding-left: 16px;
  line-height: 1.8;
  cursor: pointer;
}

.wpcf7-list-item-label::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 1px solid #0082c8;
  background-color: #e1f4fd;
  position: absolute;
  left: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.wpcf7-acceptance input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "✔";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #0082c8;
  pointer-events: none;
}

/* sp */
@media (max-width: 767px) {
  .section__inner{
    padding-left: 0;
  }

  .contact-form__field {
    flex-wrap: wrap;
  }

  .contact-form__label {
    width: 100%;
    margin-top: 0;
    margin-bottom: 8px;
  }

  .contact-form__text {
    width: 100%;
  }
}

/* entry */
.page-visual-entry {
  z-index: 1;
  background-image: url("../img/page-visual/page-visual_entry.jpg");
}
