/* Round – contact.css */

/* ---------- CONTACT FORM ---------- */
.ct-form {
  position: relative;
  padding: var(--space-140) var(--space-130);
  overflow: hidden;
}

.ct-form::before {
  content: ""; position: absolute; top: 30px; right: -150px;
  width: 370px; height: 370px; border-radius: 50%;
  border: 65px solid var(--c-yellow); pointer-events: none; z-index: 0;
}
.ct-form__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: var(--space-100);
  max-width: 1180px; margin-inline: auto;
}

.ct-form__head { gap: var(--space-10); }
.ct-form__head .sec-head__eyebrow {
  font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--c-text);
}

.ct-form__body { display: flex; flex-direction: column; gap: var(--space-40); }
.ct-form__lead {
  max-width: 42em; margin-inline: auto;
  font-size: 16px; font-weight: 400; line-height: 2; text-align: center;
}

.ct-form__card {
  display: flex; justify-content: center;
  padding: var(--space-120) var(--space-100);
  background: rgba(250, 250, 250, .9);
  border: 2px solid var(--c-white);
  border-radius: 15px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ct-form__form {
  display: flex; flex-direction: column; gap: var(--space-40);
  width: 100%; max-width: 980px;
}
.ct-form__fields { display: flex; flex-direction: column; gap: var(--space-25); width: 100%; }

.ct-field { display: flex; flex-direction: column; gap: var(--space-10); width: 100%; }
.ct-field__label {
  display: inline-flex; align-items: center; gap: var(--space-10);
  font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--c-text);
}
.ct-field__req {
  display: inline-flex; align-items: center;
  padding: var(--space-2) var(--space-5); border-radius: 4px;
  background: var(--c-req); color: var(--c-white);
  font-size: 12px; font-weight: 700; line-height: 1.3;
}
.ct-field__input {
  width: 100%; height: 50px; padding: var(--space-12);
  background: var(--c-white);
  border: 1px solid #E5E5EA; border-radius: 8px;
  font-family: var(--font-jp); font-size: 14px; line-height: 1.4; color: var(--c-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ct-field__input::placeholder { color: #666; opacity: 1; }
.ct-field__input:focus {
  outline: none;
  border-color: var(--c-yellow);
  box-shadow: 0 0 0 3px rgba(255, 214, 59, .35);
}
.ct-field__select {
  appearance: none; -webkit-appearance: none;
  color: #666; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.ct-field__select.is-filled { color: var(--c-text); }
.ct-field__textarea { height: 160px; resize: vertical; }

.ct-form__foot {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-30); width: 100%;
}
.ct-form__agree { display: flex; align-items: center; gap: var(--space-12); }
.ct-form__check {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0; flex: 0 0 20px;
  background: var(--c-white);
  border: 1px solid #E5E5EA; border-radius: 4px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.ct-form__check:checked {
  background: var(--c-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%230D0D0D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 10px no-repeat;
  border-color: var(--c-yellow);
}
.ct-form__check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 214, 59, .35);
}
.ct-form__agree-label { font-size: 14px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.ct-form__agree-label a { text-decoration: underline; }
.ct-form__submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-20) var(--space-80); border-radius: 50px;
  background: var(--c-ink); color: var(--c-white);
  font-size: 18px; font-weight: 700; line-height: 1.3;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ct-form__submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* ====================
   レスポンシブ
   ==================== */
@media (max-width: 833px) {
  .ct-form { padding: var(--space-60) var(--space-20); }
  .ct-form__inner { gap: var(--space-45); }
  .ct-form__card { padding: var(--space-30) var(--space-20); }
  .ct-form__form { gap: var(--space-30); }
  .ct-form__foot { gap: var(--space-20); }
  .ct-form__submit { width: 100%; padding: var(--space-20) var(--space-20); }
}

/* ---------- MW WP Form 対応 ---------- */
.ct-form__card .mw_wp_form { width: 100%; max-width: 980px; }
.ct-form__card .mw_wp_form form {
  display: flex; flex-direction: column; gap: var(--space-40); width: 100%;
}
.ct-form__agree .mwform-checkbox-field label {
  display: inline-flex; align-items: center; gap: var(--space-12); cursor: pointer;
  font-size: 14px; font-weight: 500; line-height: 1.3;
}
.ct-form__agree .mwform-checkbox-field input {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0; flex: 0 0 20px;
  background: var(--c-white);
  border: 1px solid #E5E5EA; border-radius: 4px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.ct-form__agree .mwform-checkbox-field input:checked {
  background: var(--c-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%230D0D0D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 10px no-repeat;
  border-color: var(--c-yellow);
}
.mw_wp_form .error { display: block; margin-top: var(--space-5); color: var(--c-req); font-size: 12px; font-weight: 700; }

.mw_wp_form_confirm .ct-field { border-bottom: 1px dashed var(--c-line); padding-bottom: var(--space-12); }
.ct-form__back {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-20) var(--space-60); border-radius: 50px;
  background: var(--c-white); border: 1px solid var(--c-text);
  font-size: 16px; font-weight: 700; line-height: 1.3; cursor: pointer;
  transition: background .25s ease;
}
.ct-form__back:hover { background: #F5F5F5; }
.mw_wp_form_input .ct-form__back { display: none; }
.ct-form__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-15); }
@media (max-width: 833px) {
  .ct-form__actions { width: 100%; flex-direction: column; align-items: stretch; }
}
@media (min-width: 834px) {
  .ct-form__back,
  .ct-form__submit {
    width: var(--w-form-btn);
    padding-left: var(--space-20); padding-right: var(--space-20);
  }
}
