/* ============================================
   お問い合わせフォーム — アポコミLP
   最終更新：2026-05-10 23:45
   ベース：代理店LP（minakuru-form）→ apocomi-contact-form
   ミナクルの見た目に合わせて修正済み
   ============================================ */

/* --- SWELL競合対策：ID付きで詳細度を上げる --- */
#apocomi-form p {
  opacity: 1 !important;
  visibility: visible !important;
}

/* --- フォーム全体 --- */
.apocomi-contact-form {
  max-width: 560px;
  margin: 40px auto !important;
  padding: 0 20px 40px;
}

/* --- ヘッダー --- */
.apocomi-form-header {
  text-align: center;
  margin-bottom: 28px;
}

.apocomi-form-header__title {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #333 !important;
  letter-spacing: normal;
  margin-bottom: 12px !important;
  display: block;
  text-align: center;
}

.apocomi-form-header__title::before,
.apocomi-form-header__title::after {
  content: none !important;
  display: none !important;
}

.apocomi-form-header__title::before,
.apocomi-form-header__title::after {
  content: none;
}

.apocomi-form-header__note {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

.apocomi-form-header__note small {
  font-size: 12px;
  color: #888;
}

.apocomi-form-header__note a {
  color: #3458a8;
  text-decoration: underline;
}

.apocomi-form-header__required-note {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
}

/* --- 必須マーク --- */
.required-mark {
  color: #e04e1a !important;
  font-weight: 700;
}

/* --- エラー表示 --- */
.apocomi-form-errors {
  background: #fff5f5;
  border: 1px solid #e04e1a;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #c0392b;
}

.apocomi-form-errors p {
  font-weight: 700;
  margin-bottom: 8px;
}

.apocomi-form-errors ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.apocomi-form-errors li {
  margin-bottom: 4px;
}

/* --- フォームグループ --- */
.apocomi-form__group {
  margin-bottom: 20px;
}

.apocomi-form__label {
  display: block;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin-bottom: 3px;
}

/* --- 入力フィールド --- */
.apocomi-form__input,
.apocomi-form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: #333;
  border: 1px solid #d0d7e8;
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.apocomi-form__input:focus,
.apocomi-form__textarea:focus {
  border-color: #3458a8;
  box-shadow: 0 0 0 3px rgba(52, 88, 168, 0.12);
}

.apocomi-form__input.is-error,
.apocomi-form__textarea.is-error {
  border-color: #e04e1a;
  box-shadow: 0 0 0 3px rgba(224, 78, 26, 0.12);
}

.apocomi-form__error-msg {
  display: block;
  font-size: 12px;
  color: #e04e1a;
  margin-top: 4px;
  line-height: 1.4;
}

.apocomi-form__textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.7;
}

/* --- 姓名・フリガナの横並び --- */
.apocomi-form__row {
  display: flex;
  gap: 10px;
}

.apocomi-form__col {
  flex: 1;
}

/* --- ヒント文 --- */
.apocomi-form__hint {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* --- カレンダーセクション --- */
#apocomi-calendar {
  min-height: 80px;
  border: 1px dashed #d0d7e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
}

/* --- プライバシーポリシー --- */
.apocomi-form__privacy-wrapper {
  margin-top: 28px;
}

.apocomi-form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

.apocomi-form__checkbox--agree-bold span {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #333 !important;
}

.apocomi-form__checkbox--agree-bold span .required-mark {
  color: #e04e1a !important;
}

.apocomi-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3458a8;
  flex-shrink: 0;
}

.apocomi-privacy__box {
  max-height: 140px !important;
  overflow-y: auto !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px;
  padding: 14px;
  font-size: 10px;
  line-height: 1.4;
  color: #333 !important;
  background: #fff !important;
  margin-bottom: 12px;
}

.apocomi-privacy__box p {
  font-size: 10px !important;
  line-height: 1.4 !important;
  color: #333 !important;
  margin: 3px 0;
}

.apocomi-privacy__box h4 {
  font-size: 10px !important;
  font-weight: 700;
  color: #333 !important;
  margin: 10px 0 3px;
  border: none !important;
  border-left: none !important;
  padding-left: 0 !important;
  background: none !important;
}

.apocomi-privacy__box h4::before,
.apocomi-privacy__box h4::after {
  display: none !important;
}

.apocomi-privacy__box h5 {
  font-size: 10px !important;
  font-weight: 600;
  color: #444 !important;
  margin: 6px 0 2px;
}

.apocomi-privacy__box ul {
  padding-left: 16px;
  margin: 3px 0;
}

.apocomi-privacy__box li {
  margin-bottom: 1px;
  color: #333 !important;
}

.apocomi-privacy__date {
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

/* --- 送信ボタン --- */
.apocomi-form__submit {
  text-align: center;
  margin-top: 28px;
}

.apocomi-form__button {
  display: inline-block;
  padding: 14px 56px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #e67e22;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.05em;
}

.apocomi-form__button:hover {
  background: #d35400;
}

.apocomi-form__button:active {
  transform: translateY(0);
}

.apocomi-form__button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.apocomi-form__ssl {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

/* --- ハニーポット（非表示） --- */
.apocomi-form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* --- SPレスポンシブ --- */
@media (max-width: 480px) {
  .apocomi-contact-form {
    padding: 0 16px 32px;
  }

  .apocomi-form-header__title {
    font-size: 20px;
  }

  .apocomi-form__button {
    font-size: 16px;
    padding: 16px 20px;
  }

  .apocomi-form__row {
    flex-direction: column;
    gap: 0;
  }

  .apocomi-form__col {
    margin-bottom: 10px;
  }
}
