/* ── Contact Layout ── */
.contact-main {
  background: var(--white);
  padding: 40px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 52px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 194px;
}

/* ── Form ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6.7px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wpcf7-form .form-label {
  display: block;
}

.wpcf7-form .form-label .form-label-text {
  display: inline;
}

.wpcf7-form .form-label .badge {
  display: inline-flex !important;
  vertical-align: middle;
  margin-left: 7px;
}

/* CF7 の wpcf7_autop が挿入する <br> を無効化 */
.wpcf7-form .form-label br {
  display: none;
}

.form-label-text {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 14.4px;
  color: var(--azure-12);
  line-height: 25.2px;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.36px;
  line-height: 15.75px;
}

.badge-required { background: var(--azure-46); color: var(--white); }
.badge-optional { background: var(--azure-87); color: var(--azure-38); }

.form-input {
  width: 100%;
  border: 1px solid var(--azure-87);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--grey-46);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--azure-46); color: var(--azure-12); }

.form-select {
  width: 100%;
  border: 1px solid var(--azure-87);
  border-radius: 8px;
  padding: 13px 40px 13px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--azure-12);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7' fill='none'%3E%3Cpath d='M1 1L5.5 6L10 1' stroke='%230C1C30' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form-select:focus { border-color: var(--azure-46); }

.form-textarea {
  width: 100%;
  border: 1px solid var(--azure-87);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--grey-46);
  background: var(--white);
  min-height: 155px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.form-textarea:focus { border-color: var(--azure-46); color: var(--azure-12); }

.form-submit {
  width: 100%;
  background: var(--azure-46);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 15px 32px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-submit:hover { opacity: 0.85; }

/* ── Info Panel ── */
.info-panel {
  background: var(--grey-98);
  border: 1px solid var(--azure-87);
  border-radius: 14px;
  padding: 33px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: flex-start;
}

.info-panel-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 26.25px;
  color: var(--azure-12);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--azure-87);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.info-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 2px;
}

.info-item-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.44px;
  text-transform: uppercase;
  color: var(--azure-46);
  line-height: 19.25px;
}

.info-item-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 26.25px;
  color: var(--azure-12);
}

.info-item-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
  color: var(--azure-62);
}

.info-note {
  background: var(--grey-96);
  border: 1px solid rgba(30, 114, 206, 0.15);
  border-radius: 8px;
  padding: 16px 17px;
}

.info-note-title {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 12.6px;
  color: var(--azure-46);
  line-height: 22.75px;
}

.info-note-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 21.45px;
  color: var(--azure-38);
  margin-top: 3px;
}

/* ── CF7 Integration ── */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-not-valid-tip {
  display: block;
  color: #e53e3e;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  margin-top: 4px;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: #e53e3e !important;
}

.wpcf7-response-output {
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.wpcf7-mail-sent-ok {
  background: #f0fff4 !important;
  border-color: #68d391 !important;
  color: #276749 !important;
}

.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  background: #fff5f5 !important;
  border-color: #fc8181 !important;
  color: #c53030 !important;
}

.wpcf7-spinner { display: none !important; }

/* ── Responsive ── */
@media (max-width: 1200px) { .contact-grid { padding: 0 80px; } }
@media (max-width: 1100px) { .contact-grid { padding: 0 40px; } }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; padding: 0 20px; gap: 32px; }
  .info-panel { order: -1; }
}
