/*▼お問い合わせフォームセクション▼*/

.be-contact {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: #fff;
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 0, 0, .70), rgba(0, 0, 0, .70)),
    url("../img/backgrounds/bg1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(56px, 6vw, 96px) 16px;
}

.be-contact,
.be-contact * {
  box-sizing: border-box;
}

.be-contact__inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.be-contact__lead {
  margin: 0 1em clamp(28px, 4vw, 48px);
  text-align: center;
}

.be-contact__lead p {
  margin: 0;
  line-height: 2;
}

.be-contact__form {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Contact Form 7 基本調整 */
.be-contact__form .wpcf7 {
  width: 100%;
}

.be-contact__form p {
  margin: 0 0 1.2em;
}

.be-contact__form label {
  display: block;
  color: #fff;
  font-weight: 700;
  line-height: 1.7;
}

.be-contact__form input[type="text"],
.be-contact__form input[type="email"],
.be-contact__form input[type="tel"],
.be-contact__form input[type="url"],
.be-contact__form input[type="number"],
.be-contact__form textarea,
.be-contact__form select {
  width: 100%;
  min-height: 48px;
  padding: 0.75em 1em;
  color: #111;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
}

.be-contact__form textarea {
  min-height: 180px;
  resize: vertical;
}

.be-contact__form input:focus,
.be-contact__form textarea:focus,
.be-contact__form select:focus {
  outline: 2px solid rgba(80, 194, 194, 0.85);
  outline-offset: 2px;
}

.be-contact__form .wpcf7-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(640px, 100%);
  min-height: 56px;
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding: 0.9em 1.6em;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #2f59c9 0%, #9b7fca 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: filter .25s ease, transform .25s ease;
}

.be-contact__form .wpcf7-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.be-contact__form .wpcf7-not-valid-tip {
  margin-top: 0.4em;
  color: #ffb640;
  font-weight: 700;
}

.be-contact__form .wpcf7-response-output {
  margin: 1.5em 0 0;
  padding: 1em;
  color: #fff;
  border-color: rgba(80, 194, 194, 0.7);
}

@media screen and (max-width: 959px) {
  .be-contact {
    padding: 48px 16px;
  }

  .be-contact .title_back2 {
    font-size: clamp(64px, 18vw, 100px);
  }

  .be-contact .title_front2 {
    font-size: clamp(40px, 12vw, 64px);
  }

  .be-contact__form {
    padding: 20px;
  }
}

/*▼問い合わせフォーム▼*/
.cf7-onecol {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf7-name-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.cf7-name-col {
  flex: 1;
  min-width: 0;
  position: relative;
}

.cf7-name-label {
  display: block;
  font-size: 12px;
  color: var(--muted, #8b91a1);
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 480px) {
  .cf7-name-row {
    gap: 8px;
  }
}

.cf7-modern {
  --bg: #0f0f14;
  --card: #151720;
  --muted: #8b91a1;
  --text: #e9ecf1;
  --border: #2a2e3a;
  --accent: #5b8cff;
  --accent-2: #7ee0d2;
  --danger: #ff6b6b;
  --success: #34d399;
  background: var(--bg);
  color: var(--text);
  padding: 40px 35px;
  border-radius: 18px;
  box-shadow: 0px 0px 20px #50c2c2;
}

.cf7-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.label-top {
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
  color: var(--text);
}

.field.floating {
  position: relative;
}

.field.floating > label {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 14px;
  color: var(--muted);
  transition: all .2s ease;
  pointer-events: none;
  background: var(--bg);
  padding: 0 6px;
}

.cf7-modern .input-modern,
.cf7-modern .textarea-modern,
.cf7-modern .select-modern {
  width: 100%;
  padding: 16px 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cf7-modern .input-modern::placeholder,
.cf7-modern .textarea-modern::placeholder {
  color: var(--muted);
}

.cf7-modern .input-modern:focus,
.cf7-modern .textarea-modern:focus,
.cf7-modern .select-modern:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,140,255,.25);
}

.field.floating :is(.input-modern, .textarea-modern):focus + label,
.field.floating :is(.input-modern, .textarea-modern):not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: var(--accent);
}

.cf7-modern .select-modern {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.req {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  margin-left: 6px;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 3px;
  font-size: 14px;
  color:#FFF;/* ===== var(--muted) ===== */
}
.terms a{color:#50c2c2;}
.terms input[type="checkbox"] {
  accent-color: var(--accent);
  margin-top: 3px;
}

.btn-modern {
  display: block;
  width: 80%;
  margin: 0 auto;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1f4ebd,#9d7dc5);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all .3s ease;
}

.btn-modern:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px rgba(157,125,197,0.7), 0 0 24px rgba(31,78,189,0.6);
}

.btn-modern:active {
  transform: translateY(1px);
}

.cf7-modern .wpcf7-not-valid-tip {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}
.cf7-modern .wpcf7-response-output {
  margin-top: 12px;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 12px;
}

.wpcf7 form.sent .wpcf7-response-output{
  background-color:#000;
  text-align:center;
  border-color:#a582c9!important;
  box-shadow: 0 0 0 5px #9d7dc5;
}

/* ===== 確認画面 ===== */
.cf7-modern.confirm .cf7-title {
  margin-bottom: 16px;
}

.cf7-modern.confirm .field {
  margin-bottom: 14px;
}

.cf7-modern.confirm .field.floating {
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.cf7-modern.confirm .field.floating > label {
  position: static;
  background: transparent;
  padding: 0;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  opacity: .95;
}

.cf7-modern.confirm .field.floating .input-modern,
.cf7-modern.confirm .field.floating .textarea-modern {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  pointer-events: none;
  user-select: text;
  caret-color: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
}

.cf7-modern.confirm .input-modern:focus,
.cf7-modern.confirm .textarea-modern:focus {
  border-color: var(--border);
  box-shadow: none;
  outline: none;
}

.cf7-modern.confirm .field.floating .textarea-modern {
  white-space: pre-wrap;
  resize: none;
  min-height: 0;
}

.cf7-modern.confirm .req {
  vertical-align: middle;
}

.cf7-modern.confirm .actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: nowrap;
}
.cf7-modern.confirm .actions > p { display: contents; margin: 0; }
.cf7-modern.confirm .actions > p br { display: none; }

.cf7-modern.confirm .actions .btn-modern,
.cf7-modern.confirm .actions .wpcf7-submit {
  width: auto !important;
  margin: 0 !important;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 12px;
}

.cf7-modern.confirm .actions .btn-outline,
.cf7-modern.confirm .actions .previous-475 {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: box-shadow .25s ease, border-color .25s ease, transform .1s ease;
}

.cf7-modern.confirm .actions .btn-outline:hover,
.cf7-modern.confirm .actions .previous-475:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(91,140,255,0.35);
}

.cf7-modern.confirm .actions .btn-outline:active,
.cf7-modern.confirm .actions .previous-475:active {
  transform: translateY(1px);
}

.cf7-modern.confirm .actions .wpcf7-spinner { 
  align-self: center; 
  margin-left: 8px; 
}

.cf7-modern.confirm .wpcf7-response-output {
  background: #0c0f19;
  border: 1px solid var(--border);
  color: #e9ecf1;
}

@media (max-width: 640px) {
  .cf7-modern.confirm .input-modern,
  .cf7-modern.confirm .textarea-modern { font-size: 14px; }
  .cf7-modern.confirm .actions { flex-direction: column; }
  .cf7-modern.confirm .actions .btn-modern,
  .cf7-modern.confirm .actions .wpcf7-submit,
  .cf7-modern.confirm .actions .btn-outline,
  .cf7-modern.confirm .actions .previous-475 {
    width: 100% !important;
    min-width: 0;
  }
  .cf7-modern.confirm .actions .btn-outline { margin-bottom: .5em; }
}

/* ===== CF7 同意チェック ===== */
.cf7-modern .terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cf7-modern .terms input[type="checkbox"]{
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.cf7-modern .terms label{
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  cursor: pointer;
  padding: 10px 6px;
  border-radius: 10px!important;
}

.cf7-modern .terms input[type="checkbox"]:focus-visible{
  outline: 3px solid rgba(91,140,255,.45);
  outline-offset: 3px;
}

.cf7-modern .terms label,
.cf7-modern .terms a{
  -webkit-tap-highlight-color: rgba(91,140,255,1);
}
.cf7-modern .terms a,
.cf7-modern .terms a:visited {
  color: #50c2c2;
  text-decoration: underline;
  text-underline-offset: 1px;
  text-decoration-thickness: 1px;
}

.cf7-modern .terms a:hover,
.cf7-modern .terms a:focus-visible {
  text-decoration-thickness: 1px;
}

.cf7-hp-wrap{
position:absolute !important;
left:-9999px !important;
height:1px !important;
width:1px !important;
overflow:hidden !important;
}