/* =========================================================
 * 共通フォームスタイル
 * ========================================================= */

/* フォームページは SP 固定ナビ (.l-bottom-nav) を非表示にするため、
   ナビ分の body padding-bottom を詰める */
body {
  padding-bottom: 0;
}

/* フィールド一覧 */
.c-form__fields {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

/* 各フィールドグループ */
.c-form__group {
  display: flex;
  flex-direction: column;
}

/* input / select 上のシンプルラベル */
.c-form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 4px;
}

/* 必須バッジ */
.c-form__required {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 9999px;
  background: #ed1919;
  font-weight: var(--fw-medium);
  font-size: 12px;
  line-height: 1;
  color: #fff;
}

/* 下線付きセクションタイトル（ラジオ・チェックボックスグループの見出し） */
.c-form__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  border-bottom: 1px solid #bebebe;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.c-form__group:has(.c-form__section-title) {
  margin-top: 13px;
}

.c-form__fields > .c-form__group:first-child {
  margin-top: 0;
}


/* ---- テキストインプット ---- */

.c-form__input {
  width: 100%;
  height: 40px;
  background: #fff;
  border: 1px solid #bebebe;
  border-radius: 3px;
  padding: 0 14px;
  font-size: 16px;
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}

.c-form__input::placeholder {
  color: #bebebe;
}

.c-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 182, 71, 0.15);
}


/* ---- テキストエリア ---- */

.c-form__textarea {
  width: 100%;
  height: 160px;
  background: #fff;
  border: 1px solid #bebebe;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}

.c-form__textarea::placeholder {
  color: #bebebe;
}

.c-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 182, 71, 0.15);
}


/* ---- セレクト ---- */

.c-form__select {
  width: 100%;
  height: 40px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23535353' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px auto;
  border: 1px solid #bebebe;
  border-radius: 3px;
  padding: 0 36px 0 14px;
  font-size: 16px;
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.c-form__select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(91, 182, 71, 0.15);
}


/* ---- ラジオボタン / チェックボックス（共通） ---- */

.c-form__radio-group,
.c-form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-form__radio-item,
.c-form__checkbox-item {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

.c-form__radio-input,
.c-form__checkbox-input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #bebebe;
  background: #fff;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.c-form__radio-label,
.c-form__checkbox-label {
  font-weight: var(--fw-medium);
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}

.c-form__radio-input:focus-visible,
.c-form__checkbox-input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ---- ラジオボタン（固有） ---- */

.c-form__radio-item {
  align-items: center;
}

.c-form__radio-input {
  border-radius: 50%;
  transition: border-color 0.15s ease;
}

.c-form__radio-input:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---- チェックボックス（固有） ---- */

.c-form__checkbox-item {
  align-items: flex-start;
}

.c-form__checkbox-input {
  border-radius: 3px;
  margin-top: 3px;
}

.c-form__checkbox-input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--color-primary);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.c-form__checkbox-input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}


/* ---- 個人情報 ---- */

.c-form__privacy {
  background: #fff;
  border-radius: 5px;
  padding: 25px;
}

.c-form__privacy-heading {
  margin: 0 0 10px;
  font-weight: var(--fw-bold);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

.c-form__privacy-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text);
}

.c-form__privacy-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ---- 送信ボタン ---- */

.c-form__submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 5px;
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.c-form__submit:hover {
  opacity: 0.6;
}

.c-form__submit::before,
.c-form__submit::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  background-color: #fff;
  border-radius: 9999px;
  pointer-events: none;
}

.c-form__submit::before {
  width: 30px;
  height: 1px;
  transform: translateY(-50%);
}

.c-form__submit::after {
  width: 11px;
  height: 1px;
  transform-origin: right center;
  transform: translateY(-50%) rotate(55deg);
}

input.c-form__submit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='12' viewBox='0 0 36 12'%3E%3Cpath d='M0 6h33M28 1l5 5-5 5' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 30px auto;
}


/* ---- reCAPTCHA ---- */

.grecaptcha-badge {
  display: block !important;
}


/* =========================================================
 * フォーム完了画面
 * ========================================================= */

.c-form-complete {
  padding: 40px var(--content-padding-x) 80px;
}

.c-form-complete__inner {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* お礼 + 案内 */
.c-form-complete__lead {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--color-text);
  line-height: 1.8;
}

.c-form-complete__thanks {
  font-weight: var(--fw-medium);
  font-size: 18px;
  text-align: center;
}

.c-form-complete__message {
  font-size: 14px;
}

/* 今後の流れ */
.c-form-complete__flow {
  display: flex;
  flex-direction: column;
  gap: 25px;
  color: var(--color-text);
  line-height: 1.8;
}

.c-form-complete__flow-title {
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: var(--color-primary);
  border-top: 2px solid rgba(91, 182, 71, 0.5);
  border-bottom: 2px solid rgba(91, 182, 71, 0.5);
  padding-block: 12px;
}

.c-form-complete__flow-lead {
  font-size: 14px;
}

.c-form-complete__notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-form-complete__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: var(--fw-medium);
  font-size: 15px;
}

.c-form-complete__list li {
  position: relative;
  padding-left: 1.5em;
}

.c-form-complete__list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.c-form-complete__note {
  font-size: 12px;
}

.c-form-complete__contact {
  font-weight: var(--fw-medium);
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
}

/* 完了画面内のリンク（mailto / tel） */
.c-form-complete__inner a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}


/* =========================================================
 * PC (768px+)
 * ========================================================= */

@media (min-width: 768px) {

  .c-form__fields {
    gap: 40px;
  }

  .c-form__group:has(.c-form__section-title) {
    margin-top: 20px;
  }

  .c-form__label {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .c-form__required {
    height: 26px;
    padding: 0 14px;
    font-size: 14px;
  }

  .c-form__section-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .c-form__input {
    height: 48px;
    font-size: 16px;
    padding-inline: 16px;
    border-radius: 4px;
  }

  .c-form__textarea {
    height: 220px;
    font-size: 16px;
    padding: 16px;
    border-radius: 4px;
  }

  .c-form__select {
    height: 48px;
    font-size: 16px;
    border-radius: 4px;
    padding-left: 16px;
    background-position: right 16px center;
  }

  .c-form__radio-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 32px;
  }

  .c-form__checkbox-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 40px;
  }

  .c-form__radio-input,
  .c-form__checkbox-input {
    width: 24px;
    height: 24px;
  }

  .c-form__radio-input:checked::after {
    width: 12px;
    height: 12px;
  }

  .c-form__checkbox-input:checked::after {
    top: 2px;
    left: 6px;
    width: 7px;
    height: 12px;
  }

  .c-form__radio-label,
  .c-form__checkbox-label {
    font-size: 18px;
  }

  .c-form__privacy {
    padding: 32px;
    border-radius: 8px;
  }

  .c-form__privacy-heading {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .c-form__privacy-body {
    font-size: 16px;
  }

  .c-form__submit {
    height: 108px;
    font-size: 20px;
    border-radius: 8px;
    max-width: 580px;
    margin: 0 auto;
  }

  .c-form__submit::before {
    width: 36px;
    right: 28px;
  }

  .c-form__submit::after {
    width: 13px;
    right: 28px;
  }

  input.c-form__submit {
    background-position: right 28px center;
    background-size: 36px auto;
  }

  /* 完了画面 */
  .c-form-complete {
    padding-block: 60px 100px;
  }

  .c-form-complete__inner {
    gap: 50px;
  }

  .c-form-complete__lead {
    gap: 24px;
  }

  .c-form-complete__thanks {
    font-size: 24px;
  }

  .c-form-complete__message {
    font-size: 16px;
  }

  .c-form-complete__flow {
    gap: 32px;
  }

  .c-form-complete__flow-title {
    font-size: 20px;
    padding-block: 14px;
  }

  .c-form-complete__flow-lead {
    font-size: 16px;
  }

  .c-form-complete__list {
    font-size: 18px;
  }

  .c-form-complete__note {
    font-size: 13px;
  }

  .c-form-complete__contact {
    font-size: 16px;
  }
}
