/* ============================================================
   お問い合わせページ専用CSS
   ※ style.css（共通）と併用
   ============================================================ */

/* ========== ページヒーロー ========== */
.contact-hero {
  position: relative;
  margin-top: 102px;
  min-height: 496px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/contact_pc.jpg") no-repeat center 30% / cover;
  z-index: 0;
}

.contact-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: #eff2fa; */
}

.contact-hero__inner {
  position: absolute;
  top: 45%;
  left: 4%;
  z-index: 1;
  margin-top: -80px;
  padding: 0 0 20px 120px;
}

.contact-hero__en {
  font-size: 20px;
  font-weight: 700;
  color: #fd5208;
  letter-spacing: 0.1em;
  margin: 0 0 8px 6px;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
}

.contact-hero__title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* パンくず */
.contact-hero__breadcrumb {
  position: absolute;
  top: 80px;
  right: 8%;
  z-index: 1;
  background: #fff;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444355;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.contact-hero__breadcrumb a {
  color: #444355;
  text-decoration: none;
}

.contact-hero__breadcrumb-sep {
  color: #aaa;
}

/* 下部の青い帯 */
/* .contact-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(80deg, #0567e6 0%, #1ba9e5 100%);
  z-index: 1;
} */

/* ========== フォームセクション ========== */
.contact-form-section {
  background: #eff2fa;
  padding: 100px 20px 100px;
}

.contact-form-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form-section__lead {
  font-size: 24px;
  font-weight: 700;
  color: #052352;
  text-align: center;
  line-height: 1.8;
  margin: 0 0 40px;
  letter-spacing: 0.04em;
}

/* ========== フォームラッパー ========== */
/* .contact-form-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 80px 60px;
  box-shadow: 0 0 20px #cfe5ff;
} */
.contact-form-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 80px 60px;
  box-shadow: 0 0 20px #cfe5ff;
  padding-bottom: 0px;
  margin-bottom: 180px;
  position: relative;
}
.contact-form-wrap form {
  padding-bottom: 40px;
}
.wpcf7-form .contact-form__privacy {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
}
.wpcf7-form .contact-form__submit {
  position: absolute;
  bottom: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
}
/* ========== フォーム各行 ========== */
.contact-form__row {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.contact-form__row02 {
  padding-top: 0;
  align-items: self-start;
}

.contact-form__row:last-child {
  border-bottom: none !important;
}

.contact-form__row--textarea {
  align-items: flex-start;
}

/* ラベルエリア */
.contact-form__label-wrap {
  flex-shrink: 0;
  width: 228px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-form__label-wrap p {
  flex-shrink: 0;
  width: 228px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-form__label {
  font-size: 20px;
  font-weight: 500;
  color: #444355;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

/* 必須バッジ */
.contact-form__badge {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 5px;
  white-space: nowrap;
  background: #076ce6;
  color: #fff;
  width: 50px;
  text-align: center;
}

/* フィールドエリア */
.contact-form__field {
  flex: 1;
}

.contact-form__field--select {
  flex: none;
  width: 330px;
}

/* テキスト入力 */
.contact-form__input {
  width: 100%;
  height: 49px;
  padding: 0 20px;
  border: 1px solid #a2a2aa;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  background: #f7faff;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.04em;
}

.contact-form__input:focus {
  border-color: #076ce6;
  box-shadow: 0 0 0 3px rgba(7, 108, 230, 0.1);
}

.contact-form__input::placeholder {
  color: #cdcdce;
}

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

.contact-form__select-wrap::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  pointer-events: none;
}

.contact-form__select {
  width: 330px;
  height: 49px;
  padding: 0 50px 0 20px;
  border: 1px solid #a2a2aa;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  background: #f7faff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.04em;
}
.contact-form__select::placeholder {
  color: #cdcdce;
}

.contact-form__select:focus {
  border-color: #076ce6;
}

/* テキストエリア */
.contact-form__textarea {
  width: 100%;
  height: 263px;
  padding: 20px;
  border: 1px solid #a2a2aa;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: #333;
  background: #f7faff;
  resize: vertical;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.04em;
}

.contact-form__textarea:focus {
  border-color: #076ce6;
  box-shadow: 0 0 0 3px rgba(7, 108, 230, 0.1);
}

.contact-form__textarea::placeholder {
  color: #cdcdce;
}

/* ラジオボタン */
.contact-form__radio-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form__radio {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 18px;
  color: #444355;
  letter-spacing: 0.04em;
}

.contact-form__radio input[type="radio"] {
  width: 28px;
  height: 28px;
  accent-color: #076ce6;
  cursor: pointer;
}

.wpcf7-radio .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 18px;
  color: #444355;
  letter-spacing: 0.04em;
}
.wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wpcf7-radio .wpcf7-list-item input[type="radio"] {
  width: 28px;
  height: 28px;
  accent-color: #076ce6;
  cursor: pointer;
}

/* プライバシーポリシー */
.contact-form__privacy {
  padding: 32px 0 0;
  text-align: center;
}

.contact-form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  font-size: 18px;
  color: #000;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.contact-form__checkbox input[type="checkbox"] {
  width: 33px;
  height: 33px;
  border: 1px solid #b7b8bf;
  border-radius: 5px;
  accent-color: #076ce6;
  cursor: pointer;
}

.contact-form__privacy-link {
  color: #1e00ff;
  text-decoration: underline;
}

/* 送信ボタン */
.contact-form__submit {
  text-align: center;
  padding-top: 24px;
}

.contact-form__submit p {
  width: 284px;
  margin: 0 auto;
}

.contact-form__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 284px;
  height: 68px;
  background: linear-gradient(80deg, #0567e6 0%, #1ba9e5 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  font-family: inherit;
}

.contact-form__btn:hover {
  opacity: 0.85;
  transform: translateY(2px);
}

/* ========== SP（〜768px） ========== */
@media (max-width: 768px) {
  .contact-hero__bg {
    position: absolute;
    inset: 0;
    background: url("../images/contact_sp.png") no-repeat center 100% / cover;
    z-index: 0;
    height: 400px;
  }
  .contact-hero {
    margin-top: 74px;
    min-height: 400px;
  }

  .contact-hero__inner {
    padding: 0 0 20px 20px;
    bottom: 24%;
    top: auto;
  }

  .contact-hero__title {
    font-size: 28px;
  }

  .contact-hero__en {
    font-size: 16px;
  }

  .contact-hero__breadcrumb {
    font-size: 12px;
    padding: 6px 12px;
    top: 46px;
    left: 36px;
    right: auto;
  }

  .contact-form-section {
    padding: 40px 16px 80px;
  }

  .contact-form-section__lead {
    font-size: 18px;
    text-align: center;
  }

  .contact-form-wrap {
    padding: 32px 20px;
  }

  .contact-form__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .contact-form__row03 {
    border-bottom: none !important;
    padding-bottom: 0px !important;
  }

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

  .contact-form__label {
    font-size: 16px;
  }

  .contact-form__field,
  .contact-form__field--select {
    width: 100%;
    flex: none;
  }

  .contact-form__select {
    width: 100%;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea {
    font-size: 16px;
  }

  .contact-form__radio-group {
    flex-direction: row;
    gap: 12px;
  }
  .wpcf7-radio {
    flex-direction: row;
    gap: 12px;
  }

  .contact-form__radio {
    font-size: 16px;
  }
  .wpcf7-radio .wpcf7-list-item {
    font-size: 16px;
  }

  .contact-form__btn {
    width: 100%;
  }
  .lp-footer {
    margin-top: 0;
  }
  .lp-header__sp-nav p {
    margin: 0;
  }
  .contact-form-wrap form {
    padding-bottom: 20px;
  }
  .wpcf7-form .contact-form__privacy {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  .wpcf7-form .contact-form__privacy .wpcf7-list-item {
    margin: 0em;
    white-space: nowrap;
  }
  .wpcf7-list-item {
    margin: 0 0 0 0em !important;
  }
  .wpcf7-form .contact-form__submit {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
  }
  .contact-form__label-wrap p {
    margin: 0;
  }
  .contact-form__field p {
    margin: 0;
  }
  .contact-form__radio-group {
    font-weight: 500;
  }
}
