/* ── Contact Page (お問い合わせ) ── */
.sjp-contact-page { font-family: var(--sjp-font-jp, sans-serif); }
.sjp-contact-eyebrow { color: #3B82F6; font-size: 15px; font-weight: 600; letter-spacing: 2px; margin: 0; text-transform: uppercase; }

/* ── Hero (300px) ── */
.sjp-contact-hero {
  background: linear-gradient(135deg, #0B1D4F 0%, #1E40AF 60%, #2563EB 100%);
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 110px 80px 70px;
}
.sjp-contact-hero__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sjp-contact-hero__orb--1 { width: 400px; height: 400px; right: -120px; top: -120px; background: rgba(59,130,246,.3); opacity: .3; }
.sjp-contact-hero__orb--2 { width: 250px; height: 250px; left: -80px; bottom: -60px; background: rgba(30,64,175,.4); opacity: .25; }
.sjp-contact-hero__orb--3 { width: 300px; height: 300px; left: 40%; top: -50px; background: rgba(96,165,250,.22); opacity: .2; }
.sjp-contact-hero__inner { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1280px; margin: 0 auto; }
.sjp-contact-bc { display: flex; align-items: center; gap: 8px; }
.sjp-contact-bc__link { color: #93C5FD; font-size: 14px; text-decoration: none; }
.sjp-contact-bc__link:hover { text-decoration: underline; }
.sjp-contact-bc__sep { color: #64748B; }
.sjp-contact-bc__cur { color: #fff; font-size: 14px; }
.sjp-contact-hero__title { font-size: 44px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.sjp-contact-hero__desc { font-size: 18px; color: #CBD5E1; margin: 0; line-height: 1.6; max-width: 760px; }

/* ── Form Section (gray bg, two-column) ── */
.sjp-contact-form-sec { background: #F8FAFC; padding: 64px 80px; }
.sjp-contact-form-sec__inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

/* Left info column */
.sjp-contact-info { display: flex; flex-direction: column; gap: 24px; }
.sjp-contact-info__hd { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sjp-contact-info__title { font-size: 36px; font-weight: 700; color: #0F172A; margin: 0; line-height: 1.3; }
.sjp-contact-info__line { width: 60px; height: 3px; background: linear-gradient(90deg, #1E40AF, #3B82F6); border-radius: 2px; }
.sjp-contact-info__desc { font-size: 16px; color: #475569; line-height: 1.8; margin: 0; }
.sjp-contact-info__note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; color: #475569; margin: 0; }
.sjp-contact-info__privacy-note { font-size: 16px; color: #475569; line-height: 1.6; margin: 0; }

.sjp-contact-info__privacy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 10px 20px;
  background: #EFF6FF;
  border: 2px solid #BFDBFE;
  border-radius: 8px;
  color: #1E40AF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.sjp-contact-info__privacy-btn:hover { background: #DBEAFE; border-color: #93C5FD; }

.sjp-contact-info__list { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-direction: column; gap: 20px; }
.sjp-contact-info__item { display: flex; align-items: center; gap: 12px; color: #475569; font-size: 15px; }
.sjp-contact-info__item--addr { align-items: flex-start; line-height: 1.6; }
.sjp-contact-info__item svg { color: #3B82F6; flex-shrink: 0; }
.sjp-contact-info__item a { color: #475569; text-decoration: none; transition: color .2s ease; }
.sjp-contact-info__item a:hover { color: #1E40AF; }

/* Required / optional badges */
.sjp-contact-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.sjp-contact-badge--req { background: #DC2626; }
.sjp-contact-badge--opt { background: #94A3B8; }

/* Form card */
.sjp-contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15,23,42,.04);
}
.sjp-contact-form br {display: none;}
.sjp-contact-form p {margin: 0;}
.sjp-contact-form__title { font-size: 22px; font-weight: 700; color: #0F172A; margin: 0; line-height: 1.4; }
.sjp-contact-form__note { font-size: 14px; color: #475569; margin: -16px 0 0!important; }

.sjp-contact-field p,
.sjp-contact-field { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sjp-contact-field__label { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: #0F172A; }
.sjp-contact-field__input,
.sjp-contact-field__textarea,
.sjp-contact-field__select {
  width: 100%;
  padding: 12px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  color: #0F172A;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.sjp-contact-field__input::placeholder,
.sjp-contact-field__textarea::placeholder { color: #94A3B8; }
.sjp-contact-field__input:focus,
.sjp-contact-field__textarea:focus,
.sjp-contact-field__select:focus {
  outline: none;
  border-color: #3B82F6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.sjp-contact-field__textarea { resize: vertical; min-height: 160px; line-height: 1.6; }

.sjp-contact-field__select-wrap { position: relative; }
.sjp-contact-field__select { padding-right: 44px; cursor: pointer; }
.sjp-contact-field__select:invalid { color: #94A3B8; }
.sjp-contact-field__select-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #94A3B8; pointer-events: none; }

/* Checkbox */
.sjp-contact-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.sjp-contact-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.sjp-contact-checkbox .wpcf7-form-control-wrap .wpcf7-list-item {
  margin-left: 0;
}
.sjp-contact-checkbox .wpcf7-form-control-wrap .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.sjp-contact-checkbox .wpcf7-form-control-wrap .wpcf7-list-item > label::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 4px;
  color: transparent;
  flex-shrink: 0;
  transition: all .2s ease;
  margin: 0;
  position: relative;
  display: block;
}
.sjp-contact-checkbox .wpcf7-form-control-wrap .wpcf7-list-item:has(input:checked) > label::before {
  background: #1E40AF;
  border-color: #1E40AF;
  color: #fff;
}
.sjp-contact-checkbox .wpcf7-form-control-wrap .wpcf7-list-item:has(input:focus-visible) > label::before {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}
.sjp-contact-checkbox .wpcf7-form-control-wrap .wpcf7-list-item:has(input:checked) > label::after { 
  content: "✓"; 
  position: absolute; 
  left: 6px; 
  color: #fff; 
  font-size: 12px; 
  font-weight: 700; 
  line-height: 1; 
}
.sjp-contact-checkbox__label { font-size: 14px; color: #475569; }

/* Submit */
.sjp-contact-submit-wrap > p {
  position: relative;
  width: fit-content;
}
.sjp-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  background: linear-gradient(90deg, #1E40AF, #3B82F6);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30,64,175,.25);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.sjp-contact-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,64,175,.35); filter: brightness(1.05); }
.sjp-contact-submit:active { transform: translateY(0); }

.wpcf7-form.submitting .sjp-contact-submit-wrap > p .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 14px;
  margin: 0;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
}
.wpcf7-form.submitting .sjp-contact-submit-wrap > p .wpcf7-spinner::before {
  margin: 2px;
  border-radius: 100%;
  transform-origin: 6px 6px;
  top: 0;
  left: 0;
}
.wpcf7-form.submitting .sjp-contact-submit {
  padding-right: 52px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sjp-contact-hero,
  .sjp-contact-form-sec { padding-left: 40px; padding-right: 40px; }

  .sjp-contact-form-sec__inner { grid-template-columns: 1fr; gap: 40px; }
  .sjp-contact-hero__title { font-size: 36px; }
  .sjp-contact-info__title { font-size: 30px; }
}

@media (max-width: 768px) {
  .sjp-contact-hero,
  .sjp-contact-form-sec { padding-left: 20px; padding-right: 20px; }

  .sjp-contact-hero { padding-top: 80px; padding-bottom: 50px; }
  .sjp-contact-form-sec { padding-top: 48px; padding-bottom: 60px; }
  .sjp-contact-form { padding: 24px; }

  .sjp-contact-hero__title { font-size: 28px; }
  .sjp-contact-hero__desc { font-size: 15px; }
  .sjp-contact-info__title { font-size: 24px; }
}
