/* ===== お問い合わせページ ===== */

.contact-page main {
  padding-top: 92px;
  background-color: #f9f9f9;
}

/* パンくず（contact固有：長いパスに対応するためflex-wrap追加） */
.contact-page .breadcrumb__list {
  flex-wrap: wrap;
}

/* フォームセクション */
.contact-form {
  padding: 82px 0 156px;
  background-color: #f9f9f9;
}

.contact-form__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

/* ヘッダー部分 */
.contact-form__header {
  margin-bottom: 50px;
}

.contact-form__title-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 45px;
}

.contact-form__title {
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: 4px;
  color: #555555;
  margin: 0;
  position: relative;
  z-index: 1;
}

.contact-form__title-line {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 260px;
  height: 22px;
  z-index: 0;
}

.contact-form__desc {
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  color: #555555;
  margin: 0;
}

/* 白いカード */
.contact-form__card {
  background-color: #ffffff;
  border-radius: 100px;
  box-shadow: 1px 1px 10px #00000029;
  padding: 80px 180px 80px;
}

/* フォーム */
.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* フィールド */
.contact-form__field {
  display: flex;
  flex-direction: column;
}

.contact-form__field .contact-form__input,
.contact-form__field .contact-form__select-wrap,
.contact-form__field .contact-form__textarea {
  margin-top: 16px;
}

.contact-form__field .contact-form__error {
  margin-top: 5px;
}

/* ラベル */
.contact-form__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0;
  color: #555555;
}

/* 必須バッジ */
.contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #93C572;
  color: #ffffff;
  font-family: "Hiragino Kaku Gothic ProN", "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0;
  padding: 5px;
  width: 34px;
  height: 22px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* テキスト入力 */
.contact-form__input {
  width: 100%;
  height: 50px;
  border: 1px solid #93C572;
  border-radius: 5px;
  background-color: #ffffff;
  padding: 0 16px;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #555555;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-form__input:focus {
  border-color: #5aab30;
}

.contact-form__input.is-error {
  border-color: #D53838;
}

/* セレクト */
.contact-form__select-wrap {
  position: relative;
  width: 100%;
}

.contact-form__select {
  width: 100%;
  height: 50px;
  border: 1px solid #93C572;
  border-radius: 5px;
  background-color: #ffffff;
  padding: 0 44px 0 20px;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #CBCBCB;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: border-color 0.2s;
  text-align: left;
}

.contact-form__select.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.contact-form__select.is-selected {
  color: #555555;
}

.contact-form__select.is-error {
  border-color: #D53838;
}

.contact-form__select.is-error .contact-form__select-chevron {
  filter: brightness(0) saturate(100%) invert(27%) sepia(94%) saturate(1234%) hue-rotate(329deg) brightness(98%) contrast(97%);
}

.contact-form__select-text {
  flex: 1;
}

.contact-form__dropdown {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  background-color: #F9F9F9;
  border: 1px solid #93C572;
  border-top: none;
  border-radius: 0 0 5px 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 100;
  overflow: visible;
  box-sizing: border-box;
}

.contact-form__dropdown.is-open {
  display: block;
}

.contact-form__dropdown-item {
  padding: 17px 20px;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: 0;
  color: #93C572;
  cursor: pointer;
  position: relative;
}

.contact-form__dropdown-item:not(:last-child)::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  border-bottom: 1px dashed #707070;
}


.contact-form__select-arrow {
  position: absolute;
  right: 19px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form__select-chevron {
  width: 11px;
  height: 22px;
  display: block;
  transform: rotate(-90deg);
}

/* テキストエリア */
.contact-form__textarea {
  width: 100%;
  height: 150px;
  border: 1px solid #93C572;
  border-radius: 5px;
  background-color: #ffffff;
  padding: 16px;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: #555555;
  outline: none;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.contact-form__textarea:focus {
  border-color: #5aab30;
}

.contact-form__textarea.is-error {
  border-color: #D53838;
}

.contact-form__error {
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #D53838;
  margin-top: 5px;
  display: none;
}

.contact-form__error.is-show {
  display: block;
}

/* 送信ボタン */
.contact-form__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 50px;
  padding: 0;
  border: 2px solid #93C572;
  border-radius: 50px;
  background-color: #ffffff;
  color: #93C572;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: 1.6px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}


/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .contact-form {
    padding: 30px 0 80px;
  }

  .contact-form__container {
    padding: 0 20px;
  }

  .contact-form__title {
    font-size: 2.8rem;
  }

  .contact-form__card {
    padding: 40px 24px 60px;
    border-radius: 20px;
  }
}

@media (max-width: 430px) {
  .contact-page main {
    padding-top: 50px;
  }

  /* breadcrumb.cssの430px基本値（padding: 0 0 0 15px）を上書き */
  .contact-page .breadcrumb__list {
    padding: 0 15px;
    font-size: 1.2rem;
    line-height: 20px;
    column-gap: 6px;
    row-gap: 10px;
  }

  .contact-form {
    padding: 43px 0 60px;
  }

  .contact-form__container {
    padding: 0 15px;
  }

  .contact-form__header {
    margin-bottom: 0;
  }

  .contact-form__title-wrap {
    margin-bottom: 0;
  }

  .contact-form__title {
    font-size: 3rem;
    line-height: 51px;
    letter-spacing: 3px;
    color: #555555;
    margin-bottom: 0;
  }

  .contact-form__desc {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 0px;
    color: #555555;
    margin: 20px 0 40px;
  }

  .contact-form__card {
    padding: 30px 15px 30px;
    border-radius: 20px;
  }

  .contact-form__label {
    font-size: 2rem;
    font-weight: bold;
    line-height: 34px;
    letter-spacing: 0px;
    color: #555555;
    gap: 10px;
  }

  .contact-form__required {
    width: 34px;
    height: 22px;
    font-size: 1.2rem;
    border-radius: 5px;
    padding: 0;
  }

  .contact-form__form {
    gap: 30px;
  }

  .contact-form__field .contact-form__input,
  .contact-form__field .contact-form__select-wrap,
  .contact-form__field .contact-form__textarea {
    margin-top: 10px;
  }

  .contact-form__input {
    width: 100%;
    height: 50px;
  }

  .contact-form__select-wrap {
    width: 100%;
  }

  .contact-form__select {
    width: 100%;
    height: 50px;
    border: 1px solid #93C572;
    border-radius: 5px;
    background: #FFFFFF;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 27px;
    letter-spacing: 0px;
    color: #CBCBCB;
  }

  .contact-form__select.is-selected {
    color: #555555;
  }

  .contact-form__select-chevron {
    width: 8px;
    height: 16px;
  }

  .contact-form__textarea {
    width: 100%;
    height: 150px;
    border: 1px solid #93C572;
    border-radius: 5px;
  }

  .contact-form__submit-wrap {
    margin-top: 0;
  }

  .contact-form__error {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 23px;
    letter-spacing: 0px;
    color: #D53838;
    margin-top: 5px;
  }

  .contact-form__error--select.is-show {
    display: block;
  }
}

/* ===== CF7 スタイル適用 ===== */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
  width: 100%;
  height: 56px;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 1.6rem;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  background-color: #ffffff;
  box-sizing: border-box;
}

.wpcf7-form select {
  width: 100%;
  height: 56px;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 1.6rem;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  background-color: #ffffff;
  box-sizing: border-box;
  appearance: auto;
}

.wpcf7-form textarea {
  width: 100%;
  height: 200px;
  border: 1px solid #CCCCCC;
  border-radius: 8px;
  padding: 16px;
  font-size: 1.6rem;
  font-family: "YuGothic", "Yu Gothic", sans-serif;
  background-color: #ffffff;
  box-sizing: border-box;
  resize: vertical;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #93C572;
}

.wpcf7-not-valid-tip {
  color: #D53838;
  font-size: 1.2rem;
  margin-top: 5px;
  display: block;
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 1.4rem;
}

.wpcf7 .contact-form__submit {
  cursor: pointer;
  border: none;
}

/* CF7 フォーム構造 */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.wpcf7-form .contact-form__field {
  margin-top: 16px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
  border-color: #93C572;
  height: 50px;
  border-radius: 5px;
}

.wpcf7-form select {
  height: 50px;
  border: 1px solid #93C572;
  border-radius: 5px;
}

.wpcf7-form textarea {
  border-color: #93C572;
  border-radius: 5px;
  height: 150px;
  resize: none;
}
